1 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
3 * elfxx-ia64.c: Fix compile time warning messages.
4 * bfd/coff-mcore.c: Fix compile time warning messages.
5 * bfd/coff-ppc.c: Fix compile time warning messages.
6 * bfd/coffcode.h: Fix compile time warning messages.
7 * bfd/elf32-mips.c: Fix compile time warning messages.
8 * bfd/elf64-alpha.c: Fix compile time warning messages.
9 * bfd/libbfd.c: Fix compile time warning messages.
10 * bfd/bfd-in2.h: Regenerate.
12 2001-09-21 Alan Modra <amodra@bigpond.net.au>
14 * Makefile.am: Run "make dep-am".
15 * Makefile.in: Regenerate.
17 * aoutx.h: Formatting fixes.
18 * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
20 * linker.c: Replace bfd_get_filename with bfd_archive_filename
23 2001-09-21 Alan Modra <amodra@bigpond.net.au>
25 * bfd.c (bfd_archive_filename): New function.
26 * bfd-in2.h: Regenerate.
27 * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
28 in error messages where the bfd is an input bfd.
29 * aout-cris.c: Likewise.
30 * coff-arm.c: Likewise.
31 * coff-mcore.c: Likewise.
32 * coff-ppc.c: Likewise.
33 * coff-rs6000.c: Likewise.
34 * coff-sh.c: Likewise.
35 * coff-tic54x.c: Likewise.
36 * coff-tic80.c: Likewise.
37 * coff64-rs6000.c: Likewise.
38 * coffcode.h: Likewise.
39 * coffgen.c: Likewise.
40 * cofflink.c: Likewise.
41 * ecofflink.c: Likewise.
42 * elf-hppa.h: Likewise.
44 * elf32-arm.h: Likewise.
45 * elf32-cris.c: Likewise.
46 * elf32-gen.c: Likewise.
47 * elf32-hppa.c: Likewise.
48 * elf32-i370.c: Likewise.
49 * elf32-i386.c: Likewise.
50 * elf32-m32r.c: Likewise.
51 * elf32-mcore.c: Likewise.
52 * elf32-mips.c: Likewise.
53 * elf32-ppc.c: Likewise.
54 * elf32-s390.c: Likewise.
55 * elf32-sh.c: Likewise.
56 * elf32-sparc.c: Likewise.
57 * elf32-v850.c: Likewise.
58 * elf64-alpha.c: Likewise.
59 * elf64-gen.c: Likewise.
60 * elf64-ppc.c: Likewise.
61 * elf64-s390.c: Likewise.
62 * elf64-sparc.c: Likewise.
63 * elf64-x86-64.c: Likewise.
64 * elflink.h: Likewise.
65 * elfxx-ia64.c: Likewise.
70 * pe-mips.c: Likewise.
71 * peicode.h: Likewise.
73 * xcofflink.c: Likewise.
75 * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
77 * elflink.c (_bfd_elf_create_linker_section): Better grammar for
80 * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
83 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
84 Consolidate error messages, and split long messages to two lines.
86 2001-09-20 John Reiser <jreiser@BitWagon.com>
88 * elf32-i386.c (elf_i386_relocate_section): coordinate info->symbolic
89 and info->allow_shlib_undefined.
90 * elf32-cris.c: likewise
91 * elf32-hppa.c: likewise
92 * elf32-m68k.c: likewise
93 * elf32-mips.c: likewise
94 * elf32-ppc.c: likewise
95 * elf32-s390.c: likewise
96 * elf32-sh.c: likewise
97 * elf32-sparc.c: likewise
98 * elf64-alpha.c: likewise
99 * elf64-hppa.c: likewise
100 * elf64-ppc.c: likewise
101 * elf64-s390.c: likewise
102 * elf64-sparc.c: likewise
103 * elf64-x86-64.c: likewise
104 * elfxx-ia64.c: likewise
106 2001-09-18 Bruno Haible <haible@clisp.cons.org>
108 * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
109 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
110 * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
111 (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
112 * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
113 (bfd_default_scan): Use ISDIGIT instead of isdigit.
114 * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
115 (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
116 isxdigit/isdigit/islower.
117 * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
118 (mangle_name): Use ISALNUM instead of isalnum.
119 * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
120 (scan): Use ISDIGIT instead of isdigit.
121 * hosts/alphavms.h: Don't include <ctype.h>.
122 * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
123 (ieee_object_p): Use TOUPPER instead of toupper.
124 * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
125 (ihex_bad_byte): Use ISPRINT instead of isprint.
126 * merge.c: Don't include <ctype.h>.
127 * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
128 (oasys_write_sections): Use ISDIGIT instead of isdigit.
129 * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
130 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
131 * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
132 (mangle_name): Use ISALNUM instead of isalnum.
133 * som.c: Include "safe-ctype.h" instead of <ctype.h>.
134 (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
135 isupper/islower/isdigit.
136 (som_decode_symclass): Use TOUPPER instead of toupper.
137 * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
138 (srec_bad_byte): Use ISPRINT instead of isprint.
139 (srec_scan): Use ISSPACE instead of isspace.
140 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
141 (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
142 * syms.c: Include "safe-ctype.h"
143 (islower, toupper): Remove macro definitions.
144 (bfd_decode_symclass): Use TOUPPER instead of toupper.
145 * vms-gsd.c: Don't include <ctype.h>.
146 * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
147 (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
149 * vms-tir.c: Don't include <ctype.h>.
151 2001-09-18 Alan Modra <amodra@bigpond.net.au>
153 * libbfd.c (bfd_bread): New function replacing bfd_read without
154 redundant params. Allow reads up to (size_t) -2 in length.
155 (bfd_bwrite): Similarly for bfd_write.
156 (real_read): Return a size_t.
157 (bfd_read): Call bfd_bread.
158 (bfd_write): Call bfd_bwrite.
159 (warn_deprecated): New function to annoy everybody.
160 (bfd_get_file_window): Don't call bfd_set_error unnecessarily.
161 * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare.
162 (bfd_read, bfd_write): Define as macro.
163 * aix386-core.c: Replace calls to bfd_read with bfd_bread, and
164 likewise for bfd_write. Ensure function args are correct size by
165 using casts or local vars. In some cases, remove unnecessary
166 casts. Formatting fixes, in some cases removing a large expression
167 from function args by using a local var. Replace CONST with const.
168 Modify variable types to avoid warings. Use casts to avoid
169 warnings when using negative numbers in unsigned expressions.
170 * aout-adobe.c: Likewise.
171 * aout-arm.c: Likewise.
172 * aout-cris.c: Likewise.
173 * aout-encap.c: Likewise.
174 * aout-ns32k.c: Likewise.
175 * aout-target.h: Likewise.
176 * aout-tic30.c: Likewise.
177 * aoutf1.h: Likewise.
179 * archive.c: Likewise.
180 * archures.c: Likewise.
181 * bfd-in.h: Likewise.
183 * binary.c: Likewise.
186 * cisco-core.c: Likewise.
187 * coff-a29k.c: Likewise.
188 * coff-alpha.c: Likewise.
189 * coff-arm.c: Likewise.
190 * coff-h8300.c: Likewise.
191 * coff-h8500.c: Likewise.
192 * coff-i386.c: Likewise.
193 * coff-i860.c: Likewise.
194 * coff-i960.c: Likewise.
195 * coff-ia64.c: Likewise.
196 * coff-m68k.c: Likewise.
197 * coff-m88k.c: Likewise.
198 * coff-mcore.c: Likewise.
199 * coff-mips.c: Likewise.
200 * coff-ppc.c: Likewise.
201 * coff-rs6000.c: Likewise.
202 * coff-sh.c: Likewise.
203 * coff-sparc.c: Likewise.
204 * coff-stgo32.c: Likewise.
205 * coff-tic30.c: Likewise.
206 * coff-tic54x.c: Likewise.
207 * coff-tic80.c: Likewise.
208 * coff-w65.c: Likewise.
209 * coff-z8k.c: Likewise.
210 * coff64-rs6000.c: Likewise.
211 * coffcode.h: Likewise.
212 * coffgen.c: Likewise.
213 * cofflink.c: Likewise.
214 * coffswap.h: Likewise.
215 * corefile.c: Likewise.
216 * cpu-arc.c: Likewise.
217 * cpu-h8300.c: Likewise.
218 * cpu-h8500.c: Likewise.
219 * cpu-i960.c: Likewise.
220 * cpu-ia64-opc.c: Likewise.
221 * cpu-ns32k.c: Likewise.
222 * cpu-pdp11.c: Likewise.
223 * cpu-pj.c: Likewise.
224 * cpu-sh.c: Likewise.
225 * cpu-w65.c: Likewise.
226 * cpu-z8k.c: Likewise.
227 * dwarf1.c: Likewise.
228 * dwarf2.c: Likewise.
230 * ecofflink.c: Likewise.
231 * ecoffswap.h: Likewise.
232 * elf-bfd.h: Likewise.
233 * elf-hppa.h: Likewise.
234 * elf-m10200.c: Likewise.
235 * elf-m10300.c: Likewise.
237 * elf32-arc.c: Likewise.
238 * elf32-arm.h: Likewise.
239 * elf32-avr.c: Likewise.
240 * elf32-cris.c: Likewise.
241 * elf32-fr30.c: Likewise.
242 * elf32-gen.c: Likewise.
243 * elf32-h8300.c: Likewise.
244 * elf32-hppa.c: Likewise.
245 * elf32-i370.c: Likewise.
246 * elf32-i386.c: Likewise.
247 * elf32-i860.c: Likewise.
248 * elf32-m32r.c: Likewise.
249 * elf32-m68k.c: Likewise.
250 * elf32-mcore.c: Likewise.
251 * elf32-mips.c: Likewise.
252 * elf32-openrisc.c: Likewise.
253 * elf32-pj.c: Likewise.
254 * elf32-ppc.c: Likewise.
255 * elf32-s390.c: Likewise.
256 * elf32-sh-lin.c: Likewise.
257 * elf32-sh.c: Likewise.
258 * elf32-sparc.c: Likewise.
259 * elf32-v850.c: Likewise.
260 * elf64-alpha.c: Likewise.
261 * elf64-hppa.c: Likewise.
262 * elf64-mips.c: Likewise.
263 * elf64-ppc.c: Likewise.
264 * elf64-s390.c: Likewise.
265 * elf64-sparc.c: Likewise.
266 * elf64-x86-64.c: Likewise.
267 * elfarm-nabi.c: Likewise.
268 * elfcode.h: Likewise.
269 * elfcore.h: Likewise.
270 * elflink.c: Likewise.
271 * elflink.h: Likewise.
272 * elfxx-ia64.c: Likewise.
273 * elfxx-target.h: Likewise.
274 * format.c: Likewise.
276 * hp300hpux.c: Likewise.
277 * hppabsd-core.c: Likewise.
278 * hpux-core.c: Likewise.
279 * i386aout.c: Likewise.
280 * i386dynix.c: Likewise.
281 * i386linux.c: Likewise.
282 * i386lynx.c: Likewise.
283 * i386mach3.c: Likewise.
284 * i386msdos.c: Likewise.
285 * i386os9k.c: Likewise.
288 * irix-core.c: Likewise.
289 * libaout.h: Likewise.
290 * libbfd-in.h: Likewise.
291 * libbfd.c: Likewise.
292 * libcoff-in.h: Likewise.
293 * libecoff.h: Likewise.
294 * libieee.h: Likewise.
295 * libnlm.h: Likewise.
296 * libpei.h: Likewise.
297 * libxcoff.h: Likewise.
298 * linker.c: Likewise.
299 * lynx-core.c: Likewise.
300 * m68klinux.c: Likewise.
302 * mipsbsd.c: Likewise.
303 * netbsd-core.c: Likewise.
305 * nlm32-alpha.c: Likewise.
306 * nlm32-i386.c: Likewise.
307 * nlm32-ppc.c: Likewise.
308 * nlm32-sparc.c: Likewise.
309 * nlmcode.h: Likewise.
310 * nlmswap.h: Likewise.
313 * opncls.c: Likewise.
314 * osf-core.c: Likewise.
315 * pc532-mach.c: Likewise.
317 * pe-mips.c: Likewise.
318 * peXXigen.c: Likewise.
319 * peicode.h: Likewise.
320 * ppcboot.c: Likewise.
321 * ptrace-core.c: Likewise.
323 * reloc16.c: Likewise.
324 * riscix.c: Likewise.
325 * rs6000-core.c: Likewise.
326 * sco5-core.c: Likewise.
327 * section.c: Likewise.
329 * sparclinux.c: Likewise.
330 * sparclynx.c: Likewise.
335 * targets.c: Likewise.
336 * tekhex.c: Likewise.
337 * trad-core.c: Likewise.
338 * versados.c: Likewise.
339 * vms-gsd.c: Likewise.
340 * vms-hdr.c: Likewise.
341 * vms-misc.c: Likewise.
342 * vms-tir.c: Likewise.
345 * xcofflink.c: Likewise.
346 * bfd-in2.h: Regenerate.
347 * libbfd.h: Regenerate.
348 * libcoff.h: Regenerate.
350 * bfd.c (struct _bfd): Make "where" and "origin" unsigned.
351 * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma.
353 (bfd_tell): Return a ufile_ptr.
354 * libbfd.c (bfd_tell): Likewise.
355 (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error
357 * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0.
358 * aoutf1.h: Likewise.
360 * cache.c (bfd_cache_lookup_worker): Guard against abfd->where
361 larger than unsigned long can represent.
363 * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if
364 size overflows size_t.
365 (bfd_realloc): Likewise.
366 (bfd_zmalloc): Likewise.
367 * opncls.c (bfd_alloc): Likewise.
368 (bfd_zalloc): Likewise.
369 * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update.
370 (bfd_alloc, bfd_zalloc): Update.
372 * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than
374 (bfd_get_signed_8): Likewise.
375 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8,
376 H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8,
377 H_GET_64, H_GET_32, H_GET_16, H_GET_8,
378 H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use.
379 * libaout.h: Likewise define and use here.
380 * aout-adobe.c: Use H_GET_* and H_PUT_* macros.
381 * aout-arm.c: Likewise.
382 * aout-encap.c: Likewise.
383 * aout-ns32k.c: Likewise.
384 * aout-tic30.c: Likewise.
385 * aoutf1.h: Likewise.
388 * coff-alpha.c: Likewise.
389 * coff-h8300.c: Likewise.
390 * coff-h8500.c: Likewise.
391 * coff-i960.c: Likewise.
392 * coff-ia64.c: Likewise.
393 * coff-m88k.c: Likewise.
394 * coff-mips.c: Likewise.
395 * coff-ppc.c: Likewise.
396 * coff-rs6000.c: Likewise.
397 * coff-sh.c: Likewise.
398 * coff-sparc.c: Likewise.
399 * coff-stgo32.c: Likewise.
400 * coff-tic30.c: Likewise.
401 * coff-tic80.c: Likewise.
402 * coff-w65.c: Likewise.
403 * coff-z8k.c: Likewise.
404 * coff64-rs6000.c: Likewise.
405 * coffgen.c: Likewise.
406 * cofflink.c: Likewise.
407 * coffswap.h: Likewise.
409 * ecoffswap.h: Likewise.
411 * elf32-mips.c: Likewise.
412 * elf64-mips.c: Likewise.
413 * hp300hpux.c: Likewise.
414 * i386dynix.c: Likewise.
415 * i386lynx.c: Likewise.
416 * i386msdos.c: Likewise.
417 * i386os9k.c: Likewise.
418 * libpei.h: Likewise.
419 * nlm32-alpha.c: Likewise.
420 * nlm32-i386.c: Likewise.
421 * nlm32-ppc.c: Likewise.
422 * nlmcode.h: Likewise.
423 * nlmswap.h: Likewise.
426 * pe-mips.c: Likewise.
427 * peXXigen.c: Likewise.
428 * peicode.h: Likewise.
429 * riscix.c: Likewise.
431 * xcofflink.c: Likewise.
432 * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word):
433 Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD.
434 * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use
435 equivalent H_PUT_* macro instead.
436 (GETWORD, GETHALF, GETBYTE): Similarly.
437 * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise.
438 (GETWORD, GETHALF, GETBYTE): Likewise.
439 * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise.
441 * bfd-in.h (struct orl): Change "pos" to a union.
442 * archive.c (_bfd_compute_and_write_armap): Use it instead of casts.
443 (bsd_write_armap): Here too.
444 (coff_write_armap): And here.
445 * coff-rs6000.c (xcoff_write_armap_old): And here.
446 (xcoff_write_one_armap_big): And here.
447 (xcoff_write_armap_big): And here.
448 * ecoff.c (_bfd_ecoff_write_armap): And here.
449 * elf64-mips.c (mips_elf64_write_armap): And here.
451 * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum.
452 * elf-m10300.c (elf_mn10300_mach): Return an unsigned long.
453 * elf32-h8300.c (elf32_h8_mach): Likewise.
454 * elf32-mips.c (elf_mips_mach): Likewise.
455 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
457 * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release
459 (aix386_core_vec): Typo fix.
461 * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR
462 etc. to avoid redefined macro warning.
463 (MY(put_reloc)): Use bfd_vma for "value" rather than long.
464 (MY(fix_pcrel_26)): Likewise.
465 * aout-ns32k.c (MY(put_reloc)): Likewise.
466 * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend.
467 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise.
468 * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset.
470 * aout-encap.c: Include "file", not <file> for binutils headers.
471 (encap_object_p): Half baked attempt to fix compile errors in
472 code dealing with "magic".
474 * aout-ns32k.c: Include "file", not <file> for binutils headers.
475 (_bfd_ns32k_relocate_contents): get_data and put_data manipulate
476 bfd_vma's rather than longs.
477 * cpu-ns32k.c (ns32k_sign_extend): Delete.
478 (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset.
479 (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values,
481 (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset.
482 Use unsigned comparisons.
483 (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values.
484 (do_ns32k_reloc): get_data and put_data operate on bfd_vma's.
485 (_bfd_do_ns32k_reloc_contents): Likewise.
486 * ns32k.h (_bfd_ns32k_get_displacement): Update prototype.
487 (_bfd_ns32k_get_immediate): Likewise.
488 (_bfd_ns32k_put_displacement): Likewise.
489 (_bfd_ns32k_put_immediate): Likewise.
490 (bfd_reloc_status_type): Likewise.
492 * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon'
494 * pdp11.c (NAME(aout,find_nearest_line)): Likewise.
495 * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value".
496 * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to
498 (record_toc): Use a bfd_signed_vma for our_toc_offset.
499 * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing.
500 * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid
502 (_bfd_elfcore_strndup): Likewise for "dup".
503 * elf32-cris.c (cris_elf_relocate_section): "symname" instead of
504 "name" to avoid shadowing.
505 * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate
507 * elf32-i386.c (elf_i386_relocate_section): Likewise.
508 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate
510 (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate
512 * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx"
514 * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink"
516 (elf_link_input_bfd): Likewise.
517 (elf_bfd_final_link): Remove duplicate innermost "off" var.
518 * oasys.c (oasys_write_data): Rename innermost "p" to "sym".
519 * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to
521 * som.c (som_prep_for_fixups): Rename inner "i" to "j".
522 * sunos.c (sunos_add_dynamic_symbols): Localise "s" var.
523 (sunos_write_dynamic_symbol): Remove unused vars.
524 * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate
525 innermost "directory_name" and "file_name" vars.
526 * tekhex.c (first_phase): Rename local var "type" to "stype".
527 (tekhex_write_object_contents): Rename innermost "s" to "sym".
528 * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize",
529 doing comparison at caller.
530 (vms_esecflag_by_name): Likewise.
531 * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1".
532 * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o".
533 (xcoff_write_global_symbol): Rename "p" param to "inf".
535 * cisco-core.c: Add missing prototypes.
536 (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED.
537 (cisco_core_file_failing_signal): Likewise.
538 (cisco_core_file_matches_executable_p): Likewise.
539 * hpux-core.c (hpux_core_core_file_failing_signal): Likewise.
540 * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise.
541 * osf-core.c (osf_core_core_file_matches_executable_p): Likewise.
542 * sco5-core.c (sco5_core_file_matches_executable_p): Likewise.
544 * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for
545 thumb_glue_size and arm_glue_size.
546 * elf32-arm.h (elf32_arm_link_hash_table): Likewise here.
548 * coff64-rs6000.c: Group prototypes together.
550 * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED.
551 (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type.
553 * cpu-arc.c: Add missing prototypes.
554 * cpu-h8500.c: Likewise.
555 * cpu-i960.c: Likewise.
556 * cpu-pj.c: Likewise.
557 * cpu-sh.c: Likewise.
558 * cpu-w65.c: Likewise.
559 * cpu-z8k.c: Likewise.
560 * elf32-fr30.c: Likewise.
561 * elf32-h8300.c: Likewise.
562 * elf32-i370.c: Likewise.
563 * hpux-core.c: Likewise.
564 * versados.c: Likewise.
566 * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare.
567 * cpu-h8500.c: Likewise.
568 * cpu-i960.c: Likewise.
569 * cpu-z8k.c: Likewise.
571 * cpu-ia64-opc.c: Correct comment.
573 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var.
575 * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs
577 (bfd_elf32_write_out_phdrs): Likewise.
578 (bfd_elf64_write_out_phdrs): Likewise.
579 (elf_linker_section_pointers): Change addend to bfd_vma.
580 (_bfd_elf_find_pointer_linker_section): Likewise.
581 (_bfd_elfcore_make_pseudosection): Change size param to size_t and
582 filepos to unsigned file_ptr.
583 (_bfd_elfcore_strndup): Change max param to size_t.
584 * elf.c (_bfd_elfcore_make_pseudosection): As above.
585 (_bfd_elfcore_strndup): Likewise.
586 (_bfd_elf_find_pointer_linker_section): Likewise.
588 * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change
589 insn and sym_value to ints.
591 * elf.c (elf_read): Make "offset" param a file_ptr, "size" a
593 (elfcore_read_notes): Likewise.
595 * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags
596 param from unsigned char to int.
597 (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately
598 for info_to_howto call.
599 (add_dynamic_entry): Define macro.
600 (elf32_arm_size_dynamic_sections): Use add_dynamic_entry.
602 * elf32-cris.c (add_dynamic_entry): Define macro.
603 (elf_cris_size_dynamic_sections): Use add_dynamic_entry.
605 * elf32-h8300.c (elf32_h8_final_write_processing): Make static.
606 (elf32_h8_object_p): Likewise.
607 (elf32_h8_merge_private_bfd_data): Likewise.
608 (elf32_h8_relax_section): Cast gap to int so signed comparisons work.
610 * elf32-hppa.c (add_dynamic_entry): Define macro.
611 (elf32_hppa_size_dynamic_sections): Use it.
612 * elf32-i370.c (add_dynamic_entry): Define macro.
613 (i370_elf_size_dynamic_sections): Use it.
614 (i370_noop): Make static.
615 * elf32-i386.c (add_dynamic_entry): Define macro.
616 (elf_i386_size_dynamic_sections): Use it.
617 * elf32-m68k.c (add_dynamic_entry): Define macro.
618 (elf_m68k_size_dynamic_sections): Use it.
619 * elf32-ppc.c (add_dynamic_entry): Define macro.
620 (ppc_elf_size_dynamic_sections): Use it.
621 * elf32-s390.c (add_dynamic_entry): Define macro.
622 (elf_s390_size_dynamic_sections): Use it.
623 * elf64-alpha.c (add_dynamic_entry): Define macro.
624 (elf64_alpha_size_dynamic_sections): Use it.
625 * elf64-hppa.c (add_dynamic_entry): Define macro.
626 (elf64_hppa_size_dynamic_sections): Use it.
627 * elf64-ppc.c (add_dynamic_entry): Define macro.
628 (ppc64_elf_size_dynamic_sections): Use it.
629 * elf64-s390.c (add_dynamic_entry): Define macro.
630 (elf_s390_size_dynamic_sections): Use it.
631 * elf64-sparc.c (add_dynamic_entry): Define macro.
632 (sparc64_elf_size_dynamic_sections): Use it.
633 * elf64-x86-64.c (add_dynamic_entry): Define macro.
634 (elf64_x86_64_size_dynamic_sections): Use it.
635 * elfxx-ia64.c (add_dynamic_entry): Define macro.
636 (elfNN_ia64_size_dynamic_sections): Use it.
638 * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning.
639 (v850_elf_perform_relocation): Make "r_type" param unsigned.
641 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return
642 false if the first malloc fails rather than going via error_return.
644 * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for
646 (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too.
648 * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message.
650 * elfxx-ia64.c (global_sym_index): Return a long.
652 * ieee.c (get_symbol): Use int rather than char param.
653 (ieee_slurp_sections): Move "section" var to inner blocks.
654 (copy_expression): Don't init "value" to zero or worry about
655 clearing to zero after using.
656 (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid
659 * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an
662 * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning.
663 (bfd_write_bigendian_4byte_int): Pass an unsigned int value param.
665 * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param.
667 * pc532-mach.c (MYNSX): Delete.
668 (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX.
669 (write_object_contents): Correct prototype.
671 * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather
674 * section.c (bfd_set_section_contents): Remove redundant
675 "offset < 0" test. Check that "count" doesn't overflow size_t.
676 (bfd_get_section_contents): Likewise.
678 * som.c (som_fixup_formats): Add missing braces.
679 (som_reloc_addend): Pass a bfd_vma for "addend".
681 * srec.c (srec_write_record): Pass "type" as an unsigned int.
682 (srec_write_symbols): Remove an unnecessary var.
684 * targets.c (_bfd_target_vector): Sort entries. Sort externs
686 * configure.in: Sort to match. Bump version number.
687 * configure: Regenerate.
689 * tekhex.c (move_section_contents): Assert offset == 0.
691 * versados.c (new_symbol_string): Constify arg.
692 (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section.
693 (versados_get_symbol_info): Make static.
694 (versados_print_symbol): Likewise.
695 (versados_get_reloc_upper_bound): Likewise.
696 (versados_canonicalize_reloc): Likewise.
698 2001-09-18 Nick Clifton <nickc@cambridge.redhat.com>
700 * elflink.h (elf_link_input_bfd): Fix typo in error message.
702 2001-09-17 H.J. Lu <hjl@gnu.org>
704 * dwarf1.c (parse_die): Take a new arg for the end of the
705 section. Return false if die is beyond the section.
706 (parse_functions_in_unit): Pass the end of the section to
708 (_bfd_dwarf1_find_nearest_line): Likewise.
710 2001-09-14 Michael Rauch <mrauch@netbsd.org>
712 * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
713 just like R_SPARC_32.
715 2001-09-14 Kevin Lo <kevlo@openbsd.org>
717 * configure.bfd: Add arm-openbsd target.
719 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
721 * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
722 Add support for mips64.
724 2001-09-13 Alexandre Oliva <aoliva@redhat.com>
726 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
728 2001-09-12 Alexandre Oliva <aoliva@redhat.com>
730 * elf.c (prep_headers): Get the machine code from the elf
732 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
733 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
734 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
735 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
736 * elf-arc.c (arc_elf_final_write_processing): Don't override
737 e_machine, it's now properly set in prep_headers.
738 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
740 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
741 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
742 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
743 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
744 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
745 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
746 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
747 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
748 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
749 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
750 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
751 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
753 2001-09-11 Richard Henderson <rth@redhat.com>
755 * elf64-alpha.c (elf64_alpha_section_flags): New.
756 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
758 2001-09-11 Richard Henderson <rth@redhat.com>
760 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
761 apply HINT relocations against dynamic symbols.
763 2001-09-11 H.J. Lu <hjl@gnu.org>
765 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
767 2001-09-09 Richard Henderson <rth@redhat.com>
769 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
771 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
772 following a call to a near function.
774 2001-09-08 Richard Henderson <rth@redhat.com>
776 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
777 relocation errors. Fail gp-relative relocations against
780 2001-09-08 Alan Modra <amodra@bigpond.net.au>
782 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
783 as well as DEF_DYNAMIC in test for avoided copy relocs.
784 (allocate_plt_and_got_and_discard_relocs): Likewise.
785 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
786 (allocate_plt_and_got_and_discard_relocs): Likewise.
788 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
790 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
793 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
795 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
797 (mips_elf64_howto_table_rel): Likewise.
799 2001-09-05 Tom Rix <trix@redhat.com>
801 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
803 (write_global_symbol) : Same.
804 (bfd_xcoff_export_symbol): Remove unused syscall param.
805 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
806 bfd_xcoff_import_symbol.
808 * bfd-in2.h : Regenerate.
810 2001-09-04 Richard Henderson <rth@redhat.com>
812 * elf64-alpha.c (SKIP_HOWTO): New.
813 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
814 Fix sizes of 16-bit mem format relocs.
815 (elf64_alpha_reloc_map): Update to match.
816 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
817 (elf64_alpha_relax_without_lituse): Likewise.
818 (elf64_alpha_check_relocs): Handle GPREL16.
819 (elf64_alpha_relocate_section): Likewise.
820 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
821 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
822 * bfd-in2.h, libbfd.h: Rebuild.
824 2001-09-04 Jeff Law <law@redhat.com>
826 * elf32-h8300.c (elf32_h8_relax_section): New function.
827 (elf32_h8_relax_delete_bytes): Likewise.
828 (elf32_h8_symbol_address_p): Likewise.
829 (elf32_h8_get_relocated_section_contents): Likewise.
830 (bfd_elf32_bfd_relax_section): Define.
831 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
833 * elf32-h8300.c (special): New function.
834 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
836 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
837 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
838 Fix minor problems with 8bit and 16bit PC relative relocations.
840 2001-09-01 Andreas Jaeger <aj@suse.de>
842 * vms-tir.c: Add missing prototypes.
843 * vms-hdr.c: Likewise.
844 * vms-gsd.c: Likewise.
845 * vms-misc.c: Likewise.
847 2001-08-31 H.J. Lu <hjl@gnu.org>
849 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
852 2001-08-31 Eric Christopher <echristo@redhat.com>
853 Jason Eckhardt <jle@redhat.com>
855 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
856 mips32_4k and mips64.
857 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
858 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
859 * bfd/cpu-mips.c: Ditto.
860 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
861 * bfd/bfd-in2.h: Regenerate.
863 2001-08-31 Jakub Jelinek <jakub@redhat.com>
865 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
866 value into R_ALPHA_RELATIVE's addend.
867 (elf64_alpha_finish_dynamic_symbol): Likewise.
869 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
871 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
872 recomputed addend during relocatable link if not USE_REL.
874 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
877 2001-08-30 H.J. Lu <hjl@gnu.org>
879 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
881 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
882 relocations for weak definitions.
884 2001-08-30 H.J. Lu <hjl@gnu.org>
886 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
887 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
888 * Makefile.in: Rebuild.
890 2001-08-30 H.J. Lu <hjl@gnu.org>
892 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
893 dynamic relocation for undefined weak symbols when creating
894 executables. Check h->root.root.type, instead of h->root.type.
896 2001-08-29 Joel Sherrill <joel@OARcorp.com>
898 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
899 default from coff to elf.
901 2001-08-29 Jeff Law <law@redhat.com>
903 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
905 (h8_reloc_map): Similarly.
906 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
907 Add support for PC relative relocations.
909 * elf32-h8300.c: Put all prototypes together.
910 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
911 (elf32_h8_final_link_relocate): New function for linker.
912 (elf32_h8_relocate_section): Similarly.
913 (elf_backend_relocate_section): Define.
915 * cpu-h8300.c (h8300_scan, compatible): Prototype.
916 (h8300_scan): Handle architecture:machine encodings typically
917 found in linker scripts.
918 * elf.c (prep_headers): Do not try to do H8 machine recognition
920 * elf32-h8300.c: Add some missing prototypes.
921 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
922 (elf32_h8_object_p): Similarly.
924 2001-08-29 Tom Rix <trix@redhat.com>
926 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
927 does not follow a XTY_SD.
929 2001-08-29 Alan Modra <amodra@bigpond.net.au>
931 * targmatch.sed: Delete case statements.
932 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
935 Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
937 * Makefile.am (elf32-h8300.lo): New target.
938 * config.bfd (h8300*-*-elf): New case.
939 * configure.in (bfd_elf32_h8300_vec): New case.
940 * elf.c (prep_headers): Add case for bfd_arch_h8300.
941 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
942 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
943 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
944 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
945 * elf32-h8300.c: New file.
946 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
948 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
950 * sparclynx.c: Add missing prototypes.
951 * coff-mcore.c: Add missing prototypes.
952 * elf32-pj.c: Add missing prototypes.
953 * nlm32-sparc.c: Add missing prototypes.
954 * oasys.c: Add missing prototypes.
955 * pdp11.c: Add missing prototypes.
956 * pe-mips.c: Add missing prototypes.
957 * riscix.c: Add missing prototypes.
959 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
961 * elf32-i386.c: Add missing prototypes.
962 * elf32-ppc.c: Likewise.
963 * elf32-sh-lin.c: Likewise.
964 * elfarm-nabi.c: Likewise.
966 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
968 * elf32-i386.c (elf_i386_grok_prstatus): New function.
969 (elf_i386_grok_psinfo): New function.
970 (elf_backend_grok_prstatus): Define.
971 (elf_backend_grok_psinfo): Likewise.
972 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
973 (ppc_elf_grok_psinfo): New function.
974 (elf_backend_grok_prstatus): Define.
975 (elf_backend_grok_psinfo): Likewise.
976 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
977 (elf32_shlin_grok_psinfo): New function.
978 (elf_backend_grok_prstatus): Define.
979 (elf_backend_grok_psinfo): Likewise.
980 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
981 (elf32_arm_nabi_grok_psinfo): New function.
982 (elf_backend_grok_prstatus): Define.
983 (elf_backend_grok_psinfo): Likewise.
985 2001-08-27 H.J. Lu <hjl@gnu.org>
987 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
989 (mips_elf_calculate_relocation): Create dynamic relocation for
990 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
993 2001-08-27 H.J. Lu <hjl@gnu.org>
995 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
996 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
997 (_bfd_elf32_mips_grok_prstatus): Likewise.
998 (_bfd_elf32_mips_grok_psinfo): Likewise.
999 (_bfd_mips_elf_hide_symbol): Make it static and cast to
1000 `struct mips_elf_link_hash_entry *'.
1001 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
1003 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1005 * mipsbsd.c: Add missing prototypes.
1006 * hp300hpux.c: Add missing prototypes.
1007 * i386aout.c: Add missing prototypes.
1008 * i386lynx.c: Add missing prototypes.
1009 * i386mach3.c: Add missing prototypes.
1010 * i386msdos.c: Add missing prototypes.
1011 * i386os9k.c: Add missing prototypes.
1013 2001-08-27 Linus Nordberg <linus@swox.se>
1014 Torbjorn Granlund <tege@swox.com>
1015 Staffan Ulfberg <staffanu@swox.se>
1016 Alan Modra <amodra@bigpond.net.au>
1018 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
1019 targ64_selvecs for 32 bit powerpc targets.
1020 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
1021 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
1023 * Makefile.in: Regenerate.
1024 * configure.in: Add elf64_powerpc vecs.
1025 * configure: Regenerate.
1026 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
1027 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
1028 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
1029 * elf64-ppc.c: New file.
1030 * reloc.c: Add powerpc64 relocs.
1031 * libbfd.h: Regenerate.
1032 * bfd-in2.h: Regenerate.
1034 2001-08-27 Andreas Schwab <schwab@suse.de>
1036 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
1037 reloc is against read-only section.
1038 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
1039 looking up section names for DT_TEXTREL.
1040 (elf32_m68k_reloc_type_class): New function.
1041 (elf_backend_reloc_type_class): Define.
1043 2001-08-27 Andreas Jaeger <aj@suse.de>
1045 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1046 reloc is against read-only section.
1047 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1048 looking up section names for DT_TEXTREL.
1049 (elf_s390_reloc_type_class): New.
1050 (elf_backend_reloc_type_class): Define.
1052 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1053 reloc is against read-only section.
1054 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1055 looking up section names for DT_TEXTREL.
1056 (elf_s390_reloc_type_class): New.
1057 (elf_backend_reloc_type_class): Define.
1059 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
1060 is against read-only section.
1061 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1062 looking up section names for DT_TEXTREL.
1063 (ppc_elf_reloc_type_class): New.
1064 (elf_backend_reloc_type_class): Define.
1066 2001-08-26 Andreas Jaeger <aj@suse.de>
1068 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
1069 reloc is against read-only section.
1070 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
1071 looking up section names for DT_TEXTREL.
1072 (elf_cris_reloc_type_class): New.
1073 (elf_backend_reloc_type_class): Define.
1075 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
1076 against read-only section.
1077 (elf_backend_reloc_type_class): Define.
1078 (sh_elf_reloc_type_class): New.
1079 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1080 looking up section names for DT_TEXTREL.
1082 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
1083 reloc is against read-only section.
1084 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
1085 looking up section names for DT_TEXTREL.
1086 (elf32_arm_reloc_type_class): New.
1087 (elf_backend_reloc_type_class): Define.
1089 2001-08-25 Andreas Jaeger <aj@suse.de>
1091 * oasys.c: Add missing prototypes.
1093 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
1094 attribute for parameter.
1095 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1097 * versados.c (get_4): Make static.
1098 (get_10): Make static.
1099 Add missing prototypes.
1100 (process_esd): Fix call to versados_new_symbol.
1102 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
1104 * coff-a29k.c: Add missing prototypes.
1105 * coff-apollo.c: Add missing prototypes.
1106 * coff-arm.c: Add missing prototypes.
1107 * coff-i860.c: Add missing prototypes.
1108 * coff-rs6000.c: Add missing prototypes.
1109 * coff-tic80.c: Add missing prototypes.
1110 * elf-m10200.c: Add missing prototypes.
1111 * elf-m10300.c: Add missing prototypes.
1112 * elf32-arm.h: Add missing prototypes.
1113 * elf32-d10v.c: Add missing prototypes.
1114 * elf32-m32r.c: Add missing prototypes.
1115 * elf32-mcore.c: Add missing prototypes.
1116 * elf32-openrisc.c: Add missing prototypes.
1117 * elf32-sh.c: Add missing prototypes.
1118 * elf32-sparc.c: Add missing prototypes.
1119 * elf32-v850.c: Add missing prototypes.
1120 * elfarm-nabi.c: Add missing prototypes.
1121 * elfarm-oabi.c: Add missing prototypes.
1123 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1125 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
1126 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
1128 2001-08-24 H.J. Lu <hjl@gnu.org>
1130 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
1133 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
1135 * elf-bfd.h (elf_hash_table): Revert definition.
1136 (is_elf_hash_table): New macro.
1137 * elflink.h (elf_link_add_object_symbols): Test
1138 is_elf_hash_table before accessing ELF only fields in hash
1140 (elf_link_create_dynamic_sections): Fail if not using an ELF
1142 (elf_add_dynamic_entry): Fail if not using an ELF hash
1144 (elf_link_record_local_dynamic_symbol): Fail if not using an
1146 (size_dynamic_sections): Fail if not using an ELF hash
1148 (elf_adjust_dynamic_symbol): Fail if not using an ELF
1150 (elf_bfd_final_link): Fail if not using an ELF hash
1153 2001-08-24 H.J. Lu <hjl@gnu.org>
1155 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
1156 table is not an ELF linker hash table.
1158 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
1159 table type to bfd_link_elf_hash_table.
1161 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
1164 * linker.c (_bfd_link_hash_table_init): Set the linker hash
1165 table type to bfd_link_generic_hash_table.
1167 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1169 * bfd.c (bfd_alt_mach_code): New function.
1170 * bfd-in2.h: Rebuilt.
1172 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1174 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
1175 `type' field in the hash entry when deciding whether to follow a
1178 2001-08-24 Jakub Jelinek <jakub@redhat.com>
1180 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
1182 (elf_link_sort_relocs): Adjust accordingly.
1184 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
1185 (elf64_alpha_check_relocs): Set it if section this reloc is against
1186 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
1188 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
1189 is is against read-only section.
1190 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
1191 check section names.
1192 (elf64_alpha_reloc_type_class): New.
1193 (elf_backend_reloc_type_class): Define.
1195 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1197 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
1200 2001-08-23 Andreas Jaeger <aj@suse.de>
1202 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
1203 the reloc is against read-only section.
1204 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
1205 of looking up section names for DT_TEXTREL.
1206 (elf64_x86_64_reloc_type_class): New.
1207 (elf_backend_reloc_type_class): Define.
1209 2001-08-23 H.J. Lu <hjl@gnu.org>
1211 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
1212 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
1214 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
1215 bfd_print_symbol_vandf.
1216 * coffgen.c (coff_print_symbol): Likewise.
1217 * elf.c (bfd_elf_print_symbol): Likewise.
1218 * ieee.c (ieee_print_symbol): Likewise.
1219 * nlmcode.h (nlm_print_symbol): Likewise.
1220 * oasys.c (oasys_print_symbol): Likewise.
1221 * pdp11.c (NAME(aout,print_symbol)): Likewise.
1222 * som.c (som_print_symbol): Likewise.
1223 * srec.c (srec_print_symbol): Likewise.
1224 * tekhex.c (tekhex_print_symbol): Likewise.
1225 * versados.c (versados_print_symbol): Likewise.
1226 * vms.c (vms_print_symbol): Likewise.
1228 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
1229 with bfd_fprintf_vma.
1230 (bfd_elf_print_symbol): Likewise.
1231 * syms.c (bfd_print_symbol_vandf): Likewise.
1233 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1235 * aoutf1.h (sunos_write_object_contents): Silence compile time
1237 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
1239 * bout.c: Add missing function prototypes. Fix formatting.
1240 * coff-z8k.c: Add missing function prototypes. Fix formatting.
1241 * coff-w65.c: Add missing function prototypes. Fix formatting.
1242 * coff-h8500.c: Add missing function prototypes. Fix formatting.
1243 * coff-h8300.c: Add missing function prototypes. Fix formatting.
1244 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
1245 * coff-tic30.c: Add missing function prototypes. Fix formatting.
1246 * coff-m68k.c: Add missing function prototypes. Fix formatting.
1247 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
1248 * coff-sh.c: Add missing function prototypes. Fix formatting.
1250 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1252 * elf-bfd.h (enum elf_reloc_type_class): New.
1253 (struct elf_backend_data): Add elf_backend_reloc_type_class.
1254 (_bfd_elf_reloc_type_class): New.
1255 * elfxx-target.h (elf_backend_reloc_type_class): Define.
1256 (elfNN_bed): Add elf_backend_reloc_type_class.
1257 * elf.c (_bfd_elf_reloc_type_class): New.
1258 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
1259 is against read-only section.
1260 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
1261 looking up section names for DT_TEXTREL.
1262 (elf_i386_reloc_type_class): New.
1263 (elf_backend_reloc_type_class): Define.
1264 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
1265 reloc is against read-only section.
1266 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
1267 looking up section names for DT_TEXTREL.
1268 (elf32_sparc_reloc_type_class): New.
1269 (elf_backend_reloc_type_class): Define.
1270 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
1271 reloc is against read-only section.
1272 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1273 looking up section names for DT_TEXTREL.
1274 (sparc64_elf_reloc_type_class): New.
1275 (elf_backend_reloc_type_class): Define.
1276 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
1277 (elfNN_ia64_hash_table_create): Clear ia64_info.
1278 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
1280 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
1281 instead of looking up section names for DT_TEXTREL.
1282 (elfNN_ia64_reloc_type_class): New.
1283 (elf_backend_reloc_type_class): Define.
1284 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
1285 (struct elf_link_sort_rela): New.
1286 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
1287 (elf_bfd_final_link): Call elf_link_sort_relocs.
1288 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
1291 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1293 * configure.in (x86-bsdi): No corefile support.
1294 * configure: Regenerate.
1296 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
1298 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
1301 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
1303 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
1304 the alignment of dwarf2 linkonce sections to 0.
1305 * coff-sto32.c: Likewise.
1307 2001-08-20 Andreas Jaeger <aj@suse.de>
1309 * coff-sparc.c: Add missing prototypes.
1310 * elf32-s390.c: Likewise.
1311 * elf32-i960.c: Likewise.
1312 * aout-target.h: Likewise.
1314 2001-08-20 H.J. Lu <hjl@gnu.org>
1316 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
1317 (elf_num_section_syms): New for num_section_syms.
1319 * elf.c (elf_map_symbols): Set num_section_syms.
1320 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
1321 the section symbol index.
1323 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
1325 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
1326 select the generic has table creator. All elf backends need elf
1327 specific fields in the hash table.
1329 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1331 * archive.c (offsetof): Remove define.
1334 * sysdep.h (offsetof): Define.
1336 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1338 * bfd.c (bfd_get_gp_size): Return an unsigned int.
1339 (bfd_set_gp_size): Make param unsigned.
1340 * bfd-in2.h: Regenerate.
1341 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
1342 than calling bfd_get_gp_size.
1343 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
1344 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
1346 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1348 * linker.c (default_fill_link_order): Handle four byte fill value.
1350 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1352 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
1354 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
1356 * elf64-mips.c (UNUSED_RELOC): Define.
1357 (mips_elf64_howto_table_rel): Use it.
1358 (mips_elf64_howto_table_rela): Here too.
1359 (mips_elf64_write_relocs): Fix signed/unsigned warning.
1361 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
1363 * coffgen.c (coff_print_symbol): Fix warnings.
1364 (coff_find_nearest_line): Likewise.
1365 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
1366 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
1367 * format.c (bfd_check_format_matches): Likewise.
1368 (bfd_set_format): Likewise.
1369 * coff-ia64.c: Add missing prototypes.
1370 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
1371 signed to silence warnings.
1372 (elf64_alpha_relocate_section): Likewise.
1373 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
1374 (elf64_alpha_add_symbol_hook): Likewise.
1375 (elf64_alpha_final_link): Likewise.
1376 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
1377 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
1378 (elf64_alpha_size_got_sections): Likewise.
1379 * elfxx-ia64.c: Add missing prototypes.
1380 (elfNN_ia64_relocate_section): Fix warning.
1381 (elfNN_ia64_unwind_entry_compare): Make params const.
1383 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1385 * config.bfd (targ64_selvecs): New.
1386 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
1388 * bfd-in.h (BFD_VERSION): Remove wrong comment.
1389 (BFD_DEFAULT_TARGET_SIZE): New.
1390 (BFD_ARCH_SIZE): Comment.
1391 * configure.in (target_size): New. Set instead of target64 in
1392 selvecs case statement. Set target64 from it.
1393 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
1394 * bfd-in2.h: Regenerate.
1395 * configure: Regenerate.
1397 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1399 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
1400 (bfd_errmsgs): Add corresponding message.
1401 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
1402 finding an archive that contains different format object files.
1403 Return bfd_error_wrong_object_format for this case.
1404 * format.c: Formatting fixes. s/CONST/const/.
1405 (bfd_check_format_matches): Accept archives that give
1406 bfd_error_wrong_object_format if no full match is found. Tidy
1407 code handling matching_vector. Don't return a pointer to freed
1408 memory in `matching'. Handle ambiguous matches as for partial
1410 * bfd-in2.h: Regenerate.
1412 2001-08-15 Alan Modra <amodra@bigpond.net.au>
1414 * libieee.h (common_header_type): Add last_byte field.
1416 * ieee.c: Add missing prototypes. Some format fixes.
1417 (struct output_buffer_struct): Move for availability to prototypes.
1418 (ieee_part_after): New function.
1419 (ieee_slurp_debug): Use it here.
1420 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
1421 ieee_part_after to set last_byte to one past end of current part.
1423 (ieee_pos): Pass in ieee_data_struct rather than bfd.
1425 (parse_expression): Don't go beyond the end of the current part.
1426 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
1427 (ieee_get_symtab_upper_bound, ieee_get_symtab,
1428 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
1429 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
1430 ieee_set_section_contents, ieee_write_object_contents,
1431 ieee_make_empty_symbol): Make static.
1432 (ieee_archive_p): Correct comments regarding bfd_read.
1433 (ieee_object_p): Similarly.
1434 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
1435 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
1436 input_bfd, output_bfd, output_buffer.
1437 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
1438 do_with_relocs, ie. as a symbol for relocatable files.
1439 (ieee_vec): Add comments showing functions referenced by macros.
1441 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
1443 * aout-tic30.c: Add missing prototypes. Fix formatting.
1444 * aout-ns32k.c: Add missing prototypes. Fix formatting.
1445 * peXXigen.c: Add missining prototypes. Fix formatting.
1446 * aout-adobe.c: Add missining prototypes. Fix formatting.
1448 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
1450 * elf32-v850.c: Add missing function prototypes.
1451 Fix some formatting.
1453 * cpu-v850.c: Add missing function prototype.
1454 Fix some formatting.
1456 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
1458 * elf-bfd.h (struct elf_backend_data): Add new fields
1459 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
1460 (bfd_elf_sprintf_vma): Rename function prototype to
1461 '_bfd_elf_sprintf_vma'.
1462 (bfd_elf_fprintf_vma): Rename function prototype to
1463 '_bfd_elf_fprintf_vma'.
1464 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
1465 directly, instead indirect via the elf_backend_data structure.
1466 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
1467 instead indirect via the elf_backend_data structure.
1468 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
1469 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
1470 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
1472 (elf_backend_fprintf_vma): Initialise if not already defined.
1473 (struct elf_backend_data): Initialise the
1474 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
1476 2001-08-10 Andreas Jaeger <aj@suse.de>
1478 * elf64-sparc.c: Add missing prototypes.
1479 * elf32-cris.c: Likewise.
1480 * elf32-i370.c: Likewise.
1481 * elf64-hppa.c: Likewise.
1482 * elf64-s390.c: Likewise.
1484 2001-08-10 Andreas Jaeger <aj@suse.de>
1486 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
1487 Add prototypes where needed.
1489 2001-08-10 H.J. Lu <hjl@gnu.org>
1491 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
1492 (bfd_fprintf_vma): Likewise.
1494 2001-08-10 H.J. Lu <hjl@gnu.org>
1496 * bfd.c (bfd_sprintf_vma): Don't return void.
1497 (bfd_fprintf_vma): Likewise.
1499 2001-08-10 Andreas Jaeger <aj@suse.de>
1501 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1503 * configure: Regenerate.
1505 2001-08-10 Alan Modra <amodra@bigpond.net.au>
1507 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
1508 warning if not BFD64. Add braces so emacs auto format works.
1509 (bfd_elf_fprintf_vma): Likewise.
1511 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
1513 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
1514 param to agree with libxcoff.h.
1515 (xcoff_swap_ldhdr_out): Likewise.
1516 (xcoff_swap_ldsym_in): Likewise.
1517 (xcoff_swap_ldsym_out): Likewise.
1518 (xcoff_swap_ldrel_in): Likewise.
1519 (xcoff_swap_ldrel_out): Likewise.
1520 (xcoff_create_csect_from_smclas): Likewise.
1521 * coff64-rs6000.c: Add missing prototypes.
1522 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
1524 (xcoff64_swap_ldhdr_out): Likewise.
1525 (xcoff64_swap_ldsym_in): Likewise.
1526 (xcoff64_swap_ldsym_out): Likewise.
1527 (xcoff64_swap_ldrel_in): Likewise.
1528 (xcoff64_swap_ldrel_out): Likewise.
1529 (xcoff64_ppc_relocate_section): Make static.
1530 (xcoff64_slurp_armap): Likewise.
1531 (xcoff64_archive_p): Likewise.
1532 (xcoff64_openr_next_archived_file): Likewise.
1533 (xcoff64_sizeof_headers): Likewise.
1534 (xcoff64_is_lineno_count_overflow): Likewise.
1535 (xcoff64_is_reloc_count_overflow): Likewise.
1536 (xcoff64_loader_symbol_offset): Likewise.
1537 (xcoff64_loader_reloc_offset): Likewise.
1538 * elf64-gen.c: Add missing prototypes.
1540 2001-08-09 H.J. Lu <hjl@gnu.org>
1542 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
1543 (bfd_elf_fprintf_vma): Likewise.
1545 2001-08-09 H.J. Lu <hjl@gnu.org>
1547 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
1550 * bfd-in2.h: Regenerated.
1552 2001-08-09 H.J. Lu <hjl@gnu.org>
1554 * bfd-in.h (bfd_sprintf_vma): New prototype.
1555 (bfd_fprintf_vma): Likewise.
1556 (bfd_elf_sprintf_vma): Likewise.
1557 (bfd_elf_fprintf_vma): Likewise.
1558 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
1559 * bfd-in2.h: Regenerated.
1561 * bfd.c (bfd_sprintf_vma): New. Defined.
1562 (bfd_fprintf_vma): Likewise.
1564 * elf.c (bfd_elf_sprintf_vma): New. Defined.
1565 (bfd_elf_fprintf_vma): Likewise.
1567 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1569 * coff-rs6000.c: Add missing prototypes.
1570 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
1571 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
1572 xcoff_loader_reloc_offset): Make static.
1573 * dwarf1.c: Add missing prototypes.
1574 * dwarf2.c: Add missing prototypes.
1575 (struct abbrev_info): Move definition.
1576 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
1577 * elf.c: Add missing prototypes.
1578 * elf32-gen.c: Likewise.
1579 * elf32-i386.c: Likewise.
1580 * elf32-ppc.c: Likewise.
1581 (ppc_elf_sort_rela): Use PTR instead of "void *".
1582 * elflink.h: Add missing prototypes. Formatting fixes.
1583 * merge.c: Add missing prototypes.
1584 (last4_eq): Use PTR instead of "void *".
1585 (last_eq): Likewise.
1586 * syms.c: Add missing prototypes.
1588 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
1590 * bfd.c: Fix formatting.
1591 * bfd-in2.h: Regenerate.
1593 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
1595 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
1596 true (this target uses REL relocations) and 'pcrel_offset' to
1597 false (the PC is implied, not stored in the offset).
1599 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1601 1999-10-19 Linus Nordberg <linus@swox.se>
1602 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
1603 * elfxx-target.h (elf_backend_want_got_sym): Define.
1604 (elfNN_bed): Add elf_backend_want_got_sym.
1605 * elflink.c (_bfd_elf_create_got_section): Define
1606 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
1608 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
1610 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
1611 (find_rela_addend): New function.
1612 (parse_comp_unit): Call it to find the abbrev offset addend.
1613 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
1614 members of dwarf2_debug as debugging information is read.
1616 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
1618 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
1619 targets as well as sh-pe.
1621 2001-08-03 Ben Harris <bjh21@netbsd.org>
1623 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
1624 reloc from start of section when computing value for R_ARM_REL32
1627 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1629 From H.J. Lu <hjl@gnu.org>
1630 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
1631 keep relocs for undefined syms if there are no dynamic sections in
1633 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
1635 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1637 * cofflink.c (coff_link_check_ar_symbols): also search for
1638 __imp__symbol as well as _symbol.
1639 * linker.c (_bfd_generic_link_add_archive_symbols): also
1640 search for __imp__symbol as well as _symbol.
1642 2001-08-01 Adam Nemet <anemet@lnxw.com>
1644 * elf.c (elf_sort_sections): Return zero only as the last step.
1646 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
1648 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
1650 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
1651 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
1654 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1656 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
1657 to match corresponding bfd_coff_backend data member.
1659 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1661 * Makefile.am: Update dependencies with "make dep-am".
1662 * Makefile.in: Regenerate
1664 2001-07-15 H.J. Lu <hjl@gnu.org>
1666 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
1667 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
1668 * Makefile.in: Regenerate.
1670 2001-07-11 H.J. Lu <hjl@gnu.org>
1672 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
1673 flags when creating the reloc section if the ALLOC flag in the
1674 source section is set.
1676 2001-07-11 Steve Ellcey <sje@cup.hp.com>
1678 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
1679 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
1680 * bfd-in2.h: Regenerate.
1681 * libbfd.h: Regenerate.
1682 * elfxx-ia64.c (ia64_howto_table): Define how to handle
1684 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
1685 (elfNN_ia64_check_relocs): Likewise.
1686 (elfNN_ia64_install_value): Likewise.
1687 (elfNN_ia64_relocate_section): Likewise.
1689 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1691 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
1693 (elf32_sparc_check_relocs): Likewise.
1694 Only create .rela section for alloced sections in shared libraries.
1695 (elf32_sparc_relocate_section): Likewise.
1696 Remove redundant check.
1697 Optimize unaligned reloc usage.
1698 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
1701 2001-07-11 H.J. Lu <hjl@gnu.org>
1703 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
1704 ALLOC|LOAD flags as the source section for debugging sections
1705 when creating the reloc section.
1707 2001-07-05 Jim Wilson <wilson@redhat.com>
1709 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
1710 the section of the bigger symbol.
1712 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
1714 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
1716 * peicode.h (coff_swap_scnhdr_in): For sections containing
1717 uninitialised data, only set their size to s_paddr if this does
1718 not reset their size to zero. MS's latest compilers will set
1721 2001-07-04 H.J. Lu <hjl@gnu.org>
1723 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
1724 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
1727 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
1729 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
1731 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
1732 sections being discarded.
1734 2001-06-30 Alan Modra <amodra@bigpond.net.au>
1736 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
1737 instead of _bfd_elfcore_section_from_phdr.
1738 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
1739 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
1740 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
1741 (elfcore_grok_prstatus): Likewise.
1742 (elfcore_grok_lwpstatus): Likewise.
1743 (bfd_get_elf_phdr_upper_bound): Likewise.
1744 (elfcore_make_note_pseudosection): Formatting.
1745 (_bfd_elfcore_strndup): Formatting.
1746 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
1747 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
1749 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
1751 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
1752 and _bfd_elfcore_strndup.
1753 (struct elf_backend_data): Add elf_backend_grok_prstatus
1754 and elf_backend_grok_psinfo.
1755 * elf.c (_bfd_elfcore_make_pseudosection): New function.
1756 (elfcore_grok_prstatus): Use it.
1757 (elfcore_make_note_pseudosection): Likewise.
1758 (elfcore_strndup): Rename to...
1759 (_bfd_elfcore_strndup): Here, and make global.
1760 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
1761 (elfcore_grok_note): Call elf_backend_grok_prstatus
1762 and elf_backend_grok_psinfo if available.
1763 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
1764 (_bfd_elf32_mips_grok_psinfo): New function.
1765 (elf_backend_grok_prstatus): Define.
1766 (elf_backend_grok_psinfo): Define.
1767 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
1768 (elf_backend_grok_psinfo): Likewise.
1769 (elfNN_bed): Include elf_backend_grok_prstatus and
1770 elf_backend_grok_psinfo.
1772 2001-06-29 H.J. Lu <hjl@gnu.org>
1774 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
1775 hplink->sgot is NULL before filling GOT. Check if hplink->splt
1776 is NULL before filling PLT.
1778 2001-06-29 Alan Modra <amodra@bigpond.net.au>
1780 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
1782 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1784 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
1786 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
1787 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
1790 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
1791 (IS_ABSOLUTE_RELOC): Define.
1792 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
1793 (hppa_link_hash_newfunc): Always init it.
1794 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
1795 create COPY relocs only when the reloc is in a read-only section.
1796 Instead, allocate space for a dynamic reloc to reference the
1797 library symbol directly. Keep track of space we allocate using
1799 (hppa_discard_copies): Delete, and move code to..
1800 (allocate_plt_and_got): ..here. Rename to
1801 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
1802 relocs for non-shared link.
1803 (elf32_hppa_size_dynamic_sections): Update calls to above.
1804 (elf32_hppa_relocate_section): Write out the dynamic relocs used
1805 in lieu of COPY relocs.
1807 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
1809 (elf_i386_adjust_dynamic_symbol): ..nor here..
1810 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
1812 (elf_i386_size_dynamic_sections): Fix a comment.
1813 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
1814 involved in writing reloc out.
1816 2001-06-25 Alan Modra <amodra@bigpond.net.au>
1818 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
1819 Ensure syms are dynamic if we might be emitting a reloc.
1820 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
1821 for undefweak or undefined syms..
1822 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
1824 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
1825 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
1826 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
1827 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
1829 2001-06-24 H.J. Lu <hjl@gnu.org>
1831 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
1832 strncasecmp/strcasecmp instead of strncmp/strcmp.
1834 2001-06-23 H.J. Lu <hjl@gnu.org>
1836 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
1837 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
1838 in the regular object file and treat the weak definition as
1841 2001-06-23 Alan Modra <amodra@bigpond.net.au>
1843 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
1844 unresolved_reloc test to exclude cases where we use "relocation"
1845 before setting it to point into the .got. Reinstate fudge for
1846 unresolved relocs in debugging sections.
1848 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
1849 complicated tests for unresolvable relocs with a simple direct
1850 scheme using "unresolved_reloc" var.
1852 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
1853 elf_i386_dyn_relocs. Update comment.
1854 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
1856 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
1858 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
1860 (elf_i386_size_dynamic_sections): Likewise.
1861 (elf_i386_finish_dynamic_symbol): Likewise.
1862 (elf_i386_finish_dynamic_sections): Likewise.
1863 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
1866 Avoid creating COPY relocs if possible.
1867 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
1868 which .got created. Mark symbols used by R_386_32 and R_386_PC32
1869 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
1870 reloc is in a read-only section. Instead, allocate space for a
1871 dynamic reloc to reference the library symbol directly. Keep
1872 track of space we allocate using pcrel_relocs_copied.
1873 (discard_copies): Delete, and move code to ..
1874 (allocate_plt_and_got): ..here. Rename to
1875 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
1876 relocs for non-shared link.
1877 (elf_i386_size_dynamic_sections): Update calls to above functions.
1878 (elf_i386_relocate_section): Write out the dynamic relocs. Add
1879 more ugly logic to avoid "unresolvable relocation" error. Use
1880 htab shortcut in place of elf_hash_table macro.
1881 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
1882 not always be created now.
1884 2001-06-20 Bo Thorsen <bo@suse.co.uk>
1886 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
1889 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1891 * configure.host (mips64-*-linux): Reformat.
1893 2001-06-21 Alan Modra <amodra@bigpond.net.au>
1895 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
1896 allocate local .got space. Use shortcuts from hash table for .got
1897 and .plt rather than comparing section names.
1898 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
1899 adjusting index into local_got_refcounts to document what we are
1901 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
1902 Tidy .got and .plt error checking.
1904 2001-06-20 Catherine Moore <clm@redhat.com>
1906 * elf-bfd.h (struct elf_backend_data):
1907 elf_backend_emit_relocs: New field: Function for emitting
1909 elf_backend_count_relocs: New field: Function for determining
1910 the number of relocs to be emitted.
1911 * elfxx-target.h: Provide default (NULL) values for
1912 elf_backend_emit_relocs and elf_backend_count_relocs.
1913 * elflink.h (elf_link_size_reloc_section): Make the hash table
1914 big enough to hold the relocs counted by either reloc_count or
1916 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
1917 should be emitted, either because of a command line option
1918 stored in the info structure or because the target provides a
1919 special reloc emitting function.
1920 If the target provides a reloc counting function use it,
1921 unless performing a relocatable link or emitting all relocs.
1922 Also set the SEC_RELOC flag on any output section which will
1924 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
1925 should be emitted, either because of a command line option
1926 stored in the info structure or because the target provides a
1927 special reloc emitting function.
1928 If the target provides a reloc emitting function, use it,
1929 unless performing a relocatable link or emitting all relocs.
1931 2001-06-20 H.J. Lu <hjl@gnu.org>
1933 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
1934 allocate local .got space.
1936 2001-06-19 Andreas Jaeger <aj@suse.de>
1938 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
1941 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
1943 * elflink.h (struct elf_assign_sym_version_info): Remove member
1944 export_dynamic. All users changed to use info member.
1945 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
1946 export_dynamic, instead use member in parameter info.
1947 * bfd-in.h (bfd_elf32_size_dynamic_sections,
1948 bfd_elf64_size_dynamic_sections): Update prototype.
1949 * bfd-in2.h: Regenerate.
1951 2001-06-18 H.J. Lu <hjl@gnu.org>
1953 * elflink.h (elf_info_failed): Add a new field, verdefs.
1954 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
1956 (elf_export_symbol): Check eif->verdefs to decide if a symbol
1959 2001-06-17 H.J. Lu <hjl@gnu.org>
1961 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
1962 readonly_reloc, to record if a relocation in the .rel.dyn
1963 section is against a read-only section.
1964 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
1966 (_bfd_mips_elf_check_relocs): Record if there is a relocation
1967 in the .rel.dyn section against a read-only section by setting
1968 DF_TEXTREL or readonly_reloc.
1969 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
1971 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
1972 there is a relocation in the .rel.dyn section against a
1974 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
1977 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1979 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
1980 function. Move flagword result into parameter list. Remove
1981 comment about setting bfd_error_handler to intercept failure
1983 * coffgen.c (make_a_section_from_file): Examine result of
1984 calling bfd_coff_styp_to_sec_flags and pass a failure back to
1986 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
1987 function. Move flagword result into parameter list.
1988 * libcoff.h: Regenerate.
1989 * libecoff.h: Regenerate.
1991 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
1993 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
1994 section is going to follow it.
1996 2001-06-12 Catherine Moore <clm@redhat.com>
1998 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
1999 with the file_align entry from elf_backend_data.
2000 (elf_gc_smash_unused_vtentry_relocs): Likewise.
2001 (elf_gc_record_vtentry): Likewise.
2003 2001-06-10 Alan Modra <amodra@bigpond.net.au>
2005 * elflink.h: Whitespace changes.
2006 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
2007 rather than "unsigned char".
2008 (elf_link_output_relocs): Likewise.
2009 (elf_link_input_bfd): Likewise.
2010 (elf_reloc_link_order): LIkewise.
2011 * elf.c: s/CONST/const/. Whitespace changes.
2012 * elf32-mips.c: Formatting fix.
2014 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
2015 * Makefile.in: Regenerate.
2016 * po/Make-in: Remove trailing tab.
2018 2001-06-09 Philip Blundell <philb@gnu.org>
2020 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
2022 (elf32_arm_plt_entry): Likewise.
2024 2001-06-08 H.J. Lu <hjl@gnu.org>
2026 * elf.c (swap_out_syms): Keep names for global section symbols.
2028 2001-06-07 H.J. Lu <hjl@gnu.org>
2030 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
2031 MIPS-based machines need it.
2033 2001-06-07 H.J. Lu <hjl@gnu.org>
2035 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
2038 * config.bfd: Remove ecoff from Linux/mips.
2040 2001-06-07 Andreas Jaeger <aj@suse.de>
2042 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
2044 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
2045 alignment of 8 for .rela sections; handle further relocations.
2047 2001-06-06 Christian Groessler <cpg@aladdin.de>
2049 * coff-z8k.c: Fix formatting.
2050 Fix howtos: howto->size was always 1.
2052 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2054 * configure.host (mips64*-*-linux*): Define.
2056 2001-06-05 Alan Modra <amodra@bigpond.net.au>
2058 * elf32-i386.c (elf_i386_discard_copies): Rename to
2059 discard_copies, and use elf_link_hash_entry arg rather than
2060 elf_i386_link_hash_entry.
2061 (elf_i386_link_hash_traverse): Delete.
2062 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
2063 Tidy sizing of dynamic sections.
2064 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
2065 possible .plt entries.
2066 (elf_i386_gc_sweep_hook): Likewise.
2067 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
2068 everything with plt.refcount <= 0.
2070 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
2072 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
2073 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
2075 (allocate_plt_and_got): ..instead do it all here. New function.
2076 (elf_i386_size_dynamic_sections): Allocate local .got space and
2077 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
2078 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
2079 rather than gc variety).
2080 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2081 (elf_i386_relocate_section): Use it here and correct handling of
2082 R_386_GOT32. Provide section and offset for "unresolvable
2083 relocation" error message.
2084 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
2086 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
2087 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
2088 (elf_i386_link_hash_table_create): Init them.
2089 (create_got_section): New function.
2090 (elf_i386_create_dynamic_sections): New function.
2091 (elf_backend_create_dynamic_sections): Set to above.
2092 (elf_i386_check_relocs): Use shortcuts from hash table rather than
2093 calling bfd_get_section_by_name.
2094 (elf_i386_gc_sweep_hook): Likewise.
2095 (elf_i386_adjust_dynamic_symbol): Likewise.
2096 (elf_i386_size_dynamic_sections): Likewise.
2097 (elf_i386_relocate_section): Likewise.
2098 (elf_i386_finish_dynamic_sections): Likewise.
2100 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
2102 2001-06-02 H.J. Lu <hjl@gnu.org>
2104 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
2106 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
2108 2001-06-02 H.J. Lu <hjl@gnu.org>
2110 * aout-cris.c (MACHTYPE_OK): New. Defined.
2112 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
2114 * section.c (_bfd_strip_section_from_output): Handle NULL
2117 2001-06-02 H.J. Lu <hjl@gnu.org>
2119 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
2120 rs6000coff64_vec only if BFD64 is defined.
2121 (powerpc64-*-aix*): Enable only if BFD64 is defined.
2123 2001-06-02 H.J. Lu <hjl@gnu.org>
2125 * coff-ia64.c (ia64coff_object_p): Rewrite with
2126 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
2128 2001-06-01 Andreas Jaeger <aj@suse.de>
2130 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
2131 relocation, small reformatting.
2133 2001-05-29 Andreas Jaeger <aj@suse.de>
2135 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
2136 (elf64_x86_64_relocate_section): Likewise.
2138 2001-05-30 Alan Modra <amodra@one.net.au>
2140 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
2141 millicode. Don't allocate .got and .rela.got space here..
2142 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
2143 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
2145 (hppa_handle_PIC_calls): ..nor here..
2146 (allocate_plt_and_got): ..instead do it all here. New function.
2147 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
2148 call allocate_plt_and_got. No need to zap .got if not dynamic.
2149 (elf32_hppa_final_link): Call regular bfd_final_link instead of
2150 gc_common_final_link.
2151 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2152 (elf32_hppa_relocate_section): Use it here.
2153 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
2154 dynamic_sections_created.
2155 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
2157 2001-05-28 Andreas Jaeger <aj@suse.de>
2159 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
2160 generic version since we want a hashsize of 4.
2161 (elf_backend_size_info): Likewise.
2163 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2165 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
2167 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
2168 (elf_link_input_bfd): Likewise.
2169 (elf_reloc_link_order): Likewise.
2170 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
2171 relocations correctly.
2173 2001-05-28 Nicolas Pitre <nico@cam.org>
2175 * elf32-arm.h: fix PLT generation for big endian ARM
2177 2001-05-28 Alan Modra <amodra@one.net.au>
2179 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
2180 for symbols forced local that need plabels.
2181 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
2182 .plt.rela for local syms if non-shared.
2183 (hppa_build_one_stub): Mask lsb of plt.offset.
2184 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
2185 (clobber_millicode_symbols): Correct comment.
2186 (elf32_hppa_relocate_section): Likewise.
2187 (elf32_hppa_finish_dynamic_symbol): Likewise.
2189 2001-05-28 Jeff Sturm <jsturm@one-point.com>
2191 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
2192 * bfd-in2.h: Regenerate.
2193 * libbfd.h: Regenerate.
2194 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
2195 and BFD_RELOC_SPARC_UA64 mapping
2196 * elf64-sparc.c: Likewise.
2198 2001-05-25 H.J. Lu <hjl@gnu.org>
2200 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
2201 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
2202 (coff-rs6000.lo): Remove the old dependency.
2203 * Makefile.in: Rebuild.
2205 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
2208 2001-05-25 H.J. Lu <hjl@gnu.org>
2210 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
2211 rs6000coff_core_file_matches_executable_p,
2212 rs6000coff_core_file_failing_command and
2213 rs6000coff_core_file_failing_signal only if AIX_CORE is
2215 (pmac_xcoff_vec): Likewise.
2216 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
2218 2001-05-25 Timothy Wall <twall@redhat.com>
2220 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
2221 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
2223 2001-05-25 H.J. Lu <hjl@gnu.org>
2225 * bfd-in2.h: Regenerated.
2226 * libcoff.h: Likewise.
2228 2001-05-25 Alan Modra <amodra@one.net.au>
2230 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
2231 undefined millicode syms in shared libs.
2232 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
2233 (elf32_hppa_check_relocs): Likewise.
2234 (elf32_hppa_adjust_dynamic_symbol): Likewise.
2235 (elf32_hppa_size_dynamic_sections): Likewise.
2236 (elf32_hppa_relocate_section): Likewise.
2237 (elf32_hppa_finish_dynamic_symbol): Likewise.
2238 (elf32_hppa_finish_dynamic_sections): Likewise.
2240 2001-05-24 Tom Rix <trix@redhat.com>
2242 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
2243 xcoff-target.h not used to define rs6000 or ppc bfd.
2246 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
2249 * coff-rs6000.c : Many changes for 64 bit support. Move common
2250 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
2253 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
2254 linker now supported. Explictly define the rs6000coff64_vec.
2256 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
2257 (coff_print_aux) same
2258 (coff_write_object_contents) same
2259 (coff_slurp_line_table) same
2261 * coffgen.c : (coff_fix_symbol_name) formatting
2262 (coff_mangle_symbols) xcoff 64 bit support
2263 (coff_write_symbol) same
2264 (coff_write_alien_symbol) same
2265 (coff_write_native_symbol) same
2266 (coff_write_symbols) same
2267 (coff_get_symbol_info) same
2268 (bfd_coff_get_syment) same
2269 (coff_print_symbol) same
2271 * config.bfd : add powerpc64-*-aix* target
2273 * libcoff-in.h : formatting
2275 * libcoff.h : move xcoff extern declarations to libxcoff.h
2277 * libxcoff.h : New file
2279 * xcofflink.c : Many changes for xcoff64 support. Move common
2280 structures to include/coff/xcoff.h. Move specific structure to
2281 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
2282 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
2284 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
2287 (xcoff_build_ldsyms) : handle special __rtinit symbol.
2289 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2291 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
2294 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2296 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
2297 * libbfd.h: Regenerate.
2298 * bfd-in2.h: Regenerate.
2300 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
2301 * archures.c (bfd_mach_mips12000): Define.
2302 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
2303 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
2305 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
2306 * bfd-in2.h: Regenerate.
2307 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
2309 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
2311 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
2312 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
2313 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
2314 that is used by GCC.
2316 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2318 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
2319 of entries in a structured section.
2320 * elf.c: Use new macro.
2321 * elf32-i386.c: Use new macro.
2322 * elf32-mips.c: Use new macro.
2323 * elf64-alpha.c: Use new macro.
2324 * elf64-sparc.c: Use new macro.
2325 * elfcode.h: Use new macro.
2326 * elflink.h: Use new macro.
2328 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2330 * bfdint.texi: Replace -oformat with --oformat.
2332 2001-05-21 Andreas Jaeger <aj@suse.de>
2334 * dwarf2.c (decode_line_info): Fix error message.
2335 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
2336 adjust error message.
2338 2001-05-18 H.J. Lu <hjl@gnu.org>
2340 * elflink.h (elf_link_add_object_symbols): Revert the last
2343 2001-05-17 Alan Modra <amodra@one.net.au>
2345 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
2346 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
2347 (hppa_build_one_stub): Add an assert to check plt.offset.
2349 2001-05-17 H.J. Lu <hjl@gnu.org>
2351 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
2352 version definition to basename of the output filename.
2354 2001-05-17 H.J. Lu <hjl@gnu.org>
2356 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
2357 basename of the bfd filename.
2359 2001-05-16 Alan Modra <amodra@one.net.au>
2361 * section.c (asection): Add linker_has_input field.
2362 (STD_SECTION): Adjust initialization to suit.
2363 * ecoff.c (bfd_debug_section): Likewise.
2364 * bfd-in2.h: Regenerate.
2366 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
2368 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
2369 negative 32-bit operands to 16 operands when the operand is
2370 going to be zero-extended by the modified opcode.
2372 2001-05-12 Peter Targett <peter.targett@arccores.com>
2374 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
2375 name for 'arc5' core versions.
2376 (bfd_arc_arch): Make bfd_mach_arc_6 default.
2378 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
2380 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
2382 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2384 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
2386 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
2387 to .gnu.linkonce.t.FOO text section.
2389 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2391 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
2392 fields, change sec into secinfo.
2393 (struct sec_merge_info): Add chain, remove last fields.
2394 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
2395 (sec_merge_hash_lookup): If lookup could not use a string only
2396 because it has bad alignment, mark the old string for deletion.
2397 (sec_merge_add): Add secinfo argument. Don't compute entry's
2398 position, instead record the section.
2399 (sec_merge_emit): Update for the sec into secinfo change in
2400 struct sec_merge_hash_entry.
2401 (_bfd_merge_section): Only record the section for merging, defer
2402 putting strings into the hash table.
2403 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
2404 _bfd_merge_sections): New functions.
2405 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
2407 * libbfd-in.h (_bfd_merge_sections): Add prototype.
2408 (_bfd_nolink_bfd_merge_sections): Define.
2409 * libbfd.h: Likewise.
2410 (bfd_generic_merge_sections): Add prototype.
2411 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
2412 (struct bfd_target): Likewise.
2413 * bfd.c (bfd_merge_sections): Define.
2414 * bfd-in2.h: Rebuilt.
2415 * elf.c (_bfd_elf_merge_sections): New function.
2416 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
2417 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
2418 * reloc.c (bfd_generic_merge_sections): New function.
2419 * vms.c (vms_bfd_merge_sections): New function.
2420 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
2421 * aout-target.h (MY_bfd_merge_sections): Define.
2422 * aout-tic30.c (MY_bfd_merge_sections): Define.
2423 * binary.c (binary_bfd_merge_sections): Define.
2424 * bout.c (b_out_bfd_merge_sections): Define.
2425 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
2426 * coffcode.c (coff_bfd_merge_sections): Define.
2427 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
2428 * i386msdos.c (msdos_bfd_merge_sections): Define.
2429 * i386os9k.c (os9k_bfd_merge_sections): Define.
2430 * ieee.c (ieee_bfd_merge_sections): Define.
2431 * ihex.c (ihex_bfd_merge_sections): Define.
2432 * nlm-target.h (nlm_bfd_merge_sections): Define.
2433 * oasys.c (oasys_bfd_merge_sections): Define.
2434 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
2435 * som.c (som_bfd_merge_sections): Define.
2436 * srec.c (srec_bfd_merge_sections): Define.
2437 * tekhex.c (tekhex_bfd_merge_sections): Define.
2438 * versados.c (versados_bfd_merge_sections): Define.
2439 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
2441 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
2443 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
2444 to be unsigned long, in order to match its use.
2446 2001-05-10 H.J. Lu <hjl@gnu.org>
2448 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
2451 2001-05-09 H.J. Lu <hjl@gnu.org>
2453 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
2454 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
2455 Remove the unused veriable `dynver'.
2457 2001-05-08 Ian Lance Taylor <ian@zembu.com>
2459 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
2460 NULL or is not COFF.
2461 (coff_i386_rtype_to_howto): Don't dump core if output section
2464 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2466 * ecoff.c (bfd_debug_section): Fix initialization.
2467 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
2468 is always a positive integer. Cast away sign mismatch.
2469 * elf32-mips.c: Fix misleading comment and typo.
2470 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
2472 * elflink.c: Fix typo.
2473 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
2474 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
2476 2001-05-04 Richard Henderson <rth@redhat.com>
2478 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
2480 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
2482 * elf32-arm.h (elf32_arm_final_link_relocate): Set
2483 EF_ARM_HASENTRY if the start address is set.
2485 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
2487 * targets.c (_bfd_target_vector_entries): Compute value based on
2488 the size of the _bfd_target_vector and not bfd_target_vector.
2490 2001-05-03 H.J. Lu <hjl@gnu.org>
2492 * elfcode.h: Include "libiberty.h".
2494 * elflink.h (elf_link_add_object_symbols): Set
2495 elf_dt_name (abfd) to basename of the bfd filename.
2496 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
2497 of the bfd filename.
2499 2001-05-03 Andreas Jaeger <aj@suse.de>
2501 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
2502 (elf_generic_info_to_howto_rel): Likewise.
2503 * coff-alpha.c (reloc_nil): Likewise.
2504 (alpha_ecoff_bad_format_hook): Likewise.
2505 (alpha_adjust_reloc_out): Likewise.
2506 (alpha_bfd_reloc_type_lookup): Likewise.
2507 (alpha_convert_external_reloc): Likewise.
2508 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
2509 (elf64_alpha_reloc_bad): Likewise.
2510 (elf64_alpha_reloc_gpdisp): Likewise.
2511 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
2512 (elf64_alpha_info_to_howto): Likewise.
2513 (elf64_alpha_add_symbol_hook): Likewise.
2514 (elf64_alpha_create_got_section): Likewise.
2515 (elf64_alpha_is_local_label_name): Likewise.
2516 (elf64_alpha_merge_ind_symbols): Likewise.
2517 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
2518 (mips_elf64_get_reloc_upper_bound): Likewise.
2519 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
2520 (nlm_alpha_get_public_offset): Likewise.
2522 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2524 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
2525 about overflow in R_OPENRISC_LO_16_IN_INSN and
2526 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
2528 2001-04-30 H.J. Lu <hjl@gnu.org>
2530 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
2531 only for ELF_LINK_FORCED_LOCAL.
2532 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
2533 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
2534 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
2536 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
2537 if the symbol has hidden or internal visibility.
2539 2001-04-30 Alan Modra <amodra@one.net.au>
2541 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
2542 calls to undefined weak symbols.
2544 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
2546 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
2547 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
2549 2001-04-27 Andreas Jaeger <aj@suse.de>
2551 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
2552 out handled entries.
2553 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
2554 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
2555 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
2558 2001-04-27 Sean McNeil <sean@mcneil.com>
2560 * config.bfd: Add arm-vxworks target.
2561 * coff-arm (coff_arm_relocate_section): Add in symbol value to
2562 addend (fro VXworks targets).
2564 2001-04-26 H.J. Lu <hjl@gnu.org>
2566 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
2569 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
2571 * bfd-in.h (bfd_cache_close): Declare newly exported function.
2572 * bfd-in2.h: Regenerated.
2574 2001-04-24 Jakub Jelinek <jakub@redhat.com>
2576 * merge.c (struct sec_merge_hash_entry): Add alignment field.
2577 (struct sec_merge_hash): Remove alignment_power.
2578 (sec_merge_hash_newfunc): Clear alignment.
2579 (sec_merge_hash_lookup): Pass alignment as argument.
2580 Use hashp->root.next, not hashp->next to walk the hash chain.
2581 If a string already in the hashtable does not have required
2582 alignment, create a new hashtable entry.
2583 (sec_merge_init): Remove alignment_power argument.
2584 (sec_merge_add): Add alignment argument.
2585 (sec_merge_emit): Alignment is now a per-entity thing, not per
2587 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
2588 for proper alignment.
2589 Pass alignment information to sec_merge_add.
2591 2001-04-24 Christian Groessler <cpg@aladdin.de>
2593 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
2594 and R_REL16 reloc types; accept odd values for R_REL16 type
2596 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
2598 * cpu-openrisc.c: New file.
2599 * elf32-openrisc.c: Likewise.
2601 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
2602 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
2603 (BFD32_BACKENDS): Add elf32-openrisc.lo.
2604 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
2605 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
2606 * Makefile.in: Regenerated.
2607 * config.bfd: (openrisc-*-elf): New target.
2608 * configure.in (bfd_elf32_openrisc_vec): New vector.
2609 * configure: Regenerated.
2610 * libbfd.h: Regenerated.
2611 * bfd-in2.h: Regenerated.
2612 * reloc.c: Add OpenRISC relocations.
2613 * targets.c (bfd_elf32_openrisc_vec): Declare.
2614 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
2615 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
2616 (bfd_openrisc_arch): Declare.
2617 (bfd_archures_list): Add bfd_openrisc_arch.
2618 * elf.c (prep_headers): Add bfd_arch_openrisc.
2620 2001-04-23 Bo Thorsen <bo@suse.de>
2622 * elf64-x86-64.c: Add c++ vtable hack.
2623 Small whitespace and comment changes.
2625 2001-04-19 Andreas Jaeger <aj@suse.de>
2627 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
2628 (elf64_x86_64_plt_entry): Likewise.
2629 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
2630 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
2632 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
2634 * elf32-cris.c: Tweak comments related to dynamic linking.
2635 (cris_elf_relocate_section): When not creating shared object, fill
2636 in the .got table for any symbol not in the dynamic symbol table.
2637 (elf_cris_finish_dynamic_symbol): When not creating shared object,
2638 only emit a .got.rela reloc if the symbol is in the dynamic symbol
2640 (cris_elf_check_relocs): Use variable r_type in all places rather
2641 than the original expression. Add default case in switch for
2643 (elf_cris_size_dynamic_sections): Iterate over
2644 elf_cris_discard_excess_program_dynamics when not creating shared
2646 (elf_cris_discard_excess_dso_dynamics): Renamed from
2647 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
2648 (elf_cris_discard_excess_program_dynamics): New.
2650 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
2652 * coffcode.h (coff_write_object_contents): Use
2653 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
2655 2001-04-14 H.J. Lu <hjl@gnu.org>
2657 * bfd-in2.h: Regenerate.
2659 2001-04-14 Jakub Jelinek <jakub@redhat.com>
2661 * section.c (STD_SECTION): Add entsize.
2663 2001-04-13 H.J. Lu <hjl@gnu.org>
2665 * section.c (SEC_MERGE): Define new flag for merging.
2666 (SEC_STRINGS): Likewise.
2667 (entsize): New field.
2669 2001-04-13 Roger Sayle <roger@metaphorics.com>
2671 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
2672 flag on pe-i386 targets.
2674 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2676 * libbfd-in.h (_bfd_merge_section): New.
2677 (_bfd_write_merged_section): New.
2678 (_bfd_merged_section_offset): New.
2679 * libbfd.h: Rebuilt.
2680 * linker.c (_bfd_generic_link_output_symbols): Handle
2682 * aoutx.h (aout_link_write_symbols): Likewise.
2683 * pdp11.c (aout_link_write_symbols): Likewise.
2684 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
2685 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
2687 (elf_link_sec_merge_syms): New.
2688 (elf_link_input_bfd): Call _bfd_merged_section_offset
2689 and _bfd_write_merged_section.
2690 Handle discard_sec_merge.
2691 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
2693 (struct bfd_elf_section_data): Likewise.
2694 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
2695 SEC_STRINGS section flags and entsize from their ELF counterparts.
2696 (_bfd_elf_link_hash_table_init): Initialize merge_info.
2697 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
2698 from their BFD counterparts.
2699 * merge.c: New file.
2700 * Makefile.am: Add strtab.lo.
2701 * Makefile.in: Rebuilt.
2703 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
2705 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
2706 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
2708 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2710 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
2711 endian MIPS ELF target.
2712 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
2715 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
2716 64bit big endian MIPS ELF target.
2717 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
2718 endian MIPS ELF target.
2719 * configure: Regenerated.
2721 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
2722 little endian targets.
2723 (mips_elf_sym_is_global): Handle traditional targets.
2725 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
2726 64bit big endian MIPS ELF target.
2727 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
2728 endian MIPS ELF target.
2730 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
2731 and bfd_elf64_tradlittlemips_vec.
2733 2001-04-05 David Mosberger <davidm@hpl.hp.com>
2735 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
2736 ordinary "progbits" section.
2738 2001-04-04 Alan Modra <alan@linuxcare.com.au>
2740 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
2741 when -Bsymbolic causes a symbol to no longer need a .plt entry.
2743 2001-04-03 David Mosberger <davidm@hpl.hp.com>
2745 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
2747 2001-03-30 H.J. Lu <hjl@gnu.org>
2749 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
2750 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
2752 2001-03-26 H.J. Lu <hjl@gnu.org>
2754 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
2755 if there are any relocations for generic ELF.
2756 (bfd_elf32_bfd_link_add_symbols): Defined to
2757 elf32_generic_link_add_symbols.
2758 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
2759 if there are any relocations for generic ELF.
2760 (bfd_elf64_bfd_link_add_symbols): Defined to
2761 elf64_generic_link_add_symbols.
2763 2001-03-23 Nick Clifton <nickc@redhat.com>
2765 * Makefile.am (BUILD_CFILES): New variable: List of C source
2766 files created in build directory.
2767 (BUILD_HFILES): New variable: List of header files created in
2770 (po/POTFILES.in): Replace rule with empty entry.
2771 (po/SRC-POTFILES.in): New rule: Create a list of source files
2772 in the source directory.
2773 (po/BLD-POTFILES.in): New rule: Create a list of source files
2774 in the build directory.
2775 (MOSTLYCLEAN): Do not delete source files created in build
2777 * Makefile.in: Regenerate.
2778 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
2780 * configure: Regenerate.
2782 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
2784 Add .. to the search path when building bfd.pot.
2785 Delete POTFILES when performing distclean.
2786 Add comment describing why distclean is broken in maintainer mode.
2787 * po/POTFILES.in: Delete.
2788 * po/SRC-POTFILES.in: New file.
2789 * po/BLD-POTFILES.in: New file.
2790 * po/bfd.pot: Regenerate.
2792 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
2794 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
2795 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
2796 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
2797 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
2798 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
2799 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
2801 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
2802 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
2803 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
2804 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
2805 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
2806 New HOWTO members for new relocs.
2807 (cris_reloc_map): Map new relocs.
2808 (ELF_DYNAMIC_INTERPRETER): Define.
2809 (PLT_ENTRY_SIZE): Define.
2810 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
2811 elf_cris_pic_plt_entry): New, PLT templates.
2812 (struct elf_cris_pcrel_relocs_copied, struct
2813 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
2814 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
2815 (cris_final_link_relocate): Check that 16-bit GOT relocs have
2816 positive values. Adjust PCREL relocs to be relative to location
2818 (cris_elf_relocate_section): Handle relocations to dynamic
2819 objects. Handle new relocations. Call error handler when seeing
2820 non-PIC relocation for read-only sections while generating shared
2822 (cris_elf_check_relocs): Set reference counts for GOT and PLT
2824 (bfd_elf32_bfd_link_hash_table_create,
2825 elf_backend_adjust_dynamic_symbol,
2826 elf_backend_size_dynamic_sections,
2827 elf_backend_finish_dynamic_symbol,
2828 elf_backend_finish_dynamic_sections,
2829 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
2830 elf_backend_hide_symbol, elf_backend_want_got_plt,
2831 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2832 elf_backend_got_header_size, elf_backend_plt_header_size):
2835 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
2836 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
2837 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
2838 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
2839 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
2840 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
2841 * bfd-in2.h, libbfd.h: Regenerate.
2843 2001-03-21 Diego Novillo <dnovillo@redhat.com>
2845 (_bfd_mips_elf_relocate_section): Give a better error message when
2846 a relocation is not recognized.
2848 2001-03-21 Alan Modra <alan@linuxcare.com.au>
2850 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
2851 non-NULL before attempting to dereference.
2853 2001-03-20 H.J. Lu <hjl@gnu.org>
2855 * configure.in: Remove the redundent AC_ARG_PROGRAM.
2856 * configure: Rebuild.
2858 2001-03-20 Andreas Schwab <schwab@suse.de>
2860 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
2861 relocation value when resolving a reference from a debugging
2864 2001-03-16 Scott Thomason <SThomaso@hii.com>
2866 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
2867 (xcoff64_swap_sym_out): Fix syntax errors.
2869 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
2871 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
2873 2001-03-15 Alan Modra <alan@linuxcare.com.au>
2875 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
2876 (hppa_link_hash_newfunc): Init it.
2877 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
2878 section appears to be non-PIC.
2879 (final_link_relocate): Likewise.
2880 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
2881 possible candidate function, and set pic_call for those that will
2882 only have a .plt entry for the PIC call stub.
2883 (hppa_handle_PIC_calls): Set maybe_pic_call.
2885 2001-03-12 DJ Delorie <dj@redhat.com>
2887 * elf32-sh.c (sh_elf_relocate_section): Only relocation
2888 R_SH_DIR8WP* relocs if they're against external symbols, else
2889 they're just for relaxing. Validate the reloc values.
2891 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
2893 * binary.c (bfd_external_binary_architecture): Declare.
2894 (binary_object_p): If bfd_external_binary_architecture is defined,
2895 set the architecture to this string.
2897 2001-03-11 Philip Blundell <philb@gnu.org>
2899 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
2900 entries that could serve as a definition for a weak symbol.
2902 2001-03-08 Nick Clifton <nickc@redhat.com>
2904 * Most files: Update copyright notices using Perl script created
2905 by Kevin Buettner <kevinb@redhat.com>.
2907 2001-03-07 Nick Clifton <nickc@redhat.com>
2909 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
2910 prior patch on ! defined OLD_ARM_ABI.
2912 2001-03-07 Andreas Jaeger <aj@suse.de>
2914 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
2915 some relocation values.
2917 2001-03-06 Nick Clifton <nickc@redhat.com>
2919 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
2920 of offset in BLX(1) instruction.
2921 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
2922 offset in BLX(1) instruction.
2925 2001-03-06 Nick Clifton <nickc@redhat.com>
2927 * coff-arm.c (coff_arm_reloc_type_lookup): Add
2928 BFD_RELOC_THUMB_PCREL_BLX.
2930 2001-03-06 Igor Shevlyakov <igor@windriver.com>
2932 * archures.c (bfd_default_scan): Add Coldfire CPUs.
2933 * bfd-in2.h: Regenerate.
2934 * cpu-m68k.c: Add Coldfire CPUs for arch table.
2935 * ieee.c (ieee_write_processor): Set proper id for
2938 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
2940 * configure.in: Add s390 target.
2941 * configure: Regenerate.
2943 2001-02-28 Andreas Jaeger <aj@suse.de>
2945 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
2948 2001-02-28 Philip Blundell <pb@futuretv.com>
2950 * elf32-arm.h: Update mentions of renamed EF_xx constants.
2951 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
2953 2001-02-27 H.J. Lu <hjl@gnu.org>
2955 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
2956 abfd->tdata.aout_data == NULL.
2958 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2960 * elf32-hppa.c: Correct field selector in stub comments.
2961 (clobber_millicode_symbols): Formatting fix.
2963 * configure.in: Bump version to 2.11.90.
2964 * configure: Regenerate.
2965 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
2966 (CFILES): $SOURCE_CFILES + generated C files.
2967 (POTFILES): Include $HFILES not $SOURCE_HFILES.
2969 * Makefile.in: Regenerate.
2970 * doc/Makefile.in: This too.
2972 2001-02-26 Timothy Wall <twall@cygnus.com>
2974 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
2977 2001-02-26 Nick Clifton <nickc@redhat.com>
2979 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
2980 up, replacing multiple if statements with a switch.
2981 (handle_COMDAT): New function.
2983 2001-02-26 H.J. Lu <hjl@gnu.org>
2985 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
2986 a warning for section flags we do not handle instead of
2989 2001-02-26 Andreas Jaeger <aj@suse.de>
2991 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
2993 2001-02-22 Timothy Wall <twall@cygnus.com>
2995 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
2996 * configure.in: Add objects for elf64_ia64_aix vectors.
2997 * configure: Regenerated.
2998 * configure.host: Recognize ia64-*-aix*.
2999 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
3000 for AIX. AIX5 requires most relocations to be dynamic (*all*
3001 binaries are somewhat similar to shared libraries).
3002 * targets.c: Add elf64_ia64_aix vectors.
3004 2001-02-21 David Mosberger <davidm@hpl.hp.com>
3006 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
3007 C8 said "1" instead of "8". Clarify error string for IMM22:
3008 "signed integer" instead of just "integer".
3010 2001-02-20 Andreas Jaeger <aj@suse.de>
3012 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
3013 PLT entries that could serve as a definition for a weak symbol.
3015 2001-02-19 Jakub Jelinek <jakub@redhat.com>
3017 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
3018 entries that could serve as a definition for a weak symbol.
3019 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
3021 2001-02-18 David O'Brien <obrien@FreeBSD>
3023 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
3024 FreeBSD/i386-CURRENT differently until I can figure out the needed
3026 * configure: Regenerate.
3027 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
3028 FreeBSD/PowerPC, and FreeBSD/sparc64.
3030 2001-02-18 lars brinkhoff <lars@nocrew.org>
3032 * Makefile.am: Add PDP-11 a.out target.
3033 * config.bfd: Likewise.
3034 * configure.in: Likewise.
3035 * targets.c: Likewise.
3036 * archures.c: Likewise.
3037 * bfd-in2.h: Likewise. Add PDP-11 relocations.
3038 * libbfd.h: Add PDP-11 relocations.
3039 * reloc.c: Likewise.
3040 * cpu-pdp11.c: New file.
3041 * pdp11.c: New file.
3043 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
3044 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3045 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3046 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
3047 (GET_MAGIC): New macro.
3048 (PUT_MAGIC): Likewise.
3049 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
3051 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
3053 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
3054 multiarch needs it).
3056 2001-02-18 H.J. Lu <hjl@gnu.org>
3058 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
3061 2001-02-18 Kazu Hirata <kazu@hxi.com>
3063 * vms-misc.c: Fix formatting.
3065 2001-02-16 Kazu Hirata <kazu@hxi.com>
3067 * vms.c: Fix formatting.
3069 2001-02-14 H.J. Lu <hjl@gnu.org>
3071 * elf.c (elf_find_function): New function.
3072 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
3073 the file name and function name.
3075 2001-02-14 Nick Clifton <nickc@redhat.com>
3077 * ecoff.c (bfd_debug_section): Update to initialise new fields in
3080 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
3081 (BFD64_BACKENDS): Add pepigen.c
3082 Add rules to create peigen.c and pepigen.c from peXXigen.c.
3084 * Makefile.in: Regenerate.
3085 * configure: Regenerate.
3086 * po/POTFILES.in: Regenerate.
3087 * po/bfd.pot: Regenerate.
3089 2001-02-14 H.J. Lu <hjl@gnu.org>
3091 * libcoff-in.h (pe_tdata): Add members target_subsystem and
3092 force_minimum_alignment.
3094 2001-02-14 Bo Thorsen <bo@suse.de>
3096 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
3097 (elf64_86_64_size_info): Struct added to fix a problem
3098 with the hashtable string entries.
3099 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
3100 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
3101 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
3102 remove the FIXME for this.
3103 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
3104 section. Also removed the FIXME for it.
3105 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
3106 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
3107 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
3109 2001-02-13 Richard Henderson <rth@redhat.com>
3111 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
3112 and not user provided.
3114 2001-02-13 Kazu Hirata <kazu@hxi.com>
3116 * vms.c (vms_print_symbol): Remove unreachable code.
3118 * rs6000-core.c: Fix formatting.
3120 2001-02-13 David Mosberger <davidm@hpl.hp.com>
3122 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
3123 as _bfd_XXi_only_swap_filehdr_out.
3124 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
3125 pe->force_minimum_alignment to TRUE.
3126 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
3127 PEI_TARGET_SUBSYSTEM.
3128 (pe_print_private_bfd_data): Call
3129 _bfd_XX_print_private_bfd_data_common() instead of
3130 _bfd_pe_print_private_bfd_data_common().
3131 (pe_bfd_copy_private_bfd_data): Call
3132 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
3133 _bfd_pe_bfd_copy_private_bfd_data_common().
3134 (coff_bfd_copy_private_section_data): Define as
3135 _bfd_XX_bfd_copy_private_section_data instead of
3136 _bfd_pe_bfd_copy_private_section_data.
3137 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
3138 of a _bfd_pe_get_symbol_info.
3142 * peXXigen.c: Renamed from peigen.c.
3143 (COFF_WITH_XX): Define this macro (will get expanded into
3144 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
3145 compiled as peigen.c or pepigen.c.
3146 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
3147 define the canonical PEP structures and definitions.
3148 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
3149 effect, enforce minimum file and section alignments. If
3150 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
3151 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
3152 so, by default, this is a no-op).
3154 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
3155 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
3156 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
3157 _bfd_pefoo if it's not defined. Use these macros to define
3160 * libcoff.h (pe_tdata): Add members target_subsystem and
3161 force_minimum_alignment.
3163 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
3165 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
3167 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
3170 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
3171 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
3174 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
3175 (BFD64_BACKENDS_CFILES): Mention pepigen.c
3176 (peigen.c): Add rule to generate from peXXigen.c.
3178 (pepigen.lo): List dependencies for pepigen.lo.
3180 2001-02-13 Alan Modra <alan@linuxcare.com.au>
3182 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
3183 $global$ referenced but not defined, set its value here.
3185 2001-02-09 Bo Thorsen <bo@suse.de>
3187 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
3189 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
3191 (elf64_x86_64_relocate_section): Fix formatting.
3192 (elf64_x86_64_relocate_section): Fix addend for relocation of
3193 R_X86_64_(8|16|32|PC8|PC16|PC32).
3195 2001-02-12 Jan Hubicka <jh@suse.cz>
3197 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
3199 2001-02-11 H.J. Lu <hjl@gnu.org>
3201 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
3204 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3206 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
3207 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
3208 relocations against dynsym symbols.
3210 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
3211 the R_MIPS_26 relocation.
3212 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
3213 the R_MIPS_26 relocation.
3214 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
3216 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
3217 the R_MIPS_26 relocation.
3218 (mips_elf64_howto_table_rela): Likewise.
3220 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
3221 member to mark symbols that have non-CALL relocations against
3223 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
3224 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
3226 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
3227 non-CALL relocation against it is encountered.
3228 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
3229 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
3230 no_fn_stub is not set.
3232 * elf32-mips.c (mips_elf_output_extsym): Get the output section
3233 information from the real symbol for indirect ones.
3234 Check no_fn_stub to find out if a symbol has a function stub
3237 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3239 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
3240 * Makefile.in: Regenerate.
3242 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3244 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
3245 true if section name is an unwind table section name.
3246 (elfNN_ia64_additional_program_headers): Count each unwind section
3248 (elfNN_ia64_modify_segment_map): Install one unwind program header
3249 for each unwind separate section. Note: normally the linker
3250 script merges the unwind sections that go into a single segment,
3251 so this still generates at most one unwind program header per
3254 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
3255 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
3256 (elfNN_ia64_fake_sections): Mark sections with names that start
3257 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
3260 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
3261 Use it to make sh_info in unwind section point to the text section
3264 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3266 * Makefile.am: Add linux target for S/390.
3267 * archures.c: Likewise.
3268 * bfd-in2.h: Likewise.
3269 * config.bfd: Likewise.
3270 * configure.in: Likewise.
3272 * libbfd.h: Likewise.
3273 * targets.c: Likewise.
3274 * cpu-s390.c: New file.
3275 * elf32-s390.c: New file.
3276 * elf64-s390.c: New file.
3278 2001-02-09 Nick Clifton <nickc@redhat.com>
3280 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
3281 ImageBase. This has already been done by coff_swap_hdr_in.
3283 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3285 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
3287 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3289 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
3290 (sparc64_elf_relocate_section): Likewise.
3292 2001-02-09 Mark Kettenis <kettenis@gnu.org>
3294 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
3295 similar to R_SPARC_32.
3296 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
3298 2001-02-08 H.J. Lu <hjl@gnu.org>
3300 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
3301 relocation entries for weak definitions when building DSO with
3304 2001-02-08 Richard Henderson <rth@redhat.com>
3306 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
3307 before visibility. Locally defined protected symbols are not
3310 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
3312 * config.bfd: Enable coff64 for rs6000-*. Patch from
3313 <hzoli@austin.ibm.com>.
3315 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
3317 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
3318 found, do not attempt to find dwarf2 info before returning.
3320 2001-02-07 Jakub Jelinek <jakub@redhat.com>
3322 * elflink.h (is_global_symbol_definition): Rename to
3323 is_global_data_symbol_definition and have it reject function
3325 (elf_link_is_defined_archive_symbol): Use renamed function.
3327 2001-02-07 Todd Vierling <tv@wasabisystems.com>
3329 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
3330 * libbfd.h (bfd_target_vector): Likewise.
3331 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
3332 make static; create pointer reference named bfd_target_vector.
3333 (_bfd_target_vector_entries): Calculate this based on the array
3334 typed _bfd_target_vector.
3336 2001-02-06 H.J. Lu <hjl@gnu.org>
3338 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
3339 internal symbols are not dynamic.
3340 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
3342 2001-02-06 Nick Clifton <nickc@redhat.com>
3344 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
3345 that it will not be pulled into the list of files that make up
3347 * Makefile.in: Regenerate.
3348 * po/bfd.pot: Regenerate.
3350 2001-02-06 H.J. Lu <hjl@gnu.org>
3352 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
3354 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
3355 external_PEI_IMAGE_hdr.
3357 2001-02-06 Kazu Hirata <kazu@hxi.com>
3359 * elf-m10200.c: Fix formatting.
3361 2001-02-04 Nick Clifton <nickc@redhat.com>
3363 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
3364 rel, it will be handled later on.
3366 2001-02-02 Fred Fish <fnf@ninemoons.com>
3368 * Makefile.in: Fix typo.
3370 2001-02-01 Kazu Hirata <kazu@hxi.com>
3372 * elf-m10300.c: Fix formatting.
3374 2001-01-30 Alan Modra <alan@linuxcare.com.au>
3376 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
3377 (elf_backend_get_symbol_type): Define.
3378 (elf64_hppa_object_p): Set architecture and machine from elf
3381 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
3383 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
3386 2001-01-26 Richard Henderson <rth@redhat.com>
3388 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
3389 for non-default visibility.
3390 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
3391 delete ugly macro and replace with pretty function.
3393 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
3395 * coff-go32.c: Update copyright.
3396 * coff-stgo32.c: Likewise.
3397 * coff-go32.c (COFF_LONG_FILENAMES): Define.
3398 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
3399 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
3400 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3402 2001-01-25 Kazu Hirata <kazu@hxi.com>
3404 * bfd-in2.h: Rebuild.
3405 * libbfd.h: Likewise.
3407 2001-01-23 H.J. Lu <hjl@gnu.org>
3409 * bfd-in2.h: Rebuild.
3411 2001-01-23 H.J. Lu <hjl@gnu.org>
3413 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
3414 is NULL or PRIV(vms_rec) is outside of the buffer.
3416 2001-01-23 Kazu Hirata <kazu@hxi.com>
3418 * coff64-rs6000.c: Fix formatting.
3419 * coff-arm.c: Likewise.
3420 * coffgen.c: Likewise.
3421 * cofflink.c: Likewise.
3422 * coff-mcore.c: Likewise.
3423 * coff-mips.c: Likewise.
3424 * coff-pmac.c: Likewise.
3425 * coff-ppc.c: Likewise.
3426 * coff-rs6000.c: Likewise.
3427 * elf32.c: Likewise.
3428 * elf32-fr30.c: Likewise.
3429 * elf32-i370.c: Likewise.
3430 * elf32-i860.c: Likewise.
3431 * elf32-m32r.c: Likewise.
3432 * elf32-m68k.c: Likewise.
3433 * elf32-mcore.c: Likewise.
3434 * elf32-ppc.c: Likewise.
3435 * elf32-sh.c: Likewise.
3436 * elf32-v850.c: Likewise.
3437 * elf64-alpha.c: Likewise.
3438 * elf64-sparc.c: Likewise.
3439 * elflink.c: Likewise.
3440 * elflink.h: Likewise.
3441 * elf-m10200.c: Likewise.
3442 * elf-m10300.c: Likewise.
3443 * elfxx-ia64.c: Likewise.
3445 * aoutx.h: Fix formatting.
3447 * bfd-in2.h: Likewise.
3448 * bfd-in.h: Likewise.
3449 * cpu-i386.c: Likewise.
3450 * cpu-m68hc11.c: Likewise.
3451 * dwarf2.c: Likewise.
3452 * elf64-x86-64.c: Likewise.
3453 * format.c: Likewise.
3454 * freebsd.h: Likewise.
3456 * hp300hpux.c: Likewise.
3457 * hppabsd-core.c: Likewise.
3458 * hpux-core.c: Likewise.
3460 2001-01-22 Bo Thorsen <bo@suse.de>
3462 * elf64-x86-64.c: Added PIC support for X86-64.
3463 (elf64_x86_64_link_hash_newfunc): Function added.
3464 (elf64_x86_64_link_hash_table_create): Likewise.
3465 (elf64_x86_64_check_relocs): Likewise.
3466 (elf64_x86_64_gc_mark_hook): Likewise.
3467 (elf64_x86_64_gc_sweep_hook): Likewise.
3468 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
3469 (elf64_x86_64_size_dynamic_sections): Likewise.
3470 (elf64_x86_64_discard_copies): Likewise.
3471 (elf64_x86_64_finish_dynamic_symbol): Likewise.
3472 (elf64_x86_64_finish_dynamic_sections): Likewise.
3473 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
3475 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3477 * Makefile.am (install-data-local): Make use of $(DESTDIR).
3478 * Makefile.in: Regenerate.
3480 2001-01-21 Kazu Hirata <kazu@hxi.com>
3482 * coff-a29k.c: Fix formatting.
3484 2001-01-19 H.J. Lu <hjl@gnu.org>
3486 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
3487 relocation section names.
3488 (elf_i386_relocate_section): Report files with bad relocation
3489 section names and return false.
3491 2001-01-17 Bo Thorsen <bo@suse.de>
3493 * targets.c: Alphabetize list of xvecs.
3495 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3497 * config.bfd: Add linux target variant for elfxx-hppa.
3498 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
3499 bfd_elf64_hppa_linux_vec.
3500 * configure: Regenerate.
3501 * elf64-hppa.c: Include elf64-target.h again to support linux
3503 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
3504 * elf32-hppa.c: Include elf32-target.h again to support linux
3506 (elf32_hppa_post_process_headers): New function.
3507 (elf_backend_post_process_headers): Define.
3508 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
3509 bfd_elf32_hppa_linux_vec.
3511 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
3512 and data_segment_base fields.
3513 (elf32_hppa_link_hash_table_create ): Init them.
3514 (elf32_hppa_check_relocs): Update comments.
3515 (hppa_record_segment_addr): New function.
3516 (elf32_hppa_relocate_section): Call it.
3517 (final_link_relocate): Handle R_PARISC_SEGREL32.
3518 (elf32_hppa_final_link): New function.
3519 (bfd_elf32_bfd_final_link): Define to call it.
3520 (hppa_unwind_entry_compare): New function.
3521 * cache.c (bfd_open_file): Create files in write+read mode.
3523 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
3524 SEGREL32 and numerous other relocs. Change duplicate
3525 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
3527 * opncls.c (bfd_fdopenr): Add parens like the comment says around
3530 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
3531 .plt entries for DT_INIT and DT_FINI.
3532 (elf32_hppa_finish_dynamic_sections): Remove special handling of
3533 DT_INIT and DT_FINI.
3535 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
3536 offsets for stub .plt access if wide mode. Check offset in range.
3538 2001-01-13 Nick Clifton <nickc@redhat.com>
3540 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
3543 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
3546 2001-01-12 Alan Modra <alan@linuxcare.com.au>
3548 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
3549 * configure: Regenerate.
3551 2001-01-11 Peter Targett <peter.targett@arccores.com>
3553 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
3554 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
3555 * cpu-arc.c (arch_info_struct): Add entries for variants.
3556 (bfd_arc_arch) Set default to bfd_mach_arc_5.
3557 (arc_get_mach) Don't assume machine names prefixed arc- before
3559 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
3561 (arc_elf_final_write_processing) Likewise.
3562 (ELF_MACHINE_CODE) Use EM_ARC.
3564 2001-01-10 Nick Clifton <nickc@redhat.com>
3566 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
3568 2001-01-07 Philip Blundell <philb@gnu.org>
3570 * README: Replace `bug-gnu-utils@gnu.org' with
3571 `bug-binutils@gnu.org'.
3573 2001-01-04 Kazu Hirata <kazu@hxi.com>
3575 * som.c: Fix formatting.
3577 2001-01-03 Kazu Hirata <kazu@hxi.com>
3579 * ecoffswap.h: Fix formatting.
3580 * elf-bfd.h: Likewise.
3581 * elfarm-nabi.c: Likewise.
3582 * elfarm-oabi.c: Likewise.
3583 * elfcode.h: Likewise.
3584 * elfcore.h: Likewise.
3585 * elflink.c: Likewise.
3586 * elflink.h: Likewise.
3587 * elfxx-ia64.c: Likewise.
3588 * elfxx-target.h: Likewise.
3589 * libbfd.c: Likewise
3590 * linker.c: Likewise.
3591 * lynx-core.c: Likewise.
3593 2001-01-02 Kazu Hirata <kazu@hxi.com>
3595 * pc532-mach.c: Fix formatting.
3596 * pe-arm.c: Likewise.
3597 * pe-i386.c: Likewise.
3598 * pe-mips.c: Likewise.
3599 * pe-ppc.c: Likewise.
3600 * pe-sh.c: Likewise.
3601 * pei-mips.c: Likewise.
3602 * pei-sh.c: Likewise.
3603 * peicode.h: Likewise.
3604 * ppcboot.c: Likewise.
3605 * ptrace-core.c: Likewise.
3607 2001-01-01 Kazu Hirata <kazu@hxi.com>
3609 * reloc.c: Fix formatting.
3610 * riscix.c: Likewise.
3611 * rs6000-core.c: Likewise.
3612 * xcoff-target.h: Likewise.
3614 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
3616 * elfcode.h (elf_object_p): Also restore the bfd mach field on
3617 error, by calling bfd_default_set_arch_mach with incoming
3620 2000-12-26 Kazu Hirata <kazu@hxi.com>
3622 * vaxnetbsd.c: Fix formatting.
3623 * versados.c: Likewise.
3624 * vms-gsd.c: Likewise.
3625 * vms-hdr.c: Likewise.
3626 * vms-misc.c: Likewise.
3628 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
3630 * archive.c (coff_write_armap): Don't write more than symbol_count
3631 `archive_member_file_ptr's.
3633 2000-12-25 Kazu Hirata <kazu@hxi.com>
3635 * vms-tir.c: Fix formatting.
3637 2000-12-23 Kazu Hirata <kazu@hxi.com>
3639 * vms.c: Fix formatting.
3642 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
3644 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
3646 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
3648 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
3651 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
3653 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
3655 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
3657 * libbfd.c (bfd_get_bits): Added
3658 (bfd_put_bits): Likewise
3659 * bfd-in.h: Declared the above.
3660 * bfd-in2.h: Regenerated.
3662 2000-12-20 Kazu Hirata <kazu@hxi.com>
3664 * targets.c: Fix formatting.
3665 * tekhex.c: Likewise.
3666 * trad-core.c: Likewise.
3668 2000-12-19 Kazu Hirata <kazu@hxi.com>
3670 * sco5-core.c: Fix formatting.
3671 * section.c: Likewise.
3672 * sparclinux.c: Likewise.
3673 * sparclynx.c: Likewise.
3674 * sparcnetbsd.c: Likewise.
3676 * stabs.c: Likewise.
3677 * stab-syms.c: Likewise.
3678 * sunos.c: Likewise.
3680 * sysdep.h: Likewise.
3682 2000-12-18 Nick Clifton <nickc@redhat.com>
3684 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
3686 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
3687 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
3689 2000-12-18 Nick Clifton <nickc@redhat.com>
3691 * vms-misc.c (_bfd_vms_get_record): Add default case to
3694 2000-12-15 Miloslav Trmac <mitr@volny.cz>
3696 * elfcore.h (elf_core_file_p): Move to the start of the program
3697 headers before attempting to read them.
3699 2000-12-14 Kazu Hirata <kazu@hxi.com>
3701 * peigen.c: Fix formatting.
3705 2000-12-13 Kazu Hirata <kazu@hxi.com>
3707 * peigen.c: Fix formatting.
3709 2000-12-12 Jim Wilson <wilson@redhat.com>
3711 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
3713 2000-12-08 Mark Salter <msalter@redhat.com>
3715 * binary.c (binary_set_section_contents): Ignore sections
3718 2000-12-12 Kazu Hirata <kazu@hxi.com>
3720 * m68klinux.c: Fix formatting.
3721 * m68knetbsd.c: Likewise.
3722 * mipsbsd.c: Likewise.
3723 * netbsd-core.c: Likewise.
3724 * netbsd.h: Likewise.
3725 * newsos3.c: Likewise.
3726 * nlm32-alpha.c: Likewise.
3727 * nlm32-i386.c: Likewise.
3728 * nlm32-ppc.c: Likewise.
3729 * nlm32-sparc.c: Likewise.
3730 * nlmcode.h: Likewise.
3731 * nlmswap.h: Likewise.
3732 * nlm-target.h: Likewise.
3733 * ns32knetbsd.c: Likewise.
3735 2000-12-10 Fred Fish <fnf@be.com>
3737 * elflink.h (elf_link_output_extsym): Don't complain about undefined
3738 symbols in shared objects if allow_shlib_undefined is true.
3740 2000-12-12 Nick Clifton <nickc@redhat.com>
3742 * cpu-sh.c: Fix formattng.
3743 * elf.c: Fix formattng.
3744 * elf32-mips.c: Fix formattng.
3745 * elf32-sh.c: Fix formattng.
3746 * elf64-alpha.c: Fix formattng.
3748 2000-12-09 Nick Clifton <nickc@redhat.com>
3750 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
3751 dwarf2_find_line_info as last parameter to invocation of
3752 _bfd_dwarf2_find_nearest_line.
3753 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
3754 dwarf2_find_line_info as last parameter to invocation of
3755 _bfd_dwarf2_find_nearest_line.
3757 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
3759 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
3760 (BFD_LIBS): ...to here.
3761 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
3762 (BFD_LIBS_CFILES): ...to here.
3763 * Makefile.in: Regenerate.
3764 * configure.in: Remove dwarf.lo from the elf shell variable.
3765 * configure: Regenerate.
3766 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
3767 * libcoff.h: Regenerate.
3768 * coffgen.c (coff_find_nearest_line): Call
3769 _bfd_dwarf2_find_nearest_line.
3770 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
3772 (read_abbrevs): Likewise
3773 (decode_line_info): Likewise.
3774 (parse_comp_unit): Likewise.
3775 (comp_unit_find_nearest_line): Likewise.
3776 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
3777 * libbfd.h: Regenerate.
3778 * elf.c (_bfd_elf_find_nearest_line): Update call.
3779 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
3780 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
3781 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
3782 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
3783 (styp_to_sec_flags): Handle DWARF2 sections.
3784 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
3785 to _bfd_find_nearest_line.
3786 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
3787 call to _bfd_find_nearest_line.
3789 2000-12-08 Kazu Hirata <kazu@hxi.com>
3791 * coffgen.c: Fix formatting.
3792 * elf-m10300.c: Likewise.
3793 * elf32-i386.c: Likewise.
3794 * elf32-i960.c: Likewise.
3795 * elf32-m68k.c: Likewise.
3796 * elf32-mcore.c: Likewise.
3797 * elf32-ppc.c: Likewise.
3798 * elf32-sh.c: Likewise.
3799 * elf32-sparc.c: Likewise.
3800 * elf32-v850.c: Likewise.
3801 * elf64-alpha.c: Likewise.
3802 * elf64-hppa.c: Likewise.
3803 * elf64-mips.c: Likewise.
3804 * elf64-sparc.c: Likewise.
3806 2000-12-07 Kazu Hirata <kazu@hxi.com>
3808 * elf32-ppc.c: Fix formatting.
3809 * elf64-x86-64.c: Likewise.
3811 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
3813 From Ralf Baechle <ralf@gnu.org>
3815 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
3816 BFDs containing no sections or empty .text, .data or .bss sections
3817 to be merged, regardless of their flags.
3819 2000-12-06 Kazu Hirata <kazu@hxi.com>
3821 * elf32-m32r.c: Fix formatting.
3822 * elf32-m68hc11.c: Likewise.
3823 * elf32-m68hc12.c: Likewise.
3824 * elf32-m68k.c: Likewise.
3825 * elf32-mcore.c: Likewise.
3826 * elf32-pj.c: Likewise.
3827 * elf32-ppc.c: Likewise.
3829 2000-12-05 Kazu Hirata <kazu@hxi.com>
3831 * elf32-fr30.c: Fix formatting.
3832 * elf32-hppa.c: Likewise.
3833 * elf32-i370.c: Likewise.
3834 * elf32-i386.c: Likewise.
3835 * elf32-i860.c: Likewise.
3836 * elf32-i960.c: Likewise.
3838 2000-12-03 Kazu Hirata <kazu@hxi.com>
3840 * elf32-arm.h: Fix formatting.
3841 * elf32-avr.c: Likewise.
3842 * elf32-cris.c: Likewise.
3843 * elf32-d10v.c: Likewise.
3844 * elf32-d30v.c: Likewise.
3845 * elf-hppa.h: Likewise.
3846 * elf-m10200.c: Likewise.
3847 * elf-m10300.c: Likewise.
3849 2000-12-01 Chris Demetriou <cgd@sibyte.com>
3851 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
3852 bfd_mach_mips32_4k. Update FIXME comment.
3853 * archures.c (bfd_mach_mips32): New constant.
3854 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
3855 the latter, renumber it.
3856 * bfd-in2.h (bfd_mach_mips32): New constant.
3857 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
3858 the latter, renumber it.
3859 * cpu-mips.c (I_mips32): New constant.
3860 (I_mips4K, I_mips32_4k): Rename the former to the latter.
3861 (arch_info_struct): Add bfd_mach_mips32 entry, replace
3862 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
3863 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
3864 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
3865 with E_MIPS_MACH_MIPS32_4K.
3866 (_bfd_mips_elf_final_write_processing): Replace
3867 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
3868 bfd_mach_mips32 case.
3869 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
3870 comparison with support for MIPS32.
3871 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
3874 * aoutx.h (NAME(aout,machine_type)): Add cases for
3875 bfd_mach_mips5 and bfd_mach_mips64.
3876 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
3877 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
3878 * cpu_mips.c (I_mips5, I_mips64): New definitions.
3879 (arch_info_struct): Add entries for bfd_mach_mips5 and
3881 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
3882 _bfd_mips_elf_print_private_bfd_data): Add cases for
3883 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
3884 (_bfd_mips_elf_final_write_processing): Add cases for
3885 bfd_mach_mips5 and bfd_mach_mips64.
3887 * aoutx.h (NAME(aout,machine_type)): Add a
3888 bfd_mach_mips_sb1 case.
3889 * archures.c (bfd_mach_mips_sb1): New constant.
3890 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
3891 * cpu-mips.c (I_sb1): New constant.
3892 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
3893 * elf32-mips.c (elf_mips_mach): Add case for
3895 (_bfd_mips_elf_final_write_processing): Add case for
3898 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3900 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
3901 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3902 (sparc*-*-rtems*): Switched from a.out to ELF.
3904 2000-11-30 Jan Hubicka <jh@suse.cz>
3906 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
3907 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
3908 (elf64-x86-64.lo): Add dependencies.
3909 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
3910 bfd_mach_x86_64_intel_syntax.
3911 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
3912 * config.bfd (x86_64): Add.
3913 * configure.in: Add support for bfd_elf64_x86_64_vec.
3914 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
3915 (bfd_i386_arch, i8086_ar): Link in.
3916 * elf64-x86-64.c: New file.
3917 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
3918 * targets.c (bfd_elf64_x86_64_vec): Add.
3919 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
3921 2000-11-30 Kazu Hirata <kazu@hxi.com>
3923 * xcofflink.c: Fix formatting.
3925 2000-11-28 Kazu Hirata <kazu@hxi.com>
3927 * aoutx.h: Fix formatting.
3928 * bfd-in.h: Likewise.
3929 * bfd-in2.h: Likewise.
3930 * cache.c: Likewise.
3931 * cisco-core.c: Likewise.
3932 * coff64-rs6000.c: Likewise.
3933 * coffcode.h: Likewise.
3934 * coffswap.h: Likewise.
3935 * corefile.c: Likewise.
3936 * elf32-mips.c: Likewise.
3938 2000-11-27 Kazu Hirata <kazu@hxi.com>
3940 * aout-adobe.c: Fix formatting.
3941 * coff64-rs6000.c: Likewise.
3942 * coffgen.c: Likewise.
3943 * cofflink.c: Likewise.
3945 2000-11-27 Philip Blundell <pb@futuretv.com>
3947 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
3948 (obj_coff_strings_written): New accessor macro for above.
3949 * libcoff.h: Regenerate.
3950 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
3952 * coffcode.h (coff_write_object_contents): No need to write out
3953 the string table if it's already been done.
3955 2000-11-22 Philip Blundell <pb@futuretv.com>
3957 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
3958 weak undefined symbols.
3960 2000-11-24 Nick Clifton <nickc@redhat.com>
3962 * archures.c (bfd_mach_arm_5TE): Define.
3963 (bfd_mach_arm+XScale): Define.
3964 * bfd-in2.h: Regenerate.
3966 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
3967 BFD_RELOC_ARM_PCREL_BLX.
3969 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
3970 XScale machine numbers.
3972 * config.bfd (xscale-elf): Add target.
3973 (xscale-coff): Add target.
3975 * cpu-arm.c: Add xscale machine name.
3976 Add v5t, v5te and XScale machine numbers.
3978 2000-11-23 Kazu Hirata <kazu@hxi.com>
3980 * aix386-core.c: Fix formatting.
3982 2000-11-22 Jim Wilson <wilson@redhat.com>
3984 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
3985 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
3986 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
3987 (ins_imms_scaled): Initialize sign_bit at function entry.
3988 (elf64_ia64_operands): Add missing initializers.
3989 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
3990 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
3991 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
3992 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
3993 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
3995 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
3996 and free_extsyms at function entry.
3997 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
3998 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
3999 (get_got): Delete unused local srel.
4000 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
4001 (elfNN_ia64_relocate_section): Delete unused local dynindx.
4003 2000-11-21 Kazu Hirata <kazu@hxi.com>
4005 * coff-a29k.c: Fix formatting.
4006 * coff-h8500.c: Likewise.
4007 * coff-i960.c: Likewise.
4008 * coff-ppc.c: Likewise.
4009 * coff-rs6000.c: Likewise.
4010 * coff-stgo32.c: Likewise.
4011 * coff-tic54x.c: Likewise.
4012 * coff-w65.c: Likewise.
4013 * cpu-h8500.c: Likewise.
4014 * cpu-hppa.c: Likewise.
4015 * cpu-ns32k.c: Likewise.
4016 * ecoff.c: Likewise.
4017 * ecofflink.c: Likewise.
4019 2000-11-21 Nick Clifton <nickc@redhat.com>
4021 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
4022 remove possibility of infinite loop.
4024 2000-11-20 Kazu Hirata <kazu@hxi.com>
4026 * aix386-core.c: Fix formatting.
4027 * aout-adobe.c: Likewise.
4028 * aout-arm.c: Likewise.
4029 * aout-encap.c: Likewise.
4030 * aout-ns32k.c: Likewise.
4031 * aout-target.h: Likewise.
4032 * aout-tic30.c: Likewise.
4033 * aoutf1.h: Likewise.
4034 * aoutx.h: Likewise.
4035 * archive.c: Likewise.
4036 * bfd-in.h: Likewise.
4037 * bfd-in2.h: Likewise.
4041 2000-11-17 H.J. Lu <hjl@gnu.org>
4043 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
4044 pltoff entries for DT_INIT and DT_FINI.
4045 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
4046 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
4049 2000-11-16 Richard Henderson <rth@redhat.com>
4051 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
4052 (allocate_dynrel_entries): Likewise.
4053 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
4054 (set_pltoff_entry): Likewise.
4055 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
4056 (elfNN_ia64_reloc_type_lookup): Likewise.
4057 (elfNN_ia64_install_value): Likewise.
4058 (elfNN_ia64_relocate_section): Likewise.
4059 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
4060 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
4062 2000-11-16 Kazu Hirata <kazu@hxi.com>
4064 * cpu-a29k.c: Fix formatting.
4065 * cpu-alpha.c: Likewise.
4066 * cpu-arm.c: Likewise.
4067 * cpu-avr.c: Likewise.
4068 * cpu-d10v.c: Likewise.
4069 * cpu-h8500.c: Likewise.
4070 * cpu-hppa.c: Likewise.
4071 * cpu-i370.c: Likewise.
4072 * cpu-i386.c: Likewise.
4073 * cpu-i960.c: Likewise.
4074 * cpu-ia64-opc.c: Likewise.
4075 * cpu-ia64.c: Likewise.
4076 * cpu-m32r.c: Likewise.
4077 * cpu-m68hc11.c: Likewise.
4078 * cpu-m68hc12.c: Likewise.
4079 * cpu-m68k.c: Likewise.
4080 * cpu-m88k.c: Likewise.
4081 * cpu-mips.c: Likewise.
4082 * cpu-ns32k.c: Likewise.
4083 * cpu-pj.c: Likewise.
4084 * cpu-powerpc.c: Likewise.
4085 * cpu-sh.c: Likewise.
4086 * cpu-sparc.c: Likewise.
4087 * cpu-tic54x.c: Likewise.
4088 * cpu-v850.c: Likewise.
4089 * cpu-vax.c: Likewise.
4090 * cpu-w65.c: Likewise.
4091 * cpu-we32k.c: Likewise.
4092 * cpu-z8k.c: Likewise.
4093 * dwarf1.c: Likewise.
4094 * dwarf2.c: Likewise.
4096 2000-11-15 Kazu Hirata <kazu@hxi.com>
4098 * coff-arm.c: Fix formatting.
4099 * coff-ppc.c: Likewise.
4100 * coff-rs6000.c: Likewise.
4101 * coff-sh.c: Likewise.
4102 * coff-sparc.c: Likewise.
4103 * coff-tic30.c: Likewise.
4104 * coff-tic54x.c: Likewise.
4105 * coff-tic80.c: Likewise.
4106 * coff-w65.c: Likewise.
4107 * coff-we32k.c: Likewise.
4108 * coff-z8k.c: Likewise.
4110 2000-11-15 Richard Henderson <rth@redhat.com>
4112 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
4113 section with the same ALLOC|LOAD flags as the source section.
4115 2000-11-14 Jakub Jelinek <jakub@redhat.com>
4117 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
4118 by STO_ALPHA constants.
4120 2000-11-14 Kazu Hirata <kazu@hxi.com>
4122 * coff-pmac.c: Fix formatting.
4123 * coff-ppc.c: Likewise.
4125 2000-11-13 H.J. Lu <hjl@gnu.org>
4127 * elflink.h (elf_link_add_object_symbols): Also add indirect
4128 symbols for common symbols with the default version.
4130 2000-11-09 Philip Blundell <pb@futuretv.com>
4132 * section.c (STD_SECTION): Set gc_mark flag.
4134 2000-11-11 Kazu Hirata <kazu@hxi.com>
4136 * coff-i960.c: Likewise.
4137 * coff-m68k.c: Likewise.
4138 * coff-m88k.c: Likewise.
4139 * coff-mcore.c: Likewise.
4140 * coff-mips.c: Likewise.
4142 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
4144 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
4146 2000-11-10 Kazu Hirata <kazu@hxi.com>
4148 * coff-h8300.c: Fix formatting.
4149 * coff-h8500.c: Likewise.
4150 * coff-i386.c: Likewise.
4151 * coff-i860.c: Likewise.
4152 * coff-i960.c: Likewise.
4153 * coff-ia64.c: Likewise.
4155 2000-11-09 Kazu Hirata <kazu@hxi.com>
4157 * archive.c: Fix formatting.
4158 * archures.c: Likewise.
4160 2000-11-07 Richard Henderson <rth@redhat.com>
4162 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
4163 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
4164 * section.c (bfd_set_section_contents): Call memcpy if
4165 section->contents set and location not equal to contents plus offset.
4167 2000-11-08 Kazu Hirata <kazu@hxi.com>
4169 * bfd-in.h: Fix formatting.
4170 * bfd-in2.h: Likewise.
4172 * binary.c: Likewise.
4174 * coff-a29k.c: Likewise.
4175 * coff-alpha.c: Likewise.
4176 * coff-apollo.c: Likewise.
4177 * coff-aux.c: Likewise.
4179 2000-11-07 Kazu Hirata <kazu@hxi.com>
4181 * aix386-core.c: Fix formatting.
4182 * aoutf1.h: Likewise.
4183 * aoutx.h: Likewise.
4184 * archures.c: Likewise.
4185 * armnetbsd.c: Likewise.
4187 2000-11-07 Alan Modra <alan@linuxcare.com.au>
4189 * coff-h8300.c (special): Adjust reloc address.
4191 2000-11-06 Steve Ellcey <sje@cup.hp.com>
4193 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
4194 to differentiate elf32 and elf64 on ia64.
4195 * bfd-in2.h: Regenerate.
4196 * config.bfd: Add target for "ia64*-*-hpux*".
4197 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
4198 * configure: Regenerate.
4199 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
4200 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
4202 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
4203 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
4204 * Makefile.in: Regnerate.
4205 * elf64-ia64.c: Deleted.
4206 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
4208 2000-11-06 Kazu Hirata <kazu@hxi.com>
4210 * aout-adobe.c: Fix formatting.
4211 * aout-arm.c: Likewise.
4212 * aout-cris.c: Likewise.
4213 * aout-encap.c: Likewise.
4214 * aout-ns32k.c: Likewise.
4215 * aout-target.h: Likewise.
4216 * aout-tic30.c: Likewise.
4218 2000-11-05 Philip Blundell <philb@gnu.org>
4220 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
4221 BFDs containing no sections to be merged, regardless of their flags.
4223 2000-11-04 Philip Blundell <philb@gnu.org>
4225 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
4226 if a relocation for an undefined symbol also results in an
4229 2000-11-06 Christopher Faylor <cgf@cygnus.com>
4231 * config.bfd: Add support for Sun Chorus.
4233 2000-11-05 David O'Brien <obrien@FreeBSD.org>
4235 * configure.in: Recognize alpha-*-freebsd*.
4236 * configure: Regenerate.
4238 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
4240 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
4241 (Chunk): New global variable set by a parameter in objcopy.c.
4242 (S3Forced): New global variable set by a parameter in
4244 (srec_set_section_contents): If S3Forced is true, always generate
4246 (srec_write_section): Use 'Chunk' to limit maximum length of S
4249 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4251 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
4252 * Makefile.in: Regenerate.
4253 * bfd-in2.h: Regenerate.
4254 * po/bfd.pot: Regenerate.
4256 2000-10-31 Philip Blundell <philb@gnu.org>
4258 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
4259 EF_SOFT_FLOAT if it is defined.
4261 2000-10-27 Philip Blundell <philb@gnu.org>
4263 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
4264 attempts to mix PIC code with non-PIC, just mark the output as
4265 being position dependent.
4266 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
4267 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
4268 all mismatches, not just the first one.
4270 2000-10-25 Chris Demetriou <cgd@sibyte.com>
4272 * ieee.c (ieee_archive_p): Plug one of many possible
4273 memory leaks in error handling.
4275 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4277 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
4278 elf32_sparc_object_p, elf32_sparc_final_write_processing):
4280 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
4281 sparc64_elf_object_p): Support v9b.
4282 * archures.c: Declare v8plusb and v9b machines.
4284 * cpu-sparc.c: Ditto.
4286 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4288 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
4291 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
4292 (SYMBOL_CALLS_LOCAL): New macro.
4293 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
4294 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
4295 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
4296 (ppc_elf_relocate_section): Use flag variable to determine
4297 whether the relocation refers to a local symbol.
4298 Test whether a PLTREL24 reloc will produce a reloc by looking
4299 to see whether a PLT entry was made.
4301 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4303 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
4304 entries that could serve as a definition for a weak symbol.
4306 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
4308 From Ralf Baechle <ralf@gnu.org>
4310 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
4311 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
4312 against local symbols.
4313 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
4315 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4317 * section.c (struct sec): Add kept_section.
4318 (struct bfd_comdat_info): Remove sec, we can use above.
4319 (STD_SECTION): Add initializer.
4320 (bfd_make_section_anyway): Init here too.
4322 * bfd-in2.h: Regenerate.
4324 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
4326 (elf_link_input_bfd): Set all asection->symbol->value's here, and
4327 fudge values for discarded link-once section symbols.
4329 * elf64-hppa.c: Include alloca-conf.h
4331 2000-10-11 Alan Modra <alan@linuxcare.com.au>
4333 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
4335 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
4337 2000-10-10 Alan Modra <alan@linuxcare.com.au>
4339 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
4341 2000-10-10 Tom Rix <trix@redhat.com>
4343 * section.c (bfd_make_section_anyway): Release newsect ptr when
4344 newsect->symbol fails to alloc. Use bfd_release instead of free.
4346 2000-10-09 Richard Henderson <rth@cygnus.com
4348 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
4349 (elf64_ia64_unwind_entry_compare): New.
4350 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
4352 2000-10-07 Alan Modra <alan@linuxcare.com.au>
4354 * elflink.h (size_dynamic_sections): Don't create various tags if
4355 .dynstr is excluded from the link. Don't set first dynsym entry
4356 if dynsymcount is zero.
4357 (elf_bfd_final_link): Don't try to swap out dynamic syms if
4358 .dynsym excluded from the link. Don't try to write any dynamic
4359 sections excluded from the link.
4361 * elf.c (swap_out_syms): Handle global section symbols.
4363 2000-10-05 DJ Delorie <dj@redhat.com>
4365 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
4366 * coffcode.h (coff_set_alignment_hook): read extended reloc count
4367 (coff_write_relocs): write extended reloc count
4368 (coff_write_object_contents): account for extended relocs
4370 2000-10-05 Jim Wilson <wilson@cygnus.com>
4372 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
4374 * elf.c (_bfd_elf_make_section_from_shdr): Call the
4375 elf_backend_section_flags function.
4376 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
4378 (elf64_ia64_section_flags): New function containing flag conversion
4380 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
4381 * elfxx-target.h (elf_backend_section_flags): Define.
4382 (elfNN_bed): Initialize elf_backend_section_flags field.
4384 2000-10-02 Alan Modra <alan@linuxcare.com.au>
4386 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
4387 _bfd_elf32_gc_record_vtable. Correct a comment.
4389 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
4391 From Ralf Baechle <ralf@gnu.org>
4393 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
4394 produces binaries with got[1] = 0x80000001 to differenciate them
4395 for the dynamic linker from the broken binaries produced by old
4398 2000-09-30 Petr Sorfa <petrs@sco.com>
4400 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
4401 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
4402 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
4403 * configure: Regenerate.
4405 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
4407 Define two bfd_targets for absence and presence of leading
4408 underscore on symbols. Make sure to only link same kind.
4409 * elf32-cris.c (cris_elf_object_p,
4410 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
4411 cris_elf_merge_private_bfd_data): New.
4412 (elf_backend_object_p, elf_backend_final_write_processing,
4413 bfd_elf32_bfd_print_private_bfd_data,
4414 bfd_elf32_bfd_merge_private_bfd_data): Define.
4415 <Target vector definition>: Include elf32-target.h twice with
4416 different macro settings:
4417 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
4418 bfd_elf32_us_cris_vec.
4419 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
4420 (elf_symbol_leading_char): First as 0, then '_'.
4421 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
4422 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
4423 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
4424 * configure: Regenerate.
4425 * targets.c: Declare bfd_elf32_us_cris_vec.
4426 * po/bfd.pot: Regenerate.
4428 2000-09-29 Momchil Velikov <velco@fadata.bg>
4430 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
4431 R_ARM_THM_PC22 relocations.
4433 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
4435 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
4437 2000-09-29 Momchil Velikov <velco@fadata.bg>
4439 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
4440 is has the SEC_HAS_CONTENTS flag set.
4442 2000-09-28
\81Örjan Friberg <orjanf@axis.com>
4443 Hans-Peter Nilsson <hp@axis.com>
4445 * aout-cris.c (N_TXTADDR): Define.
4447 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
4449 * som.c: Include alloca-conf.h.
4450 * Makefile.am: "make dep-am"
4451 * Makefile.in: Regenerate.
4453 2000-09-27 Alan Modra <alan@linuxcare.com.au>
4455 * elf32-hppa.c (plt_stub): New.
4456 (PLT_STUB_ENTRY): Define.
4457 (elf32_hppa_link_hash_table): Change multi_subspace to packed
4458 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
4459 (elf32_hppa_link_hash_table_create): Init to suit.
4460 (elf32_hppa_check_relocs): Set has_12bit_branch and
4461 has_17bit_branch as appropriate.
4462 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
4463 non-local functions.
4464 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
4465 Add space for plt_stub as needed.
4466 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
4467 functions at plt_stub.
4468 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
4469 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
4471 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
4472 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
4473 of fixed size, and if negative, disable handling of input sections
4474 before stub section. Set up default stub group size depending
4475 on detected branch relocs.
4476 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
4477 ensure different offsets from sym_value aren't rounded to
4478 different 2k blocks. Use lrsel and rrsel for other stubs too for
4479 consistency rather than necessity.
4480 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
4481 (final_link_relocate): Likewise.
4482 (elf32_hppa_relocate_section): Likewise.
4484 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
4485 (_bfd_elf_hppa_gen_reloc_type): Generate them.
4486 (elf_hppa_final_link_relocate): Handle them.
4487 (elf_hppa_relocate_insn): Likewise.
4488 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
4490 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
4492 * elfcode.h (elf_object_p): Preserve and clear abfd section
4493 information. Restore at error.
4495 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4497 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
4498 is empty, make sure that its rva also 0. NT loader dislikes
4501 2000-09-26 Steve Ellcey <sje@cup.hp.com>
4503 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
4506 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4508 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
4509 currently unused RELATIVE_DYNAMIC_RELOCS code.
4510 (hppa_discard_copies): Likewise.
4511 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
4512 comments. Don't check non-code output sections for stub grouping.
4514 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4516 * section.c (bfd_get_unique_section_name): Return NULL if
4519 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4521 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
4522 instruction sequence to actually work.
4523 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
4526 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
4528 * elf32-sh.c (sh_elf_relocate_section): Use
4529 _bfd_final_link_relocate to apply the relocation against a section
4530 symbol, when doing relocatable links.
4532 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4534 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
4536 (stub_hash_newfunc): Here too.
4537 (hppa_add_stub): And here.
4538 (elf32_hppa_link_hash_table): Remove stub_section_created,
4539 reloc_section_created, first_init_sec and first_fini_sec. Add
4541 (elf32_hppa_link_hash_table_create): Init to suit.
4542 (hppa_get_stub_entry): Add support for grouping stub sections.
4543 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
4544 section code. Index stub vars by section->id.
4545 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
4546 exit paths. Zap allocation of above removed vars. Refine
4549 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
4550 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
4551 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
4552 rather than pointer to bfd_link_info.
4553 (hppa_add_stub): Likewise.
4554 (final_link_relocate): Likewise.
4556 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
4558 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
4561 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
4563 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
4564 ld/emulparams/shelf.sh.
4566 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4568 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
4569 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
4570 * bfd-in2.h: Regenerate.
4572 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
4574 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
4575 LITUSE relocations incorrectly if -relax is specified on the ld
4576 command line and the displacement field of the load or store
4577 instruction is non-zero. (Patch by paul.winalski@compaq.com)
4579 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4581 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
4582 first_fini_sec here.
4583 (elf32_hppa_size_stubs): Instead correctly find the first .init
4584 and .fini section here.
4586 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
4588 * elf32-hppa.c (clobber_millicode_symbols): New function.
4589 (elf32_hppa_size_dynamic_sections): Call it.
4591 2000-09-14 Alan Modra <alan@linuxcare.com.au>
4593 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
4594 packed. Add plabel, plt_abs packed booleans.
4595 (hppa_link_hash_newfunc): Init new fields.
4596 (PLABEL_PLT_ENTRY_SIZE): Define.
4597 (hppa_stub_name): Use size_t len vars.
4598 (hppa_add_stub): Likewise.
4599 (elf32_hppa_build_stubs): Likewise.
4600 (hppa_build_one_stub): Kill some compiler warnings.
4601 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
4602 if dynamic linking. Munge the local plt offsets into
4603 local_got_refcounts. Set h->plabel for all global PLABELs. Use
4604 size_t len vars. Add assert for plabel addend.
4605 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
4606 (elf32_hppa_hide_symbol): New function.
4607 (elf_backend_hide_symbol): Define.
4608 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
4609 with h->plabel set. Don't make plt entries to have dynamic syms
4610 when they have been forced local. If plt entry is used by a
4611 plabel, make it PLABEL_PLT_ENTRY_SIZE.
4612 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
4613 Set up .plt offsets for local syms.
4614 (elf32_hppa_relocate_section): Initialise plt entries for local
4615 syms. Leave weak undefined plabels zero. Make global plabel
4616 relocs against function symbol, and leave the addend zero.
4617 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
4618 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
4619 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
4620 relocs instead of SEGREL32 for dynamic got relocs.
4621 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
4622 (elf_backend_got_header_size): Adjust.
4623 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
4625 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
4626 (hppa_type_of_stub): Use it instead of #if 0
4627 (hppa_discard_copies): Use it here too.
4628 (elf32_hppa_size_dynamic_sections): And here.
4630 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
4631 (elf32_hppa_link_hash_table_create): And here.
4632 (hppa_build_one_stub): And here. Instead keep track of stub
4633 offset using _raw_size.
4634 (elf32_hppa_size_stubs): Likewise.
4635 (elf32_hppa_build_stubs): Likewise.
4636 (hppa_size_one_stub): Likewise. Resize reloc section too.
4638 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
4639 first_fini_sec handling. Don't search for reloc section or set
4640 hplink->reloc_section_created here.
4641 (elf32_hppa_size_stubs): Instead search for reloc sections, and
4642 set reloc_section_created here.
4643 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
4644 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
4646 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
4648 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
4649 with `hplink->root.'.
4650 (elf32_hppa_check_relocs): Likewise.
4651 (elf32_hppa_gc_sweep_hook): Likewise.
4652 (elf32_hppa_adjust_dynamic_symbol): Likewise.
4653 (hppa_handle_PIC_calls): Likewise.
4654 (elf32_hppa_size_dynamic_sections): Likewise.
4655 (elf32_hppa_set_gp): Likewise.
4656 (elf32_hppa_relocate_section): Likewise.
4657 (elf32_hppa_finish_dynamic_symbol): Likewise.
4658 (elf32_hppa_finish_dynamic_sections): Likewise.
4660 From David Huggins-Daines <dhd@linuxcare.com>
4661 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
4662 defined weak symbols in shared links.
4663 (final_link_relocate): Calls to defined weak symbols in shared
4664 objects must go via import stubs, as the target might not be known
4667 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4669 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
4670 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
4671 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
4672 the original entries with EMPTY_HOWTOs, and added new ones to fill
4674 (sh_elf_info_to_howto): Make sure the new gap isn't used.
4675 (sh_elf_relocate_section): Likewise.
4677 2000-09-13 Anders Norlander <anorland@acc.umu.se>
4679 * cpu-mips.c (arch_info_struct): Add mips:4K
4680 * bfd-in2.h (bfd_mach_mips4K): New define.
4681 * archures.c: Add bfd_mach_mips4K to comment.
4682 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
4683 E_MIPS_ARCH_2 for bfd_mach_mips4K.
4685 2000-09-13 Marco Franzen <marcof@thyron.com>
4687 * som.c (som_write_symbol_strings): Do not used fixed buffers,
4688 use size_t as a counter.
4689 (som_write_space_strings): Similarly.
4691 2000-09-12 Jason Eckhardt <jle@cygnus.com>
4693 * elf32-i860.c (elf32_i860_relocate_pc26): New function
4695 (elf32_i860_relocate_section): Invoke new function from here.
4697 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4699 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
4702 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4704 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
4705 target section name instead of dumping core when the target symbol is
4708 2000-09-09 Kazu Hirata <kazu@hxi.com>
4710 * riscix.c: Remove DEFUN.
4712 2000-09-08 Nick Clifton <nickc@redhat.com>
4714 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
4715 initialise flags in output bfd if the input bfd is the default
4716 architecture with the default flags.
4718 2000-09-08 Kazu Hirata <kazu@hxi.com>
4720 * archive.c: Fix formatting.
4721 * coff-arm.c: Likewise.
4722 * doc/chew.c: Likewise.
4724 2000-09-08 Alan Modra <alan@linuxcare.com.au>
4726 * section.c (bfd_get_unique_section_name): Put a dot before the
4729 2000-09-07 Kazu Hirata <kazu@hxi.com>
4731 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
4732 * elf.c: Fix formatting.
4734 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
4736 * config.bfd (sh-*-linux*): Added.
4737 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
4738 * targets.c: Declare them.
4739 * elf32-sh-lin.c: New file.
4740 * Makefile.am: Compile it.
4741 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
4742 * configure, Makefile.in: Rebuilt.
4744 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
4746 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
4747 pseduo-section when determining where the TOC ends.
4749 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
4750 output x_tvndx as it is only two bytes wide.
4752 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
4753 reloc is 26 or 32 bits wide.
4755 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
4756 for relocs that don't change anything. Also look at the full
4759 2000-09-06 Philip Blundell <philb@gnu.org>
4761 * config.bfd (arm*-*-uclinux*): New target.
4763 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4765 * configure: Rebuilt with new libtool.m4.
4767 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4769 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
4770 word for variable name.
4771 * bfd-in2.h: Regenerate.
4773 2000-09-05 Nick Clifton <nickc@redhat.com>
4775 * config.in: Regenerate.
4776 * libbfd.h: Regenerate.
4777 * po/bfd.pot: Regenerate.
4778 * doc/bfdint.texi: Remove CVS date string - it foils compares with
4781 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
4783 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
4785 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4787 Shared library and PIC support.
4788 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
4789 (GOT_ENTRY_SIZE): New.
4790 (ELF_DYNAMIC_INTERPRETER): New.
4791 (STUB_SUFFIX): Define.
4792 (LONG_BRANCH_PIC_IN_SHLIB): Define.
4793 (RELATIVE_DYNAMIC_RELOCS): Define.
4794 (enum elf32_hppa_stub_type): New.
4795 (struct elf32_hppa_stub_hash_entry): Rename offset to
4796 stub_offset. Add a number of new fields.
4797 (struct elf32_hppa_link_hash_entry): New.
4798 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
4800 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
4801 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
4802 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
4804 (hppa_link_hash_newfunc): New function.
4805 (elf32_hppa_link_hash_table_create): Use above function. Init new
4807 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
4808 instead of addend, and remove sym_name from args. Don't use
4809 symbol name for local syms, instead use sym index.
4810 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
4811 stub type rather than size. Pass in hash and handle import stub
4812 case. Also pass in reloc instead of offset so we can calculate
4813 PCREL22F and PCREL12F branches properly.
4814 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
4815 import and export stubs too.
4816 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
4817 import and export stub sizing.
4818 (elf32_hppa_check_relocs): New function.
4819 (elf32_hppa_adjust_dynamic_symbol): New function.
4820 (hppa_discard_copies): New function.
4821 (elf32_hppa_size_dynamic_sections): New function.
4822 (elf_backend_size_dynamic_sections): Define.
4823 (elf32_hppa_finish_dynamic_symbol): New function.
4824 (elf_backend_finish_dynamic_symbol): Define.
4825 (elf32_hppa_size_stubs): Stash params in link hash table, and move
4826 some local vars into the link hash table too. For shared links,
4827 trundle over function syms, generating export stubs. Handle
4828 PCREL22F branches. Break out stub creation code from here..
4829 (hppa_add_stub): .. to here. New function.
4830 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
4831 call the bfd linker. Use elf_gp to record global pointer.
4832 Calculate a value from sections if $global$ is missing.
4833 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
4834 (elf32_hppa_gc_mark_hook): New function.
4835 (elf_backend_gc_mark_hook): Define.
4836 (elf32_hppa_gc_sweep_hook): New function.
4837 (elf_backend_gc_sweep_hook): Define.
4838 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
4839 Add rel to args, and remove howto, input_bfd, offset, addend,
4840 sym_name as we can recalculate these locally. Handle calls to
4841 dynamic objects, extra PIC relocs, PCREL22F branches. Change
4842 handling of undefined weak syms. Check that stubs are in range.
4843 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
4844 message on hitting a DPREL21L reloc that needs fixing. Subtract
4845 off PC for PCREL14F. Break out code that does a stub lookup from
4847 (hppa_get_stub_entry): ..to here. New function.
4848 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
4849 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
4851 (elf32_hppa_finish_dynamic_sections): New function.
4852 (elf_backend_finish_dynamic_sections): Define.
4853 (elf_backend_final_write_processing) Define.
4854 (hppa_handle_PIC_calls): New function.
4855 (elf32_hppa_build_stubs): Call it. Pass link_info to
4856 hppa_build_one_stub.
4857 (elf32_hppa_create_dynamic_sections): New function
4858 to create .plt and .got then set .plt flags correctly.
4859 (elf_backend_create_dynamic_sections): Define.
4860 (elf32_hppa_object_p): New function.
4861 (elf_backend_object_p): Define.
4862 (elf32_hppa_elf_get_symbol_type): New function.
4863 (elf_backend_get_symbol_type): Define.
4864 (elf_backend_can_gc_sections): Define.
4865 (elf_backend_want_got_plt): Define.
4866 (elf_backend_plt_alignment): Set to 2.
4867 (elf_backend_plt_readonly): Define.
4868 (elf_backend_want_plt_sym): Define.
4869 (elf_backend_got_header_size): Reserve one entry.
4871 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
4872 (elf32_hppa_size_stubs): Pass in multi_subspace.
4873 (elf32_hppa_set_gp): Declare.
4875 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
4876 (bfd_get_unique_section_name): New function.
4877 * bfd-in2.h: Regenerate.
4879 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
4880 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
4883 From David Huggins-Daines <dhd@linuxcare.com>
4884 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
4885 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
4886 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
4887 been updated in finish_dynamic_symbol before modifying function
4890 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
4891 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
4892 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
4893 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
4894 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
4895 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
4896 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
4897 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
4899 From David Huggins-Daines <dhd@linuxcare.com>
4900 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
4901 style of local labels as well.
4903 2000-09-03 Philip Blundell <philb@gnu.org>
4905 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
4906 references to undefined symbols in debugging sections.
4908 2000-09-02 H.J. Lu <hjl@gnu.org>
4910 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
4911 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
4912 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
4915 2000-09-02 Jason Eckhardt <jle@cygnus.com>
4917 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
4918 (elf32_i860_is_local_label_name): New function and prototype.
4920 2000-09-02 Nick Clifton <nickc@redhat.com>
4922 * configure.in: Increase version number to 2.10.91.
4923 * configure: Regenerate.
4924 * aclocal.m4: Regenerate.
4925 * config.in: Regenerate.
4926 * po/bfd.pot: Regenerate.
4928 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4930 * elf.c (_bfd_elf_make_section_from_shdr): Add
4931 .gnu.linkobce.wi. to the list of debug section names.
4933 2000-09-02 Nick Clifton <nickc@redhat.com>
4935 * dwarf2.c (find_debug_info): New function: Locate a section
4936 containing dwarf2 debug information.
4937 (bfd_dwarf2_find_nearest_line): Find all sections containing
4938 debug information and include them in the stash.
4940 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4942 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
4943 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
4944 (sh_reloc_map): Add new relocs.
4945 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
4946 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
4947 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
4948 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
4950 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
4951 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
4952 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
4953 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
4954 New array constants.
4955 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
4957 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
4958 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
4959 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
4960 elf_sh_plt_reloc_offset): Define.
4961 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
4962 elf_sh_link_hash_table): New structs.
4963 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
4964 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
4966 (elf_backend_create_dynamic_sections,
4967 bfd_elf32_bfd_link_hash_table_create,
4968 elf_backend_adjust_dynamic_symbol,
4969 elf_backend_size_dynamic_sections,
4970 elf_backend_finish_dynamic_symbol,
4971 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
4972 elf_backend_plt_readonly, elf_backend_want_plt_sym,
4973 elf_backend_got_header_size, elf_backend_plt_header_size):
4975 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
4976 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
4978 * bfd-in2.h, libbfd.h: Rebuilt.
4980 2000-09-01 Alan Modra <alan@linuxcare.com.au>
4982 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
4985 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
4987 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
4988 not initialized, set them to indicate the SH1 instruction set.
4990 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4992 * acinclude.m4: Include libtool and gettext macros from the
4994 * aclocal.m4, configure: Rebuilt.
4996 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
4998 * elf.c: Eliminate references to __sparcv9 macro; replace with
4999 autoconf variables HAVE_PSINFO32_T etc.
5000 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
5001 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
5003 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
5004 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
5005 * aclocal.m4: Ditto.
5006 * configure: Regenerate.
5008 2000-08-27 Alan Modra <alan@linuxcare.com.au>
5010 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
5011 for any shared link, not just shared -Bsymbolic.
5012 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
5013 any shared link, and pass link info to it.
5014 (elf_i386_size_dynamic_sections): Update comment.
5015 (elf_i386_discard_copies): Modify to discard relocs for symbols
5016 that have been forced local.
5017 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
5018 that have been forced local.
5020 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
5022 * elflink.h (elf_link_add_object_symbols): Allow common
5023 symbols to have an alignment of 1 if explicitly requested, and
5024 not overridden by other definitions.
5026 2000-08-22 Doug Kwan <dkwan@transmeta.com>
5028 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
5029 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
5031 2000-08-22 H.J. Lu <hjl@gnu.org>
5033 * elf-bfd.h (elf_link_hash_table): Add runpath.
5035 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
5036 * bfd-in2.h: Rebuilt.
5038 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
5039 "runpath" field to NULL.
5040 (bfd_elf_get_runpath_list): New function.
5042 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
5045 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
5047 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
5048 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
5049 explicitly. Improve validation of r_type.
5051 2000-08-21 H.J. Lu <hjl@gnu.org>
5053 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
5054 dynamic allocated content space. Add a comment to remind us that
5055 one day this ought to be fixed.
5056 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5057 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5058 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
5060 2000-08-21 Jason Eckhardt <jle@cygnus.com>
5062 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
5063 field with the newly relocated value instead of adding it to the
5064 existing immediate field.
5065 (elf32_i860_relocate_splitn): Likewise.
5066 (elf32_i860_relocate_highadj): Likewise.
5068 2000-08-16 Jason Eckhardt <jle@cygnus.com>
5070 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
5071 was previously just a stub).
5073 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
5075 * elflink.c (_bfd_elf_create_got_section): Don't abort().
5077 (_bfd_elf_create_dynamic_sections): Likewise.
5079 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
5081 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
5082 for undefined symbols to be the beginning of the section.
5084 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
5085 four extra entries at the beginning of the .rela.plt section.
5086 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
5087 section to account for the four reserved entries in the .plt section.
5089 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
5091 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
5092 to the list of NOPs we recognize after a branch-and-link.
5093 Use the ori NOP when one is needed.
5095 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
5098 2000-08-14 Jim Wilson <wilson@cygnus.com>
5100 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
5101 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
5102 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
5105 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
5107 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
5109 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5111 * elf32-i860.c (elf32_i860_relocate_section): New function.
5112 (i860_final_link_relocate): New function.
5113 (elf32_i860_relocate_splitn): New function.
5114 (elf32_i860_relocate_pc16): New function.
5115 (elf32_i860_relocate_highadj): New function.
5116 (elf32_i860_howto): Minor adjustments to some relocations.
5117 (elf_info_to_howto_rel): Define.
5118 (elf_backend_relocate_section): Define.
5120 2000-08-10 Nick Clifton <nickc@cygnus.com>
5122 * elf32-arm.h: Fix formatting.
5124 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
5126 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
5128 2000-08-08 Jason Eckhardt <jle@cygnus.com>
5130 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
5132 2000-08-07 Kazu Hirata <kazu@hxi.com>
5134 * ieee.c (ieee_write_debug_part): Rewrite a comment.
5135 * elf64-ia64.c: Fix a typo.
5137 2000-08-05 Jason Eckhardt <jle@cygnus.com>
5139 * elf32-i860.c (elf32_i860_howto_table): New structure.
5140 (lookup_howto): New function.
5141 (elf32_i860_reloc_type_lookup): New function.
5142 (elf32_i860_info_to_howto_rela): New function.
5143 (elf_code_to_howto_index): New structure.
5144 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
5145 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
5146 elf32_i860_reloc_type_lookup.
5148 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
5150 * som.c (struct fixup_format): Constify `format'.
5151 (som_hppa_howto_table): Use SOM_HOWTO macro.
5152 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
5153 (som_bfd_reloc_type_lookup): Likewise.
5154 (compare_subspaces): Remove unused `count1', `count2'.
5155 (som_begin_writing): Remove unused `total_reloc_size'.
5156 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
5157 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
5158 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
5159 (som_find_nearest_line): Decorate unused parameter(s).
5160 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
5161 (som_bfd_link_split_section): Likewise.
5163 2000-08-03 Nick Clifton <nickc@cygnus.com>
5165 * section.c: Restore backed out code.
5166 * elf.c: Restore backed out code.
5167 (copy_private_bfd_data): Fix bug preventing stipped dynamic
5168 binaries from working.
5169 * bfd-in2.h: Regenerate.
5171 2000-08-03 H.J. Lu <hjl@gnu.org>
5173 * section.c: Back out the change made by Nick Clifton
5174 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
5176 * bfd-in2.h: Likewise.
5179 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
5181 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
5183 2000-07-31 Jason Eckhardt <jle@cygnus.com>
5185 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
5186 * bfd-in2.h, libbfd.h: Regenerate.
5188 2000-07-31 Nick Clifton <nickc@cygnus.com>
5190 * section.c (struct sec): Add new boolean field 'segment_mark'.
5191 (STD_SECTION): Initialise new field to zero.
5193 * bfd-in2.h: Regenerate.
5195 * elf.c (copy_private_bfd_data): Reorganise section to segment
5196 mapping to cope with moved sections requiring new segments,
5197 and overlapping segments.
5198 (SEGMENT_END): New macro: Return the end address of a segment.
5199 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
5200 contains a section by comparing their VMA addresses.
5201 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
5202 contains a section by comparing their LMA addresses.
5203 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
5204 section should be included in a segment.
5205 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
5206 follows another in memory.
5207 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
5210 2000-07-22 Jason Eckhardt <jle@cygnus.com>
5212 * cpu-i860.c: Added comments.
5214 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
5215 bfd_elf32_i860_little_vec.
5216 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
5217 (ELF_MAXPAGESIZE): Changed to 4096.
5219 * targets.c (bfd_elf32_i860_little_vec): Declaration of
5221 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
5223 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
5224 config for little endian elf32 i860.
5225 (targ_defvec): Define for the new config above
5226 as "bfd_elf32_i860_little_vec".
5227 (targ_selvecs): Define for the new config above
5228 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
5230 * configure.in (bfd_elf32_i860_little_vec): Added recognition
5233 * configure: Regenerated.
5235 2000-07-27 H.J. Lu <hjl@gnu.org>
5237 * elflink.h (elf_merge_symbol): Take one more argument,
5238 dt_needed, to indicate if the symbol comes from a DT_NEEDED
5239 entry. Don't overide the existing weak definition if dt_needed
5241 (elf_link_add_object_symbols): Pass dt_needed to
5242 elf_merge_symbol ().
5244 2000-07-27 Nick Clifton <nickc@cygnus.com>
5246 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
5249 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
5251 * configure.host (*-*-aix*): AIX has 'long long' always.
5253 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
5254 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
5255 (xcoff_write_archive_contents_big): Don't update the offset
5256 of the symbol table, xcoff_write_armap will do it.
5258 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
5260 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
5261 of dynobj for SGI_COMPAT checks.
5263 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5265 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
5266 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
5267 * bfd-in2.h: Regenerate.
5269 2000-07-21 Nick Clifton <nickc@cygnus.com>
5271 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
5272 range symbol indices in relocs and issue an error message.
5274 2000-07-20 H.J. Lu <hjl@gnu.org>
5276 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
5277 info->new_dtags when setting DT_FLAGS_1. It will only be set
5278 by the new linker options. It shouldn't break anything.
5280 2000-07-20 H.J. Lu <hjl@gnu.org>
5282 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
5283 only if info->new_dtags is true.
5285 2000-07-20 H.J. Lu <hjl@gnu.org>
5287 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
5288 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
5290 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5292 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
5293 (ALL_MACHINES_CFILES): Add cpu-cris.c.
5294 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
5295 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
5296 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
5297 * Makefile.in: Rebuild.
5298 * aclocal.m4: Rebuild.
5299 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
5300 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
5301 (bfd_cris_arch): Declare.
5302 (bfd_archures_list): Add bfd_cris_arch.
5303 * bfd-in2.h: Rebuild.
5304 * config.bfd: (cris-*-*): New target.
5305 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
5306 * configure: Rebuild.
5307 * elf.c (prep_headers): Add bfd_arch_cris.
5308 * libbfd.h: Rebuild.
5309 * libaout.h (enum machine_type): Add M_CRIS.
5310 * reloc.c: Add CRIS relocations.
5311 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
5312 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
5313 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
5314 * po/POTFILES.in, po/bfd.pot: Regenerate.
5316 2000-07-19 H.J. Lu <hjl@gnu.org>
5318 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
5319 DF_TEXTREL if DT_TEXTREL is set.
5320 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
5321 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
5322 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5323 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
5324 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
5325 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5326 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
5327 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
5328 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
5329 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
5331 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
5332 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
5334 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
5336 2000-07-19 H.J. Lu <hjl@gnu.org>
5338 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
5339 * bfd-in2.h: Rebuild.
5341 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
5342 (elf_dt_soname): New.
5344 * elf.c (bfd_elf_set_dt_needed_soname): New.
5346 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
5347 entry if the shared object loaded by DT_NEEDED is used to
5348 resolve the reference in a regular object.
5350 2000-07-19 H.J. Lu <hjl@gnu.org>
5352 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
5353 DT_DEPAUDIT and DT_AUDIT as strings.
5355 2000-07-19 Nick Clifton <nickc@cygnus.com>
5357 * format.c: Fix formatting.
5359 2000-07-19 H.J. Lu <hjl@gnu.org>
5361 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
5363 2000-07-19 H.J. Lu <hjl@gnu.org>
5365 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
5366 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
5367 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
5368 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
5369 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
5370 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
5371 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
5373 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
5375 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
5376 renamed functions from here...
5377 (assign_section_numbers): Use renamed functions.
5378 (prep_headers): Use renamed functions.
5380 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
5381 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
5382 * bfd-in2.h: Regenerate.
5384 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
5386 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
5387 parenthesis in if statement.
5389 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
5391 Enable the support for Traditional MIPS.
5392 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
5393 return ict_none appropriately for traditional mips targets.
5394 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
5395 (STUB_MOVE): Conditionalize for traditonal mips.
5396 (STUB_LI16): Likewise.
5397 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
5398 room for RTPROC header.
5399 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
5400 the permission for the PT_DYNAMIC as read, write and execute.
5401 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
5402 for traditonal mips.
5403 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
5404 _DYNAMIC_LINKING for traditonal mips.
5405 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
5406 in case of traditonal mips.
5407 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
5408 entry is required. For a function if PLT is not required then set the
5409 corresponding hash table entry to 0.
5410 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
5412 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
5413 shared object set the value to 0.
5414 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
5415 _DYNAMIC_LINKING for traditonal mips.
5416 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
5417 for traditonal mips.
5419 2000-07-15 H.J. Lu <hjl@gnu.org>
5421 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
5423 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5425 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
5426 out a structure that is BFD_IN_MEMORY.
5428 2000-07-11 Alan Modra <alan@linuxcare.com.au>
5430 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
5431 bfd pointer. Print section id instead of bfd pointer for local
5432 syms. Prefix addend with `+' for global syms as well as local.
5433 Correct calculation of name component lengths.
5434 (elf64_hppa_check_relocs): Update call to get_dyn_name.
5436 From David Huggins-Daines <dhd@linuxcare.com>
5437 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
5438 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
5439 (elf64_hppa_modify_segment_map): Likewise.
5441 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
5443 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
5444 addresses to be "naturally" sign extended. Return -1 if unknown.
5445 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
5446 * bfd-in2.h: Regenerate.
5448 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
5450 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
5451 and ECOF_SIGNED_64 to list ways to extract an offset.
5452 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
5453 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
5455 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
5456 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
5458 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
5460 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
5461 bfd_get_start_address.
5462 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
5463 (elf_swap_ehdr_out): Ditto.
5465 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
5467 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
5468 compatibility with older binutils.
5470 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5472 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
5473 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
5475 From Ryan Bradetich <rbradetich@uswest.net>
5476 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
5477 (parse_line_table): Ditto.
5478 (_bfd_dwarf1_find_nearest_line): Ditto.
5479 * syms.c (cmpindexentry): Remove extra `*' from params.
5481 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
5483 * elf32-mips.c (sort_dynamic_relocs): New Function.
5484 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
5485 via qsort to sort the dynamic relocations in increasing r_symndx
5488 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5490 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
5491 ATTRIBUTE_UNUSED to unused args.
5492 (get_opd): Likewise.
5493 (get_plt): Likewise.
5494 (get_dlt): Likewise.
5495 (get_stub): Likewise.
5496 (elf64_hppa_adjust_dynamic_symbol): Likewise.
5497 (elf64_hppa_link_output_symbol_hook): Likewise.
5498 (elf64_hppa_check_relocs): Delete unused var.
5499 (elf64_hppa_size_dynamic_sections): Likewise.
5500 (elf64_hppa_finalize_opd): Likewise.
5501 (elf64_hppa_finalize_dynreloc): Likewise.
5502 (elf64_hppa_modify_segment_map): Likewise.
5503 (elf64_hppa_finish_dynamic_sections): Likewise.
5505 * elf-hppa.h (elf_hppa_final_write_processing): Add
5506 ATTRIBUTE_UNUSED to unused args.
5507 (elf_hppa_final_link_relocate): Likewise.
5508 (elf_hppa_record_segment_addrs): Add paretheses.
5509 (elf_hppa_relocate_section): Constify dyn_name.
5511 From David Huggins-Daines <dhd@linuxcare.com>
5512 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
5513 rearrange case statement so that it gets preferred to 32-bit ones.
5515 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
5516 asection->id instead of address of asection structure.
5517 (elf32_hppa_size_stubs): Likewise.
5519 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
5520 for .init* and .fini*.
5522 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
5523 and addends used in stub names to 32 bits.
5524 (elf32_hppa_size_stubs): Likewise.
5526 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
5527 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
5528 not bfd_put_64. Fix minor comment typo and formatting.
5530 Changes to create multiple linker stubs, positioned immediately
5531 before the section where they are required.
5532 * elf32-hppa.c: Don't include hppa_stubs.h.
5533 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
5534 (elf32_hppa_stub_hash_table): Delete.
5535 (elf32_hppa_link_hash_entry): Delete.
5536 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
5537 stub_hash_table, and store the struct here rather than a pointer.
5538 Delete output_symbol_count. Add offset array. Change
5539 global_value to a bfd_vma.
5540 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
5541 (elf32_hppa_stub_hash_traverse): Delete.
5542 (elf32_hppa_name_of_stub): Delete.
5543 (elf32_hppa_link_hash_lookup): Delete.
5544 (elf32_hppa_link_hash_traverse): Delete.
5545 (elf32_hppa_stub_hash_table_init): Delete.
5546 (elf32_hppa_size_of_stub): Pass input section and offset rather
5547 than location and calculate location here. Don't pass name as all
5548 stubs are now the same size.
5549 (elf32_hppa_stub_hash_newfunc): Init new fields.
5550 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
5552 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
5553 comparing against ints. Rewrite stub handling code.
5554 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
5555 Case enums to int before comparing against ints. Remove
5556 bfd_reloc_dangerous case.
5557 (elf32_hppa_build_one_stub): Rewrite.
5558 (elf32_hppa_size_one_stub): New function.
5559 (elf32_hppa_build_stubs): Rewrite.
5560 (elf32_hppa_size_stubs): Pass in linker call-back functions.
5561 Rewrite stub-handling specific code.
5563 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
5565 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
5567 * hppa_stubs.h: Delete.
5568 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
5569 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
5570 * Makefile.in: Regenerate.
5572 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
5575 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
5577 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
5578 and section name for bfd_reloc_notsupported error message.
5579 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
5580 bfd_reloc_notsupported.
5581 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
5583 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
5584 undefined weak symbols for all relocs.
5585 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
5586 offsets are relative to one past the delay slot.
5587 (elf32_hppa_size_stubs): Account for reloc addend when calculating
5588 branch destination. Put addend into stub name too.
5589 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
5590 adjust by 8 when deciding whether a linker stub is needed. Put
5591 addend into stub name as for above.
5593 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
5594 various args and vars.
5595 (elf32_hppa_bfd_final_link_relocate): Here too.
5596 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
5597 inner block var to avoid shadowing.
5599 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
5601 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
5602 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
5603 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
5605 * libhppa.h: Change practically all unsigned ints to plain ints.
5606 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
5609 From Ryan Bradetich <rbradetich@uswest.net>
5610 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
5611 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
5613 From David Huggins-Daines <dhd@linuxcare.com>
5614 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
5615 to the new OP_* ones.
5617 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
5618 error exit. Bail out earlier on plabel relocs that we aren't
5619 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
5620 string, and then don't free our copy.
5621 (elf32_hppa_build_one_stub): Make insn unsigned int.
5623 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
5624 available with BL, not BE and BLE.
5626 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
5627 code for elf arg relocs.
5628 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
5629 argument with elf_link_hash_entry h. Handle undefined weak
5630 symbols. Move $global$ lookup from here...
5631 (elf32_hppa_relocate_section): ...to here. Return correct error
5632 message for non-handled relocs.
5633 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
5634 wrong test was -0x3ffff to +0x40000.
5636 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
5637 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
5638 Handle them as such.
5639 (elf_hppa_relocate_insn): Fix a typo.
5641 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
5642 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
5643 assemble_17, assemble_21): Delete.
5644 Supply defines for all 64 possible opcodes.
5645 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
5646 formats. Handle COMICLR.
5647 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
5650 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
5651 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
5652 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
5654 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
5655 the local syms - did this code get deleted accidentally? Ignore
5656 undefined and undefweak syms.
5658 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
5659 block. Use it instead of elf64_hppa_hash_table (info).
5660 (elf_hppa_final_link_relocate): Use hppa_info instead of
5661 elf64_hppa_hash_table (info).
5663 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
5664 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
5665 (hppa_rebuild_insn): Mask immediate bits here instead.
5666 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
5668 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5670 * section.c (struct sec): Add id field. Tidy comment formatting.
5671 (bfd_make_section_anyway): Set id.
5672 (STD_SECTION): Init id too.
5673 Change CONST to const throughout.
5674 * archures.c (bfd_arch_info): Tidy comment.
5675 (bfd_arch_list): Change a CONST to const.
5676 * libbfd-in.h: Tidy comments and replace CONST with const.
5677 * elf-bfd.h: Likewise.
5678 * libbfd.h: Regenerate.
5679 * bfd-in2.h: Regenerate.
5680 * libcoff.h: Regenerate.
5682 2000-07-07 DJ Delorie <dj@redhat.com>
5684 * archive.c (_bfd_write_archive_contents): Add an informative
5687 2000-07-06 Kazu Hirata <kazu@hxi.com>
5689 * srec.c: Fix formatting.
5691 2000-06-05 DJ Delorie <dj@redhat.com>
5695 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
5697 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
5698 value of PC-relative offsets.
5700 2000-07-03 Jim Wilson <wilson@cygnus.com>
5702 * elf64-alpha.c (alpha_elf_size_info): New.
5703 (elf_backend_size_info): Define to alpha_elf_size_info.
5704 * elfcode.h (elf_size_info): Change hash bucket size to 4.
5706 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
5708 * elf32-mips.c: Include elf32-target.h again for the traditional
5711 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
5713 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
5714 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
5715 (avr_info_to_howto_rela): Likewise.
5716 (elf32_avr_gc_mark_hook): Likewise.
5717 (elf32_avr_gc_sweep_hook): Likewise.
5718 (elf32_avr_relocate_section): Likewise.
5720 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
5722 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
5723 an external symbol for a non-shared, non-relocatable link.
5725 2000-07-03 Nick Clifton <nickc@redhat.com>
5727 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
5728 is an external symbol.
5729 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
5732 2000-07-03 Kazu Hirata <kazu@hxi.com>
5734 * reloc16.c: Fix formatting.
5736 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5738 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
5739 to add a new target for traditional mips i.e
5740 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
5741 * configure.in: Likewise.
5742 * configure: Rebuild.
5743 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
5745 (bfd_elf32_tradlittlemips_vec): Likewise.
5746 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
5747 to see that elfNN_bed does not get redefined even if the target file
5748 is included twice for a chip. See elf32-mips.c.
5750 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5752 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5753 (CLEANFILES): Add DEPA.
5754 * Makefile.in: Regenerate.
5756 2000-06-30 DJ Delorie <dj@cygnus.com>
5758 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
5759 can't assume the PE header is at 0x80.
5761 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
5763 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
5765 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
5767 * go32stub.h: Update stub.
5769 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5771 * archures.c (bfd_mach_avr5): Define.
5772 * bfd-in2.h (bfd_mach_avr5): Define.
5773 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
5774 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
5775 (compatible): Update comment. Add missing test.
5776 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
5777 for avr2 and avr4. Simplify 8K wrap code.
5778 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
5779 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
5781 2000-06-26 Kazu Hirata <kazu@hxi.com>
5783 * coff-h8300.c: Fix formatting.
5784 * cpu-h8300.c: Likewise.
5786 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
5788 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
5789 for local symbols whose names are unknown.
5791 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5793 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5795 * Makefile.in: Regenerate.
5796 * doc/Makefile.in: Regenerate.
5798 2000-06-20 H.J. Lu <hjl@gnu.org>
5800 * Makefile.am: Rebuild dependency.
5801 * Makefile.in: Rebuild.
5803 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5805 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
5806 (elf_backend_copy_indirect_symbol): Map to the new function.
5808 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5810 * archive.c (normalize): Correct pointer comparison when checking
5812 (bfd_bsd_truncate_arname): Likewise.
5813 (bfd_gnu_truncate_arname): Likewise.
5815 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
5817 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
5818 sections elf_{text,data}_{section,symbol}.
5819 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
5820 (_bfd_mips_elf_hide_symbol): New function.
5821 (elf_backend_hide_symbol): Map to the new function.
5822 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
5823 definitions of mips_elf_{text,data}_{section,symbol}.
5824 (mips_elf_local_relocation_p): Try to find the direct symbol
5825 based on new check_forced argument.
5826 (mips_elf_calculate_relocation): Use new version of
5827 mips_elf_local_relocation_p.
5828 (mips_elf_relocate_section): Likewise.
5829 (_bfd_mips_elf_relocate_section): Likewise.
5830 (mips_elf_sort_hash_table): Only assert that have enough GOT
5832 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
5833 entry if the relocation based on the new external argument.
5834 (mips_elf_create_dynamic_relocation): Assert that we have a
5835 section contents allocated where we can swap out the dynamic
5837 (mips_elf_calculate_relocation): Find the real hash-table entry
5838 correctly by using h->root.root.type. Only create a dynamic
5839 relocation entry if the symbol is defined in a shared library.
5840 Create an external GOT entry for the GOT16 relocation if the
5841 symbol was forced local.
5842 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
5843 dynamic index if the symbol was forced local.
5845 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5847 * elf32-mips.c: Fix typos in comments.
5849 2000-06-19 Mark Kettenis <kettenis@gnu.org>
5851 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
5854 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5856 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
5857 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
5858 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
5859 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
5860 (bfd_elf32_m68hc11_vec): Likewise.
5861 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
5862 Supports 68hc11 & 68hc12 at the same time.
5863 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
5865 (bfd_elf32_m68hc11_vec): Likewise.
5866 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
5867 * archures.c (bfd_m68hc12_arch): Define and register in global list
5868 (bfd_m68hc11_arch): Likewise.
5869 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
5870 BFD_RELOC_M68HC11_3B): Define.
5871 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
5872 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
5874 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
5876 * elf_bfd.h (struct elf_backend_data): Add info argument to
5877 elf_backend_hide_symbol.
5878 (_bfd_elf_link_hash_hide_symbol): Likewise.
5879 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
5880 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
5881 * elflink.h (elf_link_add_object_symbols): Likewise.
5882 (elf_link_assign_sym_version): Likewise.
5884 2000-06-18 H.J. Lu <hjl@gnu.org>
5886 * coff-i386.c (coff_i386_reloc): Don't return in case of
5887 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
5888 Compensate PE relocations when linking with non-PE object
5889 files to generate a non-PE executable.
5891 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
5893 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
5894 GOT entries if we're doing a static link or -Bsymbolic link.
5896 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
5898 * elflink.h (elf_link_adjust_relocs): Check for and call backend
5899 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
5901 (elf_link_output_relocs): Likewise.
5902 (elf_reloc_link_order): Likewise.
5904 2000-06-16 Nicholas Duffek <nsd@redhat.com>
5906 * archures.c (enum bfd_architecture): #define constants for
5907 PowerPc and RS6000 machine numbers.
5908 * bfd-in2.h: Regenerate.
5909 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
5910 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
5911 and RS6000 machine numbers using #defined constants from
5913 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
5914 machine numbers using #defined constants from archures.c. Add
5915 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
5916 64-bit words in 620 entry.
5917 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
5919 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
5921 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
5923 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
5924 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
5925 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
5927 2000-06-16 Nicholas Duffek <nsd@redhat.com>
5929 * bfd-in.h (bfd_family_coff): Define.
5930 * bfd-in2.h: Regenerate.
5931 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
5932 coff_find_nearest_line): Check COFFness using bfd_family_coff()
5933 instead of bfd_target_coff_flavour.
5934 * cofflink.c (_bfd_coff_final_link): Likewise.
5935 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
5936 exclude XCOFF files.
5937 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
5939 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
5940 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
5941 * xcofflink.c (XCOFF_XVECP): Delete.
5942 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
5943 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
5944 bfd_xcoff_record_link_assignment,
5945 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
5946 check for bfd_target_xcoff_flavour.
5948 2000-06-16 Nicholas Duffek <nsd@redhat.com>
5950 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
5952 (read_hdr): New function.
5953 (rs6000coff_core_p): Store mstsave or __context64 struct instead
5954 of trying to extract individual registers. Set abfd->arch_info
5955 to match the architecture that created the core file.
5956 (rs6000coff_get_section_contents): Delete.
5957 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
5959 2000-06-14 H.J. Lu <hjl@gnu.org>
5961 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
5964 2000-06-13 H.J. Lu <hjl@gnu.org>
5966 * configure: Regenerate.
5968 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
5970 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
5973 2000-06-08 David O'Brien <obrien@FreeBSD.org>
5975 * configure.in (VERSION): Update to show this is the CVS mainline.
5977 2000-06-07 Alan Modra <alan@linuxcare.com.au>
5979 * elf32-d10v.c: Include elf/d10v.h
5980 (enum reloc_type): Delete.
5981 * elf32-d30v.c: Include elf/d30v.h
5982 (enum reloc_type): Delete.
5984 * Makefile.am: Run "make dep-am" to regenerate dependencies.
5985 * Makefile.in: Regenerate.
5987 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
5988 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
5989 move HOWTOs into elf_howto_table.
5990 (R_386_standard, R_386_ext_offset): Define.
5991 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
5992 (elf_i386_reloc_type_lookup): Modify calculation of index into
5993 elf_howto_table since we've removed the padding.
5994 (elf_i386_info_to_howto_rel): Likewise.
5995 (elf_i386_relocate_section): Likewise.
5997 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
5999 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
6001 2000-06-05 H.J. Lu <hjl@gnu.org>
6003 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
6004 an error when seeing an undefined symbol with hidden/internal
6005 attribute. It is handled in *_relocate_section ().
6007 2000-06-05 H.J. Lu <hjl@gnu.org>
6009 * elflink.h (elf_fix_symbol_flags): Follow the link for the
6010 indirect symbol for the ELF_LINK_NON_ELF bit.
6011 (elf_link_output_extsym): Don't output the indirect symbol even
6012 if the ELF_LINK_NON_ELF bit is set.
6014 2000-06-01 J.T. Conklin <jtc@redback.com>
6016 * config.bfd (i[3456]86-*-netbsdelf*): New target.
6017 (i[3456]86-*-netbsdaout*): New target.
6018 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
6019 (i[3456]86-*-openbsd*): Likewise.
6021 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
6023 * trad-core.c: From hpux-core.c, include <dirent.h> or
6024 <sys/ndir.h> when possible.
6026 2000-05-31 Ulrich Drepper <drepper@redhat.com>
6028 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
6029 definitions. We must not assume they are sorted in the file
6030 according to their index numbers.
6032 2000-05-31 Alan Modra <alan@linuxcare.com.au>
6034 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
6035 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
6036 R_PARISC_DIR17F are for absolute branches; Handle them as such.
6038 2000-05-30 Nick Clifton <nickc@cygnus.com>
6040 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
6041 80960CA, 80960MC as valid machine names.
6043 2000-05-30 H.J. Lu <hjl@gnu.org>
6045 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
6046 visibility bits if the symbol is undefined. Correctly handle
6047 weak undefined symbols with hidden and internal attributes.
6049 * elflink.h (elf_link_add_object_symbols): Always turn the
6050 symbol into local if it has the hidden or internal attribute.
6052 2000-05-29 Philip Blundell <philb@gnu.org>
6054 * ppcboot.c: Add packed attribute if compiling with GCC.
6056 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
6058 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
6060 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
6062 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
6063 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
6064 corefile on a 64-bit (Sparc Solaris) host. Also clean up
6067 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6069 * Makefile.am: Update dependencies with "make dep-am"
6070 * Makefile.in: Regenerate.
6072 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
6073 bindtextdomain): Replace defines with those from intl/libgettext.h
6074 to quieten gcc warnings.
6076 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
6078 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
6080 * archive.c (normalize, bfd_bsd_truncate_arname,
6081 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
6082 file names with backslashes.
6084 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
6087 * sysdep.h: Include filenames.h.
6089 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6091 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
6093 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6095 * elf64-sparc.c (sparc64_elf_relax_section): New.
6096 (sparc64_elf_relocate_section): Optimize tail call into branch always
6098 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6099 (elf32_sparc_relax_section): New.
6101 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6103 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
6104 Remove unusued variables.
6105 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
6106 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
6107 previous fix, so that shared libs really don't influence targets
6108 extension mask and memory model.
6110 2000-05-23 H.J. Lu <hjl@gnu.org>
6112 * elf64-alpha.c (elf64_alpha_relocate_section): Check
6113 h->root.other not h->other.
6114 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6116 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
6118 2000-05-23 H.J. Lu <hjl@gnu.org>
6120 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
6121 undefined symbol with the non-default visibility attributes.
6122 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
6123 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
6124 * elf32-i370.c (i370_elf_relocate_section): Likewise.
6125 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
6126 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
6127 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6128 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
6129 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6130 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
6131 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
6132 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
6134 2000-05-22 Richard Henderson <rth@cygnus.com>
6136 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
6137 PCREL22, PCREL64I. Zero size of special relocs.
6138 (elf64_ia64_reloc_type_lookup): Likewise.
6139 (USE_BRL, oor_brl, oor_ip): New.
6140 (elf64_ia64_relax_section): New.
6141 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
6142 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
6143 (elf64_ia64_relocate_section): Likewise.
6144 (bfd_elf64_bfd_relax_section): New.
6145 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
6146 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
6147 * bfd-in2.h, libbfd.h: Regenerate.
6149 2000-05-22 Nick Clifton <nickc@cygnus.com>
6151 * configure.in : Add peigen.lo to MIPS PE targets.
6152 * configure: Regenerate.
6154 2000-05-22 Momchil Velikov <velco@fadata.bg>
6156 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
6157 only if it is known for both input and output bfds. Separate
6158 error message strings as in some languages, it may be necessary
6159 to change more than one place in the string to change between
6162 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
6163 endianess checks, call _bfd_generic_verify_endian_match() instead.
6165 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
6167 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
6169 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
6170 endianess before checking bfd flavours.
6172 2000-05-22 H.J. Lu <hjl@gnu.org>
6174 * elflink.h (elf_link_output_extsym): Clear the visibility
6175 field for symbols not defined locally.
6177 2000-05-18 Alan Modra <alan@linuxcare.com.au>
6179 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6180 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6181 (hppa_rebuild_insn): Mask immediate bits here instead.
6182 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6184 2000-05-18 Momchil Velikov <velco@fadata.bg>
6186 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
6187 relocs for an executable, ensure that they are virtual addresses.
6189 2000-05-18 Jeffrey A Law (law@cygnus.com)
6191 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
6193 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
6194 Rick Gorton <gorton@scrugs.lkg.dec.com>
6196 * elflink.h: Add emitrelocations support: when enabled, relocation
6197 information and relocation sections are put into final output
6198 executables. If the emitrelocations flag is set, do the following:
6199 (elf_bfd_final_link): Emit relocation sections.
6200 (elf_link_input_bfd): Compute relocation section contents.
6201 (elf_gc_sections): Don't clean relocation sections.
6203 2000-05-16 Catherine Moore <clm@cygnus.com>
6205 * som.c (som_decode_symclass): Recognize weak symbols.
6207 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
6209 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
6210 read idata section only from dataoff.
6211 (pe_print_edata): Correctly check for valid eat_member.
6213 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
6215 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
6217 2000-05-14 Philip Blundell <philb@gnu.org>
6219 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
6221 2000-05-12 Alan Modra <alan@linuxcare.com.au>
6223 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
6225 * peigen.c (pe_print_idata): Look for .idata section and print
6226 info even if data directory has zero entries. Read idata section
6227 starting from dataoff, and adjust all data offsets to suit. Cast
6228 all bfd_vma vars to unsigned long before passing to fprintf.
6229 * peigen.c (pe_print_edata): Similarly, look for .edata section
6230 and print info even if data directory has zero entries. Cast
6231 all bfd_vma vars to unsigned long before passing to fprintf.
6233 From Szabolcs Szakacsits <szaka@F-Secure.com>
6234 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
6235 directory size which may be bogus.
6236 * peigen.c (pe_print_edata): Similarly.
6238 2000-05-09 Alan Modra <alan@linuxcare.com.au>
6240 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
6242 (copy_private_bfd_data): Allow for space possibly taken up by elf
6243 headers when calculating segment physical address from lma.
6245 2000-05-08 Alan Modra <alan@linuxcare.com.au>
6247 * versados.c (versados_scan): Init stringlen and pass_2_done.
6249 * trad-core.c (trad_unix_core_file_p): Return
6250 bfd_error_wrong_format rather than bfd_error_file_truncated.
6252 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
6253 add_data_entry. DataDirectory virtual address is relative.
6254 (pe_print_idata): Account for relative DataDirectory virtual
6255 addresses. Don't trash datasize inside POWERPC_LE_PE code.
6256 (pe_print_edata): Similarly.
6258 From Szabolcs Szakacsits <szaka@F-Secure.com>
6259 * peigen.c (dir_names): Add Delay Import Directory.
6260 (pe_print_idata): Always search for bfd section containing
6261 idata address rather than looking up section name. Print this
6262 section name rather than .idata.
6263 (pe_print_edata): Similarly. Also print some fields as %08lx.
6264 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
6267 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
6269 * xcoff.h: Rename to xcoff-target.h
6270 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
6271 * coff-rs6000.c: Ditto.
6272 * coff64-rs6000.c: Ditto.
6273 * coff-pmac.c: Ditto.
6274 * Makefile.in: Regenerate.
6276 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
6278 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
6279 Change U802TOC64MAGIC to U803XTOCMAGIC.
6281 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
6283 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
6284 * bfd-in.h: Prototype bfd_elf_get_arch_size.
6285 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
6287 2000-05-04 Alan Modra <alan@linuxcare.com.au>
6289 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
6291 2000-05-03 Martin v. L
\81öwis <loewis@informatik.hu-berlin.de>
6293 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
6294 hidden and internal symbols.
6295 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
6297 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
6298 assign a PLT or GOT entry to symbols with hidden and
6299 internal visibility.
6301 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
6303 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
6305 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
6307 2000-05-02 H.J. Lu <hjl@gnu.org>
6309 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
6312 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6314 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
6315 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
6317 * Makefile.in: Regenerate.
6319 2000-05-01 Jim Wilson <wilson@cygnus.com>
6321 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
6322 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
6323 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
6324 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
6325 * Makefile.in: Rebuild.
6327 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6329 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
6330 doesn't work very well.
6332 * elf-hppa.h (elf_hppa_internal_shdr): Define.
6333 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
6334 Set hdr->s_type to 1 if ARCH_SIZE == 32.
6335 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
6336 (elf_hppa_info_to_howto): Likewise.
6337 (elf_hppa_info_to_howto_rel): Likewise.
6338 (elf_hppa_reloc_type_lookup): Likewise.
6339 (elf_hppa_is_local_label_name): Likewise.
6340 (elf_hppa_fake_sections): Likewise.
6341 (elf_hppa_final_write_processing): Likewise.
6342 (elf_hppa_howto_table): Fully initialise all entries.
6343 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
6344 (elf_hppa_info_to_howto): Likewise.
6345 (elf_hppa_info_to_howto_rel): Likewise.
6346 (elf_hppa_reloc_type_lookup): Likewise.
6347 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
6348 elf_hppa_unmark_useless_dynamic_symbols,
6349 elf_hppa_remark_useless_dynamic_symbols,
6350 elf_hppa_record_segment_addrs, elf_hppa_final_link,
6351 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
6352 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
6353 elf32-hppa.c mess is cleaned up.
6354 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
6355 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
6356 r_field then call hppa_field_adjust inline func with variable
6357 r_field arg, instead call hppa_field_adjust with fixed arg.
6358 In case R_PARISC_PCREL22F, don't set r_field.
6359 (elf_hppa_relocate_insn): Change args and return type to unsigned
6360 int. Call re_assemble_* funcs to do the work.
6362 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
6365 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
6367 (sign_extend): Mask first before sign extending.
6368 (low_sign_extend): Rewrite without condition expression.
6369 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
6370 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
6371 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
6372 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
6373 result as function return value rather than through pointer arg.
6374 Accept unsigned int args, and return unsigned int.
6375 (re_assemble_3): New. Combines function of dis_assemble_3 with
6376 re-assembly of opcode and immediate.
6377 (re_assemble_12): Likewise.
6378 (re_assemble_16): Likewise.
6379 (re_assemble_17): Likewise.
6380 (re_assemble_21): Likewise.
6381 (re_assemble_22): Likewise.
6382 (hppa_field_adjust): Rewrite and document, paying attention to
6383 size of types and signed/unsigned issues.
6384 (get_opcode): Shift before masking.
6385 (FDLW): Rename to FLDW.
6386 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
6387 (hppa_rebuild_insn): Change args and return value to unsigned
6388 int. Make use of re_assemble_*. Correct case 11.
6390 * dep-in.sed: Handle ../opcodes/.
6391 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
6392 elf64-hppa.h, hppa_stubs.h, xcoff.h.
6393 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
6394 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
6395 elfarm-nabi.lo dependencies outside of auto-dependency area.
6396 Regenerate dependencies.
6397 * Makefile.in: Regenerate.
6399 * configure.in (TRAD_HEADER): Test non-null before
6401 * configure: Regenerate.
6403 * reloc.c: Fix mis-spelling in comment.
6405 2000-05-01 Alan Modra <alan@linuxcare.com.au>
6407 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
6408 * vms.c (vms_openr_next_archived_file): Return NULL.
6410 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6412 * coffcode.h Copy changes mistakenly done to libcoff.h in
6415 2000-04-29 Andreas Jaeger <aj@suse.de>
6417 * libbfd-in.h: Correctly check GCC version.
6418 * bfd-in.h: Likewise.
6419 * libhppa.h: Likewise.
6420 * libbfd.h: Regenerate.
6421 * bfd-in2.h: Regenerate.
6423 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6425 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
6426 coffdu-rs6000.{lo,c}.
6427 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
6429 * Makefile.in: Regenerate.
6430 * xcoff.h: New file.
6431 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
6432 * coff-rs6000.c: Move all declarations and defines that are
6433 common to the xcoff backends into xcoff.h
6434 * coff64-rs6000.c: Ditto,
6436 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6438 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
6439 _bfd_coff_force_symnames in strings and
6440 _bfd_coff_debug_string_prefix_length to their default values.
6441 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
6443 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6445 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
6446 _bfd_coff_force_symnames in strings and
6447 _bfd_coff_debug_string_prefix_length to their default values.
6449 2000-04-27 Alan Modra <alan@linuxcare.com.au>
6451 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
6452 Check local_got_refcounts before dereferencing.
6454 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
6455 before deciding we don't need R_PPC_PLT32 relocation.
6456 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
6459 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
6461 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
6463 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
6464 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
6465 (elf_i386_relocate_section): Allow for .plt to go missing.
6466 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
6467 can use a relative reloc for got as elf_i386_relocate_section.
6468 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
6470 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
6472 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
6474 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
6476 * Makefile.am (coff64-rs6000.lo): New rule.
6477 * Makefile.in: Regenerate.
6478 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
6479 xcoff_is_local_label_name, xcoff_rtype2howto,
6480 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
6481 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
6482 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
6483 (NO_COFF_SYMBOLS): Define.
6484 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
6485 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
6487 (MINUS_ONE): New macro.
6488 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
6490 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
6491 coff_SWAP_aux_out): Map to the new functions.
6492 * coff64-rs6000.c: New file.
6493 * libcoff.h (bfd_coff_backend_data): Add new fields
6494 _bfd_coff_force_symnames_in_strings and
6495 _bfd_coff_debug_string_prefix_length.
6496 (bfd_coff_force_symnames_in_strings,
6497 bfd_coff_debug_string_prefix_length): New macros for above fields.
6498 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
6499 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
6500 of using coff_swap_sym_in directly.
6501 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
6502 (coff_set_flags) Set magic for XCOFF64.
6503 (coff_compute_section_file_positions): Add symbol name length to
6504 string section length if bfd_coff_debug_string_prefix_length is
6506 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
6507 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
6508 using coff_swap_lineno_in directly.
6509 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
6510 and _bfd_coff_debug_string_prefix_length fields.
6511 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
6512 symbol names into strings table when
6513 bfd_coff_force_symnames_in_strings is true.
6514 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
6515 SET_RELOC_VADDR): New macros.
6516 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
6517 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
6519 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
6520 changes within RS6000COFF_C specific code.
6521 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
6522 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
6523 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
6524 Extend existing hack on target name.
6525 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
6527 * coff-tic54x.c (ticof): Keep up to date with new fields
6528 in bfd_coff_backend_data.
6529 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
6530 targ_selvecs to include rs6000coff64_vec for rs6000.
6531 * configure.in: Add rs6000coff64_vec case.
6532 * cpu-powerpc.c: New bfd_arch_info_type.
6534 2000-04-24 Jeffrey A Law (law@cygnus.com)
6536 * config.bfd: Only disable elf32-hppa vectors, not all of the
6537 BSD and OSF configuration support. Provide (disabled) clauses
6539 * configure.in: Add clause for PA64 support.
6540 * configure: Rebuilt.
6542 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
6543 (bfd_elf64_hppa_vec): Declare.
6545 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
6546 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
6547 (elf64-hppa.lo): Add dependencies.
6548 * Makefile.in: Rebuilt.
6550 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
6552 2000-04-24 Jason Eckhardt <jle@cygnus.com>
6554 * libhppa.h (dis_assemble_16): New function.
6555 (pa_arch): Added pa20w element.
6557 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
6559 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
6560 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
6561 bfd_elf64_slurp_reloc_table.
6563 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
6564 definitions to get external names.
6565 (elf_write_relocs): Renamed from write_relocs and make global.
6566 (elf_slurp_reloc_table): Make global.
6567 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
6569 * archive.c (hpux_uid_gid_encode): New function.
6570 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
6571 defined and the ID is greater than 99999.
6572 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
6573 special uid/gid fields into 32 bit values.
6575 2000-04-21 Matthew Green <mrg@cygnus.com>
6577 * config.bfd: Add NetBSD/sparc64 support.
6579 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
6580 David Mosberger <davidm@hpl.hp.com>
6581 Timothy Wall <twall@cygnus.com>
6582 Jim Wilson <wilson@cygnus.com>
6584 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
6585 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
6586 (BFD64_BACKENDS): Add elf64-ia64.lo.
6587 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
6588 (cpu-ia64.lo, elf64-ia64.lo): New rules.
6589 * Makefile.in: Rebuild.
6590 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
6591 (bfd_ia64_arch): Declare.
6592 (bfd_archures_list): Add bfd_ia64_arch.
6593 * bfd-in2.h: Rebuild.
6594 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
6595 * configure: Rebuild.
6596 * configure.host: (ia64-*-linux*): New host.
6597 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
6598 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
6599 * elf.c (prep_headers): Add bfd_arch_ia64.
6600 * libbfd.h: Rebuild.
6601 * reloc.c: Add IA-64 relocations.
6602 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
6604 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
6605 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
6607 2000-04-21 Richard Henderson <rth@cygnus.com>
6609 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
6610 contents when performing a partial link.
6611 (bfd_elf_d30v_reloc_21): Likewise.
6613 2000-04-20 H.J. Lu <hjl@gnu.org>
6615 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
6616 patch to symbols defined by a shared object.
6617 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
6619 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6622 * dwarf2.c (concat_filename): Avoid string literal concatenation.
6623 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
6625 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
6627 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
6628 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
6629 (coff-ia64.lo): Add dependency.
6630 * Makefile.in: Regenerate.
6631 * coff-ia64.c: New file.
6632 * efi-app-ia32.c: Ditto.
6633 * efi-app-ia64.c: Ditto.
6634 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
6635 (coff_set_flags): Ditto.
6636 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
6637 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
6638 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
6639 * configure: Regenerate.
6640 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
6641 (PUT_OPTHDR_IMAGE_BASE): Ditto.
6642 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
6643 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
6644 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
6645 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
6646 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
6647 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
6648 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
6649 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
6650 (GET_PDATA_ENTRY): Ditto.
6651 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
6652 data_start. Use above macros to read fields that are 64 bit wide for
6653 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
6654 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
6655 FileAlignment and SectionAlignment to minimum alignment if they
6657 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
6658 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
6659 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
6660 Use above macros to write fields that are 64 bit wide for
6662 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
6663 5*4 otherwise. This should be right for IA-32 and IA-64, but may
6664 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
6665 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
6666 begin address, end address, and unwind info address only. Use
6667 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
6669 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
6670 HIGH3ADJ relocation names.
6671 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
6672 * targets.c: Declare bfd_efi_app_ia32_vec and
6673 bfd_efi_app_ia64_vec.
6674 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
6675 bfd_efi_app_ia64_vec.
6677 2000-04-17 Timothy Wall <twall@cygnus.com>
6679 * bfd-in2.h: Add prototypes for tic54x load page access.
6680 * bfd-in.h: Regenerate.
6681 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
6682 in customized _set_arch_mach function.
6683 * coffcode.h (coff_set_alignment_hook): Set section load page if
6684 the appropriate macro is defined.
6685 (write_object_contents): Read section load page.
6687 2000-04-13 Alan Modra <alan@linuxcare.com.au>
6689 * elf32-hppa.h: Update copyright date.
6691 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
6692 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
6694 * elf32-d30v.c (MAX32): Don't use LL suffix.
6695 (MIN32): Define in terms of MAX32.
6696 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
6698 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
6701 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
6703 2000-04-12 Alan Modra <alan@linuxcare.com.au>
6705 * dep-in.sed: Match space before file name, not after.
6706 * Makefile.am: Regenerate dependencies.
6707 * Makefile.in: Regenerate.
6709 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
6710 case, allow address wrap-around stupidly removed 2000-03-17. Sign
6711 extend without an if statement.
6713 2000-04-11 Alan Modra <alan@linuxcare.com.au>
6715 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
6717 * elf32-mips.c (gprel16_with_gp): Likewise.
6718 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
6719 here using -0x40000, not (int)0xfffc0000.
6720 (elf32_hppa_size_of_stub): Likewise.
6722 2000-04-11 Timothy Wall <twall@cygnus.com>
6724 * coff-tic54x.c: Now builds with all targets.
6725 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
6726 * Makefile.in: Regenerate.
6727 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
6728 unitialized variable.
6730 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
6732 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6733 --enable-build-warnings option.
6734 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6735 * Makefile.in, configure: Re-generate.
6737 2000-04-07 Nick Clifton <nickc@cygnus.com>
6739 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
6740 BFD_RELOC_THUMB_PCREL_BLX.
6742 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
6743 R_ARM_XPC25 and R_ARM_THM_PC22.
6745 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
6746 R_ARM_XPC25 and R_ARM_THM_XPC22.
6747 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
6748 R_ARM_[XPC25|THM_XPC22].
6750 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
6751 elf/arm-oabi.h to elf/arm.h
6753 * Makefile.am: Fix dependency for elfarm-oabi.c
6754 * Makefile.in: Regenerate.
6756 * bfd-in2.h: Regenerate.
6757 * libbfd.h: Regenerate.
6759 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
6761 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
6762 and restore it on failure. Release newly allocated tdata on
6765 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
6767 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
6768 (decode_line_info): Set it. Report error if unit->line_offset is
6769 equal to or larger than it.
6771 2000-04-07 Timothy Wall <twall@cygnus.com>
6773 * targets.c: Added vecs for tic54x.
6774 * reloc.c: Added relocs for tic54x.
6775 * libbfd.h: Regenerated.
6776 * configure: Add TI COFF vecs for tic54x.
6777 * configure.in: Ditto.
6778 * config.bfd (targ_cpu): Recognize new tic54x target.
6779 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
6780 * bfd-in2.h: Add tic54x target and relocations.
6781 * Makefile.am, Makefile.in: Add tic54x target.
6782 * archures.c (bfd_archures_list): Add tic54x target.
6783 * coff-tic54x.c: New.
6784 * cpu-tic54x.c: New.
6786 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
6788 * elfcore.h (elf_core_file_p): call backend_object_p which
6789 thereby gets an opportunity to update the arch/machine type.
6791 2000-04-06 Timothy Wall <twall@cygnus.com>
6793 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
6794 class. Handle SEC_CLINK and SEC_BLOCK flags.
6795 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
6796 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
6798 2000-04-06 Nick Clifton <nickc@cygnus.com>
6800 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
6801 EF_INTERWORK if this is an unknown EABI.
6802 (elf32_arm_merge_private_bfd_data): Check EABI version
6803 numbers. Only check EF_xxx flags if the EABI version number
6805 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
6806 if the EABI version number is unknown.
6807 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
6808 if the EABI version number is unknown.
6810 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6812 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
6813 BFD_RELOC_SH_LOOP_END.
6814 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
6815 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
6816 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
6817 (sh_elf_reloc_loop): New function.
6818 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
6820 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
6821 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
6822 * bfd-in2.h, libbfd.h: Regenerate.
6824 2000-04-04 Alan Modra <alan@linuxcare.com.au>
6826 * po/bfd.pot: Regenerate.
6828 * Makefile.am: Remove extraneous mkdep comment.
6829 (MKDEP): Use gcc -MM rather than mkdep.
6830 (DEP): Quote when passing vars to sub-make. Add warning
6832 (DEP1): Rewrite for "gcc -MM".
6833 (CLEANFILES): Add DEP2.
6834 Update dependencies.
6835 * Makefile.in: Regenerate.
6837 2000-04-03 Kevin Buettner <kevinb@redhat.com>
6839 * configure.in: Added corefile support for AIX 4.3. In particular,
6840 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
6841 compiling rs6000-core.c.
6842 * configure: Regenerated.
6844 2000-04-03 H.J. Lu <hjl@gnu.org>
6846 * cache.c (bfd_open_file): Unlink the output file only if
6847 it has non-zero size.
6849 2000-04-01 Ken Block USG <block@zk3.dec.com>
6851 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
6852 relative relocations for non-loaded sections in shared objects.
6853 (elf64_alpha_check_relocs): Similarly.
6855 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
6857 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
6858 BFD_RELOC_16 to switch for extended relocs.
6859 (MY_swap_ext_reloc_in): New.
6860 (MY_swap_ext_reloc_out): New.
6861 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
6862 than NAME(aout,swap_ext_reloc_in) for extended relocs.
6863 (NAME(aout,squirt_out_relocs)): Similarly use
6864 MY_swap_ext_reloc_out.
6865 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
6867 2000-04-03 Kazu Hirata <kazu@hxi.com>
6869 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
6870 the R_PCRWORD_B case.
6872 2000-03-31 Thomas de Lellis <tdel@wrs.com>
6874 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
6878 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
6880 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
6881 HOWTO references to bfd_elf_generic_reloc, that have
6882 partial_inplace == true, now use the new function. The function
6883 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
6884 extends its fixes to the R_M32R_{16,24,32} relocs.
6885 The new logic in m32r_elf_lo16_reloc() has been removed, and
6886 it instead calls the new routine to obtain that functionality.
6888 2000-03-27 Alan Modra <alan@linuxcare.com.au>
6890 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
6891 elf32_avr_check_relocs, avr_final_link_relocate,
6892 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
6893 elf32_avr_object_p): Add prototypes.
6894 (elf32_avr_gc_mark_hook): Add default for h->root.type.
6895 (bfd_elf_avr_final_write_processing): Make static.
6897 2000-03-27 Denis Chertykov <denisc@overta.ru>
6899 * cpu-avr.c: New file. BFD support routines for AVR architecture.
6900 * archures.c (bfd_architecture): Add AVR architecture.
6901 (bfd_archures_list): Add reference to AVR architecture info.
6902 * elf.c (prep_headers): Handle bfd_arch_avr.
6903 * reloc.c: Add various AVR relocation enums.
6904 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
6906 * Makefile.am: Add support for AVR elf.
6907 * configure.in: Likewise.
6908 * config.bfd: Likewise.
6909 * Makefile.in: Regenerate.
6910 * configure: This too.
6911 * bfd-in2.h: And this.
6912 * libbfd.h: And this.
6914 2000-03-24 H.J. Lu <hjl@gnu.org>
6916 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
6917 (elf64_alpha_find_reloc_at_ofs): Likewise.
6919 2000-03-17 Alan Modra <alan@linuxcare.com.au>
6921 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
6922 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
6923 allowable range used to be -2**(n-1) to 2**n-1.
6924 * reloc.c (_bfd_relocate_contents): Same here. Also replace
6925 "boolean overflow" with "bfd_reloc_status_type flag".
6927 2000-03-14 Doug Evans <dje@casey.transmeta.com>
6929 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
6931 2000-03-14 Kazu Hirata <kazu@hxi.com>
6933 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
6934 of shrinks properly, including the last reloc.
6936 2000-03-13 Kazu Hirata <kazu@hxi.com>
6938 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
6941 2000-03-11 Alan Modra <alan@linuxcare.com.au>
6943 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
6944 a format mismatch rather than an "error" from bfd_read such as
6945 bfd_error_file_truncated.
6947 2000-03-10 Geoff Keating <geoffk@cygnus.com>
6949 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
6950 sign-extension and big-endian compensation for
6951 R_MIPS_64 even in ld -r.
6953 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
6955 * elf32-mips.c (mips_elf_next_relocation): Rename from
6956 mips_elf_next_lo16_relocation, and generalize to look
6957 for any relocation type.
6958 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
6959 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
6960 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
6961 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
6962 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
6963 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
6964 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
6965 (mips_rtype_to_howto): Likewise.
6966 (mips_elf_calculate_relocation): Handle new relocs.
6967 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
6968 are paired. The addend for R_MIPS_GNU_REL16_S2
6969 is shifted right two bits.
6971 2000-03-10 Alan Modra <alan@linuxcare.com.au>
6973 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
6974 comment, and ensure it doesn't happen again.
6975 (bfd_install_relocation): Same here.
6976 (_bfd_relocate_contents): Don't bother assigning unused signmask
6977 shift result. Fix typos in comments.
6978 Remove trailing whitespace throughout file.
6980 2000-03-07 Doug Evans <dje@casey.transmeta.com>
6982 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
6983 * bfd-in2.h: Rebuild.
6985 2000-03-06 Nick Clifton <nickc@cygnus.com>
6987 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
6989 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
6990 (SIZEOF_ILF_STRINGS): Redefine.
6991 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
6992 relative reloc, as opposed to a section relative reloc.
6993 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
6995 Add length of symbol's prefix to string pointer.
6996 Store a pointer to the symbol in the symbol pointer table.
6997 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
6998 Initialise the symbol pointer table.
6999 Store the hint in the Hint/Name table.
7000 Make the jump reloc be symbol realtive, not section relative.
7001 Create an import symbol for imported code.
7003 2000-03-06 Catherine Moore <clm@cygnus.com>
7005 * elf.c (swap_out_syms): Check for null type_ptr.
7007 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
7009 * aout-target.h (MY(write_object_contents)): Remove unused
7010 and unusable "#if CHOOSE_RELOC_SIZE".
7011 * pc532-mach.c (MY(write_object_contents)): Ditto.
7012 * netbsd.h (MY(write_object_contents)): Ditto.
7013 * hp300hpux.c (MY(write_object_contents)): Ditto.
7014 * freebsd.h (MY(write_object_contents)): Ditto.
7015 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
7017 2000-02-29 H.J. Lu <hjl@gnu.org>
7019 * peicode.h (jtab): Make it static.
7021 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
7022 defined and COFF_IMAGE_WITH_PE is not defined.
7023 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
7024 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
7026 2000-03-01 Nick Clifton <nickc@cygnus.com>
7028 * coff-arm.c (bfd_arm_process_before_allocation): Make
7029 'symndx' signed to prevent compile time warning.
7031 * coff-mcore.c: Remove unused prototype for pe_object_p.
7033 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
7034 functions that are not used when COFF_IMAGE_WITH_PE is
7036 (struct sh_opcode): Change type of 'flags' field to unsigned
7037 long so that it can hold the USESAS flag.
7039 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
7041 * elf-m10300.c (mn10300_elf_relax_section): Initialise
7044 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
7046 Remove unusued variables and code.
7047 (elf_backend_add_symbol_hook): Fix prototype.
7049 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
7052 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
7055 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
7057 Remove unusued variables and code.
7058 (elf_backend_add_symbol_hook): Fix prototype.
7060 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
7062 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
7063 to unused function parameter.
7065 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
7067 Use EMPTY_HOWTO to initialise empty howto slots.
7068 Remove unused variables.
7070 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
7072 2000-03-01 H.J. Lu <hjl@gnu.org>
7074 * aoutx.h (aout_link_input_section_std): Pass "true" to
7075 the undefined_symbol callback.
7076 (aout_link_input_section_ext): Likewise.
7077 * bout.c (get_value): Likewise.
7078 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
7079 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
7081 (alpha_relocate_section): Likewise.
7082 * coff-arm.c (coff_arm_relocate_section): Likewise.
7083 * coff-i960.c (coff_i960_relocate_section): Likewise.
7084 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
7085 * coff-mips.c (mips_relocate_section): Likewise.
7086 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
7087 * coff-sh.c (sh_relocate_section): Likewise.
7088 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
7089 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
7090 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
7091 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
7092 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
7093 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
7094 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
7095 * elf32-i370.c (i370_elf_relocate_section): Likewise.
7096 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
7097 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
7098 * elf32-sh.c (sh_elf_relocate_section): Likewise.
7099 * elf32-v850.c (v850_elf_relocate_section): Likewise.
7100 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
7101 * elflink.h (elf_link_output_extsym): Likewise.
7102 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
7103 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
7104 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
7106 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
7107 undefined_symbol callback when building shared library with
7108 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
7110 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
7111 * elf32-i386.c (elf_i386_relocate_section): Likewise.
7112 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
7113 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7114 (elf32_mips_get_relocated_section_content): Likewise.
7115 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
7116 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7117 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
7118 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7120 2000-02-28 Nick Clifton <nickc@cygnus.com>
7122 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
7123 * Makefile.in: Regenerate.
7125 * configure.in: Add support for mips and sh pe vectors.
7126 * configure: regenerate.
7128 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
7131 * targets.c: Add mips and sh pe vectors.
7133 * libpei.h (coff_final_link_postscript): Only define if not
7136 * coffcode.h: Add support for WinCE magic numbers.
7138 * peigen.c (pe_print_reloc): Update comment and rearrange
7139 appending of newline character.
7141 * peicode.h: Add support for Image Library Format.
7142 (pe_ILF_vars): Structure containing data used by ILF code.
7143 (pe_ILF_make_a_section): New function. Create a section based
7145 (pe_ILF_make_a_reloc): New function. Create a reloc based on
7147 (pe_ILF_make_a_symbol): New function. Create a symbol based
7149 (pe_ILF_save_relocs): New function. Store the relocs created
7150 by pe_ILF_make_a_reloc in a section.
7151 (pe_ILF_build_a_bfd): New function. Create a BFD describing
7153 (pe_ILF_object_p): New function. Return a bfd_target pointer
7155 (pe_bfd_object_p): If an ILF object is detected call
7156 pe_ILF_object_p on it.
7158 * coff-arm.c: Add support for WinCE relocs which are different
7159 from normal ARM COFF relocs.
7160 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
7162 * coff-sh.c: Add support for sh-pe target.
7163 * pe-sh.c: New file. Support code for sh-pe target.
7164 * pei-sh.c: New file. Support code for sh-pe target.
7166 * pe-mips.c: New file. Support code for mips-pe target.
7167 * pei-mips.c: New file. Support code for mips-pe target.
7169 2000-02-27 Jakub Jelinek <jakub@redhat.com>
7171 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
7172 architecture if the object causing the bump is dynamic.
7173 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
7174 and also don't it for memory ordering.
7175 (sparc64_elf_write_relocs): Take src_rela out of the loop.
7177 2000-02-27 Ian Lance Taylor <ian@zembu.com>
7179 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
7180 calling bfd_get_section_size_before_reloc.
7181 (decode_line_info): Likewise.
7182 (_bfd_dwarf2_find_nearest_line): Likewise.
7184 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
7186 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
7187 name of the libtool directory.
7188 * Makefile.in: Rebuild.
7190 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
7192 * som.c (SOM_HOWTO): Define.
7193 (som_hppa_howto_table): Use it.
7195 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7197 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
7199 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
7201 2000-02-24 Catherine Moore <clm@cygnus.com>
7203 * som.c (som_misc_symbol_info): Add field
7205 (som_bfd_derive_misc_symbol_info): Initialize
7207 (som_build_and_write_symbol_table): Keep track
7208 of secondary_def field.
7209 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
7210 if secondary_def field is set.
7211 (som_bfd_ar_write_symbol_stuff): Initialize
7214 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
7216 * dwarf2.c (read_address): Read 16-bits addresses.
7217 (parse_comp_unit): Accept addr_size == 2.
7219 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
7221 * bfd-in.h: Update copyright date.
7223 2000-02-23 Linas Vepstas <linas@linas.org>
7225 * cpu-i370.c: New file.
7226 * elf32-i370.c: New file.
7227 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
7228 (bfd_i370_arch): New.
7229 (bfd_archures_list): Add bfd_i370_arch.
7230 * elf.c (prep_headers): Add bfd_arch_i370.
7231 * Makefile.am: Add support for IBM 370 elf.
7232 * config.bfd: Likewise.
7233 * configure.in: Likewise.
7234 * libbfd.h (bfd_reloc_code_real_names): Likewise.
7235 * reloc.c (bfd_reloc_code_type): Likewise.
7236 * targets.c: Likewise.
7238 * Makefile.in: Regenerate.
7239 * configure: Regenerate.
7240 * bfd-in2.h: Regenerate.
7242 2000-02-22 Ian Lance Taylor <ian@zembu.com>
7244 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
7245 invalid relocation types, and change them to R_386_NONE.
7247 2000-02-22 H.J. Lu <hjl@gnu.org>
7249 * elflink.h (elf_link_add_object_symbols): If a version symbol is
7250 not defined, don't add a second ELF_VER_CHR.
7252 * elflink.h (elf_bfd_final_link): Call output_extsym for global
7253 symbols converted to local symbols even when stripping all
7255 (elf_link_output_extsym): Process global symbols converted to
7256 local symbols even if they are being stripped.
7258 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
7260 * archures.c (bfd_octets_per_byte): Return unsigned int.
7261 (bfd_arch_mach_octets_per_byte): Ditto.
7262 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
7264 * section.c (bfd_get_section_size_before_reloc): Quell signed
7265 vs. unsigned comparison warning.
7266 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
7267 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
7268 change. What was I thinking?
7269 * bfd-in2.h: Regenerate.
7271 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
7272 (elf_gc_sections): Same here.
7273 (elf_gc_common_finalize_got_offsets): And here.
7275 2000-02-21 Ian Lance Taylor <ian@zembu.com>
7277 ELF HPPA doesn't work at present; remove it until it does.
7278 * config.bfd: Comment out setting targ_defvec to
7280 * Makefile.am: Rebuild dependencies.
7281 (BFD32_BACKENDS): Remove elf32-hppa.lo.
7282 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
7283 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
7284 * Makefile.in: Rebuild.
7285 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
7287 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7289 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
7290 is no bfd_free(). Revert bfd_free part of previous change.
7292 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7294 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
7296 (coff_compute_section_file_positions): Use bfd_free to pair
7298 (coff_write_object_contents): Likewise.
7300 * coff-rs6000.c (xcoff_howto_table_16): New variable.
7301 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
7303 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
7305 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
7306 (xcoff_ar_file_hdr_big): New structure.
7307 (SIZEOF_AR_FILE_HDR_BIG): New macro.
7308 (xcoff_ar_hdr_big): New structure.
7309 (SIZEOF_AR_HDR_BIG): New macro.
7310 (xcoff_big_format_p): New macro.
7311 (xcoff_ardata_big): New macro.
7312 (arch_xhdr_big): New macro.
7313 (xcoff_slurp_armap): Handle large archives.
7314 (xcoff_archive_p): Detect large archives.
7315 (xcoff_read_ar_hdr): Handle large archives.
7316 (xcoff_openr_next_archived_file): Handle large archives.
7317 (xcoff_generic_stat_arch_elt): Handle large archives.
7318 (xcoff_write_armap_old): Rename from xcoff_write_armap.
7319 (xcoff_write_armap_big): New function.
7320 (xcoff_write_armap): New function, dispatch to _old or _big.
7321 (xcoff_write_archive_contents_old): Rename from
7322 xcoff_write_archive_contents.
7323 (xcoff_write_archive_contents_big): New function.
7324 (xcoff_write_archive_contents): New function, dispatch to _old or
7327 2000-02-18 Richard Henderson <rth@cygnus.com>
7329 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
7330 and hide_symbol members.
7331 (elf_link_hash_copy_indirect): Remove.
7332 (elf_link_hash_hide_symbol): Remove.
7333 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
7334 and elf_backend_hide_symbol.
7335 (_bfd_elf_link_hash_copy_indirect): Declare.
7336 (_bfd_elf_link_hash_hide_symbol): Declare.
7337 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
7338 (_bfd_elf_link_hash_hide_symbol): Likewise.
7339 (_bfd_elf_link_hash_table_init): Don't init killed members.
7340 * elflink.h (elf_link_add_object_symbols): Use the bed function
7341 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
7342 (elf_link_assign_sym_version): Likewise.
7343 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
7344 (elf_backend_hide_symbol): Likewise.
7345 (elfNN_bed): Update for new members.
7347 2000-02-17 Kevin Buettner <kevinb@redhat.com>
7349 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
7350 STACK_END_ADDR): Define for new core file format.
7351 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
7352 for handling the vagaries of the various core file structures used
7353 by AIX over the years.
7354 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
7355 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
7356 core_dumpx structure.
7358 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7360 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
7361 (bfd_mach_sh3_dsp): Likewise.
7362 (bfd_mach_sh4): Reinstate.
7363 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
7364 * bfd-in2.h: Regenerate.
7365 * coff-sh.c (struct sh_opcode): flags is no longer short.
7366 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
7367 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
7368 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
7369 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
7370 (sh_opcodes): No longer const.
7371 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
7372 (sh_insn_uses_reg): Check for USESAS and USESR8.
7373 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
7374 (_bfd_sh_align_load_span): Return early for SH4.
7375 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
7376 Take into account that field b of a parallel processing insn
7377 could be mistaken for a separate insn.
7378 * cpu-sh.c (arch_info_struct): New array elements for
7379 sh2, sh-dsp and sh3-dsp.
7380 Reinstate element for sh4.
7381 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
7382 (SH4_NEXT): Reinstate.
7383 (SH3_NEXT, SH3E_NEXT): Adjust.
7384 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
7385 * elf32-sh.c (sh_elf_set_private_flags): New function.
7386 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
7387 (sh_elf_merge_private_data): New function.
7388 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
7389 (bfd_elf32_bfd_copy_private_bfd_data): Define.
7390 (bfd_elf32_bfd_merge_private_bfd_data): Change to
7391 sh_elf_merge_private_data.
7393 2000-02-13 Richard Henderson <rth@cygnus.com>
7395 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
7396 hide_symbol members.
7397 (elf_link_hash_copy_indirect): New.
7398 (elf_link_hash_hide_symbol): New.
7399 * elflink.h (elf_link_add_object_symbols): Break out copy from
7400 indirect new new symbol to elf.c.
7401 (elf_link_assign_sym_version): Break out privatization of
7402 non-exported symbol to elf.c.
7403 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
7404 (_bfd_elf_link_hash_hide_symbol): New.
7405 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
7407 2000-02-13 Ian Lance Taylor <ian@zembu.com>
7409 * section.c (_bfd_strip_section_from_output): Add info parameter.
7410 If it passed as non-NULL, use it to check whether any input BFD
7411 has an input section which uses this output section. Change all
7413 * bfd-in2.h: Rebuild.
7415 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
7416 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
7418 * bfd-in2.h: Rebuild.
7420 2000-02-10 Timothy Wall <twall@cygnus.com>
7422 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
7423 allow final modifications of swapped-in symbol.
7424 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
7425 * coffcode.h (coff_write_relocs): Use macro
7426 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
7427 symbol index should be set to -1.
7429 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
7431 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
7432 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
7433 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
7434 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
7435 sh_insns_uses_or_sets_freg): New functions.
7436 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
7437 * (sh_insns_conflict): Use new functions and new macros to
7438 detect conflicts when two instructions both set same integer registers,
7439 both set same fp register, and both set special register.
7441 2000-02-09 Timothy Wall <twall@cygnus.com>
7443 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
7444 swapping in sections, so that the swapping routines have access to
7447 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
7449 * coff-go32.c: Update comment. Update copyright.
7451 2000-01-27 Thomas de Lellis <tdel@windriver.com>
7453 * syms.c (bfd_decode_symclass)
7454 Two new class characters were added - 'V' and 'v'. The
7455 meaning of 'W' is now restricted to just weak non-object
7456 symbols. This allows differentiation between, for example,
7457 weak functions vs weak objects. nm for example now dumps:
7459 'w' = weak unresolved
7460 'V' = weak global object
7461 'v' = weak unresolved object
7463 (bfd_is_undefined_symclass): New function. Return true if the
7464 given symbol class represents and undefined/unresolved symbol.
7466 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
7469 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
7471 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
7472 STT_ARM_16BIT flag set, but it is not attached to a data object
7473 return STT_ARM_16BIT so that it will be treated as code by the
7476 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
7478 * coff-i386.c (i3coff_object_p): Remove prototype.
7481 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
7482 to name. Update copyright.
7484 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
7485 assignment to avoid warning. Update copyright.
7487 2000-01-24 Robert Lipe (robertl@sco.com)
7489 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
7490 instead of using GNU C extension.
7492 2000-01-21 Nick Clifton <nickc@cygnus.com>
7494 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
7495 amount from a bfd_in_memory structure.
7496 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
7499 2000-01-14 Nick Clifton <nickc@cygnus.com>
7501 * linker.c (default_indirect_link_order): oops - fix incorrectly
7502 applied patch from Tim Wall.
7504 2000-01-13 Timothy Wall (twall@tiac.net>
7506 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
7507 = scnhsz, filhsz, relsz, aoutsz, etc)
7509 * coffswap.h: Ditto.
7511 2000-01-13 Nick Clifton <nickc@cygnus.com>
7513 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
7514 interwork thumb to arm stub.
7516 2000-01-13 Timothy Wall (twall@tiac.net>
7518 * archures.c (bfd_octets_per_byte): New function: Return
7520 (bfd_arch_mach_octets_per_byte): New function: Return target
7523 * section.c: Distinguish between octets and bytes for usage of
7524 _cooked_size, _raw_size, and output_offset. Clarify
7525 description of bfd_set_section_contents.
7527 * bfd-in2.h: Regenerate.
7529 * coffgen.c: Indicate that the offset parameter is in bytes, not
7532 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
7533 where appropriate to get the octet offset when calling
7534 bfd_set_section_contents.
7535 (bfd_coff_reloc_link_order): Ditto.
7537 * linker.c (bfd_generic_reloc_link_order): Ditto.
7538 (_bfd_default_link_order): Ditto.
7540 * reloc.c (bfd_perform_relocation): Distinguish between octets
7541 and bytes. Use octets when indexing into octet data; use bytes
7542 when calculating target addresses.
7543 (bfd_install_relocation): Ditto.
7545 * srec.c (srec_write_section): Ditto.
7547 2000-01-13 Nick Clifton <nickc@cygnus.com>
7549 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
7550 3 to 2. This allows 4 byte sized sections, which is necessary for
7551 dlltool to build functioning DLLs.
7553 2000-01-10 Philip Blundell <pb@futuretv.com>
7555 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
7556 (arm*-*-conix*): New target.
7558 2000-01-10 Egor Duda <deo@logos-m.ru>
7560 * config.bfd: Include elf32_i386 vector to target list for cygwin
7563 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
7564 * configure.in: Test for structure win32_pstatus_t in
7566 * configure: Regenerate.
7568 * elf.c (elfcore_grok_win32pstatus): New function: process
7569 win32_pstatus_t notes in elf core file.
7570 (elfcore_grok_note): Detect win32_pstatus notes.
7572 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
7574 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
7576 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
7577 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
7579 For older changes see ChangeLog-9899
7585 version-control: never