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