* arc-dis.c: Don't include <ctype.h>.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
923f08ff
AM
12001-09-21 Alan Modra <amodra@bigpond.net.au>
2
3 * Makefile.am: Run "make dep-am".
4 * Makefile.in: Regenerate.
5
6 * aoutx.h: Formatting fixes.
7 * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
8
9 * linker.c: Replace bfd_get_filename with bfd_archive_filename
10 in error message.
11
8f615d07
AM
122001-09-21 Alan Modra <amodra@bigpond.net.au>
13
14 * bfd.c (bfd_archive_filename): New function.
15 * bfd-in2.h: Regenerate.
16 * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
17 in error messages where the bfd is an input bfd.
18 * aout-cris.c: Likewise.
19 * coff-arm.c: Likewise.
20 * coff-mcore.c: Likewise.
21 * coff-ppc.c: Likewise.
22 * coff-rs6000.c: Likewise.
23 * coff-sh.c: Likewise.
24 * coff-tic54x.c: Likewise.
25 * coff-tic80.c: Likewise.
26 * coff64-rs6000.c: Likewise.
27 * coffcode.h: Likewise.
28 * coffgen.c: Likewise.
29 * cofflink.c: Likewise.
30 * ecofflink.c: Likewise.
31 * elf-hppa.h: Likewise.
32 * elf.c: Likewise.
33 * elf32-arm.h: Likewise.
34 * elf32-cris.c: Likewise.
35 * elf32-gen.c: Likewise.
36 * elf32-hppa.c: Likewise.
37 * elf32-i370.c: Likewise.
38 * elf32-i386.c: Likewise.
39 * elf32-m32r.c: Likewise.
40 * elf32-mcore.c: Likewise.
41 * elf32-mips.c: Likewise.
42 * elf32-ppc.c: Likewise.
43 * elf32-s390.c: Likewise.
44 * elf32-sh.c: Likewise.
45 * elf32-sparc.c: Likewise.
46 * elf32-v850.c: Likewise.
47 * elf64-alpha.c: Likewise.
48 * elf64-gen.c: Likewise.
49 * elf64-ppc.c: Likewise.
50 * elf64-s390.c: Likewise.
51 * elf64-sparc.c: Likewise.
52 * elf64-x86-64.c: Likewise.
53 * elflink.h: Likewise.
54 * elfxx-ia64.c: Likewise.
55 * ieee.c: Likewise.
56 * ihex.c: Likewise.
57 * libbfd.c: Likewise.
58 * pdp11.c: Likewise.
59 * pe-mips.c: Likewise.
60 * peicode.h: Likewise.
61 * srec.c: Likewise.
62 * xcofflink.c: Likewise.
63
64 * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
65
66 * elflink.c (_bfd_elf_create_linker_section): Better grammar for
67 error message.
68
69 * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
70 error message.
71
72 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
73 Consolidate error messages, and split long messages to two lines.
74
671bae9c
NC
752001-09-20 John Reiser <jreiser@BitWagon.com>
76
77 * elf32-i386.c (elf_i386_relocate_section): coordinate info->symbolic
78 and info->allow_shlib_undefined.
79 * elf32-cris.c: likewise
80 * elf32-hppa.c: likewise
81 * elf32-m68k.c: likewise
82 * elf32-mips.c: likewise
83 * elf32-ppc.c: likewise
84 * elf32-s390.c: likewise
85 * elf32-sh.c: likewise
86 * elf32-sparc.c: likewise
87 * elf64-alpha.c: likewise
88 * elf64-hppa.c: likewise
89 * elf64-ppc.c: likewise
90 * elf64-s390.c: likewise
91 * elf64-sparc.c: likewise
92 * elf64-x86-64.c: likewise
93 * elfxx-ia64.c: likewise
94
3882b010
L
952001-09-18 Bruno Haible <haible@clisp.cons.org>
96
97 * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
98 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
99 * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
100 (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
101 * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
102 (bfd_default_scan): Use ISDIGIT instead of isdigit.
103 * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
104 (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
105 isxdigit/isdigit/islower.
106 * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
107 (mangle_name): Use ISALNUM instead of isalnum.
108 * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
109 (scan): Use ISDIGIT instead of isdigit.
110 * hosts/alphavms.h: Don't include <ctype.h>.
111 * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
112 (ieee_object_p): Use TOUPPER instead of toupper.
113 * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
114 (ihex_bad_byte): Use ISPRINT instead of isprint.
115 * merge.c: Don't include <ctype.h>.
116 * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
117 (oasys_write_sections): Use ISDIGIT instead of isdigit.
118 * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
119 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
120 * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
121 (mangle_name): Use ISALNUM instead of isalnum.
122 * som.c: Include "safe-ctype.h" instead of <ctype.h>.
123 (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
124 isupper/islower/isdigit.
125 (som_decode_symclass): Use TOUPPER instead of toupper.
126 * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
127 (srec_bad_byte): Use ISPRINT instead of isprint.
128 (srec_scan): Use ISSPACE instead of isspace.
129 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
130 (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
131 * syms.c: Include "safe-ctype.h"
132 (islower, toupper): Remove macro definitions.
133 (bfd_decode_symclass): Use TOUPPER instead of toupper.
134 * vms-gsd.c: Don't include <ctype.h>.
135 * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
136 (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
137 islower/toupper.
138 * vms-tir.c: Don't include <ctype.h>.
139
dc810e39
AM
1402001-09-18 Alan Modra <amodra@bigpond.net.au>
141
142 * libbfd.c (bfd_bread): New function replacing bfd_read without
143 redundant params. Allow reads up to (size_t) -2 in length.
144 (bfd_bwrite): Similarly for bfd_write.
145 (real_read): Return a size_t.
146 (bfd_read): Call bfd_bread.
147 (bfd_write): Call bfd_bwrite.
148 (warn_deprecated): New function to annoy everybody.
149 (bfd_get_file_window): Don't call bfd_set_error unnecessarily.
150 * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare.
151 (bfd_read, bfd_write): Define as macro.
152 * aix386-core.c: Replace calls to bfd_read with bfd_bread, and
153 likewise for bfd_write. Ensure function args are correct size by
154 using casts or local vars. In some cases, remove unnecessary
155 casts. Formatting fixes, in some cases removing a large expression
156 from function args by using a local var. Replace CONST with const.
157 Modify variable types to avoid warings. Use casts to avoid
158 warnings when using negative numbers in unsigned expressions.
159 * aout-adobe.c: Likewise.
160 * aout-arm.c: Likewise.
161 * aout-cris.c: Likewise.
162 * aout-encap.c: Likewise.
163 * aout-ns32k.c: Likewise.
164 * aout-target.h: Likewise.
165 * aout-tic30.c: Likewise.
166 * aoutf1.h: Likewise.
167 * aoutx.h: Likewise.
168 * archive.c: Likewise.
169 * archures.c: Likewise.
170 * bfd-in.h: Likewise.
171 * bfd.c: Likewise.
172 * binary.c: Likewise.
173 * bout.c: Likewise.
174 * cache.c: Likewise.
175 * cisco-core.c: Likewise.
176 * coff-a29k.c: Likewise.
177 * coff-alpha.c: Likewise.
178 * coff-arm.c: Likewise.
179 * coff-h8300.c: Likewise.
180 * coff-h8500.c: Likewise.
181 * coff-i386.c: Likewise.
182 * coff-i860.c: Likewise.
183 * coff-i960.c: Likewise.
184 * coff-ia64.c: Likewise.
185 * coff-m68k.c: Likewise.
186 * coff-m88k.c: Likewise.
187 * coff-mcore.c: Likewise.
188 * coff-mips.c: Likewise.
189 * coff-ppc.c: Likewise.
190 * coff-rs6000.c: Likewise.
191 * coff-sh.c: Likewise.
192 * coff-sparc.c: Likewise.
193 * coff-stgo32.c: Likewise.
194 * coff-tic30.c: Likewise.
195 * coff-tic54x.c: Likewise.
196 * coff-tic80.c: Likewise.
197 * coff-w65.c: Likewise.
198 * coff-z8k.c: Likewise.
199 * coff64-rs6000.c: Likewise.
200 * coffcode.h: Likewise.
201 * coffgen.c: Likewise.
202 * cofflink.c: Likewise.
203 * coffswap.h: Likewise.
204 * corefile.c: Likewise.
205 * cpu-arc.c: Likewise.
206 * cpu-h8300.c: Likewise.
207 * cpu-h8500.c: Likewise.
208 * cpu-i960.c: Likewise.
209 * cpu-ia64-opc.c: Likewise.
210 * cpu-ns32k.c: Likewise.
211 * cpu-pdp11.c: Likewise.
212 * cpu-pj.c: Likewise.
213 * cpu-sh.c: Likewise.
214 * cpu-w65.c: Likewise.
215 * cpu-z8k.c: Likewise.
216 * dwarf1.c: Likewise.
217 * dwarf2.c: Likewise.
218 * ecoff.c: Likewise.
219 * ecofflink.c: Likewise.
220 * ecoffswap.h: Likewise.
221 * elf-bfd.h: Likewise.
222 * elf-hppa.h: Likewise.
223 * elf-m10200.c: Likewise.
224 * elf-m10300.c: Likewise.
225 * elf.c: Likewise.
226 * elf32-arc.c: Likewise.
227 * elf32-arm.h: Likewise.
228 * elf32-avr.c: Likewise.
229 * elf32-cris.c: Likewise.
230 * elf32-fr30.c: Likewise.
231 * elf32-gen.c: Likewise.
232 * elf32-h8300.c: Likewise.
233 * elf32-hppa.c: Likewise.
234 * elf32-i370.c: Likewise.
235 * elf32-i386.c: Likewise.
236 * elf32-i860.c: Likewise.
237 * elf32-m32r.c: Likewise.
238 * elf32-m68k.c: Likewise.
239 * elf32-mcore.c: Likewise.
240 * elf32-mips.c: Likewise.
241 * elf32-openrisc.c: Likewise.
242 * elf32-pj.c: Likewise.
243 * elf32-ppc.c: Likewise.
244 * elf32-s390.c: Likewise.
245 * elf32-sh-lin.c: Likewise.
246 * elf32-sh.c: Likewise.
247 * elf32-sparc.c: Likewise.
248 * elf32-v850.c: Likewise.
249 * elf64-alpha.c: Likewise.
250 * elf64-hppa.c: Likewise.
251 * elf64-mips.c: Likewise.
252 * elf64-ppc.c: Likewise.
253 * elf64-s390.c: Likewise.
254 * elf64-sparc.c: Likewise.
255 * elf64-x86-64.c: Likewise.
256 * elfarm-nabi.c: Likewise.
257 * elfcode.h: Likewise.
258 * elfcore.h: Likewise.
259 * elflink.c: Likewise.
260 * elflink.h: Likewise.
261 * elfxx-ia64.c: Likewise.
262 * elfxx-target.h: Likewise.
263 * format.c: Likewise.
264 * hash.c: Likewise.
265 * hp300hpux.c: Likewise.
266 * hppabsd-core.c: Likewise.
267 * hpux-core.c: Likewise.
268 * i386aout.c: Likewise.
269 * i386dynix.c: Likewise.
270 * i386linux.c: Likewise.
271 * i386lynx.c: Likewise.
272 * i386mach3.c: Likewise.
273 * i386msdos.c: Likewise.
274 * i386os9k.c: Likewise.
275 * ieee.c: Likewise.
276 * ihex.c: Likewise.
277 * irix-core.c: Likewise.
278 * libaout.h: Likewise.
279 * libbfd-in.h: Likewise.
280 * libbfd.c: Likewise.
281 * libcoff-in.h: Likewise.
282 * libecoff.h: Likewise.
283 * libieee.h: Likewise.
284 * libnlm.h: Likewise.
285 * libpei.h: Likewise.
286 * libxcoff.h: Likewise.
287 * linker.c: Likewise.
288 * lynx-core.c: Likewise.
289 * m68klinux.c: Likewise.
290 * merge.c: Likewise.
291 * mipsbsd.c: Likewise.
292 * netbsd-core.c: Likewise.
293 * nlm.c: Likewise.
294 * nlm32-alpha.c: Likewise.
295 * nlm32-i386.c: Likewise.
296 * nlm32-ppc.c: Likewise.
297 * nlm32-sparc.c: Likewise.
298 * nlmcode.h: Likewise.
299 * nlmswap.h: Likewise.
300 * ns32k.h: Likewise.
301 * oasys.c: Likewise.
302 * opncls.c: Likewise.
303 * osf-core.c: Likewise.
304 * pc532-mach.c: Likewise.
305 * pdp11.c: Likewise.
306 * pe-mips.c: Likewise.
307 * peXXigen.c: Likewise.
308 * peicode.h: Likewise.
309 * ppcboot.c: Likewise.
310 * ptrace-core.c: Likewise.
311 * reloc.c: Likewise.
312 * reloc16.c: Likewise.
313 * riscix.c: Likewise.
314 * rs6000-core.c: Likewise.
315 * sco5-core.c: Likewise.
316 * section.c: Likewise.
317 * som.c: Likewise.
318 * sparclinux.c: Likewise.
319 * sparclynx.c: Likewise.
320 * srec.c: Likewise.
321 * stabs.c: Likewise.
322 * sunos.c: Likewise.
323 * syms.c: Likewise.
324 * targets.c: Likewise.
325 * tekhex.c: Likewise.
326 * trad-core.c: Likewise.
327 * versados.c: Likewise.
328 * vms-gsd.c: Likewise.
329 * vms-hdr.c: Likewise.
330 * vms-misc.c: Likewise.
331 * vms-tir.c: Likewise.
332 * vms.c: Likewise.
333 * vms.h: Likewise.
334 * xcofflink.c: Likewise.
335 * bfd-in2.h: Regenerate.
336 * libbfd.h: Regenerate.
337 * libcoff.h: Regenerate.
338
339 * bfd.c (struct _bfd): Make "where" and "origin" unsigned.
340 * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma.
341 (ufile_ptr): Define.
342 (bfd_tell): Return a ufile_ptr.
343 * libbfd.c (bfd_tell): Likewise.
344 (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error
345 unnecessarily.
346 * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0.
347 * aoutf1.h: Likewise.
348 * som.c: Likewise.
349 * cache.c (bfd_cache_lookup_worker): Guard against abfd->where
350 larger than unsigned long can represent.
351
352 * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if
353 size overflows size_t.
354 (bfd_realloc): Likewise.
355 (bfd_zmalloc): Likewise.
356 * opncls.c (bfd_alloc): Likewise.
357 (bfd_zalloc): Likewise.
358 * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update.
359 (bfd_alloc, bfd_zalloc): Update.
360
361 * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than
362 8 bits.
363 (bfd_get_signed_8): Likewise.
364 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8,
365 H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8,
366 H_GET_64, H_GET_32, H_GET_16, H_GET_8,
367 H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use.
368 * libaout.h: Likewise define and use here.
369 * aout-adobe.c: Use H_GET_* and H_PUT_* macros.
370 * aout-arm.c: Likewise.
371 * aout-encap.c: Likewise.
372 * aout-ns32k.c: Likewise.
373 * aout-tic30.c: Likewise.
374 * aoutf1.h: Likewise.
375 * aoutx.h: Likewise.
376 * bout.c: Likewise.
377 * coff-alpha.c: Likewise.
378 * coff-h8300.c: Likewise.
379 * coff-h8500.c: Likewise.
380 * coff-i960.c: Likewise.
381 * coff-ia64.c: Likewise.
382 * coff-m88k.c: Likewise.
383 * coff-mips.c: Likewise.
384 * coff-ppc.c: Likewise.
385 * coff-rs6000.c: Likewise.
386 * coff-sh.c: Likewise.
387 * coff-sparc.c: Likewise.
388 * coff-stgo32.c: Likewise.
389 * coff-tic30.c: Likewise.
390 * coff-tic80.c: Likewise.
391 * coff-w65.c: Likewise.
392 * coff-z8k.c: Likewise.
393 * coff64-rs6000.c: Likewise.
394 * coffgen.c: Likewise.
395 * cofflink.c: Likewise.
396 * coffswap.h: Likewise.
397 * ecoff.c: Likewise.
398 * ecoffswap.h: Likewise.
399 * elf.c: Likewise.
400 * elf32-mips.c: Likewise.
401 * elf64-mips.c: Likewise.
402 * hp300hpux.c: Likewise.
403 * i386dynix.c: Likewise.
404 * i386lynx.c: Likewise.
405 * i386msdos.c: Likewise.
406 * i386os9k.c: Likewise.
407 * libpei.h: Likewise.
408 * nlm32-alpha.c: Likewise.
409 * nlm32-i386.c: Likewise.
410 * nlm32-ppc.c: Likewise.
411 * nlmcode.h: Likewise.
412 * nlmswap.h: Likewise.
413 * oasys.c: Likewise.
414 * pdp11.c: Likewise.
415 * pe-mips.c: Likewise.
416 * peXXigen.c: Likewise.
417 * peicode.h: Likewise.
418 * riscix.c: Likewise.
419 * sunos.c: Likewise.
420 * xcofflink.c: Likewise.
421 * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word):
422 Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD.
423 * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use
424 equivalent H_PUT_* macro instead.
425 (GETWORD, GETHALF, GETBYTE): Similarly.
426 * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise.
427 (GETWORD, GETHALF, GETBYTE): Likewise.
428 * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise.
429
430 * bfd-in.h (struct orl): Change "pos" to a union.
431 * archive.c (_bfd_compute_and_write_armap): Use it instead of casts.
432 (bsd_write_armap): Here too.
433 (coff_write_armap): And here.
434 * coff-rs6000.c (xcoff_write_armap_old): And here.
435 (xcoff_write_one_armap_big): And here.
436 (xcoff_write_armap_big): And here.
437 * ecoff.c (_bfd_ecoff_write_armap): And here.
438 * elf64-mips.c (mips_elf64_write_armap): And here.
439
440 * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum.
441 * elf-m10300.c (elf_mn10300_mach): Return an unsigned long.
442 * elf32-h8300.c (elf32_h8_mach): Likewise.
443 * elf32-mips.c (elf_mips_mach): Likewise.
444 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
445
446 * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release
447 calls.
448 (aix386_core_vec): Typo fix.
449
450 * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR
451 etc. to avoid redefined macro warning.
452 (MY(put_reloc)): Use bfd_vma for "value" rather than long.
453 (MY(fix_pcrel_26)): Likewise.
454 * aout-ns32k.c (MY(put_reloc)): Likewise.
455 * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend.
456 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise.
457 * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset.
458
459 * aout-encap.c: Include "file", not <file> for binutils headers.
460 (encap_object_p): Half baked attempt to fix compile errors in
461 code dealing with "magic".
462
463 * aout-ns32k.c: Include "file", not <file> for binutils headers.
464 (_bfd_ns32k_relocate_contents): get_data and put_data manipulate
465 bfd_vma's rather than longs.
466 * cpu-ns32k.c (ns32k_sign_extend): Delete.
467 (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset.
468 (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values,
469 remove case 3.
470 (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset.
471 Use unsigned comparisons.
472 (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values.
473 (do_ns32k_reloc): get_data and put_data operate on bfd_vma's.
474 (_bfd_do_ns32k_reloc_contents): Likewise.
475 * ns32k.h (_bfd_ns32k_get_displacement): Update prototype.
476 (_bfd_ns32k_get_immediate): Likewise.
477 (_bfd_ns32k_put_displacement): Likewise.
478 (_bfd_ns32k_put_immediate): Likewise.
479 (bfd_reloc_status_type): Likewise.
480
481 * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon'
482 to avoid shadowing.
483 * pdp11.c (NAME(aout,find_nearest_line)): Likewise.
484 * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value".
485 * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to
486 avoid shadowing.
487 (record_toc): Use a bfd_signed_vma for our_toc_offset.
488 * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing.
489 * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid
490 shadow warning.
491 (_bfd_elfcore_strndup): Likewise for "dup".
492 * elf32-cris.c (cris_elf_relocate_section): "symname" instead of
493 "name" to avoid shadowing.
494 * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate
495 definition of "off".
496 * elf32-i386.c (elf_i386_relocate_section): Likewise.
497 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate
498 definition of "s".
499 (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate
500 "secpp".
501 * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx"
502 to avoid shadowing.
503 * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink"
504 to avoid shadowing.
505 (elf_link_input_bfd): Likewise.
506 (elf_bfd_final_link): Remove duplicate innermost "off" var.
507 * oasys.c (oasys_write_data): Rename innermost "p" to "sym".
508 * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to
509 "input_section".
510 * som.c (som_prep_for_fixups): Rename inner "i" to "j".
511 * sunos.c (sunos_add_dynamic_symbols): Localise "s" var.
512 (sunos_write_dynamic_symbol): Remove unused vars.
513 * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate
514 innermost "directory_name" and "file_name" vars.
515 * tekhex.c (first_phase): Rename local var "type" to "stype".
516 (tekhex_write_object_contents): Rename innermost "s" to "sym".
517 * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize",
518 doing comparison at caller.
519 (vms_esecflag_by_name): Likewise.
520 * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1".
521 * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o".
522 (xcoff_write_global_symbol): Rename "p" param to "inf".
523
524 * cisco-core.c: Add missing prototypes.
525 (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED.
526 (cisco_core_file_failing_signal): Likewise.
527 (cisco_core_file_matches_executable_p): Likewise.
528 * hpux-core.c (hpux_core_core_file_failing_signal): Likewise.
529 * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise.
530 * osf-core.c (osf_core_core_file_matches_executable_p): Likewise.
531 * sco5-core.c (sco5_core_file_matches_executable_p): Likewise.
532
533 * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for
534 thumb_glue_size and arm_glue_size.
535 * elf32-arm.h (elf32_arm_link_hash_table): Likewise here.
536
537 * coff64-rs6000.c: Group prototypes together.
538
539 * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED.
540 (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type.
541
542 * cpu-arc.c: Add missing prototypes.
543 * cpu-h8500.c: Likewise.
544 * cpu-i960.c: Likewise.
545 * cpu-pj.c: Likewise.
546 * cpu-sh.c: Likewise.
547 * cpu-w65.c: Likewise.
548 * cpu-z8k.c: Likewise.
549 * elf32-fr30.c: Likewise.
550 * elf32-h8300.c: Likewise.
551 * elf32-i370.c: Likewise.
552 * hpux-core.c: Likewise.
553 * versados.c: Likewise.
554
555 * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare.
556 * cpu-h8500.c: Likewise.
557 * cpu-i960.c: Likewise.
558 * cpu-z8k.c: Likewise.
559
560 * cpu-ia64-opc.c: Correct comment.
561
562 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var.
563
564 * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs
565 to unsigned.
566 (bfd_elf32_write_out_phdrs): Likewise.
567 (bfd_elf64_write_out_phdrs): Likewise.
568 (elf_linker_section_pointers): Change addend to bfd_vma.
569 (_bfd_elf_find_pointer_linker_section): Likewise.
570 (_bfd_elfcore_make_pseudosection): Change size param to size_t and
571 filepos to unsigned file_ptr.
572 (_bfd_elfcore_strndup): Change max param to size_t.
573 * elf.c (_bfd_elfcore_make_pseudosection): As above.
574 (_bfd_elfcore_strndup): Likewise.
575 (_bfd_elf_find_pointer_linker_section): Likewise.
576
577 * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change
578 insn and sym_value to ints.
579
580 * elf.c (elf_read): Make "offset" param a file_ptr, "size" a
581 bfd_size_type.
582 (elfcore_read_notes): Likewise.
583
584 * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags
585 param from unsigned char to int.
586 (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately
587 for info_to_howto call.
588 (add_dynamic_entry): Define macro.
589 (elf32_arm_size_dynamic_sections): Use add_dynamic_entry.
590
591 * elf32-cris.c (add_dynamic_entry): Define macro.
592 (elf_cris_size_dynamic_sections): Use add_dynamic_entry.
593
594 * elf32-h8300.c (elf32_h8_final_write_processing): Make static.
595 (elf32_h8_object_p): Likewise.
596 (elf32_h8_merge_private_bfd_data): Likewise.
597 (elf32_h8_relax_section): Cast gap to int so signed comparisons work.
598
599 * elf32-hppa.c (add_dynamic_entry): Define macro.
600 (elf32_hppa_size_dynamic_sections): Use it.
601 * elf32-i370.c (add_dynamic_entry): Define macro.
602 (i370_elf_size_dynamic_sections): Use it.
603 (i370_noop): Make static.
604 * elf32-i386.c (add_dynamic_entry): Define macro.
605 (elf_i386_size_dynamic_sections): Use it.
606 * elf32-m68k.c (add_dynamic_entry): Define macro.
607 (elf_m68k_size_dynamic_sections): Use it.
608 * elf32-ppc.c (add_dynamic_entry): Define macro.
609 (ppc_elf_size_dynamic_sections): Use it.
610 * elf32-s390.c (add_dynamic_entry): Define macro.
611 (elf_s390_size_dynamic_sections): Use it.
612 * elf64-alpha.c (add_dynamic_entry): Define macro.
613 (elf64_alpha_size_dynamic_sections): Use it.
614 * elf64-hppa.c (add_dynamic_entry): Define macro.
615 (elf64_hppa_size_dynamic_sections): Use it.
616 * elf64-ppc.c (add_dynamic_entry): Define macro.
617 (ppc64_elf_size_dynamic_sections): Use it.
618 * elf64-s390.c (add_dynamic_entry): Define macro.
619 (elf_s390_size_dynamic_sections): Use it.
620 * elf64-sparc.c (add_dynamic_entry): Define macro.
621 (sparc64_elf_size_dynamic_sections): Use it.
622 * elf64-x86-64.c (add_dynamic_entry): Define macro.
623 (elf64_x86_64_size_dynamic_sections): Use it.
624 * elfxx-ia64.c (add_dynamic_entry): Define macro.
625 (elfNN_ia64_size_dynamic_sections): Use it.
626
627 * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning.
628 (v850_elf_perform_relocation): Make "r_type" param unsigned.
629
630 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return
631 false if the first malloc fails rather than going via error_return.
632
633 * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for
634 "index" param.
635 (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too.
636
637 * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message.
638
639 * elfxx-ia64.c (global_sym_index): Return a long.
640
641 * ieee.c (get_symbol): Use int rather than char param.
642 (ieee_slurp_sections): Move "section" var to inner blocks.
643 (copy_expression): Don't init "value" to zero or worry about
644 clearing to zero after using.
645 (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid
646 shadowing.
647
648 * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an
649 unsigned int.
650
651 * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning.
652 (bfd_write_bigendian_4byte_int): Pass an unsigned int value param.
653
654 * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param.
655
656 * pc532-mach.c (MYNSX): Delete.
657 (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX.
658 (write_object_contents): Correct prototype.
659
660 * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather
661 than unsigned short.
662
663 * section.c (bfd_set_section_contents): Remove redundant
664 "offset < 0" test. Check that "count" doesn't overflow size_t.
665 (bfd_get_section_contents): Likewise.
666
667 * som.c (som_fixup_formats): Add missing braces.
668 (som_reloc_addend): Pass a bfd_vma for "addend".
669
670 * srec.c (srec_write_record): Pass "type" as an unsigned int.
671 (srec_write_symbols): Remove an unnecessary var.
672
673 * targets.c (_bfd_target_vector): Sort entries. Sort externs
674 to match.
675 * configure.in: Sort to match. Bump version number.
676 * configure: Regenerate.
677
678 * tekhex.c (move_section_contents): Assert offset == 0.
679
680 * versados.c (new_symbol_string): Constify arg.
681 (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section.
682 (versados_get_symbol_info): Make static.
683 (versados_print_symbol): Likewise.
684 (versados_get_reloc_upper_bound): Likewise.
685 (versados_canonicalize_reloc): Likewise.
686
417412a2
NC
6872001-09-18 Nick Clifton <nickc@cambridge.redhat.com>
688
689 * elflink.h (elf_link_input_bfd): Fix typo in error message.
690
bb731fb6
L
6912001-09-17 H.J. Lu <hjl@gnu.org>
692
693 * dwarf1.c (parse_die): Take a new arg for the end of the
694 section. Return false if die is beyond the section.
695 (parse_functions_in_unit): Pass the end of the section to
696 parse_die ().
697 (_bfd_dwarf1_find_nearest_line): Likewise.
698
841989d6
NC
6992001-09-14 Michael Rauch <mrauch@netbsd.org>
700
701 * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
702 just like R_SPARC_32.
703
056a1d49
NC
7042001-09-14 Kevin Lo <kevlo@openbsd.org>
705
706 * configure.bfd: Add arm-openbsd target.
707
4008bd9b
TS
7082001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
709
710 * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
711 Add support for mips64.
712
c11cc227
AO
7132001-09-13 Alexandre Oliva <aoliva@redhat.com>
714
715 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
716
aa4f99bb
AO
7172001-09-12 Alexandre Oliva <aoliva@redhat.com>
718
719 * elf.c (prep_headers): Get the machine code from the elf
720 backend data.
721 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
722 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
723 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
724 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
725 * elf-arc.c (arc_elf_final_write_processing): Don't override
726 e_machine, it's now properly set in prep_headers.
727 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
728 EM_AVR_OLD.
729 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
730 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
731 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
732 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
733 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
734 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
735 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
736 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
737 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
738 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
739 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
740 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
741
204692d7
RH
7422001-09-11 Richard Henderson <rth@redhat.com>
743
744 * elf64-alpha.c (elf64_alpha_section_flags): New.
745 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
746
f94952df
RH
7472001-09-11 Richard Henderson <rth@redhat.com>
748
749 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
750 apply HINT relocations against dynamic symbols.
751
146f1a87
L
7522001-09-11 H.J. Lu <hjl@gnu.org>
753
f94952df 754 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
146f1a87 755
1cd6895c
RH
7562001-09-09 Richard Henderson <rth@redhat.com>
757
96e2734b
RH
758 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
759
1cd6895c
RH
760 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
761 following a call to a near function.
762
f16fbd61
RH
7632001-09-08 Richard Henderson <rth@redhat.com>
764
765 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
766 relocation errors. Fail gp-relative relocations against
767 dynamic symbols.
768
56882138
AM
7692001-09-08 Alan Modra <amodra@bigpond.net.au>
770
771 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
772 as well as DEF_DYNAMIC in test for avoided copy relocs.
773 (allocate_plt_and_got_and_discard_relocs): Likewise.
774 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
775 (allocate_plt_and_got_and_discard_relocs): Likewise.
776
cb56d3d3
TS
7772001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
778
779 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
780 of R_MIPS_PC16.
56882138
AM
781
7822001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
783
784 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
785 definitions.
786 (mips_elf64_howto_table_rel): Likewise.
787
7882001-09-05 Tom Rix <trix@redhat.com>
789
790 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
791 and syscall symbols.
792 (write_global_symbol) : Same.
793 (bfd_xcoff_export_symbol): Remove unused syscall param.
794 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
795 bfd_xcoff_import_symbol.
796 * bfd-in.h: Same.
797 * bfd-in2.h : Regenerate.
798
7992001-09-04 Richard Henderson <rth@redhat.com>
800
801 * elf64-alpha.c (SKIP_HOWTO): New.
802 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
803 Fix sizes of 16-bit mem format relocs.
804 (elf64_alpha_reloc_map): Update to match.
805 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
806 (elf64_alpha_relax_without_lituse): Likewise.
807 (elf64_alpha_check_relocs): Handle GPREL16.
808 (elf64_alpha_relocate_section): Likewise.
809 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
810 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
811 * bfd-in2.h, libbfd.h: Rebuild.
812
8132001-09-04 Jeff Law <law@redhat.com>
814
815 * elf32-h8300.c (elf32_h8_relax_section): New function.
816 (elf32_h8_relax_delete_bytes): Likewise.
817 (elf32_h8_symbol_address_p): Likewise.
818 (elf32_h8_get_relocated_section_contents): Likewise.
819 (bfd_elf32_bfd_relax_section): Define.
820 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
821
822 * elf32-h8300.c (special): New function.
823 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
824 all relocations.
825 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
826 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
827 Fix minor problems with 8bit and 16bit PC relative relocations.
828
8292001-09-01 Andreas Jaeger <aj@suse.de>
830
831 * vms-tir.c: Add missing prototypes.
832 * vms-hdr.c: Likewise.
833 * vms-gsd.c: Likewise.
834 * vms-misc.c: Likewise.
835
8362001-08-31 H.J. Lu <hjl@gnu.org>
837
838 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
839 with bad relocation.
840
8412001-08-31 Eric Christopher <echristo@redhat.com>
842 Jason Eckhardt <jle@redhat.com>
843
844 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
845 mips32_4k and mips64.
846 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
847 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
848 * bfd/cpu-mips.c: Ditto.
849 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
850 * bfd/bfd-in2.h: Regenerate.
851
8522001-08-31 Jakub Jelinek <jakub@redhat.com>
853
854 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
855 value into R_ALPHA_RELATIVE's addend.
856 (elf64_alpha_finish_dynamic_symbol): Likewise.
857
8582001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
859
860 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
861 recomputed addend during relocatable link if not USE_REL.
862
863 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
864 error.
865
8662001-08-30 H.J. Lu <hjl@gnu.org>
867
868 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
869 2 changes.
870 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
871 relocations for weak definitions.
872
8732001-08-30 H.J. Lu <hjl@gnu.org>
874
875 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
876 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
877 * Makefile.in: Rebuild.
878
8792001-08-30 H.J. Lu <hjl@gnu.org>
880
881 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
882 dynamic relocation for undefined weak symbols when creating
883 executables. Check h->root.root.type, instead of h->root.type.
884
8852001-08-29 Joel Sherrill <joel@OARcorp.com>
886
887 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
888 default from coff to elf.
889
8902001-08-29 Jeff Law <law@redhat.com>
891
892 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
893 relocations.
894 (h8_reloc_map): Similarly.
895 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
896 Add support for PC relative relocations.
897
898 * elf32-h8300.c: Put all prototypes together.
899 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
900 (elf32_h8_final_link_relocate): New function for linker.
901 (elf32_h8_relocate_section): Similarly.
902 (elf_backend_relocate_section): Define.
903
904 * cpu-h8300.c (h8300_scan, compatible): Prototype.
905 (h8300_scan): Handle architecture:machine encodings typically
906 found in linker scripts.
907 * elf.c (prep_headers): Do not try to do H8 machine recognition
908 here.
909 * elf32-h8300.c: Add some missing prototypes.
910 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
911 (elf32_h8_object_p): Similarly.
912
9132001-08-29 Tom Rix <trix@redhat.com>
914
915 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
916 does not follow a XTY_SD.
917
9182001-08-29 Alan Modra <amodra@bigpond.net.au>
919
920 * targmatch.sed: Delete case statements.
921 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
922 aix4.3 and above.
923
924Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
925
926 * Makefile.am (elf32-h8300.lo): New target.
927 * config.bfd (h8300*-*-elf): New case.
928 * configure.in (bfd_elf32_h8300_vec): New case.
929 * elf.c (prep_headers): Add case for bfd_arch_h8300.
930 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
931 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
932 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
933 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
934 * elf32-h8300.c: New file.
935 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
936
9372001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
938
939 * sparclynx.c: Add missing prototypes.
940 * coff-mcore.c: Add missing prototypes.
941 * elf32-pj.c: Add missing prototypes.
942 * nlm32-sparc.c: Add missing prototypes.
943 * oasys.c: Add missing prototypes.
944 * pdp11.c: Add missing prototypes.
945 * pe-mips.c: Add missing prototypes.
946 * riscix.c: Add missing prototypes.
947
9482001-08-27 Daniel Jacobowitz <drow@mvista.com>
949
950 * elf32-i386.c: Add missing prototypes.
951 * elf32-ppc.c: Likewise.
952 * elf32-sh-lin.c: Likewise.
953 * elfarm-nabi.c: Likewise.
954
9552001-08-27 Daniel Jacobowitz <drow@mvista.com>
956
957 * elf32-i386.c (elf_i386_grok_prstatus): New function.
958 (elf_i386_grok_psinfo): New function.
959 (elf_backend_grok_prstatus): Define.
960 (elf_backend_grok_psinfo): Likewise.
961 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
962 (ppc_elf_grok_psinfo): New function.
963 (elf_backend_grok_prstatus): Define.
964 (elf_backend_grok_psinfo): Likewise.
965 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
966 (elf32_shlin_grok_psinfo): New function.
967 (elf_backend_grok_prstatus): Define.
968 (elf_backend_grok_psinfo): Likewise.
969 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
970 (elf32_arm_nabi_grok_psinfo): New function.
971 (elf_backend_grok_prstatus): Define.
972 (elf_backend_grok_psinfo): Likewise.
973
9742001-08-27 H.J. Lu <hjl@gnu.org>
975
976 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
977 sanity check.
978 (mips_elf_calculate_relocation): Create dynamic relocation for
979 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
980 bit is not set.
981
9822001-08-27 H.J. Lu <hjl@gnu.org>
983
984 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
985 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
986 (_bfd_elf32_mips_grok_prstatus): Likewise.
987 (_bfd_elf32_mips_grok_psinfo): Likewise.
988 (_bfd_mips_elf_hide_symbol): Make it static and cast to
989 `struct mips_elf_link_hash_entry *'.
990 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
991
9922001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
993
994 * mipsbsd.c: Add missing prototypes.
995 * hp300hpux.c: Add missing prototypes.
996 * i386aout.c: Add missing prototypes.
997 * i386lynx.c: Add missing prototypes.
998 * i386mach3.c: Add missing prototypes.
999 * i386msdos.c: Add missing prototypes.
1000 * i386os9k.c: Add missing prototypes.
1001
10022001-08-27 Linus Nordberg <linus@swox.se>
1003 Torbjorn Granlund <tege@swox.com>
1004 Staffan Ulfberg <staffanu@swox.se>
1005 Alan Modra <amodra@bigpond.net.au>
1006
1007 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
1008 targ64_selvecs for 32 bit powerpc targets.
1009 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
1010 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
1011 Run "make dep-am".
1012 * Makefile.in: Regenerate.
1013 * configure.in: Add elf64_powerpc vecs.
1014 * configure: Regenerate.
1015 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
1016 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
1017 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
1018 * elf64-ppc.c: New file.
1019 * reloc.c: Add powerpc64 relocs.
1020 * libbfd.h: Regenerate.
1021 * bfd-in2.h: Regenerate.
1022
10232001-08-27 Andreas Schwab <schwab@suse.de>
1024
1025 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
1026 reloc is against read-only section.
1027 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
1028 looking up section names for DT_TEXTREL.
1029 (elf32_m68k_reloc_type_class): New function.
1030 (elf_backend_reloc_type_class): Define.
1031
10322001-08-27 Andreas Jaeger <aj@suse.de>
1033
1034 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1035 reloc is against read-only section.
1036 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1037 looking up section names for DT_TEXTREL.
1038 (elf_s390_reloc_type_class): New.
1039 (elf_backend_reloc_type_class): Define.
1040
1041 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1042 reloc is against read-only section.
1043 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1044 looking up section names for DT_TEXTREL.
1045 (elf_s390_reloc_type_class): New.
1046 (elf_backend_reloc_type_class): Define.
1047
1048 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
1049 is against read-only section.
1050 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1051 looking up section names for DT_TEXTREL.
1052 (ppc_elf_reloc_type_class): New.
1053 (elf_backend_reloc_type_class): Define.
1054
10552001-08-26 Andreas Jaeger <aj@suse.de>
1056
1057 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
1058 reloc is against read-only section.
1059 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
1060 looking up section names for DT_TEXTREL.
1061 (elf_cris_reloc_type_class): New.
1062 (elf_backend_reloc_type_class): Define.
1063
1064 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
1065 against read-only section.
1066 (elf_backend_reloc_type_class): Define.
1067 (sh_elf_reloc_type_class): New.
1068 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1069 looking up section names for DT_TEXTREL.
1070
1071 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
1072 reloc is against read-only section.
1073 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
1074 looking up section names for DT_TEXTREL.
1075 (elf32_arm_reloc_type_class): New.
1076 (elf_backend_reloc_type_class): Define.
1077
10782001-08-25 Andreas Jaeger <aj@suse.de>
1079
1080 * oasys.c: Add missing prototypes.
1081
1082 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
1083 attribute for parameter.
1084 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1085
1086 * versados.c (get_4): Make static.
1087 (get_10): Make static.
1088 Add missing prototypes.
1089 (process_esd): Fix call to versados_new_symbol.
1090
10912001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
1092
1093 * coff-a29k.c: Add missing prototypes.
1094 * coff-apollo.c: Add missing prototypes.
1095 * coff-arm.c: Add missing prototypes.
1096 * coff-i860.c: Add missing prototypes.
1097 * coff-rs6000.c: Add missing prototypes.
1098 * coff-tic80.c: Add missing prototypes.
1099 * elf-m10200.c: Add missing prototypes.
1100 * elf-m10300.c: Add missing prototypes.
1101 * elf32-arm.h: Add missing prototypes.
1102 * elf32-d10v.c: Add missing prototypes.
1103 * elf32-m32r.c: Add missing prototypes.
1104 * elf32-mcore.c: Add missing prototypes.
1105 * elf32-openrisc.c: Add missing prototypes.
1106 * elf32-sh.c: Add missing prototypes.
1107 * elf32-sparc.c: Add missing prototypes.
1108 * elf32-v850.c: Add missing prototypes.
1109 * elfarm-nabi.c: Add missing prototypes.
1110 * elfarm-oabi.c: Add missing prototypes.
1111
11122001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1113
1114 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
1115 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
1116
11172001-08-24 H.J. Lu <hjl@gnu.org>
1118
1119 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
1120 hash structure.
1121
11222001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
1123
1124 * elf-bfd.h (elf_hash_table): Revert definition.
1125 (is_elf_hash_table): New macro.
1126 * elflink.h (elf_link_add_object_symbols): Test
1127 is_elf_hash_table before accessing ELF only fields in hash
1128 structure.
1129 (elf_link_create_dynamic_sections): Fail if not using an ELF
1130 hash structure.
1131 (elf_add_dynamic_entry): Fail if not using an ELF hash
1132 structure.
1133 (elf_link_record_local_dynamic_symbol): Fail if not using an
1134 ELF hash structure.
1135 (size_dynamic_sections): Fail if not using an ELF hash
1136 structure.
1137 (elf_adjust_dynamic_symbol): Fail if not using an ELF
1138 hash structure.
1139 (elf_bfd_final_link): Fail if not using an ELF hash
1140 structure.
1141
11422001-08-24 H.J. Lu <hjl@gnu.org>
1143
1144 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
1145 table is not an ELF linker hash table.
1146
1147 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
1148 table type to bfd_link_elf_hash_table.
1149
1150 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
1151 the last change.
1152
1153 * linker.c (_bfd_link_hash_table_init): Set the linker hash
1154 table type to bfd_link_generic_hash_table.
1155
11562001-08-24 Alexandre Oliva <aoliva@redhat.com>
1157
1158 * bfd.c (bfd_alt_mach_code): New function.
1159 * bfd-in2.h: Rebuilt.
1160
11612001-08-24 Alexandre Oliva <aoliva@redhat.com>
1162
1163 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
1164 `type' field in the hash entry when deciding whether to follow a
1165 link.
1166
11672001-08-24 Jakub Jelinek <jakub@redhat.com>
1168
1169 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
1170 last.
1171 (elf_link_sort_relocs): Adjust accordingly.
1172
1173 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
1174 (elf64_alpha_check_relocs): Set it if section this reloc is against
1175 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
1176 read-only section.
1177 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
1178 is is against read-only section.
1179 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
1180 check section names.
1181 (elf64_alpha_reloc_type_class): New.
1182 (elf_backend_reloc_type_class): Define.
1183
11842001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1185
1186 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
1187 by bfd_malloc().
1188
11892001-08-23 Andreas Jaeger <aj@suse.de>
1190
1191 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
1192 the reloc is against read-only section.
1193 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
1194 of looking up section names for DT_TEXTREL.
1195 (elf64_x86_64_reloc_type_class): New.
1196 (elf_backend_reloc_type_class): Define.
1197
11982001-08-23 H.J. Lu <hjl@gnu.org>
1199
1200 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
1201 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
1202
1203 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
1204 bfd_print_symbol_vandf.
1205 * coffgen.c (coff_print_symbol): Likewise.
1206 * elf.c (bfd_elf_print_symbol): Likewise.
1207 * ieee.c (ieee_print_symbol): Likewise.
1208 * nlmcode.h (nlm_print_symbol): Likewise.
1209 * oasys.c (oasys_print_symbol): Likewise.
1210 * pdp11.c (NAME(aout,print_symbol)): Likewise.
1211 * som.c (som_print_symbol): Likewise.
1212 * srec.c (srec_print_symbol): Likewise.
1213 * tekhex.c (tekhex_print_symbol): Likewise.
1214 * versados.c (versados_print_symbol): Likewise.
1215 * vms.c (vms_print_symbol): Likewise.
1216
1217 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
1218 with bfd_fprintf_vma.
1219 (bfd_elf_print_symbol): Likewise.
1220 * syms.c (bfd_print_symbol_vandf): Likewise.
1221
12222001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1223
1224 * aoutf1.h (sunos_write_object_contents): Silence compile time
1225 warning.
1226 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
1227
1228 * bout.c: Add missing function prototypes. Fix formatting.
1229 * coff-z8k.c: Add missing function prototypes. Fix formatting.
1230 * coff-w65.c: Add missing function prototypes. Fix formatting.
1231 * coff-h8500.c: Add missing function prototypes. Fix formatting.
1232 * coff-h8300.c: Add missing function prototypes. Fix formatting.
1233 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
1234 * coff-tic30.c: Add missing function prototypes. Fix formatting.
1235 * coff-m68k.c: Add missing function prototypes. Fix formatting.
1236 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
1237 * coff-sh.c: Add missing function prototypes. Fix formatting.
1238
12392001-08-23 Jakub Jelinek <jakub@redhat.com>
1240
1241 * elf-bfd.h (enum elf_reloc_type_class): New.
1242 (struct elf_backend_data): Add elf_backend_reloc_type_class.
1243 (_bfd_elf_reloc_type_class): New.
1244 * elfxx-target.h (elf_backend_reloc_type_class): Define.
1245 (elfNN_bed): Add elf_backend_reloc_type_class.
1246 * elf.c (_bfd_elf_reloc_type_class): New.
1247 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
1248 is against read-only section.
1249 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
1250 looking up section names for DT_TEXTREL.
1251 (elf_i386_reloc_type_class): New.
1252 (elf_backend_reloc_type_class): Define.
1253 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
1254 reloc is against read-only section.
1255 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
1256 looking up section names for DT_TEXTREL.
1257 (elf32_sparc_reloc_type_class): New.
1258 (elf_backend_reloc_type_class): Define.
1259 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
1260 reloc is against read-only section.
1261 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1262 looking up section names for DT_TEXTREL.
1263 (sparc64_elf_reloc_type_class): New.
1264 (elf_backend_reloc_type_class): Define.
1265 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
1266 (elfNN_ia64_hash_table_create): Clear ia64_info.
1267 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
1268 section.
1269 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
1270 instead of looking up section names for DT_TEXTREL.
1271 (elfNN_ia64_reloc_type_class): New.
1272 (elf_backend_reloc_type_class): Define.
1273 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
1274 (struct elf_link_sort_rela): New.
1275 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
1276 (elf_bfd_final_link): Call elf_link_sort_relocs.
1277 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
1278 necessary.
1279
12802001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1281
1282 * configure.in (x86-bsdi): No corefile support.
1283 * configure: Regenerate.
1284
12852001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
1286
1287 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
1288 comma.
1289
12902001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
1291
1292 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
1293 the alignment of dwarf2 linkonce sections to 0.
1294 * coff-sto32.c: Likewise.
1295
12962001-08-20 Andreas Jaeger <aj@suse.de>
1297
1298 * coff-sparc.c: Add missing prototypes.
1299 * elf32-s390.c: Likewise.
1300 * elf32-i960.c: Likewise.
1301 * aout-target.h: Likewise.
1302
13032001-08-20 H.J. Lu <hjl@gnu.org>
1304
1305 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
1306 (elf_num_section_syms): New for num_section_syms.
1307
1308 * elf.c (elf_map_symbols): Set num_section_syms.
1309 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
1310 the section symbol index.
1311
13122001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
1313
1314 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
1315 select the generic has table creator. All elf backends need elf
1316 specific fields in the hash table.
1317
13182001-08-20 Alan Modra <amodra@bigpond.net.au>
1319
1320 * archive.c (offsetof): Remove define.
1321 * elf.c: Likewise.
1322 * oasys.c: Likewise
1323 * sysdep.h (offsetof): Define.
1324
13252001-08-17 Alan Modra <amodra@bigpond.net.au>
1326
1327 * bfd.c (bfd_get_gp_size): Return an unsigned int.
1328 (bfd_set_gp_size): Make param unsigned.
1329 * bfd-in2.h: Regenerate.
1330 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
1331 than calling bfd_get_gp_size.
1332 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
1333 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
1334
13352001-08-17 Alan Modra <amodra@bigpond.net.au>
1336
1337 * linker.c (default_fill_link_order): Handle four byte fill value.
1338
13392001-08-17 Alan Modra <amodra@bigpond.net.au>
1340
1341 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
1342 prototype.
1343 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
1344
1345 * elf64-mips.c (UNUSED_RELOC): Define.
1346 (mips_elf64_howto_table_rel): Use it.
1347 (mips_elf64_howto_table_rela): Here too.
1348 (mips_elf64_write_relocs): Fix signed/unsigned warning.
1349
1350 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
1351 silence warning.
1352 * coffgen.c (coff_print_symbol): Fix warnings.
1353 (coff_find_nearest_line): Likewise.
1354 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
1355 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
1356 * format.c (bfd_check_format_matches): Likewise.
1357 (bfd_set_format): Likewise.
1358 * coff-ia64.c: Add missing prototypes.
1359 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
1360 signed to silence warnings.
1361 (elf64_alpha_relocate_section): Likewise.
1362 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
1363 (elf64_alpha_add_symbol_hook): Likewise.
1364 (elf64_alpha_final_link): Likewise.
1365 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
1366 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
1367 (elf64_alpha_size_got_sections): Likewise.
1368 * elfxx-ia64.c: Add missing prototypes.
1369 (elfNN_ia64_relocate_section): Fix warning.
1370 (elfNN_ia64_unwind_entry_compare): Make params const.
1371
13722001-08-17 Alan Modra <amodra@bigpond.net.au>
1373
1374 * config.bfd (targ64_selvecs): New.
1375 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
1376
1377 * bfd-in.h (BFD_VERSION): Remove wrong comment.
1378 (BFD_DEFAULT_TARGET_SIZE): New.
1379 (BFD_ARCH_SIZE): Comment.
1380 * configure.in (target_size): New. Set instead of target64 in
1381 selvecs case statement. Set target64 from it.
1382 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
1383 * bfd-in2.h: Regenerate.
1384 * configure: Regenerate.
1385
13862001-08-17 Alan Modra <amodra@bigpond.net.au>
1387
1388 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
1389 (bfd_errmsgs): Add corresponding message.
1390 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
1391 finding an archive that contains different format object files.
1392 Return bfd_error_wrong_object_format for this case.
1393 * format.c: Formatting fixes. s/CONST/const/.
1394 (bfd_check_format_matches): Accept archives that give
1395 bfd_error_wrong_object_format if no full match is found. Tidy
1396 code handling matching_vector. Don't return a pointer to freed
1397 memory in `matching'. Handle ambiguous matches as for partial
1398 archive matches.
1399 * bfd-in2.h: Regenerate.
1400
14012001-08-15 Alan Modra <amodra@bigpond.net.au>
1402
1403 * libieee.h (common_header_type): Add last_byte field.
1404
1405 * ieee.c: Add missing prototypes. Some format fixes.
1406 (struct output_buffer_struct): Move for availability to prototypes.
1407 (ieee_part_after): New function.
1408 (ieee_slurp_debug): Use it here.
1409 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
1410 ieee_part_after to set last_byte to one past end of current part.
1411 Update callers.
1412 (ieee_pos): Pass in ieee_data_struct rather than bfd.
1413 Update callers.
1414 (parse_expression): Don't go beyond the end of the current part.
1415 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
1416 (ieee_get_symtab_upper_bound, ieee_get_symtab,
1417 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
1418 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
1419 ieee_set_section_contents, ieee_write_object_contents,
1420 ieee_make_empty_symbol): Make static.
1421 (ieee_archive_p): Correct comments regarding bfd_read.
1422 (ieee_object_p): Similarly.
1423 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
1424 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
1425 input_bfd, output_bfd, output_buffer.
1426 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
1427 do_with_relocs, ie. as a symbol for relocatable files.
1428 (ieee_vec): Add comments showing functions referenced by macros.
1429
14302001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
1431
1432 * aout-tic30.c: Add missing prototypes. Fix formatting.
1433 * aout-ns32k.c: Add missing prototypes. Fix formatting.
1434 * peXXigen.c: Add missining prototypes. Fix formatting.
1435 * aout-adobe.c: Add missining prototypes. Fix formatting.
1436
14372001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
1438
1439 * elf32-v850.c: Add missing function prototypes.
1440 Fix some formatting.
1441
1442 * cpu-v850.c: Add missing function prototype.
1443 Fix some formatting.
1444
14452001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
1446
1447 * elf-bfd.h (struct elf_backend_data): Add new fields
1448 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
1449 (bfd_elf_sprintf_vma): Rename function prototype to
1450 '_bfd_elf_sprintf_vma'.
1451 (bfd_elf_fprintf_vma): Rename function prototype to
1452 '_bfd_elf_fprintf_vma'.
1453 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
1454 directly, instead indirect via the elf_backend_data structure.
1455 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
1456 instead indirect via the elf_backend_data structure.
1457 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
1458 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
1459 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
1460 already defined.
1461 (elf_backend_fprintf_vma): Initialise if not already defined.
1462 (struct elf_backend_data): Initialise the
1463 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
1464
14652001-08-10 Andreas Jaeger <aj@suse.de>
1466
1467 * elf64-sparc.c: Add missing prototypes.
1468 * elf32-cris.c: Likewise.
1469 * elf32-i370.c: Likewise.
1470 * elf64-hppa.c: Likewise.
1471 * elf64-s390.c: Likewise.
1472
14732001-08-10 Andreas Jaeger <aj@suse.de>
1474
1475 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
1476 Add prototypes where needed.
1477
14782001-08-10 H.J. Lu <hjl@gnu.org>
1479
1480 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
1481 (bfd_fprintf_vma): Likewise.
1482
14832001-08-10 H.J. Lu <hjl@gnu.org>
1484
1485 * bfd.c (bfd_sprintf_vma): Don't return void.
1486 (bfd_fprintf_vma): Likewise.
1487
14882001-08-10 Andreas Jaeger <aj@suse.de>
1489
1490 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1491 to build warnings.
1492 * configure: Regenerate.
1493
14942001-08-10 Alan Modra <amodra@bigpond.net.au>
1495
1496 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
1497 warning if not BFD64. Add braces so emacs auto format works.
1498 (bfd_elf_fprintf_vma): Likewise.
1499
1500 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
1501 of _xcoff_swap_ld*.
1502 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
1503 param to agree with libxcoff.h.
1504 (xcoff_swap_ldhdr_out): Likewise.
1505 (xcoff_swap_ldsym_in): Likewise.
1506 (xcoff_swap_ldsym_out): Likewise.
1507 (xcoff_swap_ldrel_in): Likewise.
1508 (xcoff_swap_ldrel_out): Likewise.
1509 (xcoff_create_csect_from_smclas): Likewise.
1510 * coff64-rs6000.c: Add missing prototypes.
1511 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
1512 with libxcoff.h.
1513 (xcoff64_swap_ldhdr_out): Likewise.
1514 (xcoff64_swap_ldsym_in): Likewise.
1515 (xcoff64_swap_ldsym_out): Likewise.
1516 (xcoff64_swap_ldrel_in): Likewise.
1517 (xcoff64_swap_ldrel_out): Likewise.
1518 (xcoff64_ppc_relocate_section): Make static.
1519 (xcoff64_slurp_armap): Likewise.
1520 (xcoff64_archive_p): Likewise.
1521 (xcoff64_openr_next_archived_file): Likewise.
1522 (xcoff64_sizeof_headers): Likewise.
1523 (xcoff64_is_lineno_count_overflow): Likewise.
1524 (xcoff64_is_reloc_count_overflow): Likewise.
1525 (xcoff64_loader_symbol_offset): Likewise.
1526 (xcoff64_loader_reloc_offset): Likewise.
1527 * elf64-gen.c: Add missing prototypes.
1528
15292001-08-09 H.J. Lu <hjl@gnu.org>
1530
1531 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
1532 (bfd_elf_fprintf_vma): Likewise.
1533
15342001-08-09 H.J. Lu <hjl@gnu.org>
1535
1536 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
1537 to ...
1538 * elf-bfd.h: Here.
1539 * bfd-in2.h: Regenerated.
1540
15412001-08-09 H.J. Lu <hjl@gnu.org>
1542
1543 * bfd-in.h (bfd_sprintf_vma): New prototype.
1544 (bfd_fprintf_vma): Likewise.
1545 (bfd_elf_sprintf_vma): Likewise.
1546 (bfd_elf_fprintf_vma): Likewise.
1547 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
1548 * bfd-in2.h: Regenerated.
1549
1550 * bfd.c (bfd_sprintf_vma): New. Defined.
1551 (bfd_fprintf_vma): Likewise.
1552
1553 * elf.c (bfd_elf_sprintf_vma): New. Defined.
1554 (bfd_elf_fprintf_vma): Likewise.
1555
15562001-08-09 Alan Modra <amodra@bigpond.net.au>
1557
1558 * coff-rs6000.c: Add missing prototypes.
1559 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
1560 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
1561 xcoff_loader_reloc_offset): Make static.
1562 * dwarf1.c: Add missing prototypes.
1563 * dwarf2.c: Add missing prototypes.
1564 (struct abbrev_info): Move definition.
1565 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
1566 * elf.c: Add missing prototypes.
1567 * elf32-gen.c: Likewise.
1568 * elf32-i386.c: Likewise.
1569 * elf32-ppc.c: Likewise.
1570 (ppc_elf_sort_rela): Use PTR instead of "void *".
1571 * elflink.h: Add missing prototypes. Formatting fixes.
1572 * merge.c: Add missing prototypes.
1573 (last4_eq): Use PTR instead of "void *".
1574 (last_eq): Likewise.
1575 * syms.c: Add missing prototypes.
1576
15772001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
1578
1579 * bfd.c: Fix formatting.
1580 * bfd-in2.h: Regenerate.
1581
15822001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
1583
1584 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
1585 true (this target uses REL relocations) and 'pcrel_offset' to
1586 false (the PC is implied, not stored in the offset).
1587
15882001-08-08 Alan Modra <amodra@bigpond.net.au>
1589
1590 1999-10-19 Linus Nordberg <linus@swox.se>
1591 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
1592 * elfxx-target.h (elf_backend_want_got_sym): Define.
1593 (elfNN_bed): Add elf_backend_want_got_sym.
1594 * elflink.c (_bfd_elf_create_got_section): Define
1595 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
1596
15972001-08-08 Alexandre Oliva <aoliva@redhat.com>
1598
1599 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
1600 (find_rela_addend): New function.
1601 (parse_comp_unit): Call it to find the abbrev offset addend.
1602 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
1603 members of dwarf2_debug as debugging information is read.
1604
16052001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
1606
1607 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
1608 targets as well as sh-pe.
1609
16102001-08-03 Ben Harris <bjh21@netbsd.org>
1611
1612 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
1613 reloc from start of section when computing value for R_ARM_REL32
1614 reloc.
1615
16162001-08-03 Alan Modra <amodra@bigpond.net.au>
1617
1618 From H.J. Lu <hjl@gnu.org>
1619 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
1620 keep relocs for undefined syms if there are no dynamic sections in
1621 executable.
1622 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
1623
16242001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1625
1626 * cofflink.c (coff_link_check_ar_symbols): also search for
1627 __imp__symbol as well as _symbol.
1628 * linker.c (_bfd_generic_link_add_archive_symbols): also
1629 search for __imp__symbol as well as _symbol.
1630
16312001-08-01 Adam Nemet <anemet@lnxw.com>
1632
1633 * elf.c (elf_sort_sections): Return zero only as the last step.
1634
16352001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
1636
1637 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
1638 ARM_COFF_BUGFIX.
1639 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
1640 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
1641 ARM_COFF_BUGFIX.
1642
16432001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1644
1645 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
1646 to match corresponding bfd_coff_backend data member.
1647
16482001-07-24 Alan Modra <amodra@bigpond.net.au>
1649
1650 * Makefile.am: Update dependencies with "make dep-am".
1651 * Makefile.in: Regenerate
1652
16532001-07-15 H.J. Lu <hjl@gnu.org>
1654
1655 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
1656 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
1657 * Makefile.in: Regenerate.
1658
16592001-07-11 H.J. Lu <hjl@gnu.org>
1660
1661 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
1662 flags when creating the reloc section if the ALLOC flag in the
1663 source section is set.
1664
16652001-07-11 Steve Ellcey <sje@cup.hp.com>
1666
1667 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
1668 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
1669 * bfd-in2.h: Regenerate.
1670 * libbfd.h: Regenerate.
1671 * elfxx-ia64.c (ia64_howto_table): Define how to handle
1672 new relocations.
1673 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
1674 (elfNN_ia64_check_relocs): Likewise.
1675 (elfNN_ia64_install_value): Likewise.
1676 (elfNN_ia64_relocate_section): Likewise.
1677
16782001-07-11 Jakub Jelinek <jakub@redhat.com>
1679
1680 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
1681 R_SPARC_UA64.
1682 (elf32_sparc_check_relocs): Likewise.
1683 Only create .rela section for alloced sections in shared libraries.
1684 (elf32_sparc_relocate_section): Likewise.
1685 Remove redundant check.
1686 Optimize unaligned reloc usage.
1687 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
1688 check.
1689
16902001-07-11 H.J. Lu <hjl@gnu.org>
1691
1692 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
1693 ALLOC|LOAD flags as the source section for debugging sections
1694 when creating the reloc section.
1695
16962001-07-05 Jim Wilson <wilson@redhat.com>
1697
1698 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
1699 the section of the bigger symbol.
1700
1701 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
1702
17032001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
1704
1705 * peicode.h (coff_swap_scnhdr_in): For sections containing
1706 uninitialised data, only set their size to s_paddr if this does
1707 not reset their size to zero. MS's latest compilers will set
1708 s_paddr to zero.
1709
17102001-07-04 H.J. Lu <hjl@gnu.org>
1711
1712 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
1713 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
1714 bfd_mach_mips5000.
1715
17162001-07-03 Mark Elbrecht <snowball3@softhome.net>
1717
1718 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
1719
1720 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
1721 sections being discarded.
1722
17232001-06-30 Alan Modra <amodra@bigpond.net.au>
1724
1725 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
1726 instead of _bfd_elfcore_section_from_phdr.
1727 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
1728 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
1729 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
1730 (elfcore_grok_prstatus): Likewise.
1731 (elfcore_grok_lwpstatus): Likewise.
1732 (bfd_get_elf_phdr_upper_bound): Likewise.
1733 (elfcore_make_note_pseudosection): Formatting.
1734 (_bfd_elfcore_strndup): Formatting.
1735 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
1736 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
1737
17382001-06-29 Daniel Jacobowitz <drow@mvista.com>
1739
1740 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
1741 and _bfd_elfcore_strndup.
1742 (struct elf_backend_data): Add elf_backend_grok_prstatus
1743 and elf_backend_grok_psinfo.
1744 * elf.c (_bfd_elfcore_make_pseudosection): New function.
1745 (elfcore_grok_prstatus): Use it.
1746 (elfcore_make_note_pseudosection): Likewise.
1747 (elfcore_strndup): Rename to...
1748 (_bfd_elfcore_strndup): Here, and make global.
1749 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
1750 (elfcore_grok_note): Call elf_backend_grok_prstatus
1751 and elf_backend_grok_psinfo if available.
1752 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
1753 (_bfd_elf32_mips_grok_psinfo): New function.
1754 (elf_backend_grok_prstatus): Define.
1755 (elf_backend_grok_psinfo): Define.
1756 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
1757 (elf_backend_grok_psinfo): Likewise.
1758 (elfNN_bed): Include elf_backend_grok_prstatus and
1759 elf_backend_grok_psinfo.
1760
17612001-06-29 H.J. Lu <hjl@gnu.org>
1762
1763 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
1764 hplink->sgot is NULL before filling GOT. Check if hplink->splt
1765 is NULL before filling PLT.
1766
17672001-06-29 Alan Modra <amodra@bigpond.net.au>
1768
1769 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
1770
17712001-06-27 Alan Modra <amodra@bigpond.net.au>
1772
1773 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
1774 here..
1775 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
1776 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
1777 after gc has run.
1778
1779 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
1780 (IS_ABSOLUTE_RELOC): Define.
1781 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
1782 (hppa_link_hash_newfunc): Always init it.
1783 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
1784 create COPY relocs only when the reloc is in a read-only section.
1785 Instead, allocate space for a dynamic reloc to reference the
1786 library symbol directly. Keep track of space we allocate using
1787 relocs_entries.
1788 (hppa_discard_copies): Delete, and move code to..
1789 (allocate_plt_and_got): ..here. Rename to
1790 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
1791 relocs for non-shared link.
1792 (elf32_hppa_size_dynamic_sections): Update calls to above.
1793 (elf32_hppa_relocate_section): Write out the dynamic relocs used
1794 in lieu of COPY relocs.
1795
1796 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
1797 here..
1798 (elf_i386_adjust_dynamic_symbol): ..nor here..
1799 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
1800 after gc has run.
1801 (elf_i386_size_dynamic_sections): Fix a comment.
1802 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
1803 involved in writing reloc out.
1804
18052001-06-25 Alan Modra <amodra@bigpond.net.au>
1806
1807 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
1808 Ensure syms are dynamic if we might be emitting a reloc.
1809 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
1810 for undefweak or undefined syms..
1811 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
1812
1813 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
1814 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
1815 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
1816 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
1817
18182001-06-24 H.J. Lu <hjl@gnu.org>
1819
1820 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
1821 strncasecmp/strcasecmp instead of strncmp/strcmp.
1822
18232001-06-23 H.J. Lu <hjl@gnu.org>
1824
1825 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
1826 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
1827 in the regular object file and treat the weak definition as
1828 the normal one.
1829
18302001-06-23 Alan Modra <amodra@bigpond.net.au>
1831
1832 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
1833 unresolved_reloc test to exclude cases where we use "relocation"
1834 before setting it to point into the .got. Reinstate fudge for
1835 unresolved relocs in debugging sections.
1836
1837 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
1838 complicated tests for unresolvable relocs with a simple direct
1839 scheme using "unresolved_reloc" var.
1840
1841 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
1842 elf_i386_dyn_relocs. Update comment.
1843 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
1844 dyn_relocs.
1845 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
1846 others to aborts.
1847 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
1848 abort.
1849 (elf_i386_size_dynamic_sections): Likewise.
1850 (elf_i386_finish_dynamic_symbol): Likewise.
1851 (elf_i386_finish_dynamic_sections): Likewise.
1852 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
1853 handling code.
1854
1855 Avoid creating COPY relocs if possible.
1856 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
1857 which .got created. Mark symbols used by R_386_32 and R_386_PC32
1858 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
1859 reloc is in a read-only section. Instead, allocate space for a
1860 dynamic reloc to reference the library symbol directly. Keep
1861 track of space we allocate using pcrel_relocs_copied.
1862 (discard_copies): Delete, and move code to ..
1863 (allocate_plt_and_got): ..here. Rename to
1864 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
1865 relocs for non-shared link.
1866 (elf_i386_size_dynamic_sections): Update calls to above functions.
1867 (elf_i386_relocate_section): Write out the dynamic relocs. Add
1868 more ugly logic to avoid "unresolvable relocation" error. Use
1869 htab shortcut in place of elf_hash_table macro.
1870 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
1871 not always be created now.
1872
18732001-06-20 Bo Thorsen <bo@suse.co.uk>
1874
1875 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
1876 shared libraries.
1877
18782001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1879
1880 * configure.host (mips64-*-linux): Reformat.
1881
18822001-06-21 Alan Modra <amodra@bigpond.net.au>
1883
1884 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
1885 allocate local .got space. Use shortcuts from hash table for .got
1886 and .plt rather than comparing section names.
1887 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
1888 adjusting index into local_got_refcounts to document what we are
1889 really doing.
1890 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
1891 Tidy .got and .plt error checking.
1892
18932001-06-20 Catherine Moore <clm@redhat.com>
1894
1895 * elf-bfd.h (struct elf_backend_data):
1896 elf_backend_emit_relocs: New field: Function for emitting
1897 relocs.
1898 elf_backend_count_relocs: New field: Function for determining
1899 the number of relocs to be emitted.
1900 * elfxx-target.h: Provide default (NULL) values for
1901 elf_backend_emit_relocs and elf_backend_count_relocs.
1902 * elflink.h (elf_link_size_reloc_section): Make the hash table
1903 big enough to hold the relocs counted by either reloc_count or
1904 o->reloc_count.
1905 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
1906 should be emitted, either because of a command line option
1907 stored in the info structure or because the target provides a
1908 special reloc emitting function.
1909 If the target provides a reloc counting function use it,
1910 unless performing a relocatable link or emitting all relocs.
1911 Also set the SEC_RELOC flag on any output section which will
1912 contain relocs.
1913 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
1914 should be emitted, either because of a command line option
1915 stored in the info structure or because the target provides a
1916 special reloc emitting function.
1917 If the target provides a reloc emitting function, use it,
1918 unless performing a relocatable link or emitting all relocs.
1919
19202001-06-20 H.J. Lu <hjl@gnu.org>
1921
1922 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
1923 allocate local .got space.
1924
19252001-06-19 Andreas Jaeger <aj@suse.de>
1926
1927 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
1928 dynamic symbols.
1929
19302001-06-18 Hans-Peter Nilsson <hp@axis.com>
1931
1932 * elflink.h (struct elf_assign_sym_version_info): Remove member
1933 export_dynamic. All users changed to use info member.
1934 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
1935 export_dynamic, instead use member in parameter info.
1936 * bfd-in.h (bfd_elf32_size_dynamic_sections,
1937 bfd_elf64_size_dynamic_sections): Update prototype.
1938 * bfd-in2.h: Regenerate.
1939
19402001-06-18 H.J. Lu <hjl@gnu.org>
1941
1942 * elflink.h (elf_info_failed): Add a new field, verdefs.
1943 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
1944 elf_export_symbol.
1945 (elf_export_symbol): Check eif->verdefs to decide if a symbol
1946 should be exported.
1947
19482001-06-17 H.J. Lu <hjl@gnu.org>
1949
1950 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
1951 readonly_reloc, to record if a relocation in the .rel.dyn
1952 section is against a read-only section.
1953 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
1954 field to false.
1955 (_bfd_mips_elf_check_relocs): Record if there is a relocation
1956 in the .rel.dyn section against a read-only section by setting
1957 DF_TEXTREL or readonly_reloc.
1958 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
1959 it is true.
1960 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
1961 there is a relocation in the .rel.dyn section against a
1962 read-only section.
1963 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
1964 DF_TEXTREL is set.
1965
19662001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1967
1968 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
1969 function. Move flagword result into parameter list. Remove
1970 comment about setting bfd_error_handler to intercept failure
1971 results.
1972 * coffgen.c (make_a_section_from_file): Examine result of
1973 calling bfd_coff_styp_to_sec_flags and pass a failure back to
1974 caller.
1975 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
1976 function. Move flagword result into parameter list.
1977 * libcoff.h: Regenerate.
1978 * libecoff.h: Regenerate.
1979
19802001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
1981
1982 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
1983 section is going to follow it.
1984
19852001-06-12 Catherine Moore <clm@redhat.com>
1986
1987 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
1988 with the file_align entry from elf_backend_data.
1989 (elf_gc_smash_unused_vtentry_relocs): Likewise.
1990 (elf_gc_record_vtentry): Likewise.
1991
19922001-06-10 Alan Modra <amodra@bigpond.net.au>
1993
1994 * elflink.h: Whitespace changes.
1995 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
1996 rather than "unsigned char".
1997 (elf_link_output_relocs): Likewise.
1998 (elf_link_input_bfd): Likewise.
1999 (elf_reloc_link_order): LIkewise.
2000 * elf.c: s/CONST/const/. Whitespace changes.
2001 * elf32-mips.c: Formatting fix.
2002
2003 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
2004 * Makefile.in: Regenerate.
2005 * po/Make-in: Remove trailing tab.
2006
20072001-06-09 Philip Blundell <philb@gnu.org>
2008
2009 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
2010 change.
2011 (elf32_arm_plt_entry): Likewise.
2012
20132001-06-08 H.J. Lu <hjl@gnu.org>
2014
2015 * elf.c (swap_out_syms): Keep names for global section symbols.
2016
20172001-06-07 H.J. Lu <hjl@gnu.org>
2018
2019 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
2020 MIPS-based machines need it.
2021
20222001-06-07 H.J. Lu <hjl@gnu.org>
2023
2024 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
2025 for SGI only.
2026
2027 * config.bfd: Remove ecoff from Linux/mips.
2028
20292001-06-07 Andreas Jaeger <aj@suse.de>
2030
2031 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
2032 assertion.
2033 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
2034 alignment of 8 for .rela sections; handle further relocations.
2035
20362001-06-06 Christian Groessler <cpg@aladdin.de>
2037
2038 * coff-z8k.c: Fix formatting.
2039 Fix howtos: howto->size was always 1.
2040
20412001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2042
2043 * configure.host (mips64*-*-linux*): Define.
2044
20452001-06-05 Alan Modra <amodra@bigpond.net.au>
2046
2047 * elf32-i386.c (elf_i386_discard_copies): Rename to
2048 discard_copies, and use elf_link_hash_entry arg rather than
2049 elf_i386_link_hash_entry.
2050 (elf_i386_link_hash_traverse): Delete.
2051 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
2052 Tidy sizing of dynamic sections.
2053 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
2054 possible .plt entries.
2055 (elf_i386_gc_sweep_hook): Likewise.
2056 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
2057 everything with plt.refcount <= 0.
2058
2059 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
2060 .relgot space here.
2061 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
2062 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
2063 .rel.plt here..
2064 (allocate_plt_and_got): ..instead do it all here. New function.
2065 (elf_i386_size_dynamic_sections): Allocate local .got space and
2066 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
2067 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
2068 rather than gc variety).
2069 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2070 (elf_i386_relocate_section): Use it here and correct handling of
2071 R_386_GOT32. Provide section and offset for "unresolvable
2072 relocation" error message.
2073 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
2074
2075 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
2076 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
2077 (elf_i386_link_hash_table_create): Init them.
2078 (create_got_section): New function.
2079 (elf_i386_create_dynamic_sections): New function.
2080 (elf_backend_create_dynamic_sections): Set to above.
2081 (elf_i386_check_relocs): Use shortcuts from hash table rather than
2082 calling bfd_get_section_by_name.
2083 (elf_i386_gc_sweep_hook): Likewise.
2084 (elf_i386_adjust_dynamic_symbol): Likewise.
2085 (elf_i386_size_dynamic_sections): Likewise.
2086 (elf_i386_relocate_section): Likewise.
2087 (elf_i386_finish_dynamic_sections): Likewise.
2088
2089 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
2090
20912001-06-02 H.J. Lu <hjl@gnu.org>
2092
2093 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
2094 and ELFOSABI_HPUX.
2095 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
2096
20972001-06-02 H.J. Lu <hjl@gnu.org>
2098
2099 * aout-cris.c (MACHTYPE_OK): New. Defined.
2100
21012001-06-02 Hans-Peter Nilsson <hp@axis.com>
2102
2103 * section.c (_bfd_strip_section_from_output): Handle NULL
2104 output_section.
2105
21062001-06-02 H.J. Lu <hjl@gnu.org>
2107
2108 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
2109 rs6000coff64_vec only if BFD64 is defined.
2110 (powerpc64-*-aix*): Enable only if BFD64 is defined.
2111
21122001-06-02 H.J. Lu <hjl@gnu.org>
2113
2114 * coff-ia64.c (ia64coff_object_p): Rewrite with
2115 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
2116
21172001-06-01 Andreas Jaeger <aj@suse.de>
2118
2119 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
2120 relocation, small reformatting.
2121
21222001-05-29 Andreas Jaeger <aj@suse.de>
2123
2124 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
2125 (elf64_x86_64_relocate_section): Likewise.
2126
21272001-05-30 Alan Modra <amodra@one.net.au>
2128
2129 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
2130 millicode. Don't allocate .got and .rela.got space here..
2131 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
2132 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
2133 .rela.plt here..
2134 (hppa_handle_PIC_calls): ..nor here..
2135 (allocate_plt_and_got): ..instead do it all here. New function.
2136 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
2137 call allocate_plt_and_got. No need to zap .got if not dynamic.
2138 (elf32_hppa_final_link): Call regular bfd_final_link instead of
2139 gc_common_final_link.
2140 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2141 (elf32_hppa_relocate_section): Use it here.
2142 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
2143 dynamic_sections_created.
2144 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
2145
21462001-05-28 Andreas Jaeger <aj@suse.de>
2147
2148 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
2149 generic version since we want a hashsize of 4.
2150 (elf_backend_size_info): Likewise.
2151
21522001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2153
2154 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
2155 a zeroing loop.
2156 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
2157 (elf_link_input_bfd): Likewise.
2158 (elf_reloc_link_order): Likewise.
2159 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
2160 relocations correctly.
2161
21622001-05-28 Nicolas Pitre <nico@cam.org>
2163
2164 * elf32-arm.h: fix PLT generation for big endian ARM
2165
21662001-05-28 Alan Modra <amodra@one.net.au>
2167
2168 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
2169 for symbols forced local that need plabels.
2170 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
2171 .plt.rela for local syms if non-shared.
2172 (hppa_build_one_stub): Mask lsb of plt.offset.
2173 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
2174 (clobber_millicode_symbols): Correct comment.
2175 (elf32_hppa_relocate_section): Likewise.
2176 (elf32_hppa_finish_dynamic_symbol): Likewise.
2177
21782001-05-28 Jeff Sturm <jsturm@one-point.com>
2179
2180 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
2181 * bfd-in2.h: Regenerate.
2182 * libbfd.h: Regenerate.
2183 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
2184 and BFD_RELOC_SPARC_UA64 mapping
2185 * elf64-sparc.c: Likewise.
2186
21872001-05-25 H.J. Lu <hjl@gnu.org>
2188
2189 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
2190 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
2191 (coff-rs6000.lo): Remove the old dependency.
2192 * Makefile.in: Rebuild.
2193
2194 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
2195 coff-rs6000.lo.
2196
21972001-05-25 H.J. Lu <hjl@gnu.org>
2198
2199 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
2200 rs6000coff_core_file_matches_executable_p,
2201 rs6000coff_core_file_failing_command and
2202 rs6000coff_core_file_failing_signal only if AIX_CORE is
2203 defined.
2204 (pmac_xcoff_vec): Likewise.
2205 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
2206
22072001-05-25 Timothy Wall <twall@redhat.com>
2208
2209 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
2210 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
2211
22122001-05-25 H.J. Lu <hjl@gnu.org>
2213
2214 * bfd-in2.h: Regenerated.
2215 * libcoff.h: Likewise.
2216
22172001-05-25 Alan Modra <amodra@one.net.au>
2218
2219 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
2220 undefined millicode syms in shared libs.
2221 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
2222 (elf32_hppa_check_relocs): Likewise.
2223 (elf32_hppa_adjust_dynamic_symbol): Likewise.
2224 (elf32_hppa_size_dynamic_sections): Likewise.
2225 (elf32_hppa_relocate_section): Likewise.
2226 (elf32_hppa_finish_dynamic_symbol): Likewise.
2227 (elf32_hppa_finish_dynamic_sections): Likewise.
2228
22292001-05-24 Tom Rix <trix@redhat.com>
2230
2231 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
2232 xcoff-target.h not used to define rs6000 or ppc bfd.
2233 * Makefile.in same
2234
2235 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
2236 to 64 bit.
2237
2238 * coff-rs6000.c : Many changes for 64 bit support. Move common
2239 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
2240 and pmac_xcoff_vec
2241
2242 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
2243 linker now supported. Explictly define the rs6000coff64_vec.
2244
2245 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
2246 (coff_print_aux) same
2247 (coff_write_object_contents) same
2248 (coff_slurp_line_table) same
2249
2250 * coffgen.c : (coff_fix_symbol_name) formatting
2251 (coff_mangle_symbols) xcoff 64 bit support
2252 (coff_write_symbol) same
2253 (coff_write_alien_symbol) same
2254 (coff_write_native_symbol) same
2255 (coff_write_symbols) same
2256 (coff_get_symbol_info) same
2257 (bfd_coff_get_syment) same
2258 (coff_print_symbol) same
2259
2260 * config.bfd : add powerpc64-*-aix* target
2261
2262 * libcoff-in.h : formatting
2263
2264 * libcoff.h : move xcoff extern declarations to libxcoff.h
2265
2266 * libxcoff.h : New file
2267
2268 * xcofflink.c : Many changes for xcoff64 support. Move common
2269 structures to include/coff/xcoff.h. Move specific structure to
2270 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
2271 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
2272
2273 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
2274 aix4.2+ -binitfini.
2275
2276 (xcoff_build_ldsyms) : handle special __rtinit symbol.
2277
22782001-05-23 Alexandre Oliva <aoliva@redhat.com>
2279
2280 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
2281 s/ENTIRES/ENTRIES/.
2282
22832001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2284
2285 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
2286 * libbfd.h: Regenerate.
2287 * bfd-in2.h: Regenerate.
2288
2289 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
2290 * archures.c (bfd_mach_mips12000): Define.
2291 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
2292 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
2293 support.
2294 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
2295 * bfd-in2.h: Regenerate.
2296 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
2297
22982001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
2299
2300 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
2301 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
2302 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
2303 that is used by GCC.
2304
23052001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2306
2307 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
2308 of entries in a structured section.
2309 * elf.c: Use new macro.
2310 * elf32-i386.c: Use new macro.
2311 * elf32-mips.c: Use new macro.
2312 * elf64-alpha.c: Use new macro.
2313 * elf64-sparc.c: Use new macro.
2314 * elfcode.h: Use new macro.
2315 * elflink.h: Use new macro.
2316
23172001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2318
2319 * bfdint.texi: Replace -oformat with --oformat.
2320
23212001-05-21 Andreas Jaeger <aj@suse.de>
2322
2323 * dwarf2.c (decode_line_info): Fix error message.
2324 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
2325 adjust error message.
2326
23272001-05-18 H.J. Lu <hjl@gnu.org>
2328
2329 * elflink.h (elf_link_add_object_symbols): Revert the last
2330 change.
2331
23322001-05-17 Alan Modra <amodra@one.net.au>
2333
2334 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
2335 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
2336 (hppa_build_one_stub): Add an assert to check plt.offset.
2337
23382001-05-17 H.J. Lu <hjl@gnu.org>
2339
2340 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
2341 version definition to basename of the output filename.
2342
23432001-05-17 H.J. Lu <hjl@gnu.org>
2344
2345 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
2346 basename of the bfd filename.
2347
23482001-05-16 Alan Modra <amodra@one.net.au>
2349
2350 * section.c (asection): Add linker_has_input field.
2351 (STD_SECTION): Adjust initialization to suit.
2352 * ecoff.c (bfd_debug_section): Likewise.
2353 * bfd-in2.h: Regenerate.
2354
23552001-05-15 Alexandre Oliva <aoliva@redhat.com>
2356
2357 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
2358 negative 32-bit operands to 16 operands when the operand is
2359 going to be zero-extended by the modified opcode.
2360
23612001-05-12 Peter Targett <peter.targett@arccores.com>
2362
2363 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
2364 name for 'arc5' core versions.
2365 (bfd_arc_arch): Make bfd_mach_arc_6 default.
2366
2367 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
2368 architecture.
2369 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
2370
23712001-05-11 Jakub Jelinek <jakub@redhat.com>
2372
2373 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
2374 sections as well.
2375 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
2376 to .gnu.linkonce.t.FOO text section.
2377
23782001-05-11 Jakub Jelinek <jakub@redhat.com>
2379
2380 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
2381 fields, change sec into secinfo.
2382 (struct sec_merge_info): Add chain, remove last fields.
2383 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
2384 (sec_merge_hash_lookup): If lookup could not use a string only
2385 because it has bad alignment, mark the old string for deletion.
2386 (sec_merge_add): Add secinfo argument. Don't compute entry's
2387 position, instead record the section.
2388 (sec_merge_emit): Update for the sec into secinfo change in
2389 struct sec_merge_hash_entry.
2390 (_bfd_merge_section): Only record the section for merging, defer
2391 putting strings into the hash table.
2392 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
2393 _bfd_merge_sections): New functions.
2394 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
2395 changes.
2396 * libbfd-in.h (_bfd_merge_sections): Add prototype.
2397 (_bfd_nolink_bfd_merge_sections): Define.
2398 * libbfd.h: Likewise.
2399 (bfd_generic_merge_sections): Add prototype.
2400 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
2401 (struct bfd_target): Likewise.
2402 * bfd.c (bfd_merge_sections): Define.
2403 * bfd-in2.h: Rebuilt.
2404 * elf.c (_bfd_elf_merge_sections): New function.
2405 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
2406 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
2407 * reloc.c (bfd_generic_merge_sections): New function.
2408 * vms.c (vms_bfd_merge_sections): New function.
2409 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
2410 * aout-target.h (MY_bfd_merge_sections): Define.
2411 * aout-tic30.c (MY_bfd_merge_sections): Define.
2412 * binary.c (binary_bfd_merge_sections): Define.
2413 * bout.c (b_out_bfd_merge_sections): Define.
2414 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
2415 * coffcode.c (coff_bfd_merge_sections): Define.
2416 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
2417 * i386msdos.c (msdos_bfd_merge_sections): Define.
2418 * i386os9k.c (os9k_bfd_merge_sections): Define.
2419 * ieee.c (ieee_bfd_merge_sections): Define.
2420 * ihex.c (ihex_bfd_merge_sections): Define.
2421 * nlm-target.h (nlm_bfd_merge_sections): Define.
2422 * oasys.c (oasys_bfd_merge_sections): Define.
2423 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
2424 * som.c (som_bfd_merge_sections): Define.
2425 * srec.c (srec_bfd_merge_sections): Define.
2426 * tekhex.c (tekhex_bfd_merge_sections): Define.
2427 * versados.c (versados_bfd_merge_sections): Define.
2428 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
2429
24302001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
2431
2432 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
2433 to be unsigned long, in order to match its use.
2434
24352001-05-10 H.J. Lu <hjl@gnu.org>
2436
2437 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
2438 indirect symbols.
2439
24402001-05-09 H.J. Lu <hjl@gnu.org>
2441
2442 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
2443 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
2444 Remove the unused veriable `dynver'.
2445
24462001-05-08 Ian Lance Taylor <ian@zembu.com>
2447
2448 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
2449 NULL or is not COFF.
2450 (coff_i386_rtype_to_howto): Don't dump core if output section
2451 owner is not COFF.
2452
24532001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2454
2455 * ecoff.c (bfd_debug_section): Fix initialization.
2456 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
2457 is always a positive integer. Cast away sign mismatch.
2458 * elf32-mips.c: Fix misleading comment and typo.
2459 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
2460 correct data type.
2461 * elflink.c: Fix typo.
2462 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
2463 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
2464
24652001-05-04 Richard Henderson <rth@redhat.com>
2466
2467 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
2468
24692001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
2470
2471 * elf32-arm.h (elf32_arm_final_link_relocate): Set
2472 EF_ARM_HASENTRY if the start address is set.
2473
24742001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
2475
2476 * targets.c (_bfd_target_vector_entries): Compute value based on
2477 the size of the _bfd_target_vector and not bfd_target_vector.
2478
24792001-05-03 H.J. Lu <hjl@gnu.org>
2480
2481 * elfcode.h: Include "libiberty.h".
2482
2483 * elflink.h (elf_link_add_object_symbols): Set
2484 elf_dt_name (abfd) to basename of the bfd filename.
2485 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
2486 of the bfd filename.
2487
24882001-05-03 Andreas Jaeger <aj@suse.de>
2489
2490 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
2491 (elf_generic_info_to_howto_rel): Likewise.
2492 * coff-alpha.c (reloc_nil): Likewise.
2493 (alpha_ecoff_bad_format_hook): Likewise.
2494 (alpha_adjust_reloc_out): Likewise.
2495 (alpha_bfd_reloc_type_lookup): Likewise.
2496 (alpha_convert_external_reloc): Likewise.
2497 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
2498 (elf64_alpha_reloc_bad): Likewise.
2499 (elf64_alpha_reloc_gpdisp): Likewise.
2500 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
2501 (elf64_alpha_info_to_howto): Likewise.
2502 (elf64_alpha_add_symbol_hook): Likewise.
2503 (elf64_alpha_create_got_section): Likewise.
2504 (elf64_alpha_is_local_label_name): Likewise.
2505 (elf64_alpha_merge_ind_symbols): Likewise.
2506 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
2507 (mips_elf64_get_reloc_upper_bound): Likewise.
2508 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
2509 (nlm_alpha_get_public_offset): Likewise.
2510
25112001-05-02 Johan Rydberg <jrydberg@opencores.org>
2512
2513 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
2514 about overflow in R_OPENRISC_LO_16_IN_INSN and
2515 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
2516
25172001-04-30 H.J. Lu <hjl@gnu.org>
2518
2519 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
2520 only for ELF_LINK_FORCED_LOCAL.
2521 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
2522 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
2523 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
2524
2525 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
2526 if the symbol has hidden or internal visibility.
2527
25282001-04-30 Alan Modra <amodra@one.net.au>
2529
2530 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
2531 calls to undefined weak symbols.
2532
25332001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
2534
2535 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
2536 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
2537
25382001-04-27 Andreas Jaeger <aj@suse.de>
2539
2540 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
2541 out handled entries.
2542 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
2543 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
2544 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
2545 GOT32.
2546
25472001-04-27 Sean McNeil <sean@mcneil.com>
2548
2549 * config.bfd: Add arm-vxworks target.
2550 * coff-arm (coff_arm_relocate_section): Add in symbol value to
2551 addend (fro VXworks targets).
2552
25532001-04-26 H.J. Lu <hjl@gnu.org>
2554
2555 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
2556 valid.
2557
25582001-04-25 Frank Ch. Eigler <fche@redhat.com>
2559
2560 * bfd-in.h (bfd_cache_close): Declare newly exported function.
2561 * bfd-in2.h: Regenerated.
2562
25632001-04-24 Jakub Jelinek <jakub@redhat.com>
2564
2565 * merge.c (struct sec_merge_hash_entry): Add alignment field.
2566 (struct sec_merge_hash): Remove alignment_power.
2567 (sec_merge_hash_newfunc): Clear alignment.
2568 (sec_merge_hash_lookup): Pass alignment as argument.
2569 Use hashp->root.next, not hashp->next to walk the hash chain.
2570 If a string already in the hashtable does not have required
2571 alignment, create a new hashtable entry.
2572 (sec_merge_init): Remove alignment_power argument.
2573 (sec_merge_add): Add alignment argument.
2574 (sec_merge_emit): Alignment is now a per-entity thing, not per
2575 section.
2576 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
2577 for proper alignment.
2578 Pass alignment information to sec_merge_add.
2579
25802001-04-24 Christian Groessler <cpg@aladdin.de>
2581
2582 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
2583 and R_REL16 reloc types; accept odd values for R_REL16 type
2584
25852001-04-24 Johan Rydberg <jrydberg@opencores.org>
2586
2587 * cpu-openrisc.c: New file.
2588 * elf32-openrisc.c: Likewise.
2589
2590 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
2591 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
2592 (BFD32_BACKENDS): Add elf32-openrisc.lo.
2593 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
2594 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
2595 * Makefile.in: Regenerated.
2596 * config.bfd: (openrisc-*-elf): New target.
2597 * configure.in (bfd_elf32_openrisc_vec): New vector.
2598 * configure: Regenerated.
2599 * libbfd.h: Regenerated.
2600 * bfd-in2.h: Regenerated.
2601 * reloc.c: Add OpenRISC relocations.
2602 * targets.c (bfd_elf32_openrisc_vec): Declare.
2603 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
2604 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
2605 (bfd_openrisc_arch): Declare.
2606 (bfd_archures_list): Add bfd_openrisc_arch.
2607 * elf.c (prep_headers): Add bfd_arch_openrisc.
2608
26092001-04-23 Bo Thorsen <bo@suse.de>
2610
2611 * elf64-x86-64.c: Add c++ vtable hack.
2612 Small whitespace and comment changes.
2613
26142001-04-19 Andreas Jaeger <aj@suse.de>
2615
2616 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
2617 (elf64_x86_64_plt_entry): Likewise.
2618 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
2619 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
2620
26212001-04-17 Hans-Peter Nilsson <hp@axis.com>
2622
2623 * elf32-cris.c: Tweak comments related to dynamic linking.
2624 (cris_elf_relocate_section): When not creating shared object, fill
2625 in the .got table for any symbol not in the dynamic symbol table.
2626 (elf_cris_finish_dynamic_symbol): When not creating shared object,
2627 only emit a .got.rela reloc if the symbol is in the dynamic symbol
2628 table.
2629 (cris_elf_check_relocs): Use variable r_type in all places rather
2630 than the original expression. Add default case in switch for
2631 reloc types.
2632 (elf_cris_size_dynamic_sections): Iterate over
2633 elf_cris_discard_excess_program_dynamics when not creating shared
2634 library.
2635 (elf_cris_discard_excess_dso_dynamics): Renamed from
2636 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
2637 (elf_cris_discard_excess_program_dynamics): New.
2638
26392001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
2640
2641 * coffcode.h (coff_write_object_contents): Use
2642 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
2643
26442001-04-14 H.J. Lu <hjl@gnu.org>
2645
2646 * bfd-in2.h: Regenerate.
2647
26482001-04-14 Jakub Jelinek <jakub@redhat.com>
2649
2650 * section.c (STD_SECTION): Add entsize.
2651
26522001-04-13 H.J. Lu <hjl@gnu.org>
2653
2654 * section.c (SEC_MERGE): Define new flag for merging.
2655 (SEC_STRINGS): Likewise.
2656 (entsize): New field.
2657
26582001-04-13 Roger Sayle <roger@metaphorics.com>
2659
2660 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
2661 flag on pe-i386 targets.
2662
26632001-04-13 Jakub Jelinek <jakub@redhat.com>
2664
2665 * libbfd-in.h (_bfd_merge_section): New.
2666 (_bfd_write_merged_section): New.
2667 (_bfd_merged_section_offset): New.
2668 * libbfd.h: Rebuilt.
2669 * linker.c (_bfd_generic_link_output_symbols): Handle
2670 discard_sec_merge.
2671 * aoutx.h (aout_link_write_symbols): Likewise.
2672 * pdp11.c (aout_link_write_symbols): Likewise.
2673 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
2674 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
2675 sections.
2676 (elf_link_sec_merge_syms): New.
2677 (elf_link_input_bfd): Call _bfd_merged_section_offset
2678 and _bfd_write_merged_section.
2679 Handle discard_sec_merge.
2680 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
2681 field.
2682 (struct bfd_elf_section_data): Likewise.
2683 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
2684 SEC_STRINGS section flags and entsize from their ELF counterparts.
2685 (_bfd_elf_link_hash_table_init): Initialize merge_info.
2686 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
2687 from their BFD counterparts.
2688 * merge.c: New file.
2689 * Makefile.am: Add strtab.lo.
2690 * Makefile.in: Rebuilt.
2691
26922001-04-09 Hans-Peter Nilsson <hp@axis.com>
2693
2694 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
2695 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
2696
26972001-04-05 Steven J. Hill <sjhill@cotw.com>
2698
2699 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
2700 endian MIPS ELF target.
2701 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
2702 MIPS ELF target.
2703
2704 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
2705 64bit big endian MIPS ELF target.
2706 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
2707 endian MIPS ELF target.
2708 * configure: Regenerated.
2709
2710 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
2711 little endian targets.
2712 (mips_elf_sym_is_global): Handle traditional targets.
2713
2714 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
2715 64bit big endian MIPS ELF target.
2716 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
2717 endian MIPS ELF target.
2718
2719 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
2720 and bfd_elf64_tradlittlemips_vec.
2721
27222001-04-05 David Mosberger <davidm@hpl.hp.com>
2723
2724 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
2725 ordinary "progbits" section.
2726
27272001-04-04 Alan Modra <alan@linuxcare.com.au>
2728
2729 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
2730 when -Bsymbolic causes a symbol to no longer need a .plt entry.
2731
27322001-04-03 David Mosberger <davidm@hpl.hp.com>
2733
2734 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
2735
27362001-03-30 H.J. Lu <hjl@gnu.org>
2737
2738 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
2739 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
2740
27412001-03-26 H.J. Lu <hjl@gnu.org>
2742
2743 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
2744 if there are any relocations for generic ELF.
2745 (bfd_elf32_bfd_link_add_symbols): Defined to
2746 elf32_generic_link_add_symbols.
2747 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
2748 if there are any relocations for generic ELF.
2749 (bfd_elf64_bfd_link_add_symbols): Defined to
2750 elf64_generic_link_add_symbols.
2751
27522001-03-23 Nick Clifton <nickc@redhat.com>
2753
2754 * Makefile.am (BUILD_CFILES): New variable: List of C source
2755 files created in build directory.
2756 (BUILD_HFILES): New variable: List of header files created in
2757 build directory.
2758 (POTFILES): Delete.
2759 (po/POTFILES.in): Replace rule with empty entry.
2760 (po/SRC-POTFILES.in): New rule: Create a list of source files
2761 in the source directory.
2762 (po/BLD-POTFILES.in): New rule: Create a list of source files
2763 in the build directory.
2764 (MOSTLYCLEAN): Do not delete source files created in build
2765 directory.
2766 * Makefile.in: Regenerate.
2767 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
2768 into po/Makefile.
2769 * configure: Regenerate.
2770
2771 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
2772 and BLD_POTFILES.
2773 Add .. to the search path when building bfd.pot.
2774 Delete POTFILES when performing distclean.
2775 Add comment describing why distclean is broken in maintainer mode.
2776 * po/POTFILES.in: Delete.
2777 * po/SRC-POTFILES.in: New file.
2778 * po/BLD-POTFILES.in: New file.
2779 * po/bfd.pot: Regenerate.
2780
27812001-03-22 Hans-Peter Nilsson <hp@axis.com>
2782
2783 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
2784 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
2785 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
2786 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
2787 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
2788 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
2789 functions.
2790 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
2791 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
2792 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
2793 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
2794 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
2795 New HOWTO members for new relocs.
2796 (cris_reloc_map): Map new relocs.
2797 (ELF_DYNAMIC_INTERPRETER): Define.
2798 (PLT_ENTRY_SIZE): Define.
2799 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
2800 elf_cris_pic_plt_entry): New, PLT templates.
2801 (struct elf_cris_pcrel_relocs_copied, struct
2802 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
2803 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
2804 (cris_final_link_relocate): Check that 16-bit GOT relocs have
2805 positive values. Adjust PCREL relocs to be relative to location
2806 after relocation.
2807 (cris_elf_relocate_section): Handle relocations to dynamic
2808 objects. Handle new relocations. Call error handler when seeing
2809 non-PIC relocation for read-only sections while generating shared
2810 object.
2811 (cris_elf_check_relocs): Set reference counts for GOT and PLT
2812 entries.
2813 (bfd_elf32_bfd_link_hash_table_create,
2814 elf_backend_adjust_dynamic_symbol,
2815 elf_backend_size_dynamic_sections,
2816 elf_backend_finish_dynamic_symbol,
2817 elf_backend_finish_dynamic_sections,
2818 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
2819 elf_backend_hide_symbol, elf_backend_want_got_plt,
2820 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2821 elf_backend_got_header_size, elf_backend_plt_header_size):
2822 Define.
2823
2824 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
2825 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
2826 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
2827 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
2828 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
2829 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
2830 * bfd-in2.h, libbfd.h: Regenerate.
2831
28322001-03-21 Diego Novillo <dnovillo@redhat.com>
2833
2834 (_bfd_mips_elf_relocate_section): Give a better error message when
2835 a relocation is not recognized.
2836
28372001-03-21 Alan Modra <alan@linuxcare.com.au>
2838
2839 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
2840 non-NULL before attempting to dereference.
2841
28422001-03-20 H.J. Lu <hjl@gnu.org>
2843
2844 * configure.in: Remove the redundent AC_ARG_PROGRAM.
2845 * configure: Rebuild.
2846
28472001-03-20 Andreas Schwab <schwab@suse.de>
2848
2849 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
2850 relocation value when resolving a reference from a debugging
2851 section.
2852
28532001-03-16 Scott Thomason <SThomaso@hii.com>
2854
2855 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
2856 (xcoff64_swap_sym_out): Fix syntax errors.
2857
28582001-03-16 Richard Sandiford <rsandifo@redhat.com>
2859
2860 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
2861
28622001-03-15 Alan Modra <alan@linuxcare.com.au>
2863
2864 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
2865 (hppa_link_hash_newfunc): Init it.
2866 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
2867 section appears to be non-PIC.
2868 (final_link_relocate): Likewise.
2869 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
2870 possible candidate function, and set pic_call for those that will
2871 only have a .plt entry for the PIC call stub.
2872 (hppa_handle_PIC_calls): Set maybe_pic_call.
2873
28742001-03-12 DJ Delorie <dj@redhat.com>
2875
2876 * elf32-sh.c (sh_elf_relocate_section): Only relocation
2877 R_SH_DIR8WP* relocs if they're against external symbols, else
2878 they're just for relaxing. Validate the reloc values.
2879
28802001-03-12 Stefan Geuken <mail@stefan-geuken.de>
2881
2882 * binary.c (bfd_external_binary_architecture): Declare.
2883 (binary_object_p): If bfd_external_binary_architecture is defined,
2884 set the architecture to this string.
2885
28862001-03-11 Philip Blundell <philb@gnu.org>
2887
2888 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
2889 entries that could serve as a definition for a weak symbol.
2890
28912001-03-08 Nick Clifton <nickc@redhat.com>
2892
2893 * Most files: Update copyright notices using Perl script created
2894 by Kevin Buettner <kevinb@redhat.com>.
2895
28962001-03-07 Nick Clifton <nickc@redhat.com>
2897
2898 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
2899 prior patch on ! defined OLD_ARM_ABI.
2900
29012001-03-07 Andreas Jaeger <aj@suse.de>
2902
2903 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
2904 some relocation values.
2905
29062001-03-06 Nick Clifton <nickc@redhat.com>
2907
2908 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
2909 of offset in BLX(1) instruction.
2910 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
2911 offset in BLX(1) instruction.
2912 Fix formatting.
2913
29142001-03-06 Nick Clifton <nickc@redhat.com>
2915
2916 * coff-arm.c (coff_arm_reloc_type_lookup): Add
2917 BFD_RELOC_THUMB_PCREL_BLX.
2918
29192001-03-06 Igor Shevlyakov <igor@windriver.com>
2920
2921 * archures.c (bfd_default_scan): Add Coldfire CPUs.
2922 * bfd-in2.h: Regenerate.
2923 * cpu-m68k.c: Add Coldfire CPUs for arch table.
2924 * ieee.c (ieee_write_processor): Set proper id for
2925 Coldfire CPUs.
2926
29272001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
2928
2929 * configure.in: Add s390 target.
2930 * configure: Regenerate.
2931
29322001-02-28 Andreas Jaeger <aj@suse.de>
2933
2934 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
2935 to addend.
2936
29372001-02-28 Philip Blundell <pb@futuretv.com>
2938
2939 * elf32-arm.h: Update mentions of renamed EF_xx constants.
2940 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
2941
29422001-02-27 H.J. Lu <hjl@gnu.org>
2943
2944 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
2945 abfd->tdata.aout_data == NULL.
2946
29472001-02-27 Alan Modra <alan@linuxcare.com.au>
2948
2949 * elf32-hppa.c: Correct field selector in stub comments.
2950 (clobber_millicode_symbols): Formatting fix.
2951
2952 * configure.in: Bump version to 2.11.90.
2953 * configure: Regenerate.
2954 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
2955 (CFILES): $SOURCE_CFILES + generated C files.
2956 (POTFILES): Include $HFILES not $SOURCE_HFILES.
2957 Run "make dep-am"
2958 * Makefile.in: Regenerate.
2959 * doc/Makefile.in: This too.
2960
29612001-02-26 Timothy Wall <twall@cygnus.com>
2962
2963 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
2964 comments.
2965
29662001-02-26 Nick Clifton <nickc@redhat.com>
2967
2968 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
2969 up, replacing multiple if statements with a switch.
2970 (handle_COMDAT): New function.
2971
29722001-02-26 H.J. Lu <hjl@gnu.org>
2973
2974 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
2975 a warning for section flags we do not handle instead of
2976 aborting.
2977
29782001-02-26 Andreas Jaeger <aj@suse.de>
2979
2980 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
2981
29822001-02-22 Timothy Wall <twall@cygnus.com>
2983
2984 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
2985 * configure.in: Add objects for elf64_ia64_aix vectors.
2986 * configure: Regenerated.
2987 * configure.host: Recognize ia64-*-aix*.
2988 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
2989 for AIX. AIX5 requires most relocations to be dynamic (*all*
2990 binaries are somewhat similar to shared libraries).
2991 * targets.c: Add elf64_ia64_aix vectors.
2992
29932001-02-21 David Mosberger <davidm@hpl.hp.com>
2994
2995 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
2996 C8 said "1" instead of "8". Clarify error string for IMM22:
2997 "signed integer" instead of just "integer".
2998
29992001-02-20 Andreas Jaeger <aj@suse.de>
3000
3001 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
3002 PLT entries that could serve as a definition for a weak symbol.
3003
30042001-02-19 Jakub Jelinek <jakub@redhat.com>
3005
3006 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
3007 entries that could serve as a definition for a weak symbol.
3008 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
3009
30102001-02-18 David O'Brien <obrien@FreeBSD>
3011
3012 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
3013 FreeBSD/i386-CURRENT differently until I can figure out the needed
3014 corefile changes.
3015 * configure: Regenerate.
3016 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
3017 FreeBSD/PowerPC, and FreeBSD/sparc64.
3018
30192001-02-18 lars brinkhoff <lars@nocrew.org>
3020
3021 * Makefile.am: Add PDP-11 a.out target.
3022 * config.bfd: Likewise.
3023 * configure.in: Likewise.
3024 * targets.c: Likewise.
3025 * archures.c: Likewise.
3026 * bfd-in2.h: Likewise. Add PDP-11 relocations.
3027 * libbfd.h: Add PDP-11 relocations.
3028 * reloc.c: Likewise.
3029 * cpu-pdp11.c: New file.
3030 * pdp11.c: New file.
3031
3032 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
3033 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3034 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3035 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
3036 (GET_MAGIC): New macro.
3037 (PUT_MAGIC): Likewise.
3038 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
3039
30402001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
3041
3042 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
3043 multiarch needs it).
3044
30452001-02-18 H.J. Lu <hjl@gnu.org>
3046
3047 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
3048 index.
3049
30502001-02-18 Kazu Hirata <kazu@hxi.com>
3051
3052 * vms-misc.c: Fix formatting.
3053
30542001-02-16 Kazu Hirata <kazu@hxi.com>
3055
3056 * vms.c: Fix formatting.
3057
30582001-02-14 H.J. Lu <hjl@gnu.org>
3059
3060 * elf.c (elf_find_function): New function.
3061 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
3062 the file name and function name.
3063
30642001-02-14 Nick Clifton <nickc@redhat.com>
3065
3066 * ecoff.c (bfd_debug_section): Update to initialise new fields in
3067 asection structure.
3068
3069 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
3070 (BFD64_BACKENDS): Add pepigen.c
3071 Add rules to create peigen.c and pepigen.c from peXXigen.c.
3072
3073 * Makefile.in: Regenerate.
3074 * configure: Regenerate.
3075 * po/POTFILES.in: Regenerate.
3076 * po/bfd.pot: Regenerate.
3077
30782001-02-14 H.J. Lu <hjl@gnu.org>
3079
3080 * libcoff-in.h (pe_tdata): Add members target_subsystem and
3081 force_minimum_alignment.
3082
30832001-02-14 Bo Thorsen <bo@suse.de>
3084
3085 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
3086 (elf64_86_64_size_info): Struct added to fix a problem
3087 with the hashtable string entries.
3088 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
3089 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
3090 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
3091 remove the FIXME for this.
3092 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
3093 section. Also removed the FIXME for it.
3094 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
3095 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
3096 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
3097
30982001-02-13 Richard Henderson <rth@redhat.com>
3099
3100 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
3101 and not user provided.
3102
31032001-02-13 Kazu Hirata <kazu@hxi.com>
3104
3105 * vms.c (vms_print_symbol): Remove unreachable code.
3106
3107 * rs6000-core.c: Fix formatting.
3108
31092001-02-13 David Mosberger <davidm@hpl.hp.com>
3110
3111 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
3112 as _bfd_XXi_only_swap_filehdr_out.
3113 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
3114 pe->force_minimum_alignment to TRUE.
3115 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
3116 PEI_TARGET_SUBSYSTEM.
3117 (pe_print_private_bfd_data): Call
3118 _bfd_XX_print_private_bfd_data_common() instead of
3119 _bfd_pe_print_private_bfd_data_common().
3120 (pe_bfd_copy_private_bfd_data): Call
3121 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
3122 _bfd_pe_bfd_copy_private_bfd_data_common().
3123 (coff_bfd_copy_private_section_data): Define as
3124 _bfd_XX_bfd_copy_private_section_data instead of
3125 _bfd_pe_bfd_copy_private_section_data.
3126 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
3127 of a _bfd_pe_get_symbol_info.
3128
3129 * peigen.c: Delete.
3130
3131 * peXXigen.c: Renamed from peigen.c.
3132 (COFF_WITH_XX): Define this macro (will get expanded into
3133 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
3134 compiled as peigen.c or pepigen.c.
3135 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
3136 define the canonical PEP structures and definitions.
3137 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
3138 effect, enforce minimum file and section alignments. If
3139 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
3140 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
3141 so, by default, this is a no-op).
3142
3143 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
3144 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
3145 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
3146 _bfd_pefoo if it's not defined. Use these macros to define
3147 coff swap macros.
3148
3149 * libcoff.h (pe_tdata): Add members target_subsystem and
3150 force_minimum_alignment.
3151
3152 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
3153 COFF_WITH_pep.
3154 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
3155
3156 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
3157 peigen.lo.
3158
3159 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
3160 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
3161 PEPAOUTHDR.
3162
3163 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
3164 (BFD64_BACKENDS_CFILES): Mention pepigen.c
3165 (peigen.c): Add rule to generate from peXXigen.c.
3166 (pepigen.c): Ditto.
3167 (pepigen.lo): List dependencies for pepigen.lo.
3168
31692001-02-13 Alan Modra <alan@linuxcare.com.au>
3170
3171 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
3172 $global$ referenced but not defined, set its value here.
3173
31742001-02-09 Bo Thorsen <bo@suse.de>
3175
3176 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
3177 alignment to 3.
3178 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
3179 and relocation.
3180 (elf64_x86_64_relocate_section): Fix formatting.
3181 (elf64_x86_64_relocate_section): Fix addend for relocation of
3182 R_X86_64_(8|16|32|PC8|PC16|PC32).
3183
31842001-02-12 Jan Hubicka <jh@suse.cz>
3185
3186 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
3187
31882001-02-11 H.J. Lu <hjl@gnu.org>
3189
3190 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
3191 alignment.
3192
31932001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3194
3195 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
3196 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
3197 relocations against dynsym symbols.
3198
3199 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
3200 the R_MIPS_26 relocation.
3201 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
3202 the R_MIPS_26 relocation.
3203 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
3204 relocation.
3205 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
3206 the R_MIPS_26 relocation.
3207 (mips_elf64_howto_table_rela): Likewise.
3208
3209 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
3210 member to mark symbols that have non-CALL relocations against
3211 them.
3212 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
3213 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
3214 R_MIPS_GOT16.
3215 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
3216 non-CALL relocation against it is encountered.
3217 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
3218 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
3219 no_fn_stub is not set.
3220
3221 * elf32-mips.c (mips_elf_output_extsym): Get the output section
3222 information from the real symbol for indirect ones.
3223 Check no_fn_stub to find out if a symbol has a function stub
3224 indeed.
3225
32262001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3227
3228 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
3229 * Makefile.in: Regenerate.
3230
32312001-02-09 David Mosberger <davidm@hpl.hp.com>
3232
3233 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
3234 true if section name is an unwind table section name.
3235 (elfNN_ia64_additional_program_headers): Count each unwind section
3236 separately.
3237 (elfNN_ia64_modify_segment_map): Install one unwind program header
3238 for each unwind separate section. Note: normally the linker
3239 script merges the unwind sections that go into a single segment,
3240 so this still generates at most one unwind program header per
3241 segment.
3242
3243 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
3244 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
3245 (elfNN_ia64_fake_sections): Mark sections with names that start
3246 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
3247 unwind section.
3248
3249 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
3250 Use it to make sh_info in unwind section point to the text section
3251 it applies to.
3252
32532001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3254
3255 * Makefile.am: Add linux target for S/390.
3256 * archures.c: Likewise.
3257 * bfd-in2.h: Likewise.
3258 * config.bfd: Likewise.
3259 * configure.in: Likewise.
3260 * elf.c: Likewise.
3261 * libbfd.h: Likewise.
3262 * targets.c: Likewise.
3263 * cpu-s390.c: New file.
3264 * elf32-s390.c: New file.
3265 * elf64-s390.c: New file.
3266
32672001-02-09 Nick Clifton <nickc@redhat.com>
3268
3269 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
3270 ImageBase. This has already been done by coff_swap_hdr_in.
3271
32722001-02-09 Jakub Jelinek <jakub@redhat.com>
3273
3274 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
3275
32762001-02-09 Jakub Jelinek <jakub@redhat.com>
3277
3278 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
3279 (sparc64_elf_relocate_section): Likewise.
3280
32812001-02-09 Mark Kettenis <kettenis@gnu.org>
3282
3283 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
3284 similar to R_SPARC_32.
3285 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
3286
32872001-02-08 H.J. Lu <hjl@gnu.org>
3288
3289 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
3290 relocation entries for weak definitions when building DSO with
3291 -Bsymbolic.
3292
32932001-02-08 Richard Henderson <rth@redhat.com>
3294
3295 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
3296 before visibility. Locally defined protected symbols are not
3297 dynamic.
3298
32992001-02-08 Geoffrey Keating <geoffk@redhat.com>
3300
3301 * config.bfd: Enable coff64 for rs6000-*. Patch from
3302 <hzoli@austin.ibm.com>.
3303
33042001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
3305
3306 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
3307 found, do not attempt to find dwarf2 info before returning.
3308
33092001-02-07 Jakub Jelinek <jakub@redhat.com>
3310
3311 * elflink.h (is_global_symbol_definition): Rename to
3312 is_global_data_symbol_definition and have it reject function
3313 symbols.
3314 (elf_link_is_defined_archive_symbol): Use renamed function.
3315
33162001-02-07 Todd Vierling <tv@wasabisystems.com>
3317
3318 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
3319 * libbfd.h (bfd_target_vector): Likewise.
3320 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
3321 make static; create pointer reference named bfd_target_vector.
3322 (_bfd_target_vector_entries): Calculate this based on the array
3323 typed _bfd_target_vector.
3324
33252001-02-06 H.J. Lu <hjl@gnu.org>
3326
3327 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
3328 internal symbols are not dynamic.
3329 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
3330
33312001-02-06 Nick Clifton <nickc@redhat.com>
3332
3333 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
3334 that it will not be pulled into the list of files that make up
3335 po/POTFILES.in.
3336 * Makefile.in: Regenerate.
3337 * po/bfd.pot: Regenerate.
3338
33392001-02-06 H.J. Lu <hjl@gnu.org>
3340
3341 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
3342 checking.
3343 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
3344 external_PEI_IMAGE_hdr.
3345
33462001-02-06 Kazu Hirata <kazu@hxi.com>
3347
3348 * elf-m10200.c: Fix formatting.
3349
33502001-02-04 Nick Clifton <nickc@redhat.com>
3351
3352 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
3353 rel, it will be handled later on.
3354
33552001-02-02 Fred Fish <fnf@ninemoons.com>
3356
3357 * Makefile.in: Fix typo.
3358
33592001-02-01 Kazu Hirata <kazu@hxi.com>
3360
3361 * elf-m10300.c: Fix formatting.
3362
33632001-01-30 Alan Modra <alan@linuxcare.com.au>
3364
3365 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
3366 (elf_backend_get_symbol_type): Define.
3367 (elf64_hppa_object_p): Set architecture and machine from elf
3368 header flags.
3369
33702001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
3371
3372 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
3373 before mdebug.
3374
33752001-01-26 Richard Henderson <rth@redhat.com>
3376
3377 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
3378 for non-default visibility.
3379 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
3380 delete ugly macro and replace with pretty function.
3381
33822001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
3383
3384 * coff-go32.c: Update copyright.
3385 * coff-stgo32.c: Likewise.
3386 * coff-go32.c (COFF_LONG_FILENAMES): Define.
3387 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
3388 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
3389 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3390
33912001-01-25 Kazu Hirata <kazu@hxi.com>
3392
3393 * bfd-in2.h: Rebuild.
3394 * libbfd.h: Likewise.
3395
33962001-01-23 H.J. Lu <hjl@gnu.org>
3397
3398 * bfd-in2.h: Rebuild.
3399
34002001-01-23 H.J. Lu <hjl@gnu.org>
3401
3402 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
3403 is NULL or PRIV(vms_rec) is outside of the buffer.
3404
34052001-01-23 Kazu Hirata <kazu@hxi.com>
3406
3407 * coff64-rs6000.c: Fix formatting.
3408 * coff-arm.c: Likewise.
3409 * coffgen.c: Likewise.
3410 * cofflink.c: Likewise.
3411 * coff-mcore.c: Likewise.
3412 * coff-mips.c: Likewise.
3413 * coff-pmac.c: Likewise.
3414 * coff-ppc.c: Likewise.
3415 * coff-rs6000.c: Likewise.
3416 * elf32.c: Likewise.
3417 * elf32-fr30.c: Likewise.
3418 * elf32-i370.c: Likewise.
3419 * elf32-i860.c: Likewise.
3420 * elf32-m32r.c: Likewise.
3421 * elf32-m68k.c: Likewise.
3422 * elf32-mcore.c: Likewise.
3423 * elf32-ppc.c: Likewise.
3424 * elf32-sh.c: Likewise.
3425 * elf32-v850.c: Likewise.
3426 * elf64-alpha.c: Likewise.
3427 * elf64-sparc.c: Likewise.
3428 * elflink.c: Likewise.
3429 * elflink.h: Likewise.
3430 * elf-m10200.c: Likewise.
3431 * elf-m10300.c: Likewise.
3432 * elfxx-ia64.c: Likewise.
3433
3434 * aoutx.h: Fix formatting.
3435 * bfd.c: Likewise.
3436 * bfd-in2.h: Likewise.
3437 * bfd-in.h: Likewise.
3438 * cpu-i386.c: Likewise.
3439 * cpu-m68hc11.c: Likewise.
3440 * dwarf2.c: Likewise.
3441 * elf64-x86-64.c: Likewise.
3442 * format.c: Likewise.
3443 * freebsd.h: Likewise.
3444 * hash.c: Likewise.
3445 * hp300hpux.c: Likewise.
3446 * hppabsd-core.c: Likewise.
3447 * hpux-core.c: Likewise.
3448
34492001-01-22 Bo Thorsen <bo@suse.de>
3450
3451 * elf64-x86-64.c: Added PIC support for X86-64.
3452 (elf64_x86_64_link_hash_newfunc): Function added.
3453 (elf64_x86_64_link_hash_table_create): Likewise.
3454 (elf64_x86_64_check_relocs): Likewise.
3455 (elf64_x86_64_gc_mark_hook): Likewise.
3456 (elf64_x86_64_gc_sweep_hook): Likewise.
3457 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
3458 (elf64_x86_64_size_dynamic_sections): Likewise.
3459 (elf64_x86_64_discard_copies): Likewise.
3460 (elf64_x86_64_finish_dynamic_symbol): Likewise.
3461 (elf64_x86_64_finish_dynamic_sections): Likewise.
3462 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
3463
34642001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3465
3466 * Makefile.am (install-data-local): Make use of $(DESTDIR).
3467 * Makefile.in: Regenerate.
3468
34692001-01-21 Kazu Hirata <kazu@hxi.com>
3470
3471 * coff-a29k.c: Fix formatting.
3472
34732001-01-19 H.J. Lu <hjl@gnu.org>
3474
3475 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
3476 relocation section names.
3477 (elf_i386_relocate_section): Report files with bad relocation
3478 section names and return false.
3479
34802001-01-17 Bo Thorsen <bo@suse.de>
3481
3482 * targets.c: Alphabetize list of xvecs.
3483
34842001-01-14 Alan Modra <alan@linuxcare.com.au>
3485
3486 * config.bfd: Add linux target variant for elfxx-hppa.
3487 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
3488 bfd_elf64_hppa_linux_vec.
3489 * configure: Regenerate.
3490 * elf64-hppa.c: Include elf64-target.h again to support linux
3491 target variant.
3492 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
3493 * elf32-hppa.c: Include elf32-target.h again to support linux
3494 target variant.
3495 (elf32_hppa_post_process_headers): New function.
3496 (elf_backend_post_process_headers): Define.
3497 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
3498 bfd_elf32_hppa_linux_vec.
3499
3500 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
3501 and data_segment_base fields.
3502 (elf32_hppa_link_hash_table_create ): Init them.
3503 (elf32_hppa_check_relocs): Update comments.
3504 (hppa_record_segment_addr): New function.
3505 (elf32_hppa_relocate_section): Call it.
3506 (final_link_relocate): Handle R_PARISC_SEGREL32.
3507 (elf32_hppa_final_link): New function.
3508 (bfd_elf32_bfd_final_link): Define to call it.
3509 (hppa_unwind_entry_compare): New function.
3510 * cache.c (bfd_open_file): Create files in write+read mode.
3511
3512 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
3513 SEGREL32 and numerous other relocs. Change duplicate
3514 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
3515
3516 * opncls.c (bfd_fdopenr): Add parens like the comment says around
3517 O_ACCMODE.
3518
3519 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
3520 .plt entries for DT_INIT and DT_FINI.
3521 (elf32_hppa_finish_dynamic_sections): Remove special handling of
3522 DT_INIT and DT_FINI.
3523
3524 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
3525 offsets for stub .plt access if wide mode. Check offset in range.
3526
35272001-01-13 Nick Clifton <nickc@redhat.com>
3528
3529 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
3530 line.
3531
3532 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
3533 line.
3534
35352001-01-12 Alan Modra <alan@linuxcare.com.au>
3536
3537 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
3538 * configure: Regenerate.
3539
35402001-01-11 Peter Targett <peter.targett@arccores.com>
3541
3542 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
3543 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
3544 * cpu-arc.c (arch_info_struct): Add entries for variants.
3545 (bfd_arc_arch) Set default to bfd_mach_arc_5.
3546 (arc_get_mach) Don't assume machine names prefixed arc- before
3547 testing.
3548 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
3549 selections.
3550 (arc_elf_final_write_processing) Likewise.
3551 (ELF_MACHINE_CODE) Use EM_ARC.
3552
35532001-01-10 Nick Clifton <nickc@redhat.com>
3554
3555 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
3556
35572001-01-07 Philip Blundell <philb@gnu.org>
3558
3559 * README: Replace `bug-gnu-utils@gnu.org' with
3560 `bug-binutils@gnu.org'.
3561
35622001-01-04 Kazu Hirata <kazu@hxi.com>
3563
3564 * som.c: Fix formatting.
3565
35662001-01-03 Kazu Hirata <kazu@hxi.com>
3567
3568 * ecoffswap.h: Fix formatting.
3569 * elf-bfd.h: Likewise.
3570 * elfarm-nabi.c: Likewise.
3571 * elfarm-oabi.c: Likewise.
3572 * elfcode.h: Likewise.
3573 * elfcore.h: Likewise.
3574 * elflink.c: Likewise.
3575 * elflink.h: Likewise.
3576 * elfxx-ia64.c: Likewise.
3577 * elfxx-target.h: Likewise.
3578 * libbfd.c: Likewise
3579 * linker.c: Likewise.
3580 * lynx-core.c: Likewise.
3581
35822001-01-02 Kazu Hirata <kazu@hxi.com>
3583
3584 * pc532-mach.c: Fix formatting.
3585 * pe-arm.c: Likewise.
3586 * pe-i386.c: Likewise.
3587 * pe-mips.c: Likewise.
3588 * pe-ppc.c: Likewise.
3589 * pe-sh.c: Likewise.
3590 * pei-mips.c: Likewise.
3591 * pei-sh.c: Likewise.
3592 * peicode.h: Likewise.
3593 * ppcboot.c: Likewise.
3594 * ptrace-core.c: Likewise.
3595
35962001-01-01 Kazu Hirata <kazu@hxi.com>
3597
3598 * reloc.c: Fix formatting.
3599 * riscix.c: Likewise.
3600 * rs6000-core.c: Likewise.
3601 * xcoff-target.h: Likewise.
3602
36032000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
3604
3605 * elfcode.h (elf_object_p): Also restore the bfd mach field on
3606 error, by calling bfd_default_set_arch_mach with incoming
3607 values.
3608
36092000-12-26 Kazu Hirata <kazu@hxi.com>
3610
3611 * vaxnetbsd.c: Fix formatting.
3612 * versados.c: Likewise.
3613 * vms-gsd.c: Likewise.
3614 * vms-hdr.c: Likewise.
3615 * vms-misc.c: Likewise.
3616
36172000-12-25 Alexandre Oliva <aoliva@redhat.com>
3618
3619 * archive.c (coff_write_armap): Don't write more than symbol_count
3620 `archive_member_file_ptr's.
3621
36222000-12-25 Kazu Hirata <kazu@hxi.com>
3623
3624 * vms-tir.c: Fix formatting.
3625
36262000-12-23 Kazu Hirata <kazu@hxi.com>
3627
3628 * vms.c: Fix formatting.
3629 * vms.h: Likewise.
3630
36312000-12-21 Santeri Paavolainen <santtu@ssh.com>
3632
3633 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
3634
3635 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
3636
3637 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
3638 arithmetic.
3639
3640 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
3641
3642 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
3643
36442000-12-21 Richard Sandiford <rsandifo@redhat.com>
3645
3646 * libbfd.c (bfd_get_bits): Added
3647 (bfd_put_bits): Likewise
3648 * bfd-in.h: Declared the above.
3649 * bfd-in2.h: Regenerated.
3650
36512000-12-20 Kazu Hirata <kazu@hxi.com>
3652
3653 * targets.c: Fix formatting.
3654 * tekhex.c: Likewise.
3655 * trad-core.c: Likewise.
3656
36572000-12-19 Kazu Hirata <kazu@hxi.com>
3658
3659 * sco5-core.c: Fix formatting.
3660 * section.c: Likewise.
3661 * sparclinux.c: Likewise.
3662 * sparclynx.c: Likewise.
3663 * sparcnetbsd.c: Likewise.
3664 * srec.c: Likewise.
3665 * stabs.c: Likewise.
3666 * stab-syms.c: Likewise.
3667 * sunos.c: Likewise.
3668 * syms.c: Likewise.
3669 * sysdep.h: Likewise.
3670
36712000-12-18 Nick Clifton <nickc@redhat.com>
3672
3673 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
3674 defined.
3675 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
3676 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
3677
36782000-12-18 Nick Clifton <nickc@redhat.com>
3679
3680 * vms-misc.c (_bfd_vms_get_record): Add default case to
3681 file_format switch.
3682
36832000-12-15 Miloslav Trmac <mitr@volny.cz>
3684
3685 * elfcore.h (elf_core_file_p): Move to the start of the program
3686 headers before attempting to read them.
3687
36882000-12-14 Kazu Hirata <kazu@hxi.com>
3689
3690 * peigen.c: Fix formatting.
3691 * som.c: Likewise.
3692 * som.h: Likewise.
3693
36942000-12-13 Kazu Hirata <kazu@hxi.com>
3695
3696 * peigen.c: Fix formatting.
3697
36982000-12-12 Jim Wilson <wilson@redhat.com>
3699
3700 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
3701
37022000-12-08 Mark Salter <msalter@redhat.com>
3703
3704 * binary.c (binary_set_section_contents): Ignore sections
3705 with zero size.
3706
37072000-12-12 Kazu Hirata <kazu@hxi.com>
3708
3709 * m68klinux.c: Fix formatting.
3710 * m68knetbsd.c: Likewise.
3711 * mipsbsd.c: Likewise.
3712 * netbsd-core.c: Likewise.
3713 * netbsd.h: Likewise.
3714 * newsos3.c: Likewise.
3715 * nlm32-alpha.c: Likewise.
3716 * nlm32-i386.c: Likewise.
3717 * nlm32-ppc.c: Likewise.
3718 * nlm32-sparc.c: Likewise.
3719 * nlmcode.h: Likewise.
3720 * nlmswap.h: Likewise.
3721 * nlm-target.h: Likewise.
3722 * ns32knetbsd.c: Likewise.
3723
37242000-12-10 Fred Fish <fnf@be.com>
3725
3726 * elflink.h (elf_link_output_extsym): Don't complain about undefined
3727 symbols in shared objects if allow_shlib_undefined is true.
3728
37292000-12-12 Nick Clifton <nickc@redhat.com>
3730
3731 * cpu-sh.c: Fix formattng.
3732 * elf.c: Fix formattng.
3733 * elf32-mips.c: Fix formattng.
3734 * elf32-sh.c: Fix formattng.
3735 * elf64-alpha.c: Fix formattng.
3736
37372000-12-09 Nick Clifton <nickc@redhat.com>
3738
3739 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
3740 dwarf2_find_line_info as last parameter to invocation of
3741 _bfd_dwarf2_find_nearest_line.
3742 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
3743 dwarf2_find_line_info as last parameter to invocation of
3744 _bfd_dwarf2_find_nearest_line.
3745
37462000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
3747
3748 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
3749 (BFD_LIBS): ...to here.
3750 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
3751 (BFD_LIBS_CFILES): ...to here.
3752 * Makefile.in: Regenerate.
3753 * configure.in: Remove dwarf.lo from the elf shell variable.
3754 * configure: Regenerate.
3755 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
3756 * libcoff.h: Regenerate.
3757 * coffgen.c (coff_find_nearest_line): Call
3758 _bfd_dwarf2_find_nearest_line.
3759 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
3760 accordingly.
3761 (read_abbrevs): Likewise
3762 (decode_line_info): Likewise.
3763 (parse_comp_unit): Likewise.
3764 (comp_unit_find_nearest_line): Likewise.
3765 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
3766 * libbfd.h: Regenerate.
3767 * elf.c (_bfd_elf_find_nearest_line): Update call.
3768 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
3769 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
3770 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
3771 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
3772 (styp_to_sec_flags): Handle DWARF2 sections.
3773 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
3774 to _bfd_find_nearest_line.
3775 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
3776 call to _bfd_find_nearest_line.
3777
37782000-12-08 Kazu Hirata <kazu@hxi.com>
3779
3780 * coffgen.c: Fix formatting.
3781 * elf-m10300.c: Likewise.
3782 * elf32-i386.c: Likewise.
3783 * elf32-i960.c: Likewise.
3784 * elf32-m68k.c: Likewise.
3785 * elf32-mcore.c: Likewise.
3786 * elf32-ppc.c: Likewise.
3787 * elf32-sh.c: Likewise.
3788 * elf32-sparc.c: Likewise.
3789 * elf32-v850.c: Likewise.
3790 * elf64-alpha.c: Likewise.
3791 * elf64-hppa.c: Likewise.
3792 * elf64-mips.c: Likewise.
3793 * elf64-sparc.c: Likewise.
3794
37952000-12-07 Kazu Hirata <kazu@hxi.com>
3796
3797 * elf32-ppc.c: Fix formatting.
3798 * elf64-x86-64.c: Likewise.
3799
38002000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
3801
3802 From Ralf Baechle <ralf@gnu.org>
3803
3804 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
3805 BFDs containing no sections or empty .text, .data or .bss sections
3806 to be merged, regardless of their flags.
3807
38082000-12-06 Kazu Hirata <kazu@hxi.com>
3809
3810 * elf32-m32r.c: Fix formatting.
3811 * elf32-m68hc11.c: Likewise.
3812 * elf32-m68hc12.c: Likewise.
3813 * elf32-m68k.c: Likewise.
3814 * elf32-mcore.c: Likewise.
3815 * elf32-pj.c: Likewise.
3816 * elf32-ppc.c: Likewise.
3817
38182000-12-05 Kazu Hirata <kazu@hxi.com>
3819
3820 * elf32-fr30.c: Fix formatting.
3821 * elf32-hppa.c: Likewise.
3822 * elf32-i370.c: Likewise.
3823 * elf32-i386.c: Likewise.
3824 * elf32-i860.c: Likewise.
3825 * elf32-i960.c: Likewise.
3826
38272000-12-03 Kazu Hirata <kazu@hxi.com>
3828
3829 * elf32-arm.h: Fix formatting.
3830 * elf32-avr.c: Likewise.
3831 * elf32-cris.c: Likewise.
3832 * elf32-d10v.c: Likewise.
3833 * elf32-d30v.c: Likewise.
3834 * elf-hppa.h: Likewise.
3835 * elf-m10200.c: Likewise.
3836 * elf-m10300.c: Likewise.
3837
38382000-12-01 Chris Demetriou <cgd@sibyte.com>
3839
3840 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
3841 bfd_mach_mips32_4k. Update FIXME comment.
3842 * archures.c (bfd_mach_mips32): New constant.
3843 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
3844 the latter, renumber it.
3845 * bfd-in2.h (bfd_mach_mips32): New constant.
3846 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
3847 the latter, renumber it.
3848 * cpu-mips.c (I_mips32): New constant.
3849 (I_mips4K, I_mips32_4k): Rename the former to the latter.
3850 (arch_info_struct): Add bfd_mach_mips32 entry, replace
3851 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
3852 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
3853 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
3854 with E_MIPS_MACH_MIPS32_4K.
3855 (_bfd_mips_elf_final_write_processing): Replace
3856 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
3857 bfd_mach_mips32 case.
3858 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
3859 comparison with support for MIPS32.
3860 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
3861 MIPS32.
3862
3863 * aoutx.h (NAME(aout,machine_type)): Add cases for
3864 bfd_mach_mips5 and bfd_mach_mips64.
3865 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
3866 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
3867 * cpu_mips.c (I_mips5, I_mips64): New definitions.
3868 (arch_info_struct): Add entries for bfd_mach_mips5 and
3869 bfd_mach_mips64.
3870 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
3871 _bfd_mips_elf_print_private_bfd_data): Add cases for
3872 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
3873 (_bfd_mips_elf_final_write_processing): Add cases for
3874 bfd_mach_mips5 and bfd_mach_mips64.
3875
3876 * aoutx.h (NAME(aout,machine_type)): Add a
3877 bfd_mach_mips_sb1 case.
3878 * archures.c (bfd_mach_mips_sb1): New constant.
3879 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
3880 * cpu-mips.c (I_sb1): New constant.
3881 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
3882 * elf32-mips.c (elf_mips_mach): Add case for
3883 E_MIPS_MACH_SB1.
3884 (_bfd_mips_elf_final_write_processing): Add case for
3885 bfd_mach_mips_sb1.
3886
38872000-12-01 Joel Sherrill <joel@OARcorp.com>
3888
3889 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
3890 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3891 (sparc*-*-rtems*): Switched from a.out to ELF.
3892
38932000-11-30 Jan Hubicka <jh@suse.cz>
3894
3895 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
3896 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
3897 (elf64-x86-64.lo): Add dependencies.
3898 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
3899 bfd_mach_x86_64_intel_syntax.
3900 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
3901 * config.bfd (x86_64): Add.
3902 * configure.in: Add support for bfd_elf64_x86_64_vec.
3903 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
3904 (bfd_i386_arch, i8086_ar): Link in.
3905 * elf64-x86-64.c: New file.
3906 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
3907 * targets.c (bfd_elf64_x86_64_vec): Add.
3908 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
3909
39102000-11-30 Kazu Hirata <kazu@hxi.com>
3911
3912 * xcofflink.c: Fix formatting.
3913
39142000-11-28 Kazu Hirata <kazu@hxi.com>
3915
3916 * aoutx.h: Fix formatting.
3917 * bfd-in.h: Likewise.
3918 * bfd-in2.h: Likewise.
3919 * cache.c: Likewise.
3920 * cisco-core.c: Likewise.
3921 * coff64-rs6000.c: Likewise.
3922 * coffcode.h: Likewise.
3923 * coffswap.h: Likewise.
3924 * corefile.c: Likewise.
3925 * elf32-mips.c: Likewise.
3926
39272000-11-27 Kazu Hirata <kazu@hxi.com>
3928
3929 * aout-adobe.c: Fix formatting.
3930 * coff64-rs6000.c: Likewise.
3931 * coffgen.c: Likewise.
3932 * cofflink.c: Likewise.
3933
39342000-11-27 Philip Blundell <pb@futuretv.com>
3935
3936 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
3937 (obj_coff_strings_written): New accessor macro for above.
3938 * libcoff.h: Regenerate.
3939 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
3940 strings.
3941 * coffcode.h (coff_write_object_contents): No need to write out
3942 the string table if it's already been done.
3943
39442000-11-22 Philip Blundell <pb@futuretv.com>
3945
3946 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
3947 weak undefined symbols.
3948
39492000-11-24 Nick Clifton <nickc@redhat.com>
3950
3951 * archures.c (bfd_mach_arm_5TE): Define.
3952 (bfd_mach_arm+XScale): Define.
3953 * bfd-in2.h: Regenerate.
3954
3955 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
3956 BFD_RELOC_ARM_PCREL_BLX.
3957
3958 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
3959 XScale machine numbers.
3960
3961 * config.bfd (xscale-elf): Add target.
3962 (xscale-coff): Add target.
3963
3964 * cpu-arm.c: Add xscale machine name.
3965 Add v5t, v5te and XScale machine numbers.
3966
39672000-11-23 Kazu Hirata <kazu@hxi.com>
3968
3969 * aix386-core.c: Fix formatting.
3970
39712000-11-22 Jim Wilson <wilson@redhat.com>
3972
3973 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
3974 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
3975 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
3976 (ins_imms_scaled): Initialize sign_bit at function entry.
3977 (elf64_ia64_operands): Add missing initializers.
3978 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
3979 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
3980 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
3981 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
3982 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
3983 parameters.
3984 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
3985 and free_extsyms at function entry.
3986 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
3987 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
3988 (get_got): Delete unused local srel.
3989 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
3990 (elfNN_ia64_relocate_section): Delete unused local dynindx.
3991
39922000-11-21 Kazu Hirata <kazu@hxi.com>
3993
3994 * coff-a29k.c: Fix formatting.
3995 * coff-h8500.c: Likewise.
3996 * coff-i960.c: Likewise.
3997 * coff-ppc.c: Likewise.
3998 * coff-rs6000.c: Likewise.
3999 * coff-stgo32.c: Likewise.
4000 * coff-tic54x.c: Likewise.
4001 * coff-w65.c: Likewise.
4002 * cpu-h8500.c: Likewise.
4003 * cpu-hppa.c: Likewise.
4004 * cpu-ns32k.c: Likewise.
4005 * ecoff.c: Likewise.
4006 * ecofflink.c: Likewise.
4007
40082000-11-21 Nick Clifton <nickc@redhat.com>
4009
4010 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
4011 remove possibility of infinite loop.
4012
40132000-11-20 Kazu Hirata <kazu@hxi.com>
4014
4015 * aix386-core.c: Fix formatting.
4016 * aout-adobe.c: Likewise.
4017 * aout-arm.c: Likewise.
4018 * aout-encap.c: Likewise.
4019 * aout-ns32k.c: Likewise.
4020 * aout-target.h: Likewise.
4021 * aout-tic30.c: Likewise.
4022 * aoutf1.h: Likewise.
4023 * aoutx.h: Likewise.
4024 * archive.c: Likewise.
4025 * bfd-in.h: Likewise.
4026 * bfd-in2.h: Likewise.
4027 * bfd.c: Likewise.
4028 * bout.c: Likewise.
4029
40302000-11-17 H.J. Lu <hjl@gnu.org>
4031
4032 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
4033 pltoff entries for DT_INIT and DT_FINI.
4034 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
4035 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
4036 entries.
4037
40382000-11-16 Richard Henderson <rth@redhat.com>
4039
4040 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
4041 (allocate_dynrel_entries): Likewise.
4042 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
4043 (set_pltoff_entry): Likewise.
4044 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
4045 (elfNN_ia64_reloc_type_lookup): Likewise.
4046 (elfNN_ia64_install_value): Likewise.
4047 (elfNN_ia64_relocate_section): Likewise.
4048 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
4049 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
4050
40512000-11-16 Kazu Hirata <kazu@hxi.com>
4052
4053 * cpu-a29k.c: Fix formatting.
4054 * cpu-alpha.c: Likewise.
4055 * cpu-arm.c: Likewise.
4056 * cpu-avr.c: Likewise.
4057 * cpu-d10v.c: Likewise.
4058 * cpu-h8500.c: Likewise.
4059 * cpu-hppa.c: Likewise.
4060 * cpu-i370.c: Likewise.
4061 * cpu-i386.c: Likewise.
4062 * cpu-i960.c: Likewise.
4063 * cpu-ia64-opc.c: Likewise.
4064 * cpu-ia64.c: Likewise.
4065 * cpu-m32r.c: Likewise.
4066 * cpu-m68hc11.c: Likewise.
4067 * cpu-m68hc12.c: Likewise.
4068 * cpu-m68k.c: Likewise.
4069 * cpu-m88k.c: Likewise.
4070 * cpu-mips.c: Likewise.
4071 * cpu-ns32k.c: Likewise.
4072 * cpu-pj.c: Likewise.
4073 * cpu-powerpc.c: Likewise.
4074 * cpu-sh.c: Likewise.
4075 * cpu-sparc.c: Likewise.
4076 * cpu-tic54x.c: Likewise.
4077 * cpu-v850.c: Likewise.
4078 * cpu-vax.c: Likewise.
4079 * cpu-w65.c: Likewise.
4080 * cpu-we32k.c: Likewise.
4081 * cpu-z8k.c: Likewise.
4082 * dwarf1.c: Likewise.
4083 * dwarf2.c: Likewise.
4084
40852000-11-15 Kazu Hirata <kazu@hxi.com>
4086
4087 * coff-arm.c: Fix formatting.
4088 * coff-ppc.c: Likewise.
4089 * coff-rs6000.c: Likewise.
4090 * coff-sh.c: Likewise.
4091 * coff-sparc.c: Likewise.
4092 * coff-tic30.c: Likewise.
4093 * coff-tic54x.c: Likewise.
4094 * coff-tic80.c: Likewise.
4095 * coff-w65.c: Likewise.
4096 * coff-we32k.c: Likewise.
4097 * coff-z8k.c: Likewise.
4098
40992000-11-15 Richard Henderson <rth@redhat.com>
4100
4101 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
4102 section with the same ALLOC|LOAD flags as the source section.
4103
41042000-11-14 Jakub Jelinek <jakub@redhat.com>
4105
4106 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
4107 by STO_ALPHA constants.
4108
41092000-11-14 Kazu Hirata <kazu@hxi.com>
4110
4111 * coff-pmac.c: Fix formatting.
4112 * coff-ppc.c: Likewise.
4113
41142000-11-13 H.J. Lu <hjl@gnu.org>
4115
4116 * elflink.h (elf_link_add_object_symbols): Also add indirect
4117 symbols for common symbols with the default version.
4118
41192000-11-09 Philip Blundell <pb@futuretv.com>
4120
4121 * section.c (STD_SECTION): Set gc_mark flag.
4122
41232000-11-11 Kazu Hirata <kazu@hxi.com>
4124
4125 * coff-i960.c: Likewise.
4126 * coff-m68k.c: Likewise.
4127 * coff-m88k.c: Likewise.
4128 * coff-mcore.c: Likewise.
4129 * coff-mips.c: Likewise.
4130
41312000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
4132
4133 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
4134
41352000-11-10 Kazu Hirata <kazu@hxi.com>
4136
4137 * coff-h8300.c: Fix formatting.
4138 * coff-h8500.c: Likewise.
4139 * coff-i386.c: Likewise.
4140 * coff-i860.c: Likewise.
4141 * coff-i960.c: Likewise.
4142 * coff-ia64.c: Likewise.
4143
41442000-11-09 Kazu Hirata <kazu@hxi.com>
4145
4146 * archive.c: Fix formatting.
4147 * archures.c: Likewise.
4148
41492000-11-07 Richard Henderson <rth@redhat.com>
4150
4151 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
4152 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
4153 * section.c (bfd_set_section_contents): Call memcpy if
4154 section->contents set and location not equal to contents plus offset.
4155
41562000-11-08 Kazu Hirata <kazu@hxi.com>
4157
4158 * bfd-in.h: Fix formatting.
4159 * bfd-in2.h: Likewise.
4160 * bfd.c: Likewise.
4161 * binary.c: Likewise.
4162 * bout.c: Likewise.
4163 * coff-a29k.c: Likewise.
4164 * coff-alpha.c: Likewise.
4165 * coff-apollo.c: Likewise.
4166 * coff-aux.c: Likewise.
4167
41682000-11-07 Kazu Hirata <kazu@hxi.com>
4169
4170 * aix386-core.c: Fix formatting.
4171 * aoutf1.h: Likewise.
4172 * aoutx.h: Likewise.
4173 * archures.c: Likewise.
4174 * armnetbsd.c: Likewise.
4175
41762000-11-07 Alan Modra <alan@linuxcare.com.au>
4177
4178 * coff-h8300.c (special): Adjust reloc address.
4179
41802000-11-06 Steve Ellcey <sje@cup.hp.com>
4181
4182 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
4183 to differentiate elf32 and elf64 on ia64.
4184 * bfd-in2.h: Regenerate.
4185 * config.bfd: Add target for "ia64*-*-hpux*".
4186 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
4187 * configure: Regenerate.
4188 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
4189 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
4190
4191 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
4192 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
4193 * Makefile.in: Regnerate.
4194 * elf64-ia64.c: Deleted.
4195 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
4196
41972000-11-06 Kazu Hirata <kazu@hxi.com>
4198
4199 * aout-adobe.c: Fix formatting.
4200 * aout-arm.c: Likewise.
4201 * aout-cris.c: Likewise.
4202 * aout-encap.c: Likewise.
4203 * aout-ns32k.c: Likewise.
4204 * aout-target.h: Likewise.
4205 * aout-tic30.c: Likewise.
4206
42072000-11-05 Philip Blundell <philb@gnu.org>
4208
4209 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
4210 BFDs containing no sections to be merged, regardless of their flags.
4211
42122000-11-04 Philip Blundell <philb@gnu.org>
4213
4214 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
4215 if a relocation for an undefined symbol also results in an
4216 overflow.
4217
42182000-11-06 Christopher Faylor <cgf@cygnus.com>
4219
4220 * config.bfd: Add support for Sun Chorus.
4221
42222000-11-05 David O'Brien <obrien@FreeBSD.org>
4223
4224 * configure.in: Recognize alpha-*-freebsd*.
4225 * configure: Regenerate.
4226
42272000-11-02 Luciano Gemme <ishitawa@yahoo.com>
4228
4229 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
4230 (Chunk): New global variable set by a parameter in objcopy.c.
4231 (S3Forced): New global variable set by a parameter in
4232 objcopy.c.
4233 (srec_set_section_contents): If S3Forced is true, always generate
4234 S3 records.
4235 (srec_write_section): Use 'Chunk' to limit maximum length of S
4236 records.
4237
42382000-11-02 Per Lundberg <plundis@chaosdev.org>
4239
4240 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
4241 * Makefile.in: Regenerate.
4242 * bfd-in2.h: Regenerate.
4243 * po/bfd.pot: Regenerate.
4244
42452000-10-31 Philip Blundell <philb@gnu.org>
4246
4247 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
4248 EF_SOFT_FLOAT if it is defined.
4249
42502000-10-27 Philip Blundell <philb@gnu.org>
4251
4252 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
4253 attempts to mix PIC code with non-PIC, just mark the output as
4254 being position dependent.
4255 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
4256 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
4257 all mismatches, not just the first one.
4258
42592000-10-25 Chris Demetriou <cgd@sibyte.com>
4260
4261 * ieee.c (ieee_archive_p): Plug one of many possible
4262 memory leaks in error handling.
4263
42642000-10-20 Jakub Jelinek <jakub@redhat.com>
4265
4266 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
4267 elf32_sparc_object_p, elf32_sparc_final_write_processing):
4268 Support v8plusb.
4269 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
4270 sparc64_elf_object_p): Support v9b.
4271 * archures.c: Declare v8plusb and v9b machines.
4272 * bfd-in2.h: Ditto.
4273 * cpu-sparc.c: Ditto.
4274
42752000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4276
4277 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
4278 of a GOT reloc.
4279
4280 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
4281 (SYMBOL_CALLS_LOCAL): New macro.
4282 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
4283 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
4284 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
4285 (ppc_elf_relocate_section): Use flag variable to determine
4286 whether the relocation refers to a local symbol.
4287 Test whether a PLTREL24 reloc will produce a reloc by looking
4288 to see whether a PLT entry was made.
4289
42902000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4291
4292 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
4293 entries that could serve as a definition for a weak symbol.
4294
42952000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
4296
4297 From Ralf Baechle <ralf@gnu.org>
4298
4299 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
4300 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
4301 against local symbols.
4302 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
4303
43042000-10-12 Alan Modra <alan@linuxcare.com.au>
4305
4306 * section.c (struct sec): Add kept_section.
4307 (struct bfd_comdat_info): Remove sec, we can use above.
4308 (STD_SECTION): Add initializer.
4309 (bfd_make_section_anyway): Init here too.
4310
4311 * bfd-in2.h: Regenerate.
4312
4313 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
4314 zeroing of `flags'.
4315 (elf_link_input_bfd): Set all asection->symbol->value's here, and
4316 fudge values for discarded link-once section symbols.
4317
4318 * elf64-hppa.c: Include alloca-conf.h
4319
43202000-10-11 Alan Modra <alan@linuxcare.com.au>
4321
4322 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
4323
4324 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
4325
43262000-10-10 Alan Modra <alan@linuxcare.com.au>
4327
4328 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
4329
43302000-10-10 Tom Rix <trix@redhat.com>
4331
4332 * section.c (bfd_make_section_anyway): Release newsect ptr when
4333 newsect->symbol fails to alloc. Use bfd_release instead of free.
4334
43352000-10-09 Richard Henderson <rth@cygnus.com
4336
4337 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
4338 (elf64_ia64_unwind_entry_compare): New.
4339 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
4340
43412000-10-07 Alan Modra <alan@linuxcare.com.au>
4342
4343 * elflink.h (size_dynamic_sections): Don't create various tags if
4344 .dynstr is excluded from the link. Don't set first dynsym entry
4345 if dynsymcount is zero.
4346 (elf_bfd_final_link): Don't try to swap out dynamic syms if
4347 .dynsym excluded from the link. Don't try to write any dynamic
4348 sections excluded from the link.
4349
4350 * elf.c (swap_out_syms): Handle global section symbols.
4351
43522000-10-05 DJ Delorie <dj@redhat.com>
4353
4354 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
4355 * coffcode.h (coff_set_alignment_hook): read extended reloc count
4356 (coff_write_relocs): write extended reloc count
4357 (coff_write_object_contents): account for extended relocs
4358
43592000-10-05 Jim Wilson <wilson@cygnus.com>
4360
4361 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
4362 field.
4363 * elf.c (_bfd_elf_make_section_from_shdr): Call the
4364 elf_backend_section_flags function.
4365 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
4366 code.
4367 (elf64_ia64_section_flags): New function containing flag conversion
4368 code.
4369 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
4370 * elfxx-target.h (elf_backend_section_flags): Define.
4371 (elfNN_bed): Initialize elf_backend_section_flags field.
4372
43732000-10-02 Alan Modra <alan@linuxcare.com.au>
4374
4375 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
4376 _bfd_elf32_gc_record_vtable. Correct a comment.
4377
43782000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
4379
4380 From Ralf Baechle <ralf@gnu.org>
4381
4382 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
4383 produces binaries with got[1] = 0x80000001 to differenciate them
4384 for the dynamic linker from the broken binaries produced by old
4385 versions.
4386
43872000-09-30 Petr Sorfa <petrs@sco.com>
4388
4389 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
4390 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
4391 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
4392 * configure: Regenerate.
4393
43942000-09-27 Hans-Peter Nilsson <hp@axis.com>
4395
4396 Define two bfd_targets for absence and presence of leading
4397 underscore on symbols. Make sure to only link same kind.
4398 * elf32-cris.c (cris_elf_object_p,
4399 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
4400 cris_elf_merge_private_bfd_data): New.
4401 (elf_backend_object_p, elf_backend_final_write_processing,
4402 bfd_elf32_bfd_print_private_bfd_data,
4403 bfd_elf32_bfd_merge_private_bfd_data): Define.
4404 <Target vector definition>: Include elf32-target.h twice with
4405 different macro settings:
4406 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
4407 bfd_elf32_us_cris_vec.
4408 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
4409 (elf_symbol_leading_char): First as 0, then '_'.
4410 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
4411 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
4412 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
4413 * configure: Regenerate.
4414 * targets.c: Declare bfd_elf32_us_cris_vec.
4415 * po/bfd.pot: Regenerate.
4416
44172000-09-29 Momchil Velikov <velco@fadata.bg>
4418
4419 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
4420 R_ARM_THM_PC22 relocations.
4421
44222000-09-29 NIIBE Yutaka <gniibe@chroot.org>
4423
4424 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
4425
44262000-09-29 Momchil Velikov <velco@fadata.bg>
4427
4428 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
4429 is has the SEC_HAS_CONTENTS flag set.
4430