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