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