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