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