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