Add comment describoing why dgettext() is used in _() macro.
[binutils-gdb.git] / bfd / ChangeLog
1 2000-05-31 Nick Clifton <nickc@cygnus.com>
2
3 * opintl.h (_(String)): Explain why dgettext is used instead
4 of gettext.
5
6 2000-05-31 Ulrich Drepper <drepper@redhat.com>
7
8 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
9 definitions. We must not assume they are sorted in the file
10 according to their index numbers.
11
12 2000-05-31 Alan Modra <alan@linuxcare.com.au>
13
14 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
15 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
16 R_PARISC_DIR17F are for absolute branches; Handle them as such.
17
18 2000-05-30 Nick Clifton <nickc@cygnus.com>
19
20 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
21 80960CA, 80960MC as valid machine names.
22
23 2000-05-30 H.J. Lu <hjl@gnu.org>
24
25 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
26 visibility bits if the symbol is undefined. Correctly handle
27 weak undefined symbols with hidden and internal attributes.
28
29 * elflink.h (elf_link_add_object_symbols): Always turn the
30 symbol into local if it has the hidden or internal attribute.
31
32 2000-05-29 Philip Blundell <philb@gnu.org>
33
34 * ppcboot.c: Add packed attribute if compiling with GCC.
35
36 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
37
38 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
39
40 2000-05-26 Alan Modra <alan@linuxcare.com.au>
41
42 * Makefile.am: Update dependencies with "make dep-am"
43 * Makefile.in: Regenerate.
44
45 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
46 bindtextdomain): Replace defines with those from intl/libgettext.h
47 to quieten gcc warnings.
48
49 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
50
51 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
52
53 * archive.c (normalize, bfd_bsd_truncate_arname,
54 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
55 file names with backslashes.
56
57 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
58 before opening it.
59
60 * sysdep.h: Include filenames.h.
61
62 2000-05-26 Alan Modra <alan@linuxcare.com.au>
63
64 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
65
66 2000-05-26 Jakub Jelinek <jakub@redhat.com>
67
68 * elf64-sparc.c (sparc64_elf_relax_section): New.
69 (sparc64_elf_relocate_section): Optimize tail call into branch always
70 if possible.
71 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
72 (elf32_sparc_relax_section): New.
73
74 2000-05-26 Jakub Jelinek <jakub@redhat.com>
75
76 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
77 Remove unusued variables.
78 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
79 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
80 previous fix, so that shared libs really don't influence targets
81 extension mask and memory model.
82
83 2000-05-23 H.J. Lu <hjl@gnu.org>
84
85 * elf64-alpha.c (elf64_alpha_relocate_section): Check
86 h->root.other not h->other.
87 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
88
89 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
90
91 2000-05-23 H.J. Lu <hjl@gnu.org>
92
93 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
94 undefined symbol with the non-default visibility attributes.
95 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
96 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
97 * elf32-i370.c (i370_elf_relocate_section): Likewise.
98 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
99 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
100 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
101 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
102 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
103 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
104 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
105 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
106
107 2000-05-22 Richard Henderson <rth@cygnus.com>
108
109 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
110 PCREL22, PCREL64I. Zero size of special relocs.
111 (elf64_ia64_reloc_type_lookup): Likewise.
112 (USE_BRL, oor_brl, oor_ip): New.
113 (elf64_ia64_relax_section): New.
114 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
115 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
116 (elf64_ia64_relocate_section): Likewise.
117 (bfd_elf64_bfd_relax_section): New.
118 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
119 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
120 * bfd-in2.h, libbfd.h: Regenerate.
121
122 2000-05-22 Nick Clifton <nickc@cygnus.com>
123
124 * configure.in : Add peigen.lo to MIPS PE targets.
125 * configure: Regenerate.
126
127 2000-05-22 Momchil Velikov <velco@fadata.bg>
128
129 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
130 only if it is known for both input and output bfds. Separate
131 error message strings as in some languages, it may be necessary
132 to change more than one place in the string to change between
133 'big' and 'little'.
134
135 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
136 endianess checks, call _bfd_generic_verify_endian_match() instead.
137
138 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
139
140 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
141
142 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
143 endianess before checking bfd flavours.
144
145 2000-05-22 H.J. Lu <hjl@gnu.org>
146
147 * elflink.h (elf_link_output_extsym): Clear the visibility
148 field for symbols not defined locally.
149
150 2000-05-18 Alan Modra <alan@linuxcare.com.au>
151
152 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
153 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
154 (hppa_rebuild_insn): Mask immediate bits here instead.
155 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
156
157 2000-05-18 Momchil Velikov <velco@fadata.bg>
158
159 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
160 relocs for an executable, ensure that they are virtual addresses.
161
162 Thu May 18 10:55:47 2000 Jeffrey A Law (law@cygnus.com)
163
164 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
165
166 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
167 Rick Gorton <gorton@scrugs.lkg.dec.com>
168
169 * elflink.h: Add emitrelocations support: when enabled, relocation
170 information and relocation sections are put into final output
171 executables. If the emitrelocations flag is set, do the following:
172 (elf_bfd_final_link): Emit relocation sections.
173 (elf_link_input_bfd): Compute relocation section contents.
174 (elf_gc_sections): Don't clean relocation sections.
175
176 2000-05-16 Catherine Moore <clm@cygnux.com>
177
178 * som.c (som_decode_symclass): Recognize weak symbols.
179
180 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
181
182 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
183 read idata section only from dataoff.
184 (pe_print_edata): Correctly check for valid eat_member.
185
186 Tue May 16 00:04:11 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
187
188 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
189
190 2000-05-14 Philip Blundell <philb@gnu.org>
191
192 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
193
194 2000-05-12 Alan Modra <alan@linuxcare.com.au>
195
196 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
197
198 * peigen.c (pe_print_idata): Look for .idata section and print
199 info even if data directory has zero entries. Read idata section
200 starting from dataoff, and adjust all data offsets to suit. Cast
201 all bfd_vma vars to unsigned long before passing to fprintf.
202 * peigen.c (pe_print_edata): Similarly, look for .edata section
203 and print info even if data directory has zero entries. Cast
204 all bfd_vma vars to unsigned long before passing to fprintf.
205
206 From Szabolcs Szakacsits <szaka@F-Secure.com>
207 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
208 directory size which may be bogus.
209 * peigen.c (pe_print_edata): Similarly.
210
211 2000-05-09 Alan Modra <alan@linuxcare.com.au>
212
213 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
214 section is empty.
215 (copy_private_bfd_data): Allow for space possibly taken up by elf
216 headers when calculating segment physical address from lma.
217
218 2000-05-08 Alan Modra <alan@linuxcare.com.au>
219
220 * versados.c (versados_scan): Init stringlen and pass_2_done.
221
222 * trad-core.c (trad_unix_core_file_p): Return
223 bfd_error_wrong_format rather than bfd_error_file_truncated.
224
225 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
226 add_data_entry. DataDirectory virtual address is relative.
227 (pe_print_idata): Account for relative DataDirectory virtual
228 addresses. Don't trash datasize inside POWERPC_LE_PE code.
229 (pe_print_edata): Similarly.
230
231 From Szabolcs Szakacsits <szaka@F-Secure.com>
232 * peigen.c (dir_names): Add Delay Import Directory.
233 (pe_print_idata): Always search for bfd section containing
234 idata address rather than looking up section name. Print this
235 section name rather than .idata.
236 (pe_print_edata): Similarly. Also print some fields as %08lx.
237 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
238 Win32Version.
239
240 Fri May 5 20:44:40 2000 Clinton Popetz <cpopetz@cygnus.com>
241
242 * xcoff.h: Rename to xcoff-target.h
243 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
244 * coff-rs6000.c: Ditto.
245 * coff64-rs6000.c: Ditto.
246 * coff-pmac.c: Ditto.
247 * Makefile.in: Regenerate.
248
249 Fri May 5 16:51:03 2000 Clinton Popetz <cpopetz@cygnus.com>
250
251 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
252 Change U802TOC64MAGIC to U803XTOCMAGIC.
253
254 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
255
256 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
257 * bfd-in.h: Prototype bfd_elf_get_arch_size.
258 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
259
260 2000-05-04 Alan Modra <alan@linuxcare.com.au>
261
262 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
263
264 2000-05-03 Martin v. Löwis <loewis@informatik.hu-berlin.de>
265
266 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
267 hidden and internal symbols.
268 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
269 visibility.
270 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
271 assign a PLT or GOT entry to symbols with hidden and
272 internal visibility.
273
274 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
275
276 * bfd/coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
277 the .bss section.
278 * bfd/coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
279
280 2000-05-02 H.J. Lu <hjl@gnu.org>
281
282 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
283 ELFOSABI_SYSV.
284
285 2000-05-02 Alan Modra <alan@linuxcare.com.au>
286
287 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
288 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
289 dependencies.
290 * Makefile.in: Regenerate.
291
292 Mon May 1 16:56:47 2000 Jim Wilson <wilson@cygnus.com>
293
294 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
295 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
296 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
297 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
298 * Makefile.in: Rebuild.
299
300 2000-05-02 Alan Modra <alan@linuxcare.com.au>
301
302 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
303 doesn't work very well.
304
305 * elf-hppa.h (elf_hppa_internal_shdr): Define.
306 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
307 Set hdr->s_type to 1 if ARCH_SIZE == 32.
308 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
309 (elf_hppa_info_to_howto): Likewise.
310 (elf_hppa_info_to_howto_rel): Likewise.
311 (elf_hppa_reloc_type_lookup): Likewise.
312 (elf_hppa_is_local_label_name): Likewise.
313 (elf_hppa_fake_sections): Likewise.
314 (elf_hppa_final_write_processing): Likewise.
315 (elf_hppa_howto_table): Fully initialise all entries.
316 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
317 (elf_hppa_info_to_howto): Likewise.
318 (elf_hppa_info_to_howto_rel): Likewise.
319 (elf_hppa_reloc_type_lookup): Likewise.
320 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
321 elf_hppa_unmark_useless_dynamic_symbols,
322 elf_hppa_remark_useless_dynamic_symbols,
323 elf_hppa_record_segment_addrs, elf_hppa_final_link,
324 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
325 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
326 elf32-hppa.c mess is cleaned up.
327 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
328 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
329 r_field then call hppa_field_adjust inline func with variable
330 r_field arg, instead call hppa_field_adjust with fixed arg.
331 In case R_PARISC_PCREL22F, don't set r_field.
332 (elf_hppa_relocate_insn): Change args and return type to unsigned
333 int. Call re_assemble_* funcs to do the work.
334
335 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
336 sign extending.
337
338 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
339 extending.
340 (sign_extend): Mask first before sign extending.
341 (low_sign_extend): Rewrite without condition expression.
342 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
343 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
344 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
345 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
346 result as function return value rather than through pointer arg.
347 Accept unsigned int args, and return unsigned int.
348 (re_assemble_3): New. Combines function of dis_assemble_3 with
349 re-assembly of opcode and immediate.
350 (re_assemble_12): Likewise.
351 (re_assemble_16): Likewise.
352 (re_assemble_17): Likewise.
353 (re_assemble_21): Likewise.
354 (re_assemble_22): Likewise.
355 (hppa_field_adjust): Rewrite and document, paying attention to
356 size of types and signed/unsigned issues.
357 (get_opcode): Shift before masking.
358 (FDLW): Rename to FLDW.
359 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
360 (hppa_rebuild_insn): Change args and return value to unsigned
361 int. Make use of re_assemble_*. Correct case 11.
362
363 * dep-in.sed: Handle ../opcodes/.
364 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
365 elf64-hppa.h, hppa_stubs.h, xcoff.h.
366 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
367 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
368 elfarm-nabi.lo dependencies outside of auto-dependency area.
369 Regenerate dependencies.
370 * Makefile.in: Regenerate.
371
372 * configure.in (TRAD_HEADER): Test non-null before
373 AC_DEFINE_UNQUOTED.
374 * configure: Regenerate.
375
376 * reloc.c: Fix mis-spelling in comment.
377
378 2000-05-01 Alan Modra <alan@linuxcare.com.au>
379
380 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
381 * vms.c (vms_openr_next_archived_file): Return NULL.
382
383 Fri Apr 28 21:34:44 2000 Clinton Popetz <cpopetz@cygnus.com>
384
385 * coffcode.h Copy changes mistakenly done to libcoff.h in
386 4/24/2000 patch.
387
388 2000-04-29 Andreas Jaeger <aj@suse.de>
389
390 * libbfd-in.h: Correctly check GCC version.
391 * bfd-in.h: Likewise.
392 * libhppa.h: Likewise.
393 * libbfd.h: Regenerate.
394 * bfd-in2.h: Regenerate.
395
396 Fri Apr 28 14:58:37 2000 Clinton Popetz <cpopetz@cygnus.com>
397
398 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
399 coffdu-rs6000.{lo,c}.
400 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
401 on xcoff.h
402 * Makefile.in: Regenerate.
403 * xcoff.h: New file.
404 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
405 * coff-rs6000.c: Move all declarations and defines that are
406 common to the xcoff backends into xcoff.h
407 * coff64-rs6000.c: Ditto,
408
409 Fri Apr 28 08:35:21 2000 Clinton Popetz <cpopetz@cygnus.com>
410
411 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
412 _bfd_coff_force_symnames in strings and
413 _bfd_coff_debug_string_prefix_length to their default values.
414 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
415
416 Fri Apr 28 08:05:12 2000 Clinton Popetz <cpopetz@cygnus.com>
417
418 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
419 _bfd_coff_force_symnames in strings and
420 _bfd_coff_debug_string_prefix_length to their default values.
421
422 2000-04-27 Alan Modra <alan@linuxcare.com.au>
423
424 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
425 Check local_got_refcounts before dereferencing.
426
427 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
428 before deciding we don't need R_PPC_PLT32 relocation.
429 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
430 dereferencing.
431
432 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
433
434 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
435 .plt entries.
436 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
437 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
438 (elf_i386_relocate_section): Allow for .plt to go missing.
439 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
440 can use a relative reloc for got as elf_i386_relocate_section.
441 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
442
443 Wed Apr 26 16:31:28 2000 Clinton Popetz <cpopetz@cygnus.com>
444
445 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
446
447 Mon Apr 24 15:20:35 2000 Clinton Popetz <cpopetz@cygnus.com>
448
449 * Makefile.am (coff64-rs6000.lo): New rule.
450 * Makefile.in: Regenerate.
451 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
452 xcoff_is_local_label_name, xcoff_rtype2howto,
453 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
454 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
455 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
456 (NO_COFF_SYMBOLS): Define.
457 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
458 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
459 internally.
460 (MINUS_ONE): New macro.
461 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
462 relocation.
463 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
464 coff_SWAP_aux_out): Map to the new functions.
465 * coff64-rs6000.c: New file.
466 * libcoff.h (bfd_coff_backend_data): Add new fields
467 _bfd_coff_force_symnames_in_strings and
468 _bfd_coff_debug_string_prefix_length.
469 (bfd_coff_force_symnames_in_strings,
470 bfd_coff_debug_string_prefix_length): New macros for above fields.
471 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
472 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
473 of using coff_swap_sym_in directly.
474 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
475 (coff_set_flags) Set magic for XCOFF64.
476 (coff_compute_section_file_positions): Add symbol name length to
477 string section length if bfd_coff_debug_string_prefix_length is
478 true.
479 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
480 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
481 using coff_swap_lineno_in directly.
482 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
483 and _bfd_coff_debug_string_prefix_length fields.
484 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
485 symbol names into strings table when
486 bfd_coff_force_symnames_in_strings is true.
487 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
488 SET_RELOC_VADDR): New macros.
489 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
490 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
491 code.
492 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
493 changes within RS6000COFF_C specific code.
494 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
495 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
496 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
497 Extend existing hack on target name.
498 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
499 target name.
500 * coff-tic54x.c (ticof): Keep up to date with new fields
501 in bfd_coff_backend_data.
502 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
503 targ_selvecs to include rs6000coff64_vec for rs6000.
504 * configure.in: Add rs6000coff64_vec case.
505 * cpu-powerpc.c: New bfd_arch_info_type.
506
507 Mon Apr 24 02:17:31 2000 Jeffrey A Law (law@cygnus.com)
508
509 * config.bfd: Only disable elf32-hppa vectors, not all of the
510 BSD and OSF configuration support. Provide (disabled) clauses
511 for PA64 support.
512 * configure.in: Add clause for PA64 support.
513 * configure: Rebuilt.
514
515 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
516 (bfd_elf64_hppa_vec): Declare.
517
518 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
519 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
520 (elf64-hppa.lo): Add dependencies.
521 * Makefile.in: Rebuilt.
522
523 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
524
525 Mon Apr 24 02:14:29 2000 Jason Eckhardt <jle@cygnus.com>
526
527 * libhppa.h (dis_assemble_16): New function.
528 (pa_arch): Added pa20w element.
529
530 Mon Apr 24 01:49:03 2000 Ulrich Drepper <drepper@cygnus.com>
531
532 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
533 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
534 bfd_elf64_slurp_reloc_table.
535
536 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
537 definitions to get external names.
538 (elf_write_relocs): Renamed from write_relocs and make global.
539 (elf_slurp_reloc_table): Make global.
540 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
541
542 * archive.c (hpux_uid_gid_encode): New function.
543 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
544 defined and the ID is greater than 99999.
545 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
546 special uid/gid fields into 32 bit values.
547
548 2000-04-21 Matthew Green <mrg@cygnus.com>
549
550 * config.bfd: Add NetBSD/sparc64 support.
551
552 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
553 David Mosberger <davidm@hpl.hp.com>
554 Timothy Wall <twall@cygnus.com>
555 Jim Wilson <wilson@cygnus.com>
556
557 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
558 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
559 (BFD64_BACKENDS): Add elf64-ia64.lo.
560 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
561 (cpu-ia64.lo, elf64-ia64.lo): New rules.
562 * Makefile.in: Rebuild.
563 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
564 (bfd_ia64_arch): Declare.
565 (bfd_archures_list): Add bfd_ia64_arch.
566 * bfd-in2.h: Rebuild.
567 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
568 * configure: Rebuild.
569 * configure.host: (ia64-*-linux*): New host.
570 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
571 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
572 * elf.c (prep_headers): Add bfd_arch_ia64.
573 * libbfd.h: Rebuild.
574 * reloc.c: Add IA-64 relocations.
575 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
576 Declare.
577 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
578 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
579
580 2000-04-21 Richard Henderson <rth@cygnus.com>
581
582 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
583 contents when performing a partial link.
584 (bfd_elf_d30v_reloc_21): Likewise.
585
586 2000-04-20 H.J. Lu <hjl@gnu.org>
587
588 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
589 patch to symbols defined by a shared object.
590 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
591
592 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
593
594 K&R compiler fixes.
595 * dwarf2.c (concat_filename): Avoid string literal concatenation.
596 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
597
598 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
599
600 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
601 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
602 (coff-ia64.lo): Add dependency.
603 * Makefile.in: Regenerate.
604 * coff-ia64.c: New file.
605 * efi-app-ia32.c: Ditto.
606 * efi-app-ia64.c: Ditto.
607 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
608 (coff_set_flags): Ditto.
609 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
610 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
611 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
612 * configure: Regenerate.
613 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
614 (PUT_OPTHDR_IMAGE_BASE): Ditto.
615 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
616 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
617 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
618 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
619 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
620 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
621 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
622 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
623 (GET_PDATA_ENTRY): Ditto.
624 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
625 data_start. Use above macros to read fields that are 64 bit wide for
626 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
627 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
628 FileAlignment and SectionAlignment to minimum alignment if they
629 are zero.
630 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
631 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
632 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
633 Use above macros to write fields that are 64 bit wide for
634 COFF_WITH_PEP64.
635 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
636 5*4 otherwise. This should be right for IA-32 and IA-64, but may
637 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
638 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
639 begin address, end address, and unwind info address only. Use
640 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
641 print addresses.
642 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
643 HIGH3ADJ relocation names.
644 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
645 * targets.c: Declare bfd_efi_app_ia32_vec and
646 bfd_efi_app_ia64_vec.
647 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
648 bfd_efi_app_ia64_vec.
649
650 2000-04-17 Timothy Wall <twall@cygnus.com>
651
652 * bfd-in2.h: Add prototypes for tic54x load page access.
653 * bfd-in.h: Regenerate.
654 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
655 in customized _set_arch_mach function.
656 * coffcode.h (coff_set_alignment_hook): Set section load page if
657 the appropriate macro is defined.
658 (write_object_contents): Read section load page.
659
660 2000-04-13 Alan Modra <alan@linuxcare.com.au>
661
662 * elf32-hppa.h: Update copyright date.
663
664 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
665 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
666
667 * elf32-d30v.c (MAX32): Don't use LL suffix.
668 (MIN32): Define in terms of MAX32.
669 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
670
671 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
672 expression.
673
674 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
675
676 2000-04-12 Alan Modra <alan@linuxcare.com.au>
677
678 * dep-in.sed: Match space before file name, not after.
679 * Makefile.am: Regenerate dependencies.
680 * Makefile.in: Regenerate.
681
682 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
683 case, allow address wrap-around stupidly removed 2000-03-17. Sign
684 extend without an if statement.
685
686 2000-04-11 Alan Modra <alan@linuxcare.com.au>
687
688 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
689 signed quantites.
690 * elf32-mips.c (gprel16_with_gp): Likewise.
691 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
692 here using -0x40000, not (int)0xfffc0000.
693 (elf32_hppa_size_of_stub): Likewise.
694
695 2000-04-11 Timothy Wall <twall@cygnus.com>
696
697 * coff-tic54x.c: Now builds with all targets.
698 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
699 * Makefile.in: Regenerate.
700 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
701 unitialized variable.
702
703 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
704
705 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
706 --enable-build-warnings option.
707 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
708 * Makefile.in, configure: Re-generate.
709
710 2000-04-07 Nick Clifton <nickc@cygnus.com>
711
712 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
713 BFD_RELOC_THUMB_PCREL_BLX.
714
715 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
716 R_ARM_XPC25 and R_ARM_THM_PC22.
717
718 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
719 R_ARM_XPC25 and R_ARM_THM_XPC22.
720 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
721 R_ARM_[XPC25|THM_XPC22].
722
723 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
724 elf/arm-oabi.h to elf/arm.h
725
726 * Makefile.am: Fix dependency for elfarm-oabi.c
727 * Makefile.in: Regenerate.
728
729 * bfd-in2.h: Regenerate.
730 * libbfd.h: Regenerate.
731
732 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
733
734 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
735 and restore it on failure. Release newly allocated tdata on
736 failure.
737
738 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
739
740 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
741 (decode_line_info): Set it. Report error if unit->line_offset is
742 equal to or larger than it.
743
744 2000-04-07 Timothy Wall <twall@cygnus.com>
745
746 * targets.c: Added vecs for tic54x.
747 * reloc.c: Added relocs for tic54x.
748 * libbfd.h: Regenerated.
749 * configure: Add TI COFF vecs for tic54x.
750 * configure.in: Ditto.
751 * config.bfd (targ_cpu): Recognize new tic54x target.
752 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
753 * bfd-in2.h: Add tic54x target and relocations.
754 * Makefile.am, Makefile.in: Add tic54x target.
755 * archures.c (bfd_archures_list): Add tic54x target.
756 * coff-tic54x.c: New.
757 * cpu-tic54x.c: New.
758
759 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
760
761 * elfcore.h (elf_core_file_p): call backend_object_p which
762 thereby gets an opportunity to update the arch/machine type.
763
764 2000-04-06 Timothy Wall <twall@cygnus.com>
765
766 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
767 class. Handle SEC_CLINK and SEC_BLOCK flags.
768 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
769 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
770
771 2000-04-06 Nick Clifton <nickc@cygnus.com>
772
773 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
774 EF_INTERWORK if this is an unknown EABI.
775 (elf32_arm_merge_private_bfd_data): Check EABI version
776 numbers. Only check EF_xxx flags if the EABI version number
777 is unknown.
778 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
779 if the EABI version number is unknown.
780 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
781 if the EABI version number is unknown.
782
783 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
784
785 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
786 BFD_RELOC_SH_LOOP_END.
787 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
788 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
789 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
790 (sh_elf_reloc_loop): New function.
791 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
792 any more.
793 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
794 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
795 * bfd-in2.h, libbfd.h: Regenerate.
796
797 2000-04-04 Alan Modra <alan@linuxcare.com.au>
798
799 * po/bfd.pot: Regenerate.
800
801 * Makefile.am: Remove extraneous mkdep comment.
802 (MKDEP): Use gcc -MM rather than mkdep.
803 (DEP): Quote when passing vars to sub-make. Add warning
804 message to end.
805 (DEP1): Rewrite for "gcc -MM".
806 (CLEANFILES): Add DEP2.
807 Update dependencies.
808 * Makefile.in: Regenerate.
809
810 2000-04-03 Kevin Buettner <kevinb@redhat.com>
811
812 * configure.in: Added corefile support for AIX 4.3. In particular,
813 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
814 compiling rs6000-core.c.
815 * configure: Regenerated.
816
817 2000-04-03 H.J. Lu <hjl@gnu.org>
818
819 * cache.c (bfd_open_file): Unlink the output file only if
820 it has non-zero size.
821
822 2000-04-01 Ken Block USG <block@zk3.dec.com>
823
824 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
825 relative relocations for non-loaded sections in shared objects.
826 (elf64_alpha_check_relocs): Similarly.
827
828 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
829
830 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
831 BFD_RELOC_16 to switch for extended relocs.
832 (MY_swap_ext_reloc_in): New.
833 (MY_swap_ext_reloc_out): New.
834 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
835 than NAME(aout,swap_ext_reloc_in) for extended relocs.
836 (NAME(aout,squirt_out_relocs)): Similarly use
837 MY_swap_ext_reloc_out.
838 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
839
840 2000-04-03 Kazu Hirata <kazu@hxi.com>
841
842 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
843 the R_PCRWORD_B case.
844
845 2000-03-31 Thomas de Lellis <tdel@wrs.com>
846
847 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
848 on some targets.
849 * ihex.c : Ditto.
850
851 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
852
853 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
854 HOWTO references to bfd_elf_generic_reloc, that have
855 partial_inplace == true, now use the new function. The function
856 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
857 extends its fixes to the R_M32R_{16,24,32} relocs.
858 The new logic in m32r_elf_lo16_reloc() has been removed, and
859 it instead calls the new routine to obtain that functionality.
860
861 2000-03-27 Alan Modra <alan@linuxcare.com.au>
862
863 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
864 elf32_avr_check_relocs, avr_final_link_relocate,
865 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
866 elf32_avr_object_p): Add prototypes.
867 (elf32_avr_gc_mark_hook): Add default for h->root.type.
868 (bfd_elf_avr_final_write_processing): Make static.
869
870 2000-03-27 Denis Chertykov <denisc@overta.ru>
871
872 * cpu-avr.c: New file. BFD support routines for AVR architecture.
873 * archures.c (bfd_architecture): Add AVR architecture.
874 (bfd_archures_list): Add reference to AVR architecture info.
875 * elf.c (prep_headers): Handle bfd_arch_avr.
876 * reloc.c: Add various AVR relocation enums.
877 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
878 list.
879 * Makefile.am: Add support for AVR elf.
880 * configure.in: Likewise.
881 * config.bfd: Likewise.
882 * Makefile.in: Regenerate.
883 * configure: This too.
884 * bfd-in2.h: And this.
885 * libbfd.h: And this.
886
887 2000-03-24 H.J. Lu <hjl@gnu.org>
888
889 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
890 (elf64_alpha_find_reloc_at_ofs): Likewise.
891
892 2000-03-17 Alan Modra <alan@linuxcare.com.au>
893
894 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
895 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
896 allowable range used to be -2**(n-1) to 2**n-1.
897 * reloc.c (_bfd_relocate_contents): Same here. Also replace
898 "boolean overflow" with "bfd_reloc_status_type flag".
899
900 2000-03-14 Doug Evans <dje@casey.transmeta.com>
901
902 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
903
904 2000-03-14 Kazu Hirata <kazu@hxi.com>
905
906 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
907 of shrinks properly, including the last reloc.
908
909 2000-03-13 Kazu Hirata <kazu@hxi.com>
910
911 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
912 check for R_MOVL2.
913
914 2000-03-11 Alan Modra <alan@linuxcare.com.au>
915
916 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
917 a format mismatch rather than an "error" from bfd_read such as
918 bfd_error_file_truncated.
919
920 2000-03-10 Geoff Keating <geoffk@cygnus.com>
921
922 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
923 sign-extension and big-endian compensation for
924 R_MIPS_64 even in ld -r.
925
926 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
927
928 * elf32-mips.c (mips_elf_next_relocation): Rename from
929 mips_elf_next_lo16_relocation, and generalize to look
930 for any relocation type.
931 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
932 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
933 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
934 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
935 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
936 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
937 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
938 (mips_rtype_to_howto): Likewise.
939 (mips_elf_calculate_relocation): Handle new relocs.
940 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
941 are paired. The addend for R_MIPS_GNU_REL16_S2
942 is shifted right two bits.
943
944 2000-03-10 Alan Modra <alan@linuxcare.com.au>
945
946 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
947 comment, and ensure it doesn't happen again.
948 (bfd_install_relocation): Same here.
949 (_bfd_relocate_contents): Don't bother assigning unused signmask
950 shift result. Fix typos in comments.
951 Remove trailing whitespace throughout file.
952
953 2000-03-07 Doug Evans <dje@casey.transmeta.com>
954
955 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
956 * bfd-in2.h: Rebuild.
957
958 2000-03-06 Nick Clifton <nickc@cygnus.com>
959
960 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
961 sym_ptr_ptr fields.
962 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
963 (SIZEOF_ILF_STRINGS): Redefine.
964 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
965 relative reloc, as opposed to a section relative reloc.
966 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
967 not C_LABEL.
968 Add length of symbol's prefix to string pointer.
969 Store a pointer to the symbol in the symbol pointer table.
970 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
971 Initialise the symbol pointer table.
972 Store the hint in the Hint/Name table.
973 Make the jump reloc be symbol realtive, not section relative.
974 Create an import symbol for imported code.
975
976 2000-03-06 Catherine Moore <clm@cygnus.com>
977
978 * elf.c (swap_out_syms): Check for null type_ptr.
979
980 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
981
982 * aout-target.h (MY(write_object_contents)): Remove unused
983 and unusable "#if CHOOSE_RELOC_SIZE".
984 * pc532-mach.c (MY(write_object_contents)): Ditto.
985 * netbsd.h (MY(write_object_contents)): Ditto.
986 * hp300hpux.c (MY(write_object_contents)): Ditto.
987 * freebsd.h (MY(write_object_contents)): Ditto.
988 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
989
990 2000-02-29 H.J. Lu <hjl@gnu.org>
991
992 * peicode.h (jtab): Make it static.
993
994 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
995 defined and COFF_IMAGE_WITH_PE is not defined.
996 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
997 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
998
999 2000-03-01 Nick Clifton <nickc@cygnus.com>
1000
1001 * coff-arm.c (bfd_arm_process_before_allocation): Make
1002 'symndx' signed to prevent compile time warning.
1003
1004 * coff-mcore.c: Remove unused prototype for pe_object_p.
1005
1006 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
1007 functions that are not used when COFF_IMAGE_WITH_PE is
1008 defined.
1009 (struct sh_opcode): Change type of 'flags' field to unsigned
1010 long so that it can hold the USESAS flag.
1011
1012 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
1013
1014 * elf-m10300.c (mn10300_elf_relax_section): Initialise
1015 'sym_sec'.
1016
1017 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
1018 parameters.
1019 Remove unusued variables and code.
1020 (elf_backend_add_symbol_hook): Fix prototype.
1021
1022 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
1023 'srelgot'.
1024
1025 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
1026 'oldinst'.
1027
1028 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
1029 parameters.
1030 Remove unusued variables and code.
1031 (elf_backend_add_symbol_hook): Fix prototype.
1032
1033 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
1034
1035 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
1036 to unused function parameter.
1037
1038 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
1039 parameters.
1040 Use EMPTY_HOWTO to initialise empty howto slots.
1041 Remove unused variables.
1042
1043 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
1044
1045 2000-03-01 H.J. Lu <hjl@gnu.org>
1046
1047 * aoutx.h (aout_link_input_section_std): Pass "true" to
1048 the undefined_symbol callback.
1049 (aout_link_input_section_ext): Likewise.
1050 * bout.c (get_value): Likewise.
1051 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
1052 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
1053 Likewise.
1054 (alpha_relocate_section): Likewise.
1055 * coff-arm.c (coff_arm_relocate_section): Likewise.
1056 * coff-i960.c (coff_i960_relocate_section): Likewise.
1057 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
1058 * coff-mips.c (mips_relocate_section): Likewise.
1059 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
1060 * coff-sh.c (sh_relocate_section): Likewise.
1061 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
1062 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
1063 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
1064 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
1065 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
1066 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
1067 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
1068 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1069 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
1070 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
1071 * elf32-sh.c (sh_elf_relocate_section): Likewise.
1072 * elf32-v850.c (v850_elf_relocate_section): Likewise.
1073 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
1074 * elflink.h (elf_link_output_extsym): Likewise.
1075 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
1076 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
1077 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
1078
1079 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
1080 undefined_symbol callback when building shared library with
1081 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
1082 "true".
1083 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
1084 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1085 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1086 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
1087 (elf32_mips_get_relocated_section_content): Likewise.
1088 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1089 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1090 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
1091 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1092
1093 2000-02-28 Nick Clifton <nickc@cygnus.com>
1094
1095 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
1096 * Makefile.in: Regenerate.
1097
1098 * configure.in: Add support for mips and sh pe vectors.
1099 * configure: regenerate.
1100
1101 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
1102 targets.
1103
1104 * targets.c: Add mips and sh pe vectors.
1105
1106 * libpei.h (coff_final_link_postscript): Only define if not
1107 already defined.
1108
1109 * coffcode.h: Add support for WinCE magic numbers.
1110
1111 * peigen.c (pe_print_reloc): Update comment and rearrange
1112 appending of newline character.
1113
1114 * peicode.h: Add support for Image Library Format.
1115 (pe_ILF_vars): Structure containing data used by ILF code.
1116 (pe_ILF_make_a_section): New function. Create a section based
1117 on ILF data.
1118 (pe_ILF_make_a_reloc): New function. Create a reloc based on
1119 ILF data.
1120 (pe_ILF_make_a_symbol): New function. Create a symbol based
1121 on ILF data.
1122 (pe_ILF_save_relocs): New function. Store the relocs created
1123 by pe_ILF_make_a_reloc in a section.
1124 (pe_ILF_build_a_bfd): New function. Create a BFD describing
1125 an ILF object.
1126 (pe_ILF_object_p): New function. Return a bfd_target pointer
1127 for an ILF object.
1128 (pe_bfd_object_p): If an ILF object is detected call
1129 pe_ILF_object_p on it.
1130
1131 * coff-arm.c: Add support for WinCE relocs which are different
1132 from normal ARM COFF relocs.
1133 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
1134
1135 * coff-sh.c: Add support for sh-pe target.
1136 * pe-sh.c: New file. Support code for sh-pe target.
1137 * pei-sh.c: New file. Support code for sh-pe target.
1138
1139 * pe-mips.c: New file. Support code for mips-pe target.
1140 * pei-mips.c: New file. Support code for mips-pe target.
1141
1142 2000-02-27 Jakub Jelinek <jakub@redhat.com>
1143
1144 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
1145 architecture if the object causing the bump is dynamic.
1146 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
1147 and also don't it for memory ordering.
1148 (sparc64_elf_write_relocs): Take src_rela out of the loop.
1149
1150 2000-02-27 Ian Lance Taylor <ian@zembu.com>
1151
1152 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
1153 calling bfd_get_section_size_before_reloc.
1154 (decode_line_info): Likewise.
1155 (_bfd_dwarf2_find_nearest_line): Likewise.
1156
1157 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
1158
1159 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
1160 name of the libtool directory.
1161 * Makefile.in: Rebuild.
1162
1163 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
1164
1165 * som.c (SOM_HOWTO): Define.
1166 (som_hppa_howto_table): Use it.
1167
1168 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
1169
1170 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
1171
1172 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
1173
1174 2000-02-24 Catherine Moore <clm@cygnus.com>
1175
1176 * som.c (som_misc_symbol_info): Add field
1177 secondary_def.
1178 (som_bfd_derive_misc_symbol_info): Initialize
1179 secondary_def.
1180 (som_build_and_write_symbol_table): Keep track
1181 of secondary_def field.
1182 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
1183 if secondary_def field is set.
1184 (som_bfd_ar_write_symbol_stuff): Initialize
1185 secondary_def.
1186
1187 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
1188
1189 * dwarf2.c (read_address): Read 16-bits addresses.
1190 (parse_comp_unit): Accept addr_size == 2.
1191
1192 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
1193
1194 * bfd-in.h: Update copyright date.
1195
1196 2000-02-23 Linas Vepstas <linas@linas.org>
1197
1198 * cpu-i370.c: New file.
1199 * elf32-i370.c: New file.
1200 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
1201 (bfd_i370_arch): New.
1202 (bfd_archures_list): Add bfd_i370_arch.
1203 * elf.c (prep_headers): Add bfd_arch_i370.
1204 * Makefile.am: Add support for IBM 370 elf.
1205 * config.bfd: Likewise.
1206 * configure.in: Likewise.
1207 * libbfd.h (bfd_reloc_code_real_names): Likewise.
1208 * reloc.c (bfd_reloc_code_type): Likewise.
1209 * targets.c: Likewise.
1210
1211 * Makefile.in: Regenerate.
1212 * configure: Regenerate.
1213 * bfd-in2.h: Regenerate.
1214
1215 2000-02-22 Ian Lance Taylor <ian@zembu.com>
1216
1217 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
1218 invalid relocation types, and change them to R_386_NONE.
1219
1220 2000-02-22 H.J. Lu <hjl@gnu.org>
1221
1222 * elflink.h (elf_link_add_object_symbols): If a version symbol is
1223 not defined, don't add a second ELF_VER_CHR.
1224
1225 * elflink.h (elf_bfd_final_link): Call output_extsym for global
1226 symbols converted to local symbols even when stripping all
1227 symbols.
1228 (elf_link_output_extsym): Process global symbols converted to
1229 local symbols even if they are being stripped.
1230
1231 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
1232
1233 * archures.c (bfd_octets_per_byte): Return unsigned int.
1234 (bfd_arch_mach_octets_per_byte): Ditto.
1235 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
1236 comparison warning.
1237 * section.c (bfd_get_section_size_before_reloc): Quell signed
1238 vs. unsigned comparison warning.
1239 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
1240 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
1241 change. What was I thinking?
1242 * bfd-in2.h: Regenerate.
1243
1244 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
1245 (elf_gc_sections): Same here.
1246 (elf_gc_common_finalize_got_offsets): And here.
1247
1248 2000-02-21 Ian Lance Taylor <ian@zembu.com>
1249
1250 ELF HPPA doesn't work at present; remove it until it does.
1251 * config.bfd: Comment out setting targ_defvec to
1252 bfd_elf32_hppa_vec.
1253 * Makefile.am: Rebuild dependencies.
1254 (BFD32_BACKENDS): Remove elf32-hppa.lo.
1255 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
1256 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
1257 * Makefile.in: Rebuild.
1258 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
1259
1260 2000-02-18 Geoff Keating <geoffk@cygnus.com>
1261
1262 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
1263 is no bfd_free(). Revert bfd_free part of previous change.
1264
1265 2000-02-18 Geoff Keating <geoffk@cygnus.com>
1266
1267 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
1268 arrays.
1269 (coff_compute_section_file_positions): Use bfd_free to pair
1270 bfd_malloc.
1271 (coff_write_object_contents): Likewise.
1272
1273 * coff-rs6000.c (xcoff_howto_table_16): New variable.
1274 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
1275
1276 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
1277
1278 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
1279 (xcoff_ar_file_hdr_big): New structure.
1280 (SIZEOF_AR_FILE_HDR_BIG): New macro.
1281 (xcoff_ar_hdr_big): New structure.
1282 (SIZEOF_AR_HDR_BIG): New macro.
1283 (xcoff_big_format_p): New macro.
1284 (xcoff_ardata_big): New macro.
1285 (arch_xhdr_big): New macro.
1286 (xcoff_slurp_armap): Handle large archives.
1287 (xcoff_archive_p): Detect large archives.
1288 (xcoff_read_ar_hdr): Handle large archives.
1289 (xcoff_openr_next_archived_file): Handle large archives.
1290 (xcoff_generic_stat_arch_elt): Handle large archives.
1291 (xcoff_write_armap_old): Rename from xcoff_write_armap.
1292 (xcoff_write_armap_big): New function.
1293 (xcoff_write_armap): New function, dispatch to _old or _big.
1294 (xcoff_write_archive_contents_old): Rename from
1295 xcoff_write_archive_contents.
1296 (xcoff_write_archive_contents_big): New function.
1297 (xcoff_write_archive_contents): New function, dispatch to _old or
1298 _big.
1299
1300 2000-02-18 Richard Henderson <rth@cygnus.com>
1301
1302 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
1303 and hide_symbol members.
1304 (elf_link_hash_copy_indirect): Remove.
1305 (elf_link_hash_hide_symbol): Remove.
1306 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
1307 and elf_backend_hide_symbol.
1308 (_bfd_elf_link_hash_copy_indirect): Declare.
1309 (_bfd_elf_link_hash_hide_symbol): Declare.
1310 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
1311 (_bfd_elf_link_hash_hide_symbol): Likewise.
1312 (_bfd_elf_link_hash_table_init): Don't init killed members.
1313 * elflink.h (elf_link_add_object_symbols): Use the bed function
1314 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
1315 (elf_link_assign_sym_version): Likewise.
1316 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
1317 (elf_backend_hide_symbol): Likewise.
1318 (elfNN_bed): Update for new members.
1319
1320 2000-02-17 Kevin Buettner <kevinb@redhat.com>
1321
1322 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
1323 STACK_END_ADDR): Define for new core file format.
1324 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
1325 for handling the vagaries of the various core file structures used
1326 by AIX over the years.
1327 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
1328 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
1329 core_dumpx structure.
1330
1331 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
1332
1333 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
1334 (bfd_mach_sh3_dsp): Likewise.
1335 (bfd_mach_sh4): Reinstate.
1336 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
1337 * bfd-in2.h: Regenerate.
1338 * coff-sh.c (struct sh_opcode): flags is no longer short.
1339 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
1340 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
1341 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
1342 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
1343 (sh_opcodes): No longer const.
1344 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
1345 (sh_insn_uses_reg): Check for USESAS and USESR8.
1346 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
1347 (_bfd_sh_align_load_span): Return early for SH4.
1348 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
1349 Take into account that field b of a parallel processing insn
1350 could be mistaken for a separate insn.
1351 * cpu-sh.c (arch_info_struct): New array elements for
1352 sh2, sh-dsp and sh3-dsp.
1353 Reinstate element for sh4.
1354 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
1355 (SH4_NEXT): Reinstate.
1356 (SH3_NEXT, SH3E_NEXT): Adjust.
1357 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
1358 * elf32-sh.c (sh_elf_set_private_flags): New function.
1359 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
1360 (sh_elf_merge_private_data): New function.
1361 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
1362 (bfd_elf32_bfd_copy_private_bfd_data): Define.
1363 (bfd_elf32_bfd_merge_private_bfd_data): Change to
1364 sh_elf_merge_private_data.
1365
1366 2000-02-13 Richard Henderson <rth@cygnus.com>
1367
1368 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
1369 hide_symbol members.
1370 (elf_link_hash_copy_indirect): New.
1371 (elf_link_hash_hide_symbol): New.
1372 * elflink.h (elf_link_add_object_symbols): Break out copy from
1373 indirect new new symbol to elf.c.
1374 (elf_link_assign_sym_version): Break out privatization of
1375 non-exported symbol to elf.c.
1376 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
1377 (_bfd_elf_link_hash_hide_symbol): New.
1378 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
1379
1380 2000-02-13 Ian Lance Taylor <ian@zembu.com>
1381
1382 * section.c (_bfd_strip_section_from_output): Add info parameter.
1383 If it passed as non-NULL, use it to check whether any input BFD
1384 has an input section which uses this output section. Change all
1385 callers.
1386 * bfd-in2.h: Rebuild.
1387
1388 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
1389 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
1390 1999-11-29.
1391 * bfd-in2.h: Rebuild.
1392
1393 2000-02-10 Timothy Wall <twall@cygnus.com>
1394
1395 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
1396 allow final modifications of swapped-in symbol.
1397 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
1398 * coffcode.h (coff_write_relocs): Use macro
1399 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
1400 symbol index should be set to -1.
1401
1402 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
1403
1404 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
1405 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
1406 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
1407 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
1408 sh_insns_uses_or_sets_freg): New functions.
1409 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
1410 * (sh_insns_conflict): Use new functions and new macros to
1411 detect conflicts when two instructions both set same integer registers,
1412 both set same fp register, and both set special register.
1413
1414 2000-02-09 Timothy Wall <twall@cygnus.com>
1415
1416 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
1417 swapping in sections, so that the swapping routines have access to
1418 the arch/mach info.
1419
1420 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
1421
1422 * coff-go32.c: Update comment. Update copyright.
1423
1424 2000-01-27 Thomas de Lellis <tdel@windriver.com>
1425
1426 * syms.c (bfd_decode_symclass)
1427 Two new class characters were added - 'V' and 'v'. The
1428 meaning of 'W' is now restricted to just weak non-object
1429 symbols. This allows differentiation between, for example,
1430 weak functions vs weak objects. nm for example now dumps:
1431 'W' = weak global
1432 'w' = weak unresolved
1433 'V' = weak global object
1434 'v' = weak unresolved object
1435
1436 (bfd_is_undefined_symclass): New function. Return true if the
1437 given symbol class represents and undefined/unresolved symbol.
1438
1439 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
1440 unresolved symbols.
1441
1442 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
1443
1444 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
1445 STT_ARM_16BIT flag set, but it is not attached to a data object
1446 return STT_ARM_16BIT so that it will be treated as code by the
1447 disassembler.
1448
1449 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
1450
1451 * coff-i386.c (i3coff_object_p): Remove prototype.
1452 Update copyright.
1453
1454 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
1455 to name. Update copyright.
1456
1457 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
1458 assignment to avoid warning. Update copyright.
1459
1460 2000-01-24 Robert Lipe (robertl@sco.com)
1461
1462 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
1463 instead of using GNU C extension.
1464
1465 2000-01-21 Nick Clifton <nickc@cygnus.com>
1466
1467 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
1468 amount from a bfd_in_memory structure.
1469 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
1470 structure.
1471
1472 2000-01-14 Nick Clifton <nickc@cygnus.com>
1473
1474 * linker.c (default_indirect_link_order): oops - fix incorrectly
1475 applied patch from Tim Wall.
1476
1477 2000-01-13 Timothy Wall (twall@tiac.net>
1478
1479 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
1480 = scnhsz, filhsz, relsz, aoutsz, etc)
1481
1482 * coffswap.h: Ditto.
1483
1484 2000-01-13 Nick Clifton <nickc@cygnus.com>
1485
1486 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
1487 interwork thumb to arm stub.
1488
1489 2000-01-13 Timothy Wall (twall@tiac.net>
1490
1491 * archures.c (bfd_octets_per_byte): New function: Return
1492 target byte size.
1493 (bfd_arch_mach_octets_per_byte): New function: Return target
1494 byte size.
1495
1496 * section.c: Distinguish between octets and bytes for usage of
1497 _cooked_size, _raw_size, and output_offset. Clarify
1498 description of bfd_set_section_contents.
1499
1500 * bfd-in2.h: Regenerate.
1501
1502 * coffgen.c: Indicate that the offset parameter is in bytes, not
1503 octets.
1504
1505 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
1506 where appropriate to get the octet offset when calling
1507 bfd_set_section_contents.
1508 (bfd_coff_reloc_link_order): Ditto.
1509
1510 * linker.c (bfd_generic_reloc_link_order): Ditto.
1511 (_bfd_default_link_order): Ditto.
1512
1513 * reloc.c (bfd_perform_relocation): Distinguish between octets
1514 and bytes. Use octets when indexing into octet data; use bytes
1515 when calculating target addresses.
1516 (bfd_install_relocation): Ditto.
1517
1518 * srec.c (srec_write_section): Ditto.
1519
1520 2000-01-13 Nick Clifton <nickc@cygnus.com>
1521
1522 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
1523 3 to 2. This allows 4 byte sized sections, which is necessary for
1524 dlltool to build funcitoning DLLs.
1525
1526 2000-01-10 Philip Blundell <pb@futuretv.com>
1527
1528 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
1529 (arm*-*-conix*): New target.
1530
1531 2000-01-10 Egor Duda <deo@logos-m.ru>
1532
1533 * config.bfd: Include elf32_i386 vector to target list for cygwin
1534 and mingw.
1535
1536 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
1537 * configure.in: Test for structure win32_pstatus_t in
1538 <sys/procfs.h>
1539 * configure: Regenerate.
1540
1541 * elf.c (elfcore_grok_win32pstatus): New function: process
1542 win32_pstatus_t notes in elf core file.
1543 (elfcore_grok_note): Detect win32_pstatus notes.
1544
1545 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
1546
1547 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
1548 visibility.
1549 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
1550 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
1551
1552 1999-12-29 Richard Henderson <rth@cygnus.com>
1553
1554 * elflink.h (bfd_elf,size_dynamic_sections): Don't export all
1555 if no dynamic sections created.
1556
1557 1999-12-27 Nick Clifton <nickc@cygnus.com>
1558
1559 * peicode.h (pe_bfd_object_p): Only define for PE format
1560 targets.
1561
1562 1999-12-17 Nick Clifton <nickc@cygnus.com>
1563
1564 * coff-i386.c (i3coff_object_p): Delete.
1565 (i386coff_vec): Replace reference to i3coff_object_p with a
1566 reference to coff_object_p.
1567
1568 * coff-mcore.c (pe_object_p): Delete.
1569
1570 * peicode.h (pe_bfd_object_p): New function: Detect the
1571 presence of a PE format COFF object file. Also detect and
1572 warn about the presence of LINK6 format Image Library Format
1573 object files.
1574
1575 1999-12-16 Nick Clifton <nickc@cygnus.com>
1576
1577 * coff-arm.c (NUM_ELEM): New macro.
1578 (NUM_RELOCS): New macro: The number of known ARM relocs.
1579 (RTYPE2HOWTO): Return NULL if the reloc type is out of range.
1580 (coff_arm_rtype_to_howto): Return NULL if the reloc type is out
1581 of range.
1582 (bfd_arm_process_before_allocation): Produce a warning message if
1583 an out of range symbol index is encountered.
1584
1585 1999-12-14 Nick Clifton <nickc@cygnus.com>
1586
1587 * elflink.h (is_global_symbol_definition): New Function: Return
1588 true iff the symbol is being given a global definition in this
1589 bfd.
1590 (elf_link_is_defined_archive_symbol): Do not bother processing
1591 symbols for an archive element that has already been included
1592 in the link.
1593 Use is_global_symbol_definition().
1594
1595 1999-12-09 Andrew Cagney <cagney@cygnus.com>
1596
1597 * config.bfd: Add support for sparc-*-netbsdelf* and
1598 sparc-*-netbsdaout*.
1599
1600 1999-12-13 Nick Clifton <nickc@cygnus.com>
1601
1602 * elflink.h (elf_link_is_defined_archive_symbol): Check to see
1603 if the symbol is in the common section.
1604
1605 1999-12-10 Nick Clifton <nickc@cygnus.com>
1606
1607 * elflink.h (elf_link_is_defined_archive_symbol): New
1608 function: Decide if a symbol, in an archive map is there
1609 because it is defined in the archive element, or because it is
1610 just another common declaration of it.
1611 (elf_link_add_archive_symbols): Use
1612 elf_link_is_defined_archive_symbol to decide if an archive
1613 element contain a reference to a common symbol should be
1614 linked in or not.
1615
1616 1999-12-10 Nick Clifton <nickc@cygnus.com>
1617
1618 * elflink.h: Revert previous patch.
1619 * targets.c: Revert previous patch.
1620 * libbfd-in2.h: Revert previous patch.
1621 * libbfd.h: Revert previous patch.
1622 * elfxx-target.h: Revert previous patch.
1623 * archive.c: Revert previous patch.
1624 * aout-target.h: Revert previous patch.
1625 * aout-tic30.h: Revert previous patch.
1626 * bfd.c: Revert previous patch.
1627 * coff-alpha.c: Revert previous patch.
1628 * coff-rs6000.c: Revert previous patch.
1629 * elf64-mips.c: Revert previous patch.
1630 * ieee.c: Revert previous patch.
1631 * libecoff.h: Revert previous patch.
1632 * oasys.c: Revert previous patch.
1633 * som.c: Revert previous patch.
1634 * vms.c: Revert previous patch.
1635
1636 1999-12-09 Nick Clifton <nickc@cygnus.com>
1637
1638 * elflink.h (elf_link_add_archive_symbols): Add an archive
1639 element even if contains a symbol which is currently only
1640 considered to be a common.
1641
1642 * targets.c (struct bfd_target): Add new field
1643 _bfd_allow_commons_in_armap.
1644 * bfd-in2.h:Regenerate.
1645
1646 * libbfd-in2.h (_bfd_noarchive_allow_commons_in_armap):
1647 Define.
1648 (_bfd_archive_bsd_allow_commons_in_armap): Define.
1649 * libbfd.h: Regenerate.
1650
1651 * elfxx-target.h: If using COFF archive map, override
1652 definition of allow_commons_in_armap and replace with
1653 bfd_false.
1654
1655 * archive.c (bfd_compute_and_write_armap): Do not place common
1656 symbols into the archive map unless _bfd_allow_commons_in_armap
1657 returns true.
1658
1659 * aout-target.h (MY_allow_commons_in_armap): Define.
1660 * aout-tic30.h (MY_allow_commons_in_armap): Define.
1661 * bfd.c (bfd_allow_commons_in_armap): Define.
1662 * coff-alpha.h (alpha_ecoff_allow_commons_in_armap): Define.
1663 * coff-rs6000.h (xcoff_allow_commons_in_armap): Define.
1664 * elf64-mips.c (bfd_elf64_allow_commons_in_armap): Define.
1665 * ieee.c (ieee_ecoff_allow_commons_in_armap): Define.
1666 * libecoff.h (_bfd_ecoff_allow_commons_in_armap): Define.
1667 * oasys.c (oasys_allow_commons_in_armap): Define.
1668 * som.c (som_allow_commons_in_armap): Define.
1669 * vms.c (vms_allow_commons_in_armap): Define.
1670
1671 1999-12-07 Jim Blandy <jimb@cygnus.com>
1672
1673 Add support for SSE registers in ELF core files.
1674 * elf.c (elfcore_make_note_pseudosection): New function.
1675 (elfcore_grok_prfpreg): Use it.
1676 (elfcore_grok_prxfpreg): New function.
1677 (elfcore_grok_note): Recognize Linux NT_PRXFPREG notes.
1678
1679 1999-12-03 Ian Lance Taylor <ian@zembu.com>
1680
1681 * elf32-mips.c (mips_elf_calculate_relocation): Divide R_MIPS_PC16
1682 value by 4 before storing it back in the field. From
1683 Koundinya. K <kk@ddeorg.soft.net>.
1684
1685 Tue Nov 30 22:41:14 1999 Jeffrey A Law (law@cygnus.com)
1686
1687 * archures.c (bfd_mach_am33): Define.
1688 * bfd-in2.h: Rebuilt.
1689 * cpu-m10300.c (bfd_am33_arch): Add to the mn103 architecture list
1690 * elf-m10300.c (mn10300_elf_relax_section): Handle am33 instructions.
1691 (compute_function_info): Handle additional registers saved by
1692 movm on the am33.
1693 (elf_mn10300_mach): Handle E_MN10300_MACH_AM33.
1694 (_bfd_mn10300_elf_final_write_processing): Handle bfd_mach_am33.
1695
1696 1999-11-29 Jim Blandy <jimb@cygnus.com>
1697
1698 * elf.c (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): New
1699 functions.
1700 * bfd-in2.h (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): New
1701 declarations.
1702
1703 1999-11-27 Michael Meissner <meissner@cygnus.com>
1704
1705 * reloc.c (BFD_RELOC_ALPHA_USER_LITERAL): New relocation for
1706 internal use within gas for alpha explicit relocations.
1707 (BFD_RELOC_ALPHA_USER_LITUSE_BASE): Ditto.
1708 (BFD_RELOC_ALPHA_USER_LITUSE_BYTOFF): Ditto.
1709 (BFD_RELOC_ALPHA_USER_LITUSE_JSR): Ditto.
1710 (BFD_RELOC_ALPHA_USER_GPDISP): Ditto.
1711 (BFD_RELOC_ALPHA_USER_GPRELHIGH): Ditto.
1712 (BFD_RELOC_ALPHA_USER_GPRELLOW): Ditto.
1713
1714 * elf64-alpha.c (elf64_alpha_reloc_map): Add mappings for
1715 BFD_RELOC_ALPHA_USER_*.
1716
1717 * bfd-in2.h: Regenerate.
1718 * libbfd.h: Regenerate.
1719
1720 1999-11-26 Fred Fish <fnf@cygnus.com>
1721
1722 * elf.c (elfcore_read_notes): Add prototype for static function.
1723 (_bfd_elf_make_section_from_phdr): Renamed from bfd_section_from_phdr.
1724 (bfd_section_from_phdr): Replacement function that calls
1725 _bfd_elf_make_section_from_phdr for generic segment types and
1726 backend fucntion pointed to by elf_backend_section_from_phdr for
1727 backend specific segment types.
1728 (_bfd_elfcore_section_from_phdr): Remove call to elfcore_read_notes,
1729 now called by _bfd_elf_make_section_from_phdr. Note that this func
1730 is now just a stub between the caller and bfd_section_from_phdr.
1731
1732 * elf-bfd.h (struct elf_backend_data): Add new function pointer
1733 elf_backend_section_from_phdr.
1734 (elf_backend_section_from_phdr): Add prototype.
1735
1736 * elfxx-target.h (elf_backend_section_from_phdr): Define default.
1737 (elfNN_bed): Add elf_backend_section_from_phdr.
1738
1739 1999-11-25 Nick Clifton <nickc@cygnus.com>
1740
1741 * coff-arm.c (bfd_arm_get_bfd_for_interworking): Add
1742 SEC_CODE and SEC_READONLY flags to glue sections.
1743
1744 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Add
1745 SEC_CODE and SEC_READONLY flags to glue sections.
1746
1747 1999-11-20 Nick Clifton <nickc@cygnus.com>
1748
1749 * coff-mcore.c (coff_mcore_relocate_section): Fix typo in previous
1750 delta.
1751
1752 1999-11-19 Catherine Moore <clm@cygnus.com>
1753
1754 * elf32-m68k.c (elf_cpu32_plt0_entry): Fix encoding.
1755 (elf_cpu32_plt_entry): Likewise.
1756
1757 1999-11-18 Nick Clifton <nickc@cygnus.com>
1758
1759 * coff-mcore.c (coff_mcore_rtype_to_howto): Special case handling
1760 for RVA relocs.
1761 (coff_mcore_relocate_section): Initialise addend to 0.
1762 Special case processing of RVA reloc.
1763
1764 1999-11-17 Richard Henderson <rth@cygnus.com>
1765
1766 * elf-bfd.h (struct elf_backend_data): Reorder collect and
1767 type_change_ok; add sign_extend_vma.
1768 * elf32-mips.c (elf_backend_sign_extend_vma): Define.
1769 * elfcode.h (elf_swap_symbol_in): Mind be->sign_extend_vma.
1770 (elf_swap_shdr_in, elf_swap_phdr_in): Likewise.
1771 * elfxx-target.h (elf_backend_sign_extend_vma): Default.
1772 (elfNN_bed): Follow struture changes.
1773
1774 1999-11-09 Ian Lance Taylor <ian@zembu.com>
1775
1776 * libbfd.c (bfd_read): Check result of read against desired result
1777 using !=, not <.
1778 (_bfd_generic_get_section_contents): Set bfd_error if the seek is
1779 invalid compared to the section size.
1780
1781 * ieee.c (ieee_slurp_debug): Get the length of the debug
1782 information right if there is no data part.
1783
1784 Tue Nov 2 01:44:41 1999 Jeffrey A Law (law@cygnus.com)
1785
1786 * som.c (som_fixup_formats): Improve handling of R_AUX_UNWIND,
1787 R_LINETAB, R_LINETAB_ESC, and R_COMMENT.
1788
1789 1999-10-28 Ian Lance Taylor <ian@zembu.com>
1790
1791 * elflink.h (elf_bfd_final_link): Make last_local signed.
1792
1793 1999-10-27 Ian Lance Taylor <ian@zembu.com>
1794
1795 * stabs.c (_bfd_link_section_stabs): Make sure .stabstr section
1796 starts with a zero.
1797
1798 Sat Oct 23 17:36:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
1799
1800 * archures.c: Add definitions bfd_mach_d10v, bfd_mach_d10v_ts2 and
1801 bfd_mach_d10v_ts3.
1802 * cpu-d10v.c (d10v_ts3_info, d10v_ts2_info): Add.
1803 * bfd-in2.h: Regenerate.
1804
1805 1999-10-15 Andrew Haley <aph@cygnus.com>
1806
1807 * dwarf1.c (parse_die): Fail to parse a die if its length is zero.
1808
1809 Sun Oct 17 17:19:00 1999 Jeffrey A Law (law@cygnus.com)
1810
1811 * libhppa.h (bfd_hppa_insn2fmt): Change to return an int.
1812
1813 1999-10-08 Ian Lance Taylor <ian@zembu.com>
1814
1815 * elflink.h (elf_merge_symbol): When overriding a weak symbol with
1816 a defined symbol in a shared library, clear the DEF_DYNAMIC flag
1817 too.
1818
1819 Fri Oct 8 13:03:45 1999 Geoffrey Keating <geoffk@cygnus.com>
1820
1821 * elf32-mips.c (mips_elf_calculate_relocation): R_MIPS_LITERAL
1822 relocs also need the GP value.
1823 (_bfd_mips_elf_relocate_section): Handle unpaired LO16 relocs
1824 properly. Handle sign-extension for R_MIPS_64 correctly. Correct
1825 the GP value for R_MIPS_LITERAL relocs too. Handle
1826 R_MIPS_64 relocs properly on big-endian MIPS.
1827 (mips_elf_sign_extend): Behave properly with 'long long'.
1828 (mips_elf_highest): Correct typo.
1829
1830 Mon Oct 4 17:49:45 1999 Nick Clifton <nickc@cygnus.com>
1831
1832 * cpu-m32r.c (arch_info_struct): New static global.
1833 (bfd_m32r_arch): Refer to it.
1834 * elf32-m32r.c (m32r_elf_object_p): Recognize E_M32RX_ARCH.
1835 (m32r_elf_print_private_bfd_data): Ditto.
1836 (m32r_elf_final_write_processing): Handle bfd_mach_m32rx.
1837 * archures.c (bfd_mach_m32rx): Define it.
1838 * bfd-in2.h: Rebuild.
1839
1840 1999-09-28 Fred Fish <fnf@cygnus.com>
1841
1842 * targets.c (cisco_core_vec): Replaced with two new vecs ...
1843 (cisco_core_big_vec): Add new bigendian vec.
1844 (cisco_core_little_vec): Add new little endian vec.
1845
1846 * cisco-core.c (CRASH_INFO): Fixed offset replaced with ...
1847 (crash_info_locs): Add array of possible offsets.
1848 (MASK_ADDR): Mask to apply to crash info offset.
1849 (crashinfo_external): Add textbase, database, bssbase and
1850 turn into a typedef.
1851 (cisco_core_file_validate): Renamed from cisco_core_file_p.
1852 Many small changes to account for additional hardware versions.
1853 Pick a reasonable size for ".reg" section. Add a ".crash"
1854 section to allow access to crashinfo_external struct.
1855 (cisco_core_file_p): New version of this function that
1856 iterates over crash_info_locs, calling cisco_core_file_validate.
1857 (cisco_core_vec): Old big endian only vec replaced with ...
1858 (cisco_core_big_vec): Add big endian version.
1859 (cisco_core_little_vec): Add little endian version.
1860
1861 * configure.in (cisco_core_vec): Split to two new vectors ...
1862 (cisco_core_big_vec): New target vector.
1863 (cisco_core_little_vec): New target vector.
1864 * configure: Regenerate.
1865 * config.bfd (targ): For m68*-*-aout* targ, change cisco_core_vec
1866 to cisco_core_big_vec in targ_selvecs.
1867
1868 1999-09-28 Geoffrey Keating <geoffk@cygnus.com>
1869
1870 * elf32-mips.c (mips_elf_relocate_hi16): Unused, delete.
1871 (mips_elf_relocate_got_local): Unused, delete.
1872 (mips_elf_relocate_global_got): Unused, delete.
1873
1874 1999-09-24 Fred Fish <fnf@cygnus.com>
1875
1876 * elf.c (bfd_section_from_phdr): Add typename variable. Use p_type
1877 to initialize it to something meaningful. Then use it to generate
1878 more useful segment names.
1879
1880 Sun Sep 19 12:16:47 1999 Jeffrey A Law (law@cygnus.com)
1881
1882 * som.c (NO_PCREL_MODES): Define if the system does not define
1883 R_SHORT_PCREL_MODE.
1884 (hppa_som_gen_reloc_type): Handle both short and long pcrel branches.
1885 (som_write_fixups): Eliminate redundant pcrel mode relocs. Handle
1886 R_LONG_PCREL_MODE and R_SHORT_PCREL_MODE
1887 * libhppa.h (dis_assemble_22): New function.
1888 (bfd_hppa_insn2fmt): Handle long branch.
1889
1890 * libhppa.h (bfd_hppa_insn2fmt): Decode and handle formats found
1891 in PA2.0.
1892
1893 1999-09-17 Alan Modra <alan@spri.levels.unisa.edu.au>
1894
1895 * coff-i386.c (coff_i386_reloc_type_lookup): Support BFD_RELOC_16,
1896 BFD_RELOC_16_PCREL, BFD_RELOC_8, BFD_RELOC_8_PCREL relocs.
1897 (reloc_howto_type howto_table): Tidy comments and whitespace.
1898
1899 1999-09-17 Nick Clifton <nickc@cygnus.com>
1900
1901 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Undo
1902 previous delta. Set sec->gc_mark instead.
1903
1904 Thu Sep 16 11:21:13 1999 Catherine Moore <clm@cygnus.com>
1905
1906 * elf32-m68k.c (elf_cpu32_plt0_entry): Use a1 instead of a0.
1907 (elf_cpu32_plt_entry): Likewise.
1908
1909 Thu Sep 16 10:48:17 1999 Jeffrey A Law (law@cygnus.com)
1910
1911 * elf-hppa.h (elf_hppa_final_write_processing): Turn on TRAPNIL.
1912
1913 * elf-hppa.h (elf_hppa_final_link): If unable to find __gp in the
1914 symbol table, then just compute a suitable value (but do not
1915 create a __gp symbol).
1916
1917 * elf-hppa.h (elf_hppa_relocate_section): Allow undefined
1918 symbols when building shared libraries.
1919 (elf_hppa_final_link_relocate): Correct handling of PCREL
1920 relocations against undefined symbols.
1921
1922 1999-09-16 Nick Clifton <nickc@cygnus.com>
1923
1924 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Mark
1925 interworking sections as linker created so that they will not
1926 be removed by garbage collection.
1927
1928 Wed Sep 15 02:31:57 1999 Jeffrey A Law (law@cygnus.com)
1929
1930 * elf-hppa.h (elf_hppa_final_link): Revamp __gp handling.
1931 (elf_hppa_final_link_relocate): Consistently create an absolute
1932 address, then subtract out the value of __gp.
1933
1934 1999-09-14 Michael Meissner <meissner@cygnus.com>
1935
1936 * configure.in (Canonicalization of target names): Remove adding
1937 ${CONFIG_SHELL} in front of $ac_config_sub, since autoconfig 2.14
1938 generates $ac_config_sub with a ${CONFIG_SHELL} already.
1939 * configure: Regenerate.
1940
1941 1999-09-14 Nick Clifton <nickc@cygnus.com>
1942
1943 * elf32-m32r.c (ELF_MAXPAGESIZE): Change to 0x1 (at request of
1944 Mitsubishi).
1945
1946 Mon Sep 13 20:01:47 1999 Jeffrey A Law (law@cygnus.com)
1947
1948 * elf-hppa.h (elf_hppa_record_segment_addrs): New function.
1949 (elf_hppa_final_link): Initialize text_segment_base and
1950 data_segment_base.
1951 (elf_hppa_final_link_relocate): Handle SEGREL relocations.
1952
1953 * elf-hppa.h (elf_hppa_final_link): Remove unused variables.
1954 (elf_hppa_final_link_relocate): Likewise.
1955 (elf_hppa_relocate_insn): Likewise.
1956 (elf_hppa_relocate_section): Initialize HOWTO.
1957
1958 1999-09-13 Donn Terry <donn@interix.com>
1959
1960 * coffcode.h (styp_to_sec_flags): Further refinement of COMDAT
1961 handling to support both GNU and MS objects.
1962
1963 * coffcode.h (coff_write_object_contents): Don't check reloc_count
1964 when determining whether to set F_RELFLG.
1965
1966 1999-09-13 Philip Blundell <pb@nexus.co.uk>
1967
1968 * elf32-arm.h (elf32_arm_final_link_relocate): Don't range-check
1969 PC24 relocs if the target is an undefined weak symbol.
1970 (arm_add_to_rel): Fix compiler warning.
1971 (elf32_arm_plt0_entry): Correct comments.
1972
1973 1999-09-13 Alan Modra <alan@spri.levels.unisa.edu.au>
1974
1975 * elfcode.h (write_relocs): Check for the_bfd NULL when handling
1976 an absolute symbol in REL relocs.
1977
1978 Sun Sep 12 23:47:58 1999 Jeffrey A Law (law@cygnus.com)
1979
1980 * elf-hppa.h (elf_hppa_final_link_relocate): Handle SECREL32.
1981 Stub SEGREL32. Return an error for any relocation not handled.
1982
1983 1999-09-12 Ian Lance Taylor <ian@zembu.com>
1984
1985 * cofflink.c (coff_link_add_symbols): Look for special MSVC string
1986 constant symbols, and avoid multiple definition errors on them.
1987
1988 1999-09-12 Donn Terry <donn@interix.com>
1989
1990 * libbfd.c (bfd_log2): Rewrite to avoid infinite loop if most
1991 significant bit is set.
1992
1993 1999-09-11 Ian Lance Taylor <ian@zembu.com>
1994
1995 * coff-ppc.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
1996
1997 * elfcode.h (write_relocs): Handle an absolute symbol in REL
1998 relocs as we do for RELA relocs.
1999
2000 1999-09-11 Donn Terry <donn@interix.com>
2001
2002 * libpei.h (_bfd_pei_final_link_postscript): Declare.
2003 (coff_final_link_postscript): Define.
2004 * peigen.c (_bfd_pei_swap_aouthdr_out): Don't set value for data
2005 directory entries here.
2006 (_bfd_pei_final_link_postscript): New function.
2007
2008 * peigen.c (_bfd_pei_swap_scnhdr_out): Remove code which sets
2009 section flags based on the section name.
2010
2011 * peicode.h (coff_swap_scnhdr_in): If COFF_IMAGE_WITH_PE, the
2012 get the overflow of the s_nlnno field from the s_nreloc field.
2013 * peigen.c (_bfd_pei_swap_scnhdr_out): If doing a final link, swap
2014 the s_nlnno overflow of the .text section into the s_nreloc
2015 field.
2016
2017 * peigen.c (add_data_entry): Declare.
2018 (pei_swap_aouthdr_out): Get image size right. Set linker version
2019 more intuitively.
2020 (pei_swap_scnhdr_out): Test for UNINIT section, not .bss.
2021 (pe_print_idata): Code cleanup, print more info, get rid of (now)
2022 extraneous ImageBase.
2023 (pe_print_edata): Likewise.
2024 (pe_print_pdata): Likewise. Print exception entries.
2025 (pe_print_reloc): Likewise. Print MIPS_JMPADDR.
2026 (tbl): Make const, add "UNKNOWN".
2027 (_bfd_pe_print_private_bfd_data_common): Print timestamp.
2028 (_bfd_pe_bfd_copy_private_bfd_data_common): Don't copy deleted
2029 section data directory.
2030 (_bfd_pe_bfd_copy_private_section_data): Copy pe_flags.
2031
2032 * libpei.h (_bfd_pe_bfd_get_symbol_info): Declare.
2033 * peigen.c (_bfd_pe_bfd_get_symbol_info): New function.
2034 * peicode.h (coff_get_symbol_info): Define.
2035
2036 * config.bfd (i[3456]86-*-interix*): Set targ_cflags to
2037 -DSTRICT_PE_FORMAT.
2038 * coffcode.h (styp_to_sec_flags): Check STRICT_PE_FORMAT rather
2039 than __INTERIX.
2040 (coff_classify_symbol): Re-revert 1999-08-08 patch if
2041 STRICT_PE_FORMAT.
2042
2043 * libpei.h: New file, broken out of peicode.h.
2044 * peigen.c: New file, broken out of peicode.h.
2045 * peicode.h: A bunch of code moved out to libpei.h and peigen.c.
2046 * configure.in: Add peigen.lo to list of files required for each
2047 PE target.
2048 * Makefile.am: Rebuild dependencies.
2049 (BFD32_BACKENDS): Add peigen.lo.
2050 (BFD32_BACKENDS_CFILES): Add peigen.c.
2051 (SOURCE_HFILES): Add libpei.h.
2052 * configure, Makefile.in: Rebuild.
2053
2054 * peicode.h (coff_swap_scnhdr_in): Don't check for a special
2055 section name of _BSS; check IMAGE_SCN_CNT_UNINITIALIZED_DATA
2056 instead. Don't clear the s_paddr field for an uninitialized data
2057 section.
2058
2059 * coffcode.h (coff_mkobject_hook): Set timestamp field in
2060 coff_data_type to f_timdat.
2061 * peicode.h (pe_mkobject_hook): Likewise.
2062
2063 * peicode.h (coff_swap_filehdr_in): Check the NT executable magic
2064 number if COFF_IMAGE_WITH_PE.
2065
2066 * coffcode.h (coff_mkobject_hook): If COFF_WITH_PE, set HAS_DEBUG
2067 to the reverse of IMAGE_FILE_DEBUG_STRIPPED.
2068 (coff_write_object_contents): Set IMAGE_FILE_DEBUG_STRIPPED if
2069 there is no SEC_DEBUGGING section.
2070 * peicode.h (pe_mkobject_hook): Set HAS_DEBUG to the reverse of
2071 IMAGE_FILE_DEBUG_STRIPPED.
2072
2073 * pe-i386.c (COFF_LONG_FILENAMES): Define.
2074 (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
2075 * pei-i386.c (COFF_LONG_FILENAMES): Define.
2076 (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
2077
2078 * coffswap.h (IMAGE_BASE): Don't define.
2079 * pei-arm.c (IMAGE_BASE): Don't define.
2080 * pei-i386.c (IMAGE_BASE): Don't define.
2081 * pei-mcore.c (IMAGE_BASE): Don't define.
2082 * pei-ppc.c (IMAGE_BASE): Don't define.
2083
2084 * cofflink.c (_bfd_coff_link_input_bfd): When writing out a
2085 symbol, switch on the class when determining whether to modify the
2086 value. For PE, don't modify the value of a C_FCN symbol not named
2087 .bf.
2088
2089 * libbfd-in.h (_bfd_abort): Declare.
2090 (abort): Define.
2091 * bfd.c (_bfd_abort): New function.
2092 * libbfd.h: Rebuild.
2093
2094 * coffcode.h (coff_set_alignment_hook): Delete POWERPC_LE_PE
2095 special handling.
2096
2097 * cofflink.c (_bfd_coff_link_input_bfd): If a symbol is stripped,
2098 don't write out the associated line numbers.
2099
2100 * cofflink.c (_bfd_coff_write_global_sym): Handle section symbol
2101 aux entries.
2102
2103 * cofflink.c (coff_link_add_symbols): Don't warn about symbol type
2104 changes when the base type is unknown.
2105
2106 * coffgen.c (coff_print_symbol): Fix printing of aux record for
2107 function symbols.
2108
2109 * syms.c (BSF_DEBUGGING_RELOC): Define.
2110 * coffcode.h (coff_slurp_symbol_table): If PE, set BSF_DEBUGGING
2111 for C_FCN/C_EFCN symbols, and set BSF_DEBUGGING_RELOC for such
2112 symbols named .bf.
2113 * coffgen.c (fixup_symbol_value): Relocate a symbol which has
2114 BSF_DEBUGGING_RELOC set.
2115 * bfd-in2.h: Rebuild.
2116
2117 1999-09-10 Ian Lance Taylor <ian@zembu.com>
2118
2119 * ecoff.c (bfd_debug_section): Update initialization for new
2120 comdat_info field.
2121 (_bfd_ecoff_styp_to_sec_flags): Add section parameter.
2122 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Update declaration.
2123
2124 1999-09-10 H.J. Lu <hjl@gnu.org>
2125
2126 * coff-alpha.c (alpha_ecoff_backend_data): Initialize the new
2127 _bfd_filnmlen field.
2128 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2129
2130 Fri Sep 10 00:35:14 1999 Jeffrey A Law (law@cygnus.com)
2131
2132 * elf-hppa.h (elf_hppa_final_link_relocate): Create .opd entries
2133 for FPTR relocs involving local symbols.
2134
2135 * elf-hppa.h (elf_hppa_final_link_relocate): Get the right
2136 value for the stub address in a call through a stub.
2137 Install the value for a local symbol directly into the DLT
2138 instead of generating a reloc. Correctly handle FPTR64 relocs.
2139
2140 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): New function.
2141 (elf_hppa_remark_useless_dynamic_symbols): Similarly.
2142 (elf_hppa_final_link): Call them.
2143
2144 1999-09-10 Ian Lance Taylor <ian@zembu.com>
2145
2146 * elflink.h (elf_fix_symbol_flags): Move weakdef handling here...
2147 (elf_adjust_dynamic_symbol): ...from here.
2148
2149 Wed Sep 8 17:56:11 1999 Jeffrey A Law (law@cygnus.com)
2150
2151 * elf-hppa.h (elf_hppa_howto_table); There is no DIR64WR, DIR64DR
2152 relocation, remove them. SECREL64->LTOFF16WF.
2153 (elf_hppa_final_link_relocate): Handle LTOFF* relocations. Handle
2154 DIR* relocations.
2155 (elf_hppa_relocate_insn): Similarly.
2156
2157 * elf-hppa.h (elf_hppa_final_link_relocate): Handle PLTOFF* relocs.
2158 (elf_hppa_relocate_insn): Similarly.
2159
2160 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DPREL* and
2161 GPREL* relocations.
2162 (elf_hppa_relocate_insn): Similarly.
2163
2164 * elf-hppa.h (elf_hppa_link_final_relocate): Fix typos.
2165 Handle LTOFF_TP* relocs.
2166 (elf_hppa_relocate_insn): Similarly.
2167
2168 * elf-hppa.h (elf_hppa_final_link_relocate): Handle PCREL* relocs.
2169 Consistently deal with addends. Handle DLTIND14F and DLTREL14F.
2170 (elf_hppa_relocate_insn): Handle PCREL* relocs.
2171
2172 * elf-hppa.h (elf_hppa_final_link_relocate): Handle LT_OFF_FPTR*,
2173 DIR32, DIR64 and FPTR64 relocations.
2174 (elf_hppa_relocate_insn): Similarly.
2175
2176 * elf-hppa.h (elf_hppa_final_link): Set the value of __gp to the
2177 address of the .PARISC.global section.
2178 (elf_hppa_relocate_section): Lookup and pass the PA64 hash
2179 table entry elf_hppa_final_link_relocate. Do not give a warning
2180 for a reloc against an external symbol if it has a PA64 hash
2181 table entry.
2182 (elf_hppa_final_link_relocate): Significantly rework. Handle
2183 DLTIND relocations. Compute the final value of the relocation
2184 before passing the value of elf_hppa_relocate_insn.
2185 (elf_hppa_relocate_insn): Revamp to handle just bit tiwiddling
2186 relocation support. Handle DLTIND relocation requests just like
2187 DLTREL relocation requests. Simplify branch handling.
2188
2189 1999-09-08 Ulrich Drepper <drepper@cygnus.com>
2190
2191 * elf-hppa.h (elf_hppa_relocate_section): Catch problems with
2192 non-allocated section as done in i386 version.
2193 (elf_hppa_final_link_relocate): Uncomment R_PARISC_14F in switch
2194 statement since this is no know relocation.
2195
2196 Tue Sep 7 17:25:12 1999 Jeffrey A Law (law@cygnus.com)
2197
2198 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14F
2199 relocs.
2200 (elf_hppa_relocate_insn): Similarly.
2201
2202 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14WR and
2203 DLTREL14WD relocs.
2204 (elf_hppa_relocate_insn): Similarly.
2205
2206 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14R and
2207 DLTREL21L relocs. Pass the output bfd to elf_hppa_relocate_insn.
2208 Pass the relocate type rather than the insn format to
2209 elf_hppa_relocate_insn.
2210 (elf_hppa_relocate_insn): Make switch dependent on relocation type
2211 rather than the opcode. Handle DLTREL21L and DLTREL14R relocs.
2212
2213 1999-09-07 Ian Lance Taylor <ian@zembu.com>
2214
2215 * coffcode.h (bfd_coff_backend_data): Add _bfd_filnmlen field.
2216 (bfd_coff_filnmlen): Define.
2217 (bfd_coff_std_swap_table): Initialize new field.
2218 * coffgen.c (coff_fix_symbol_name): Use bfd_coff_filnmlen rather
2219 than FILNMLEN.
2220 (coff_write_symbols): Likewise.
2221 (coff_get_normalized_symtab): Likewise.
2222 * coff-sh.c (bfd_coff_small_swap_table): Initialize new field.
2223 * libcoff.h: Rebuild.
2224
2225 1999-09-06 Donn Terry <donn@interix.com>
2226
2227 * coffcode.h (sort_by_secaddr): New static function if
2228 COFF_IMAGE_WITH_PE.
2229 (coff_compute_section_file_positions): If COFF_IMAGE_WITH_PE, sort
2230 sections by VMA when assigning target_index values. Always set
2231 virt_size.
2232
2233 * libcoff-in.h (struct pei_section_tdata): Add pe_flags field.
2234 * coffcode.h (coff_set_alignment_hook) [COFF_WITH_PE version]: Set
2235 pe_flags field.
2236 * libcoff.h: Rebuild.
2237
2238 * coffcode.h (coff_set_custom_section_alignment): Add const to
2239 declaration to match definition.
2240 (coff_write_object_contents): Don't set F_AR32W(R)? if
2241 COFF_WITH_PE.
2242
2243 * coff-i386.c (in_reloc_p): Add declaration.
2244 (i386coff_vec): Simplify initialization of
2245 application_section_flags.
2246
2247 * coffcode.h (sec_to_styp_flags): Write separate COFF_WITH_PE
2248 version. Move COFF_WITH_PE specific code to new version.
2249 (stype_to_sec_flags): Likewise. Add section parameter.
2250 * coffgen.c (make_a_section_from_file): Set target_index before
2251 calling styp_to_sec_flags. Pass section to styp_to_sec_flags.
2252 * libcoff.h: Rebuild.
2253
2254 * syms.c (stt): Add some PE/PEI section names.
2255 (bfd_decode_symclass): Return 'w', not 'U', for a weak undefined
2256 symbol.
2257 (bfd_symbol_info): Check for 'w'.
2258
2259 * section.c (struct bfd_comdat_info): Define.
2260 (asection): Add comdat field.
2261 (STD_SECTION): Initialize comdat field.
2262 (bfd_make_section_anyway): Likewise.
2263 * bfd-in2.h: Rebuild.
2264
2265 1999-09-06 Andreas Schwab <schwab@suse.de>
2266
2267 * elflink.h (elf_link_add_object_symbols): Copy NON_GOT_REF flag
2268 to version symbols.
2269
2270 1999-09-06 Nick Clifton <nickc@cygnus.com>
2271
2272 * elflink.h (elf_gc_record_vtentry): Use bfd_zmalloc and
2273 bfd_realloc instead of calloc and realloc.
2274
2275 1999-09-04 Steve Chamberlain <sac@pobox.com>
2276
2277 * cpu-pj.c: New file.
2278 * elf32-pj.c: New file.
2279 * config.bfd (pj*): New cpu.
2280 (pj-*-*, pjl-*-*): New targets.
2281 * configure.in (bfd_elf32_pj_vec): New target vector.
2282 (bfd_elf32_pjl_vec): New target vector.
2283 * archures.c (bfd_arch_pj): Define.
2284 * elf.c (prep_headers): Handle bfd_arch_pj.
2285 * reloc.c: Define BFD_RELOC_PJ_* relocations.
2286 * targets.c (bfd_elf32_pj_vec, bfd_elf32_pjl_vec): Declare and add
2287 to target vector list.
2288 * Makefile.am: Rebuild dependencies.
2289 (ALL_MACHINES): Add cpu-pj.lo.
2290 (ALL_MACHINES_CFILES): Add cpu-pj.c.
2291 (BFD32_BACKENDS): Add elf32-pj.lo.
2292 (BFD32_BACKENDS_CFILES): Add elf32-pj.c.
2293 * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
2294
2295 1999-09-04 Ian Lance Taylor <ian@zembu.com>
2296
2297 * elf-bfd.h (ELF_LINK_NON_GOT_REF): Define.
2298 * elflink.h (elf_adjust_dynamic_symbol): Copy REF_REGULAR_NONWEAK
2299 and NON_GOT_REF from weak defined symbol to real symbol.
2300 * elf32-i386.c (elf_i386_check_relocs): Set NON_GOT_REF.
2301 (elf_i386_adjust_dynamic_symbol): If NON_GOT_REF is not set, don't
2302 create a COPY reloc.
2303 * elf32-sparc.c (elf32_sparc_check_relocs): Set NON_GOT_REF.
2304 (elf32_sparc_adjust_dynamic_symbol): If NON_GOT_REF is not set,
2305 don't create a COPY reloc.
2306
2307 1999-09-03 Ian Lance Taylor <ian@zembu.com>
2308
2309 * elflink.h (elf_bfd_final_link): When counting relocations, don't
2310 count those in sections we are not including in the link.
2311
2312 Thu Sep 2 17:41:20 1999 Jeffrey A Law (law@cygnus.com)
2313
2314 * elflink.h (elf_link_add_object_symbols): Work around bogus SH_LINK
2315 field in hpux11 shared libraries.
2316
2317 1999-09-02 Nick Clifton <nickc@cygnus.com>
2318
2319 * elflink.h (elf_gc_record_vtentry): Fix memory leak.
2320
2321 Wed Sep 1 13:34:29 1999 Jeffrey A Law (law@cygnus.com)
2322
2323 * elf-hppa.h (elf_hppa_add_symbol_hook): New function.
2324 (elf_hppa_final_link, elf_hppa_relocate_section): Likewise.
2325 (elf_hppa_final_link_relocate, elf_hppa_relocate_insn): Likewise.
2326
2327 1999-08-31 Alexandre Petit-Bianco <apbianco@cygnus.com>
2328
2329 * elflink.h (record_link_assignment): When possible, keep the
2330 original type of the symbol.
2331
2332 Mon Aug 30 15:26:48 1999 Jeffrey A Law (law@cygnus.com)
2333
2334 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Allow both
2335 R_PARISC_DIR32 and R_PARISC_DIR64 regardless of how the
2336 tools were configured.
2337 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Declare.
2338
2339 1999-08-26 Mark Mitchell <mark@codesourcery.com>
2340
2341 * elf32-mips.c (_bfd_mips_elf_check_relocs): Don't allocate local
2342 GOT entries for GOT16 relocations; they're not required.
2343
2344 1999-08-24 Nick Clifton <nickc@cygnus.com>
2345
2346 From a patch submitted by Roland McGrath <roland@baalperazim.frob.com>
2347
2348 * config.bfd (arm-*-netbsd*): New target.
2349 * configure.in (armnetbsd_vec): New target vector.
2350 * configure: Regenerate
2351 * targets.c (bfd_target_vector): Add &armnetbsd_vec.
2352
2353 * Makefile.am (BFD32_BACKENDS): Add armnetbsd.lo.
2354 (ALL_MACHINES_CFILES): Add armnetbsd.c.
2355 (armnetbsd.lo): New rule with deps.
2356 * Makefile.in: Regenerate.
2357
2358 * armnetbsd.c: New file: Definitions specific to arm-netbsd
2359 target.
2360
2361 Tue Aug 24 00:25:58 1999 Jeffrey A Law (law@cygnus.com)
2362
2363 * som.c (som_slurp_symbol_table): Fix typo in comment.
2364
2365 Fri Aug 20 17:01:23 1999 Jeffrey A Law (law@cygnus.com)
2366
2367 * elf-hppa.h (elf_hppa_fake_sections): Compute section indices
2368 here instead of using elf_section_data...
2369
2370 1999-08-19 Nick Clifton <nickc@cygnus.com>
2371
2372 * coff-mcore.c (mcore_emit_base_file_entry): New function: Emit
2373 relocations into the base file.
2374 (coff_mcore_relocate_section): Call mcore_emit_base_file_entry if
2375 we are building a base file.
2376
2377 1999-08-19 Nick Clifton <nickc@cygnus.com>
2378
2379 * elf32-arm.h (arm_add_to_rel): New function. Add a value to
2380 a REL style reloc.
2381 (elf32_arm_relocate_section): Use arm_add_to_rel to increment
2382 REL relocs when performing a partial relocation.
2383
2384 1999-08-18 Donn Terry <donn@interix.com>
2385
2386 * cofflink.c: Move definitions of N_TMASK, et. al., out of
2387 _bfd_coff_link_input_bfd into top level.
2388
2389 * coff-i386.c (coff_i386_reloc): Handle R_IMAGEBASE.
2390 (RTYPE2HOWTO): Return NULL if reloc type is out of range.
2391 (coff_i386_rtype_to_howto): Likewise.
2392 * coffcode.h (coff_slurp_symbol_table): Change a -2 to N_DEBUG.
2393 Completely ignore symbols which are all zero.
2394 (dummy_reloc16_estimate): Add return 0.
2395 * cofflink.c (_bfd_coff_link_input_bfd): Rename inner scope
2396 variable copy to name_copy to avoid shadowing outer scope
2397 variable.
2398 * libcoff-in.h (coff_data_type): Change raw_syment_count field
2399 from unsigned int to unsigned long. Add timestamp field.
2400 * libcoff.h: Rebuild.
2401
2402 1999-08-17 H.J. Lu <hjl@gnu.org>
2403
2404 * elf32-hppa.c (bfd_elf32_bfd_is_local_label_name): Fix typo in
2405 macro definition.
2406
2407 1999-08-17 Ian Lance Taylor <ian@zembu.com>
2408
2409 * elf32-mips.c (_bfd_mips_elf_add_symbol_hook): Set BSF_DYNAMIC
2410 for special section symbols.
2411 * elflink.h (elf_merge_symbol): If we have no old BFD, check
2412 BSF_DYNAMIC on the section symbol to see whether the old BFD is
2413 dynamic.
2414
2415 1999-08-15 Mark Mitchell <mark@codesourcery.com>
2416
2417 * elf32-mips.c (mips_elf_calculate_relocation): Fix unfortunate
2418 coincidence of variable names between old and new code.
2419
2420 1999-08-12 Nick Clifton <nickc@cygnus.com>
2421
2422 * elf32-arm.h (elf32_arm_to_thumb_stub): Make 'offset' parameter
2423 into a bfd_vma and 'addend' parameter a 'bfd_signed_vma'.
2424 (elf32_thumb_to_arm_stub): Make 'offset' parameter into a bfd_vma
2425 and 'addend' parameter a 'bfd_signed_vma'.
2426 (elf32_arm_final_link_relocate): Do not involve stubs in
2427 R_ARM_THM_PC22 relocs relative to section symbols, they are long
2428 jumps, not function calls.
2429
2430 1999-08-11 Robin Farine <advanc@dial.eunet.ch>
2431
2432 * elf32-arm.h (elf32_arm_final_link_relocate): Check for overflow
2433 in R_ARM_PC24 relocs.
2434
2435 Tue Aug 10 12:48:09 1999 Jeffrey A Law (law@cygnus.com)
2436
2437 * elf-hppa.h (elf_hppa_fake_sections): New function.
2438 * elf32-hppa.c (elf_backend_fake_sections): Define.
2439
2440 * elf-hppa.h (elf_hppa_final_write_processing): Update for
2441 recent changes to the arch_info structure.
2442
2443 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle
2444 R_HPPA_SEGBASE and R_HPPA_SEGREL32.
2445 * cpu-hppa.c (bfd_hppa20w_arch): New entry in architecture info
2446 list.
2447
2448 Tue Aug 10 00:34:29 1999 Mark P. Mitchell <mark@codesourcery.com>
2449 Ralf Baechle <ralf@uni-koblenz.de>
2450
2451 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Always
2452 output DT_MIPS_GOTSYM.
2453 (_bfd_mips_elf_finish_dynamic_sections): Use the same value as
2454 DT_MIPS_SYMTABNO if there are no global GOT symbols.
2455
2456 Tue Aug 10 00:21:08 1999 Mark P. Mitchell <mark@codesourcery.com>
2457
2458 * elf32-mips.c (mips_elf_create_dynamic_relocation): Change
2459 prototype. Handle local symbols. Add commentary.
2460 (mips_elf_calculate_relocation): Adjust accordingly.
2461 (_bfd_mips_elf_check_relocs): Handle local symbols in R_MIPS_32
2462 relocations.
2463
2464 * elflink.h (elf_bfd_final_link): Tweak last change.
2465
2466 1999-08-09 Mark Mitchell <mark@codesourcery.com>
2467
2468 * elflink.h (elf_link_size_reloc_section): Use the counts in the
2469 elf-section data to allocate just the right amount of relocation
2470 space. Don't allocate the hash space twice.
2471 (elf_bfd_final_link): Calculate the amount of space to allocate in
2472 each relocation section.
2473
2474 Mon Aug 9 17:37:30 1999 Jeffrey A Law (law@cygnus.com)
2475
2476 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type, case 32): When in
2477 64bit mode, generate a section relative relocation for a 32bit
2478 wide relocation.
2479 (elf_hppa_is_local_label_name): New function.
2480 * elf32-hppa.c (elf_hppa_is_local_label_name): Deleted. To be
2481 shared between 32bit and 64bit port.
2482
2483 1999-08-09 Mark Mitchell <mark@codesourcery.com>
2484
2485 * elf32-mips.c (elf_mips_howto_table): Fix src_mask for
2486 R_MIPS_GOT16 and R_MIPS_CALL16.
2487 (mips_elf_got16_entry): Use mips_elf_high to calculate the value
2488 to use when looking for a preexisting GOT entry.
2489
2490 1999-08-09 Jakub Jelinek <jj@ultra.linux.cz>
2491
2492 * elf64-sparc.c (sparc64_elf_relocate_section): Back out part of
2493 the Sep. 4th, 1998 change. glibc 2.0.x dynamic linker had bug,
2494 not binutils.
2495 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2496
2497 1999-08-09 Geoff Keating <geoffk@cygnus.com>
2498
2499 * elflink.h (elf_link_output_extsym): Don't output a weak
2500 reference to an undefined symbol just because it was defined weak
2501 in a shared object.
2502
2503 1999-08-09 Eli Zaretskii <eliz@is.elta.co.il>
2504
2505 * coffgen.c (coff_find_nearest_line): When looking for file, use
2506 last best match rather than first. If address is beyond last line
2507 number record, don't return the last line as the correct value.
2508
2509 1999-08-08 Ian Lance Taylor <ian@zembu.com>
2510
2511 * section.c (SEC_SMALL_DATA): Rename from SEC_SHORT.
2512 * bfd-in2.h: Rebuild.
2513
2514 1999-08-08 Mark Elbrecht <snowball3@bigfoot.com>
2515
2516 * libcoff-in.h (struct coff_section_alignment_entry): Define.
2517 * coffcode.h (coff_set_custom_section_alignment): New static
2518 function.
2519 (coff_section_alignment_table): New static array.
2520 (coff_new_section_hook): Use coff_set_customer_section_alignment.
2521 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
2522 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
2523 * libcoff.h: Rebuild.
2524
2525 1999-08-08 Ian Lance Taylor <ian@zembu.com>
2526
2527 * Makefile.am: Rename .dep* files to DEP*. Change DEP variable to
2528 MKDEP.
2529 * Makefile.in: Rebuild.
2530
2531 1999-08-08 Mumit Khan <khan@xraylith.wisc.edu>
2532
2533 * section.c (SEC_SHARED): Define.
2534 * coffcode.h (sec_to_styp_flags): Handle SEC_SHARED.
2535 (styp_to_sec_flags): Likewise.
2536 * peicode.h (coff_swap_scnhdr_out): Likewise.
2537 * bfd-in2.h: Rebuild.
2538
2539 1999-08-08 Ian Lance Taylor <ian@zembu.com>
2540
2541 * coffcode.h (coff_classify_symbol): Comment out part of
2542 1999-08-05 change which breaks cygwin DLLs.
2543
2544 * acinclude.m4 (BFD_BINARY_FOPEN): Change -windows to -windows*.
2545 * aclocal.m4, configure: Rebuild.
2546
2547 1999-08-06 Ian Lance Taylor <ian@zembu.com>
2548
2549 * section.c (global_syms): Only initialize union field if
2550 __STDC__.
2551
2552 1999-08-04 Mark Mitchell <mark@codesourcery.com>
2553
2554 * elf32-mips.c (mips_elf_got16_entry): Don't multiply GOT index by
2555 the size of a GOT entry here.
2556 (mips_elf_calculate_relocation): Don't create a local GOT entry
2557 for the symbol in a GOT16 relocation; just for it's high-order bit
2558 (_bfd_mips_elf_relocate_section): Fix thinko.
2559
2560 1999-08-05 Ian Lance Taylor <ian@zembu.com>
2561
2562 Based on patches from Donn Terry <donn@interix.com>:
2563 * coffcode.h (enum coff_symbol_classification): Define.
2564 (bfd_coff_backend_data): Rename _bfd_coff_sym_is_global to
2565 _bfd_coff_classify_symbol. Change return type.
2566 (bfd_coff_classify_symbol): Rename from bfd_coff_sym_is_global.
2567 (coff_slurp_symbol_table): Use coff_classify_symbol.
2568 (coff_classify_symbol): New static function.
2569 (coff_sym_is_global): Never define.
2570 (bfd_coff_std_swap_table): Initialize with coff_classify_symbol.
2571 * cofflink.c (coff_link_check_ar_symbols): Use
2572 bfd_coff_classify_symbol rather than bfd_coff_sym_is_global.
2573 (coff_link_add_symbols): Likewise.
2574 (_bfd_coff_link_input_bfd): Likewise.
2575 * coff-sh.c (bfd_coff_small_swap_table): Initialize with
2576 coff_classify_symbol.
2577 * libcoff.h: Rebuild.
2578
2579 Wed Aug 4 18:08:07 1999 Jeffrey A Law (law@cygnus.com)
2580
2581 * libhppa.h (R_HPPA_LTPSEL, R_HPPA_RTPSEL): New field selectors
2582 (e_ltpsel, e_rtpsel): Similarly.
2583
2584 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle 21bit e_ltpsel
2585 and 14bit ertpsel. Handle 64bit psel.
2586
2587 1999-08-04 Mark Mitchell <mark@codesourcery.com>
2588
2589 * elf32-mips.c (_bfd_mips_elf_relocate_section): Tweak HI16/LO16
2590 handling for REL relocations. And only left-shift R_MIPS26
2591 relocation addends where necessary.
2592
2593 1999-08-03 Mark Mitchell <mark@codesourcery.com>
2594
2595 * elf32-mips.c (mips_elf_next_lo16_addend): Rename to ...
2596 (mips_elf_next_lo16_relocation): Don't compute the addend here.
2597 Just return the relocation found.
2598 (mips_elf_relocate_section): Pull the LO16 addend out of the
2599 section itself when using REL relocations.
2600
2601 * elf32-mips.c (mips_elf_calculate_relocation): Restore
2602 _DYNAMIC_LINK handling and handling of undefined symbols in shared
2603 libraries.
2604
2605 1999-08-03 Ian Lance Taylor <ian@zembu.com>
2606
2607 * elf32-ppc.c (ppc_elf_relocate_section): Don't use the relocation
2608 value of a symbol in a SEC_DEBUGGING section. Warn when doing a
2609 relocation against a symbol in an input section with no output
2610 section. From Daniel Jacobowitz <drow@false.org>.
2611
2612 * coff-stgo32.c (go32_stubbed_coff_object_p): Remove; not used.
2613
2614 * acinclude.m4 (BFD_CC_FOR_BUILD): Change to use conftest, and to
2615 look for generated file correctly.
2616 * aclocal.m4, configure: Rebuild.
2617
2618 1999-08-02 Mark Mitchell <mark@codesourcery.com>
2619
2620 * elf32-mips.c (_bfd_mips_elf_relocate_section): Handle R_MIPS_26
2621 and R_MIPS16_26 relocations correctly when relocating.
2622 (_bfd_mips_elf_check_relocs): Don't assume that R_MIPS_CALL_HI16
2623 and R_MIPS_CALL_LO16 are for global symbols.
2624
2625 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
2626
2627 * elflink.h (elf_bfd_final_link): Copy the whole isym, not just
2628 some fields.
2629 * elf64-sparc.c (sparc64_elf_output_arch_syms): Declare used
2630 variables and initialize them.
2631
2632 1999-08-01 Mark Mitchell <mark@codesourcery.com>
2633
2634 * elf32-mips.c (_bfd_mips_elf_final_link): Handle the case where
2635 there are no global symbols requiring GOT entries.
2636 (_bfd_mips_elf_size_dynamic_sections): Likewise.
2637 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
2638 (_bfd_mips_elf_finish_dynamic_sections): Likewise.
2639
2640 * elf32-mips.c (mips_elf_calculate_relocation): Undefined weak
2641 symbols are considered to have the value zero.
2642 (_bfd_mips_elf_relocate_section): Don't try to perform a
2643 relocation for an undefined symbol.
2644 (_bfd_mips_elf_check_relocs): Allocate locate GOT space for local
2645 GOT16 relocations.
2646
2647 1999-07-30 Jakub Jelinek <jj@ultra.linux.cz>
2648
2649 * elf64-sparc.c (sparc64_elf_build_plt): Cosmetic change - ABI
2650 wants ba,a,pt %xcc instead of %icc.
2651 Emit correct .PLT0-(.PLTN+4) initial value into the pointer slots
2652 of large PLT entries.
2653 (sparc64_elf_plt_ptr_offset): Fix calculation.
2654 (sparc64_elf_finish_dynamic_symbol): Negative value of R_SPARC_JMP_SLOT
2655 addend should be relative to load address, not .plt section start.
2656 (sparc64_elf_size_info): Sparc64 uses 32bit .hash entries.
2657
2658 1999-07-30 Jakub Jelinek <jj@ultra.linux.cz>
2659
2660 * elf-bfd.h (struct elf_backend_data): Add
2661 print_symbol_all and output_arch_syms backend methods.
2662 * elfxx-target.h: Likewise.
2663 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create,
2664 sparc64_elf_add_symbol_hook, sparc64_elf_output_arch_syms,
2665 sparc64_elf_get_symbol_type, sparc64_elf_symbol_processing): New
2666 functions.
2667 (sparc64_elf_size_dynamic_sections): Leave space for STT_REGISTER
2668 symbols in .dynsym, add their names into .dynstr. Put those symbols
2669 into dynlocal.
2670 (sparc64_elf_finish_dynamic_sections): Fix up DT_SPARC_REGISTER
2671 pointers to STT_REGISTER symbols in dynsym section.
2672 (sparc64_elf_print_symbol_all): New function.
2673 * elf.c (bfd_elf_print_symbol): Allow special backend symbol
2674 printing using the print_symbol_all hook.
2675
2676 1999-07-30 Catherine Moore <clm@cygnus.com>
2677
2678 * elf32-arm.h (elf32_arm_check_relocs): Use r_offset for
2679 R_ARM_GNU_VTENTRY.
2680
2681 1999-07-29 Richard Henderson <rth@cygnus.com>
2682
2683 * elf32-mips.c (_bfd_mips_elf_final_link): Only re-sort dynsyms if
2684 dynamic_sections_created.
2685
2686 1999-07-29 Richard Henderson <rth@cygnus.com>
2687
2688 * elf32-mips.c (mips_info_to_howto_rel): Split out switch to ...
2689 (mips_rtype_to_howto): ... new function.
2690 (_bfd_mips_elf_relocate_section): Use it.
2691
2692 1999-07-28 Mark Mitchell <mark@codesourcery.com>
2693
2694 * elf32-mips.c (_bfd_mips_elf_relocate_section): Fix typo.
2695
2696 1999-07-27 Nick Clifton <nickc@cygnus.com>
2697
2698 Patch generated by Bernd Schmidt. <bernds@cygnus.co.uk>
2699
2700 * coff-arm.c (coff_arm_is_local_label_name): Change to strip
2701 out only symbols that start with LOCAL_LABEL_PREFIX followed by 'L'.
2702
2703 1999-07-23 Donn Terry <donn@interix.com>
2704
2705 * libcoff-in.h (coff_link_hash_entry): Add coff_link_hash_flags
2706 field, and define COFF_LINK_HASH_PE_SECTION_SYMBOL.
2707 * cofflink.c (coff_link_add_symbols): If PE, handle section
2708 symbols specially.
2709 * libcoff.h: Rebuild.
2710
2711 * config.bfd (i[3456]86-*-interix*): New target.
2712
2713 1999-07-21 Mark Elbrecht <snowball3@bigfoot.com>
2714
2715 * coffcode.h (styp_to_sec_flags): If COFF_LONG_SECTION_NAMES and
2716 COFF_SUPPORT_GNU_LINKONCE, mark sections whose names begin with
2717 .gnu.linkonce with SEC_LINKONCE and SEC_LINK_DUPLICATES_DISCARD.
2718 * coff-go32.c: (COFF_LONG_SECTION_NAMES): Define.
2719 (COFF_SUPPORT_GNU_LINKONCE): Define.
2720 * coff-stgo32.c: (COFF_LONG_SECTION_NAMES): Define.
2721 (COFF_SUPPORT_GNU_LINKONCE): Define.
2722
2723 1999-07-21 Ian Lance Taylor <ian@zembu.com>
2724
2725 From Mark Elbrecht:
2726 * makefile.dos: Remove; obsolete.
2727 * configure.bat: Remove; obsolete.
2728
2729 1999-07-21 H.J. Lu <hjl@gnu.org>
2730
2731 * config.bfd (i[3456]86-*-vxworks*): Add targ_underscore=yes.
2732
2733 1999-07-21 Philippe De Muyter <phdm@macqel.be>
2734
2735 * cofflink.c (_bfd_coff_generic_relocate_section): Issue an error
2736 message and fail if a symbol index is out of range.
2737
2738 1999-07-21 Ian Lance Taylor <ian@zembu.com>
2739
2740 * elf32-mips.c (mips_elf_calculate_relocation): Get the GP value
2741 when looking at a R_MIPS_GOT16 relocation.
2742
2743 1999-07-20 Nick Clifton <nickc@cygnus.com>
2744
2745 * coff-m88k.c: Use CREATE_BIG_COFF_TARGET_VEC.
2746
2747 Mon Jul 19 14:03:44 1999 Mark P. Mitchell <mark@codesourcery.com>
2748
2749 * elf32-mips.c (_bfd_mips_elf_final_link): Restore setting of GP
2750 removed in previous change.
2751 (_bfd_mips_elf_relocate_section): Adjust GP relative relocations
2752 in relocateable output.
2753
2754 1999-07-19 Ian Lance Taylor <ian@zembu.com>
2755
2756 * coff-m88k.c (m88kbcs_vec): Initialize new field of bfd_target
2757 structure.
2758
2759 * elflink.h (elf_merge_symbol): Do merge symbols from the same BFD
2760 if they appear to be specially created by the linker.
2761
2762 1999-07-19 Nick Clifton <nickc@cygnus.com>
2763
2764 * targets.c (alternative_target): New field in bfd_target
2765 structure.
2766 (bfd_search_for_target): New function: Find a target that
2767 satisifies a search function.
2768 * bfd-in2.h: Regenerate.
2769
2770 * elfxx-target.h: Initialise the alternative_target field of
2771 the bfd_target structures to point to the other target (if
2772 defined).
2773 * nlm-target.h: Initialise the alternative_target field of
2774 the bfd_target structures to point to the other target (if
2775 defined).
2776
2777 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): New macro.
2778 (CREATE_LITTLE_COFF_TARGET_VEC): New macro.
2779
2780 * aix386-core.c: Initialise new field of bfd_target structure.
2781 * aout-adobe.c: Initialise new field of bfd_target structure.
2782 * aout-arm.c: Initialise new field of bfd_target structure.
2783 * aout-target.h: Initialise new field of bfd_target structure.
2784 * aout-tic30.c: Initialise new field of bfd_target structure.
2785 * binary.c: Initialise new field of bfd_target structure.
2786 * bout.c: Initialise new field of bfd_target structure.
2787 * cisco-core.c: Initialise new field of bfd_target structure.
2788 * coff-a29k.c: Use CREATE_BIG_COFF_TARGET_VEC.
2789 * coff-alpha.c: Initialise new field of bfd_target structure.
2790 * coff-apollo.c: Use CREATE_BIG_COFF_TARGET_VEC.
2791 * coff-arm.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC.
2792 * coff-h8300.c: Use CREATE_BIG_COFF_TARGET_VEC.
2793 * coff-h8500.c: Use CREATE_BIG_COFF_TARGET_VEC.
2794 * coff-i386.c: Initialise new field of bfd_target structure.
2795 * coff-i860.c: Initialise new field of bfd_target structure.
2796 * coff-i960.c: Use CREATE_LITTLE_COFF_TARGET_VEC.
2797 * coff-m68k.c: Use CREATE_BIG_COFF_TARGET_VEC.
2798 * coff-mcore.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC.
2799 * coff-mips.c: Initialise new field of bfd_target structure.
2800 * coff-ppc.c: Initialise new field of bfd_target structure.
2801 * coff-rs6000.c: Initialise new field of bfd_target structure.
2802 * coff-sh.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC.
2803 * coff-sparc.c: Use CREATE_BIG_COFF_TARGET_VEC.
2804 * coff-tic30.c: Initialise new field of bfd_target structure.
2805 * coff-tic80.c: Use CREATE_LITTLE_COFF_TARGET_VEC.
2806 * coff-w65.c: Use CREATE_LITTLE_COFF_TARGET_VEC.
2807 * coff-we32k.c: Use CREATE_BIG_COFF_TARGET_VEC.
2808 * coff-z8k.c: Use CREATE_BIG_COFF_TARGET_VEC.
2809 * hppabsd-core.c: Initialise new field of bfd_target structure.
2810 * hpux-core.c: Initialise new field of bfd_target structure.
2811 * i386msdos.c: Initialise new field of bfd_target structure.
2812 * i386os9k.c: Initialise new field of bfd_target structure.
2813 * ieee.c: Initialise new field of bfd_target structure.
2814 * ihex.c: Initialise new field of bfd_target structure.
2815 * irix-core.c: Initialise new field of bfd_target structure.
2816 * mipsbsd.c: Initialise new field of bfd_target structure.
2817 * netbsd-core.c: Initialise new field of bfd_target structure.
2818 * oasys.c: Initialise new field of bfd_target structure.
2819 * osf-core.c: Initialise new field of bfd_target structure.
2820 * ppcboot.c: Initialise new field of bfd_target structure.
2821 * ptrace-core.c: Initialise new field of bfd_target structure.
2822 * sco5-core.c: Initialise new field of bfd_target structure.
2823 * som.c: Initialise new field of bfd_target structure.
2824 * srec.c: Initialise new field of bfd_target structure.
2825 * tekhex.c: Initialise new field of bfd_target structure.
2826 * trad-core.c: Initialise new field of bfd_target structure.
2827 * versados.c: Initialise new field of bfd_target structure.
2828 * vms.c: Initialise new field of bfd_target structure.
2829
2830 1999-07-19 Andreas Schwab <schwab@suse.de>
2831
2832 * elflink.h (elf_bfd_final_link): Remove unused variables rel_hash
2833 and rel_hdr.
2834
2835 Sat Jul 17 02:28:28 1999 Mark P. Mitchell <mark@codesourcery.com>
2836
2837 * elflink.h (elf_link_adjust_relocs): New function.
2838 (elf_bfd_final_link): Use it.
2839 (elf_link_input_bfd): Deal with the fact that there can be
2840 two relocation sections for a single section.
2841 (elf_reloc_link_order): Likewise.
2842
2843 * elf32-mips.c (_bfd_mips_elf_final_link): Don't set GP for
2844 a relocateable object.
2845 (_bfd_mips_elf_relocate_section): Handle relocateable links.
2846
2847 1999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
2848
2849 * elf64-sparc.c (sparc64_elf_info_to_howto): Use ELF64_R_TYPE_ID.
2850 (sparc64_elf_get_reloc_upper_bound,
2851 sparc64_elf_get_dynamic_reloc_upper_bound,
2852 sparc64_elf_slurp_one_reloc_table, sparc64_elf_slurp_reloc_table,
2853 sparc64_elf_canonicalize_dynamic_reloc, sparc64_elf_write_relocs):
2854 New functions.
2855 (sparc64_elf_check_relocs, sparc64_elf_relocate_section): Use
2856 ELF64_R_TYPE_ID/DATA where appropriate.
2857
2858 1999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
2859
2860 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Remove
2861 DT_SPARC_PLTFMT.
2862
2863 1999-07-16 Ian Lance Taylor <ian@zembu.com>
2864
2865 * elf32-mips.c (mips_elf_local_relocation_p): New static
2866 function.
2867 (mips_elf_next_lo16_addend): Call bfd_set_error on failure.
2868 (mips_elf_calculate_relocation): Use mips_elf_local_relocation_p.
2869 Always set *require_jalxp.
2870 (mips_elf_stub_section_p): Mark abfd parameter as unused.
2871 (_bfd_mips_elf_relocate_section): Only look for LO16 following
2872 GOT16 if the GOT16 is against a local symbol. Don't return false
2873 for an undefined symbol. If there is an overflow, assert that we
2874 have a name.
2875
2876 1999-07-16 Andreas Schwab <schwab@suse.de>
2877
2878 * elflink.h (elf_link_record_local_dynamic_symbol): Remove unused
2879 variables `link' and `elfsec'.
2880 (elf_bfd_final_link): Remove unused variable `os'.
2881
2882 Thu Jul 15 17:55:31 1999 Mark P. Mitchell <mark@codesourcery.com>
2883
2884 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Don't require
2885 a PT_PHDR program headers.
2886 (_bfd_mips_elf_final_link): Don't assume there are going to be
2887 section symbols when we're not building a shared object.
2888 (_bfd_mips_elf_check_relocs): Make sure we have a GOT when
2889 we need one.
2890
2891 1999-07-15 J.T. Conklin <jtc@redback.com>
2892
2893 * config.bfd (i[3456]86-*-vxworks*): New target.
2894
2895 1999-07-15 Mark Mitchell <mark@codesourcery.com>
2896
2897 * elf32-mips.c (mips_elf_stub_section_p): New function.
2898 (mips_elf_calculate_relocation): Handle MIPS16 stub functions.
2899 (mips_elf_relocate_section): Adjust calling sequence for
2900 mips_elf_calculate_relocation and mips_elf_perform_relocation.
2901 (mips_elf_perform_relocation): Turn `jal' into `jalx' where
2902 required.
2903
2904 1999-07-15 Ian Lance Taylor <ian@zembu.com>
2905
2906 * configure.in: Bump version number to 2.9.5.
2907 * configure: Rebuild.
2908
2909 Thu Jul 15 02:56:15 1999 Jeffrey A Law (law@cygnus.com)
2910
2911 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type, case R_HPPA): Handle
2912 64bit format.
2913 (_bfd_elf_hppa_gen_reloc_type, case R_GOTOFF): Use base reloc type
2914 to derive final type instead of hardwiring a selection.
2915
2916 1999-07-14 Mark Mitchell <mark@codesourcery.com>
2917
2918 * elf32-mips.c (mips_elf_obtain_contents): Swap 16-bit halves of
2919 things relocated by R_MIPS16_GPREL.
2920 (mips_elf_perform_relocation): Likewise.
2921
2922 Wed Jul 14 15:23:19 1999 Jim Wilson <wilson@cygnus.com>
2923
2924 * elfxx-target.h (elfNN_bed): Add elf_backend_want_dynbss.
2925
2926 1999-07-14 Richard Henderson <rth@cygnus.com>
2927
2928 * elf32-mips.c (struct mips_got_info): Add global_gotno.
2929 (_bfd_mips_elf_size_dynamic_sections): Set it.
2930 (_bfd_mips_elf_final_link): Re-sort; verify the got did not grow.
2931 (mips_elf_sort_hash_table): Set max_non_got_dynindex based off
2932 new argument max_local.
2933
2934 1999-07-14 Mark Mitchell <mark@codesourcery.com>
2935
2936 * elf32-mips.c (mips_elf_obtain_contents): Swap the 16-bit
2937 subwords when handling an R_MIPS16_26 relocation.
2938 (mips_elf_perform_relocation): Don't be paranoid abour right-shift
2939 semantics.
2940
2941 * elf32-mips.c (elf_mips16_gprel_howto): Adjust src_mask and
2942 dst_mask to match reality.
2943 (_bfd_mips_elf_calculate_relocation): Handle R_MIPS16_GPREL.
2944 (mips_elf_obtain_contents): Use bfd_get.
2945 (mips_elf_perform_relocation): Handle R_MIPS16_GPREL.
2946 (mips_elf_relocate_section): Likewise.
2947
2948 1999-07-13 Mark Mitchell <mark@codesourcery.com>
2949
2950 * elf32-mips.c (mips_elf_calculate_relocation): Handle R_MIPS16_26.
2951 (mips_elf_relocate_section): Adjust calling sequence for
2952 mips_elf_perform_relocation.
2953 (mips_elf_perform_relocation): Take additional argument. Handle
2954 R_MIPS16_26. Use bfd_put for convenience.
2955
2956 1999-07-13 Richard Henderson <rth@cygnus.com>
2957
2958 * elf.c (assign_file_positions_for_segments): Thinko last change.
2959 Always overwrite p_flags.
2960
2961 1999-07-13 Richard Henderson <rth@cygnus.com>
2962
2963 * elf-bfd.h (struct elf_backend_data): Add want_dynbss.
2964 * elflink.c (_bfd_elf_create_dynamic_sections): Only create
2965 .dynbss and .rel[a].bss if want_dynbss.
2966 * elfxx-target.h (elf_backend_want_dynbss): Provide default.
2967
2968 1999-07-13 Richard Henderson <rth@cygnus.com>
2969
2970 * elf.c (assign_file_positions_for_segments): Don't overwrite p_flags.
2971
2972 1999-07-13 Richard Henderson <rth@cygnus.com>
2973
2974 * elf-bfd.h (struct elf_link_local_dynamic_entry): New.
2975 (struct elf_link_hash_table): Add dynlocal.
2976 (_bfd_elf_link_lookup_local_dynindx): Prototype.
2977 (_bfd_elf_link_adjust_dynindx): Delete.
2978 (_bfd_elf_link_renumber_dynsyms): Prototype.
2979 (_bfd_elf,link_record_local_dynamic_symbol): Prototype.
2980 * elfcode.h (elf_link_record_local_dynamic_symbol): New alias.
2981 * elflink.c (_bfd_elf_link_adjust_dynindx): Delete.
2982 (_bfd_elf_link_lookup_local_dynindx): New function.
2983 (elf_link_renumber_hash_table_dynsyms): New function.
2984 (_bfd_elf_link_renumber_dynsyms): New function.
2985 * elflink.h (elf_link_record_local_dynamic_symbol): New function.
2986 (struct elf_assign_sym_version_info): Delete removed_dynamic.
2987 (bfd_elf,size_dynamic_sections): Use _bfd_strip_section_from_output
2988 instead of elf_link_remove_section_and_adjust_dynindices.
2989 Remove removed_dynamic code. Use _bfd_elf_link_renumber_dynsyms.
2990 (elf_link_assign_sym_version): Remove removed_dynamic code.
2991 (elf_link_renumber_dynsyms): Delete.
2992 (elf_bfd_final_link): Install section and local symbols into .dynsym.
2993
2994 * elf32-m68k.c (elf_m68k_adjust_dynindx): Delete.
2995 (elf_m68k_size_dynamic_sections): Don't set section dynindicies.
2996 (elf_m68k_finish_dynamic_sections): Don't write section dynsyms.
2997 * elf32-mips.c: Similarly.
2998 * elf32-ppc.c: Similarly.
2999 * elf32-sparc.c: Similarly.
3000 * elf64-alpha.c: Similarly.
3001 * elf64-sparc.c: Similarly.
3002
3003 1999-07-13 Mark Mitchell <mark@codesourcery.com>
3004
3005 * elf32-mips.c (mips_elf_calculate_relocation): Do not complain
3006 when _gp_disp is undefined. Do not check R_MIPS_LO16 for overflow
3007 when the relocation is against _gp_disp.
3008
3009 1999-07-12 Mark Mitchell <mark@codesourcery.com>
3010
3011 * dwarf2.c (read_attribute): Support DW_FORM_ref8.
3012 * elf32-mips.c (mips_elf_link_hash_entry): Change mips_32_relocs
3013 to possibly_dynamic_relocs. Adjust usage throughout code.
3014 (elf_mips_howto_table): Handle R_MIPS_64 correctly.
3015 (elf_mips_ctor64_howto): Likewise.
3016 (mips_elf_calculate_relocation): Handle R_MIPS_64 like R_MIPS_32.
3017 Adjust indentation.
3018 (mips_elf_relocate_section): Handle R_MIPS_64 in 32-bit mode.
3019 (_bfd_mips_elf_check_relocs): Handle R_MIPS_64 like R_MIPS_32.
3020 Use MIPS_ELF_GOT_SIZE to calculate the size of GOT entries.
3021 * elf64-mips.c (elf_backend_may_use_rel_p): Define.
3022
3023 1999-07-12 Ian Lance Taylor <ian@zembu.com>
3024
3025 * Makefile.am: Rebuild dependencies.
3026 * Makefile.in: Rebuild.
3027
3028 * bfd-in.h: Remove tests of COFF_IMAGE_WITH_PE.
3029 * bfd-in2.h: Rebuild.
3030
3031 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
3032 as appropriate. Use EMPTY_HOWTO as appropriate. Fill in
3033 structure initializations. Add casts.
3034 * reloc.c (EMPTY_HOWTO): Define.
3035 * bfd-in2.h: Rebuild.
3036 * coff-h8300.c (h8300_reloc16_extra_cases): Remove useless
3037 comparisons against 0.
3038 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Change
3039 previous_ibfd_e_flags to unsigned long.
3040 * vms.h (struct vms_private_data_struct): Change section_count to
3041 unsigned.
3042 * vms-gsd.c (_bfd_vms_slurp_gsd): Change psect_idx to unsigned.
3043 (_bfd_vms_write_gsd): Change symnum to unsigned.
3044 * vms-hdr.c (_bfd_vms_write_hdr): Change symnum to unsigned.
3045 * vms-tir.c (etir_sta): Change psect to unsigned.
3046 (alloc_section): Change idx to unsigned.
3047 (tir_sta, tir_ctl): Change psect to unsigned.
3048 (_bfd_vms_write_tir): Change len and before to bfd_size_type.
3049 * vms.c (priv_section_count): Change to unsigned.
3050
3051 1999-07-12 Andreas Schwab <schwab@suse.de>
3052
3053 * elf32-m68k.c: Add some ATTRIBUTE_UNUSED.
3054 * m68klinux.c: Likewise.
3055
3056 1999-07-12 Ian Lance Taylor <ian@zembu.com>
3057
3058 * Many files: Changes to avoid gcc warnings: Remove unused local
3059 variables. Add default case to enum switches.
3060 * coff-arm.c (bfd_arm_allocate_interworking_sections): Only
3061 compile if not COFF_IMAGE_WITH_PE.
3062 (record_arm_to_thumb_glue, record_thumb_to_arm_glue): Likewise.
3063 (bfd_arm_get_bfd_for_interworking): Likewise.
3064 (bfd_arm_process_before_allocation): Likewise.
3065 * epoc-pei-arm.c: Don't rename bfd_arm functions.
3066 * pei-arm.c: Likewise.
3067 * elf32-mips.c (mips_elf_link_hash_table_create): Don't declare.
3068 (MIPS_ELF_ADD_DYNAMIC_ENTRY): Correct last change.
3069 (mips_elf_got16_entry): Put parens around & in body of ==.
3070 (mips_elf_calculate_relocation): Correct test for empty string.
3071 * vms-gsd.c: Use _bfd_error_handler rather than fprintf to
3072 stderr.
3073 * vms-misc.c (_bfd_vms_length_hash_symbol): Correct sprintf
3074 format.
3075
3076 1999-07-11 Ian Lance Taylor <ian@zembu.com>
3077
3078 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
3079 as appropriate. Fill in structure initializations. Add variable
3080 initializations. Add casts.
3081 * dwarf1.c (parse_line_table): Change eachLine to unsigned long.
3082 (dwarf1_unit_find_nearest_line): Change i to unsigned long.
3083
3084 * elf.c (bfd_elf_hash): Change parameter from unsigned char * to
3085 char *.
3086 * elf-bfd.h (bfd_elf_hash): Update declaration.
3087 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Remove casts
3088 when calling bfd_elf_hash.
3089
3090 1999-07-11 Mark Mitchell <mark@codesourcery.com>
3091
3092 * libbfd.c (bfd_put_8): Make it of type `void'.
3093 * bfd-in2.h: Regenerated.
3094 * elf32-mips.c (MIPS_ELF_ADD_DYNAMIC_ENTRY): Conditionalize
3095 for 32-bit hosts.
3096 (_bfd_mips_elf_final_link): Likewise.
3097
3098 * elflink.h (elf_link_read_relocs_from_section): Be type-correct.
3099
3100 Thu Jul 8 12:32:23 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
3101
3102 * config.bfd (hppa*-*-linux-gnu*): New target
3103
3104 1999-07-07 Mark Mitchell <mark@codesourcery.com>
3105
3106 * elf-bfd.h (_bfd_mips_elf_section_from_shdr): Constify.
3107 (_bfd_mips_elf_create_dynamic_sections): New function.
3108 (_bfd_mips_elf_add_symbol_hook): Likewise.
3109 (_bfd_mips_elf_adjust_dynamic_symbol): Likewise.
3110 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
3111 (_bfd_mips_elf_finish_dynamic_sections): Likewise.
3112 (_bfd_mips_elf_gc_mark_hook): Likewise.
3113 (_bfd_mips_elf_gc_sweep_hook): Likewise.
3114 (_bfd_mips_elf_always_size_sections): Likewise.
3115 (_bfd_mips_elf_size_dynamic_sections): Likewise.
3116 (_bfd_mips_elf_check_relocs): Likewise.
3117 (_bfd_mips_elf_link_hash_table_create): Likewise.
3118 (_bfd_mips_elf_print_private_data): Likewise.
3119 (_bfd_mips_elf_link_output_symbol_hook): Likewise.
3120 (_bfd_mips_elf_final_link): Likewise.
3121 (_bfd_mips_elf_additional_program_headers): Likewise.
3122 (_bfd_mips_elf_modify_segment_map): Likewise.
3123 (_bfd_mips_elf_relocate_section): Likewise.
3124 * elf32-mips.c (mips_elf32_object_p): Move contents into
3125 _bfd_mips_elf_object_p.
3126 (mips_elf_additional_program_headers): Rename to
3127 _bfd_mips_elf_additional_program_headers.
3128 (mips_elf_modify_segment_map): Rename to
3129 _bfd_mips_elf_modify_segment_map.
3130 (elf_mips_abi_name): Change prototype.
3131 (mips_elf32_section_from_shdr): Merge into
3132 _bfd_mips_elf_section_from_shdr.
3133 (mips_elf32_section_processing): Merge into
3134 _bfd_mips_elf_section_processing.
3135 (mips_elf_final_link): Rename to _bfd_mips_elf_final_link. Invoke
3136 the right back-end ELF linker.
3137 (mips_elf_relocate_section): Rename to
3138 _bfd_mips_elf_relocate_section. Clean up. Adjust for 64-bit code.
3139 (mips_elf_link_output_symbol_hook): Rename to
3140 _bfd_mips_elf_link_output_symbol_hook.
3141 (mips_elf_create_dynamic_section): Rename to
3142 _bfd_mips_elf_create_dynamic_section.
3143 (mips_elf_check_relocs): Rename to _bfd_mips_elf_check_relocs.
3144 Adjust for 64-bit code. Use mips_elf_got_section.
3145 (mips_elf_adjust_dynamic_symbol): Rename to
3146 _bfd_mips_elf_adjust_dynamic_symbol. Use
3147 mips_elf_allocate_dynamic_relocations.
3148 (mips_elf_finish_dynamic_symbol): Rename to
3149 _bfd_mips_elf_finish_dynamic_symbol. Use mips_elf_got_section.
3150 Adjust for 64-bit code.
3151 (mips_elf_finish_dynamic_sections): Rename to
3152 _bfd_mips_elf_finish_dynamic_sections. Adjust for 64-bit code.
3153 (mips_elf_always_size_sections): Rename to
3154 _bfd_mips_elf_always_size_sections.
3155 (mips_elf_add_symbol_hook): Rename to
3156 _bfd_mips_elf_add_symbol_hook.
3157 (mips_elf_next_lo16_addend): Constify.
3158 (mips_elf_calculate_relocation): Likewise.
3159 (mips_elf_obtain_contents): Likewise.
3160 (mips_elf_perform_relocation): Likewise.
3161 (mips_elf_create_dynamic_relocation): Likewise.
3162 (mips_elf_allocate_dynamic_relocations): New function.
3163 (MIPS_ELF_REL_DYN_SECTION_NAME): New macro.
3164 (MIPS_ELF_REL_SIZE): Likewise.
3165 (MIPS_ELF_DYN_SIZE): Likewise.
3166 (MIPS_ELF_GOT_SIZE): Likewise.
3167 (MIPS_ELF_SYM_SIZE): Likewise.
3168 (MIPS_ELF_LOG_FILE_ALIGN): Likewise.
3169 (MIPS_ELF_GET_WORD): Likewise.
3170 (MIPS_ELF_PUT_WORD): Likewise.
3171 (MIPS_ELF_ADD_DYNAMIC_ENTRY): Likewise.
3172 (STUB_LW): Conditionalize for 64-bit value.
3173 (elf_mips_howto_table): Add R_MIPS_HIGHER and R_MIPS_HIGHEST
3174 entries.
3175 (_bfd_mips_elf_merge_private_bfd_data): Merge e_ident[EI_CLASS].
3176 Check it for inconsistency.
3177 (_bfd_mips_elf_print_private_bfd_data): Print ABI=64 for 64-bit
3178 ABI.
3179 (_bfd_mips_elf_fake_sections): Remove duplicate handling of
3180 .msym.
3181 (mips_elf_global_got_index): Use MIPS_ELF_GOT_SIZE.
3182 (mips_elf_got_offset_from_index): Use misp_elf_got_section.
3183 (mips_elf_create_local_got_entry): Use MIPS_ELF_GOT_SIZE.
3184 (mips_elf_local_got_index): Likewise.
3185 (mips_elf_got_page): Likewise.
3186 (mips_elf_got_info): Likewise.
3187 (mips_elf_create_dynamic_relocation): Handle 32-bit/64-bit split.
3188 (ELF_DYNAMIC_INTERPRETER): Handle 64-bit code.
3189 (mips_elf_create_dynamic_sections): Use MIPS_ELF_LOG_FILE_ALIGN,
3190 instead of constant `2'.
3191 (mips_elf_create_got_section): Tidy. Use MIPS_ELF_GOT_SIZE.
3192 (mips_elf_create_msym_section): Use MIPS_ELF_LOG_FILE_ALIGN.
3193 (mips_elf_size_dynamic_sections): Use
3194 MIPS_ELF_REL_DYN_SECTION_NAME, MIPS_ELF_GOT_SIZE,
3195 MIPS_ELF_ADD_DYNAMIC_ENTRY. Remove #if 0'd code.
3196 Adjust all releveant entries in elf backend table.
3197 * elf64-mips.c (mips_elf64_section_from_shdr): Remove.
3198 (mips_elf64_section_processing): Likewise.
3199 Adjust elf backend entries to use _bfd_mips_elf variants now
3200 publicly available.
3201
3202 * elflink.h (elf_link_create_dynamic_sections): Handle non-standard
3203 hash-entry sizes.
3204 (size_dynamic_sections): Likewise.
3205 (elf_link_output_extsym): Likewise.
3206 * elf.c: (elf_fake_sections): Likewise.
3207 * libbfd.c (bfd_get): New macro.
3208 (bfd_put): Likewise.
3209 * bfd-in2.h: Regenerated.
3210
3211 1999-07-07 Mark Mitchell <mark@codesourcery.com>
3212
3213 * elf-bfd.h (elf_size_info): Add hash_entry_size,
3214 int_rels_per_ext_rel, swap_dyn_out, swap_reloc_in, swap_reloc_out,
3215 wap_reloca_in, and swap_reloca_out.
3216 * elflink.h (elf_link_read_relocs_from_section): Adjust to handle
3217 multiple internal relocations per external relocation.
3218 (link_read_relocs): Likewise.
3219 (elf_bfd_final_link): Likewise.
3220 (elf_link_input_bfd): Likewise.
3221 (elf_gc_mark): Likewise.
3222 (elf_gc_smash_unused_vtentry_relocs): Likewise.
3223 * elfcode.h (elf_swap_dyn_out): Adjust type to match
3224 elf_swap_dyn_in.
3225 (size_info): Add entries for new fields.
3226 * elf64-mips.c (mips_elf64_swap_reloc_out): Enable.
3227 (mips_elf64_be_swap_reloc_in): New function.
3228 (mips_elf64_be_swap_reloc_out): Likewise.
3229 (mips_elf64_be_swap_reloca_in): Likewise.
3230 (mips_elf64_be_swap_reloca_out): Likewise.
3231 (mips_elf64_size_info): Add entries for new fields.
3232
3233 1999-07-07 Ian Lance Taylor <ian@zembu.com>
3234
3235 * elflink.h (elf_bfd_final_link): Assert that section reloc_count
3236 field equals the new rel_count field.
3237 (elf_link_input_bfd): When doing a relocateable link, use the new
3238 rel_count field rather than the reloc_count field.
3239 (elf_reloc_link_order): Likewise.
3240 (elf_finish_pointer_linker_section): Likewise.
3241
3242 Based on patch from H.J. Lu <hjl@gnu.org>:
3243 * elflink.h (elf_merge_symbol): Permit a non-weak definition in a
3244 shared library to override a weak definition in a regular object.
3245
3246 Tue Jul 6 10:23:39 1999 Jeffrey A Law (law@cygnus.com)
3247
3248 * libhppa.h: Revert July 2, 1999 patch.
3249
3250 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): T mode selectors
3251 need to generate DLTIND relocations, not DLTREL relocations.
3252
3253 1999-07-05 Nick Clifton <nickc@cygnus.com>
3254
3255 * coffcode.h (coff_set_arch_mach_hook): Recognise arm 5
3256 architectures.
3257 (coff_set_flags): Recognise arm 5 architectures.
3258
3259 * cpu-arm.c: Add support for strongarm and arm9 cpus.
3260 Add support for armv5 architecture.
3261
3262 * archures.c: Add bfd_mach_arm_5 and bfd_mach_arm_5T.
3263
3264 * reloc.c: Add new, assembler only, ARM reloc:
3265 BFD_RELOC_ARM_ADRL_IMMEDIATE.
3266
3267 * bfd-in2.h: Regenerate.
3268
3269 1999-07-02 Mark Mitchell <mark@codesourcery.com>
3270
3271 * dwarf2.c (parse_comp_unit): Add ABBREV_LENGTH parameter.
3272 (_bfd_dwarf2_find_nearest_line): Add ADDR_SIZE parameter.
3273 * elf.c (_bfd_elf_find_nearest_line): Pass it.
3274 * elf32-arm.h (elf32_arm_find_nearest_line): Likewise.
3275 * elf32-mips.c (ABI_64_P): New macro.
3276 (IRIX_COMPAT): We are IRIX6-compatible if ABI_64_P.
3277 (_bfd_mips_elf_find_nearest_line): Adjust call to
3278 _bfd_dwarf2_find_nearest_line.
3279 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
3280 * libbfd.h: Regenerated.
3281
3282 1999-07-02 Ian Lance Taylor <ian@zembu.com>
3283
3284 * config.bfd: Add * at the end of i[3456]86-*-unixware.
3285
3286 Fri Jul 2 12:21:10 1999 Jeffrey A Law (law@cygnus.com)
3287
3288 * libhppa.h (HPPA_R_ARG_RELOC): Delete.
3289 (HPPA_R_CONSTANT, HPPA_R_ADDEND): Likewise.
3290
3291 1999-07-01 Mark Mitchell <mark@codesourcery.com>
3292
3293 * elf-bfd.h (bfd_elf_section_data): Add rel_count and rel_count2
3294 fields.
3295 (_bfd_elf_init_reloc_shdr): New function.
3296 * elf.c (_bfd_elf_new_section_hook): Use bfd_zalloc, rather than
3297 bfd_alloc followed by memset.
3298 (_bfd_elf_init_reloc_shdr): New function, split out from ...
3299 (elf_fake_sections): Here.
3300 (assign_section_numbers): Assign section numbers for the second
3301 relocation section, if required.
3302 * elflink.h (elf_link_output_relocs): New function.
3303 (elf_link_size_reloc_section): Likewise.
3304 (elf_bfd_final_link): Use elf_link_size_reloc_section.
3305 (elf_link_input_bfd): Use elf_link_output_relocs.
3306
3307 * elf32-mips.c (_bfd_mips_elf_fake_sections): Use
3308 _bfd_elf_init_reloc_shdr to initialize rel_hdr2.
3309
3310 Thu Jul 1 13:58:48 1999 Jeffrey A Law (law@cygnus.com)
3311
3312 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle R_PCREL_CALL
3313 with 22bit format.
3314
3315 1999-06-28 Mark Mitchell <mark@codesourcery.com>
3316
3317 * elf32-mips.c (mips_elf_got_info): Move declaration before
3318 prototypes. Change global_gotsym to be a pointer to a hash entry,
3319 rather than a number index.
3320 (mips_elf_link_hash_entry): Move declaration before prototypes.
3321 (mips_elf_irix6_finish_dynamic_symbol): New function.
3322 (mips_elf_sign_extend): Likewise.
3323 (mips_elf_high): Likewise.
3324 (mips_elf_higher): Likewise.
3325 (mips_elf_highest): Likewise.
3326 (mips_elf_global_got_index): Likewise.
3327 (mips_elf_local_got_index): Likewise.
3328 (mips_elf_got_offset_from_index): Likeiwse.
3329 (mips_elf_record_global_got_symbol): Likewise.
3330 (mips_elf_got_page): Likewise.
3331 (mips_elf_next_lo16_addend): Likewise.
3332 (mips_elf_calculate_relocation): Likewise.
3333 (mips_elf_obtain_contents): Likewise.
3334 (mips_elf_perform_relocation): Likewise.
3335 (mips_elf_assign_gp): Likewise.
3336 (mips_elf_sort_hash_table_f): Likewise.
3337 (mips_elf_sort_hash_table): Likewise.
3338 (mips_elf_got_section): Likewise.
3339 (mips_elf_got_info): Likewise.
3340 (mips_elf_create_local_got_entry): Likewise.
3341 (mips_elf_got16_entry): Likewise.
3342 (mips_elf_create_dynamic_relocation): Likewise.
3343 (elf_mips_howto_table): Add description of R_MIPS_SCN_DISP.
3344 (mips_elf_final_gp): Use mips_elf_assign_gp.
3345 (_bfd_mips_elf_symbol_processing): Don't move SHN_COMMON symbols
3346 into SHN_SCOMMON automatically on IRIX6.
3347 (mips_elf_add_symbol_hook): Likewise.
3348 (mips_elf_relocate_section): Rewrite, using
3349 mips_elf_calculate_relocation and mips_elf_perform_relocation.
3350 (mips_elf_create_dynamic_section): Use MIPS_ELF_STUB_SECTION_NAME.
3351 Don't deal with .rld_map on IRIX6.
3352 (mips_elf_create_got_section): Adjust use of global_gotsym. Set
3353 section flags appropriately for .got.
3354 (mips_elf_check_relocs): Handle IRIX6 relocations making use of
3355 the got. Call mips_elf_record_global_got_symbol and allocate
3356 local got space appropriately.
3357 (mips_elf_size_dynamic_sections): Use bfd_byte *, not unsigned
3358 char *. Rework calculation of GOT size. Sort dynamic symbol
3359 table entries so entries that do not require GOT entries appear at
3360 the beginning. Don't use DT_MIPS_HIPAGENO on IRIX6. Remove dead
3361 code dealing with DT_INIT and DT_FINI. Remove fiddling with
3362 global_gotsym.
3363 (mips_elf_finish_dynamic_symbol): Adjust creation of global GOT
3364 entries.
3365 (mips_elf_finish_dynamic_symbol): Use
3366 mips_elf_irix6_finish_dynamic_symbol.
3367 (mips_elf_finish_dynamic_sections): Correct off-by-one error
3368 setting DT_MIPS_UNREFEXTNO. Adjust setting of DT_MIPS_GOTSYM for
3369 change to global_gotsym. Set DT_MIPS_OPTIONS on IRIX6.
3370
3371 1999-06-30 Ian Lance Taylor <ian@zembu.com>
3372
3373 * elf32-mips.c (mips_elf_final_link): Don't set CPIC when doing a
3374 relocateable link. From Ralf Baechle <ralf@uni-koblenz.de>.
3375
3376 1999-06-04 Philip Blundell <philb@gnu.org>
3377
3378 * elf32-arm.h (elf_backend_got_header_size): Define.
3379 (elf_backend_plt_header_size): Likewise.
3380
3381 1999-06-28 Jim Pick <jim@jimpick.com>
3382
3383 * elf32-arm.h (elf32_arm_relocate_section): Mind no_undefined
3384
3385 Tue Jun 29 02:25:03 1999 Jeffrey A Law (law@cygnus.com)
3386
3387 * elf-hppa.c (elf_hppa_howto_table): Use bfd_elf_generic_reloc as
3388 relocation function.
3389 * elf32-hppa.c (hppa_elf_reloc): Kill unused/unwanted function.
3390
3391 1999-06-27 Mark Mitchell <mark@codesourcery.com>
3392
3393 * elf32-mips.c (MIPS_ELF_SRDATA_SECTION_NAME): New macro.
3394 (MIPS_ELF_OPTIONS_SECTION_NAME): Likewise.
3395 (MIPS_ELF_STUB_SECTION_NAME): Likewise.
3396 (_bfd_mips_elf_section_from_shdr): Use them.
3397 (_bfd_mips_elf_fake_sections): Likewise. Add .srdata to the list
3398 of GP-relative sections.
3399 (_bfd_mips_elf_set_section_contents): Use them.
3400 (_bfd_mips_elf_section_processing): Share code between .sdata and
3401 .lit4/.lit8 sections. Set appropriate flags for .srdata.
3402 (mips_elf_additional_program_headers): Add handling for
3403 PT_MIPS_OPTIONS segment on IRIX6.
3404 (mips_elf_modify_segment_map): Likeiwse.
3405 (mips_elf_final_link): Set EF_MIPS_CPIC when required by the ABI.
3406 Include the options sections on IRIX6. Don't look for GP-relative
3407 sections by name; use SHF_MIPS_GPREL instead.
3408 (ELF_DYNAMIC_INTERPRETER): Adjust to use /usr/lib32/libc.so.1 for
3409 the N32 ABI.
3410 (mips_elf_create_dynamic_sections): Don't muck about with section
3411 alignments and such on IRIX6.
3412 (mips_elf_adjust_dynamic_symbol): Use MIPS_ELF_STUB_SECTION_NAME.
3413 (mips_elf_size_dynamic_sections): Likewise. Adjust to handle the
3414 fact that ELF_DYNAMIC_INTERPRETER is no longer a constant. Use
3415 bfd_zalloc rather than bfd_alloc and memset.
3416 (mips_elf_finish_dynamic_symbol): Use MIPS_ELF_STUB_SECTION_NAME.
3417 Don't assert the existence of .rld_map on IRIX6.
3418 (mips_elf_finish_dynamic_sections): Use MIPS_ELF_STUB_SECTION_NAME.
3419
3420 * elf32-mips.c (mips_elf_adjust_dynindx): Remove.
3421 (mips_elf_size_dynamic_sections): Use _bfd_elf_link_adjust_dynindx
3422 instead.
3423
3424 1999-06-26 Mark Mitchell <mark@codesourcery.com>
3425
3426 * elf32-mips.c (mips_elf_swap_msym_in): New function.
3427 (mips_elf_swap_msym_out): New function.
3428 (mips_elf_create_msym_section): Likewise.
3429 (MIPS_ELF_MSYM_SECTION_NAME): New macro.
3430 (_bfd_mips_elf_final_write_processing): Set sh_link for .msym.
3431 (_bfd_mips_elf_section_from_shdr): Reject an SHT_MIPS_MSYM
3432 section not named .msym.
3433 (_bfd_mips_elf_fake_sections): Use MIPS_ELF_MSYM_SECTION_NAME, not
3434 .msym directly. Set appropriate attributes for the .msym
3435 section.
3436 (mips_elf_link_hash_entry): Add min_dyn_reloc_index field.
3437 (mips_elf_link_hash_newfunc): Clear it.
3438 (mips_elf_create_dynamic_sections): Create the .msym section
3439 on IRIX6.
3440 (mips_elf_size_dynamic_sections): Allocate space for the
3441 .msym section. Add a DT_MIPS_MSYM entry.
3442 (mips_elf_finish_dynamic_symbol): Write out a .msym entry for
3443 the symbol.
3444 (mips_elf_finish_dynamic_sections): Assign a value for
3445 DT_MIPS_MSYM. Add .msym entries for the section symbols as well.
3446
3447 * elf32-mips.c (irix_compat_t): New enumeration.
3448 (ABI_N32_P): New macro.
3449 (IRIX_COMPAT): Likewise.
3450 (SGI_COMPAT): Implement in terms of IRIX_COMPAT.
3451 (mips_elf_relocate_section): Fix typo.
3452
3453 1999-06-26 Mumit Khan <khan@xraylith.wisc.edu>
3454
3455 * peicode.h (coff_swap_scnhdr_out): Mark non readonly BFD sections
3456 as writable PE sections.
3457
3458 1999-06-26 David Mosberger <davidm@hpl.hp.com>
3459
3460 * dwarf2.c (struct arange): New type.
3461 (struct comp_unit): Replace LOW and HIGH by member ARANGE.
3462 (arange_add): New function.
3463 (decode_line_info): Keep track of address ranges that a compilation
3464 unit covers.
3465 (comp_unit_contains_address): Return true if address is contained
3466 in _any_ of the address ranges associated with a compilation unit.
3467 (_bfd_dwarf2_find_nearest_line): Call comp_unit_find_nearest_line
3468 on the first comp_unit that contains the address.
3469
3470 1999-06-26 David Mosberger <davidm@hpl.hp.com>
3471
3472 * dwarf2.c (struct dwarf2_debug): Add member dwarf_line_buffer.
3473 (decode_line_info): Add variable STASH and initialize it to point
3474 to the per-bfd dwarf2_debug info. Remove static variable
3475 dwarf_line_buffer and use stash->dwarf_line_buffer in its place.
3476
3477 1999-06-26 Ian Lance Taylor <ian@zembu.com>
3478
3479 * elflink.h (elf_link_output_extsym): It's OK for a -Bsymbolic
3480 shared library to have an undefined symbol.
3481
3482 From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>:
3483 * elf32-ppc.c (ppc_elf_relocate_section): Fix last patch.
3484
3485 Thu Jun 24 20:59:11 1999 Jeffrey A Law (law@cygnus.com)
3486
3487 * elf-hppa.c (elf_hppa_final_write_processing): New function.
3488 * elf32-hppa.c: Remove everything related to symbol extension
3489 sections & records. Use the common elf_hppa_final_write_processing.
3490
3491 1999-06-22 Mark Mitchell <mark@codesourcery.com>
3492
3493 * elflink.h (size_dynamic_sections): Use user-specified init/fini
3494 functions instead of _init/_fini if requested.
3495
3496 1999-06-23 Ian Lance Taylor <ian@zembu.com>
3497
3498 * elf.c (bfd_section_from_shdr): Avoid crashing on a bogus sh_link
3499 field.
3500
3501 1999-06-22 Ian Lance Taylor <ian@zembu.com>
3502
3503 From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>:
3504 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set unused dynindx
3505 field to 0, not -1.
3506 (ppc_elf_finish_dynamic_sections): Check for positive section
3507 dynindx field, rather than comparing against -1.
3508 (ppc_elf_relocate_section): Only return false if undefined_symbol
3509 or reloc_overflow fail, not always upon encountering an error.
3510
3511 1999-06-22 Mark Mitchell <mark@codesourcery.com>
3512
3513 * elflink.h (link_read_relocs): Explicitly cast external_relocs to
3514 bfd_byte * before performing pointer arithmetic.
3515
3516 Tue Jun 22 13:06:25 1999 Jeffrey A Law (law@cygnus.com)
3517
3518 * elf-hppa.h: New file. Common stuff for elf32 and elf64 PA
3519 support.
3520 * elf32-hppa.c: Include elf-hppa.h.
3521 (ARCH_SIZE): Define.
3522 (elf_hppa_reloc_type_lookup): Delete. Found in the common code
3523 now.
3524 (elf32_hppa_info_to_howto): Similarly.
3525 (elf_hppa_howto_table): Similarly.
3526 (elf_hppa_reloc_type_lookup): Similarly.
3527 (hppa_elf_gen_reloc_type): Similarly.
3528 * elf32-hppa.h (ELF_HOWTO_TALBE, N_PARISC_RELOCS): Delete.
3529
3530 1999-06-22 Nick Clifton <nickc@cygnus.com>
3531
3532 * elf32-v850.c (v850_elf_final_link_relocate): Catch overflow
3533 handling R_V850_22_PCREL relocation.
3534
3535 1999-06-21 Ian Lance Taylor <ian@zembu.com>
3536
3537 * coff-arm.c (arm_emit_base_file_entry): Explicitly declare return
3538 type.
3539
3540 Sun Jun 20 14:13:57 1999 Richard Henderson <rth@cygnus.com>
3541
3542 * section.c (_bfd_strip_section_from_output): Ignore sections
3543 DISCARDed by the link script.
3544
3545 1999-06-19 Ian Lance Taylor <ian@zembu.com>
3546
3547 * elflink.h (elf_link_remove_section_and_adjust_dynindices):
3548 Remove unused local variable spp.
3549
3550 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't crash if
3551 the entry symbol is not set.
3552
3553 Fri Jun 18 04:24:57 1999 Richard Henderson <rth@cygnus.com>
3554
3555 * elf64-alpha.c (elf64_alpha_relocate_section): Don't adjust
3556 GPDISP or LITUSE in a relocatable link.
3557
3558 Thu Jun 17 21:24:43 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
3559
3560 * dwarf1.c (alloc_dwarf1_unit): Allocate using bfd_zalloc.
3561 * (alloc_dwarf1_func): Likewise.
3562
3563 Wed Jun 16 03:09:57 1999 Jeffrey A Law (law@cygnus.com)
3564
3565 * libhppa.h: Fix various formatting errors.
3566 (assemble_3); Rewrite using CATENATE.
3567 (assemble_17): Fix various bugs.
3568
3569 1999-06-16 Nick Clifton <nickc@cygnus.com>
3570
3571 * elf32-mcore.c (R_MCORE_RAW): Fix definition.
3572
3573 1999-06-15 Richard Henderson <rth@cygnus.com>
3574
3575 * section.c (SEC_SHORT): Define.
3576 * bfd-in2.h: Rebuild.
3577
3578 1999-06-13 Mark Mitchell <mark@codesourcery.com>
3579
3580 * elflink.h (elf_link_remove_section_and_adjust_dynindices):
3581 Remove abfd parameter. Use _bfd_strip_section_from_output.
3582 (bfd_elf_size_dynamic_sections): Adjust callers accordingly.
3583
3584 * elf-bfd.h (_bfd_elf_link_adjust_dynindx): New function.
3585 * elflink.c (_bfd_elf_link_adjust_dynindx): Define it.
3586 * elflink.h (elf_link_remove_section_and_adjust_dynindices): New
3587 function.
3588 (bfd_elf_size_dynamic_sections): Use it.
3589
3590 1999-06-13 Alan Modra <alan@spri.levels.unisa.edu.au>
3591
3592 * elf32-i386.c (elf_howto_table): Change R_386_PC8 from
3593 complain_overflow_bitfield to complain_overflow_signed.
3594
3595 1999-06-13 Mark Mitchell <mark@codesourcery.com>
3596
3597 * elflink.h (elf_link_read_relocs_from_section): New function,
3598 split out from ...
3599 (elf_link_read_relocs): Here. Use it for both relocation
3600 sections.
3601
3602 1999-06-12 Mark Mitchell <mark@codesourcery.com>
3603
3604 * elfcode.h (elf_slurp_reloc_table_from_section): Don't assume
3605 asect->reloc_count is valid.
3606
3607 1999-06-12 Ian Lance Taylor <ian@zembu.com>
3608
3609 * elf32-mips.c (mips_elf32_section_processing): Permit a
3610 SHT_MIPS_REGINFO section to have a size of 0.
3611
3612 1999-06-12 David O'Brien <obrien@freebsd.org>
3613
3614 * config.bfd (alpha*-*-freebsd*): New target.
3615 (i[3456]86-*-freebsd*): Now defaults to ELF.
3616
3617 1999-06-11 Ian Lance Taylor <ian@zembu.com>
3618
3619 * reloc.c (_bfd_relocate_contents): Permit bitfield relocations to
3620 wrap if the relocation covers the high bit of an address.
3621
3622 * dwarf2.c (decode_line_info): Remove unused variable first_time.
3623
3624 1999-06-10 Jakub Jelinek <jj@ultra.linux.cz>
3625
3626 * elf64_sparc.c (sparc64_elf_relocate_section): Use R_SPARC_max_std
3627 instead of R_SPARC_max.
3628 (sparc64_elf_info_to_howto): Likewise.
3629 * elf32_sparc.c (elf32_sparc_relocate_section): Likewise.
3630 (elf32_sparc_info_to_howto): Likewise; handle vtable relocations.
3631
3632 1999-06-07 Richard Henderson <rth@cygnus.com>
3633
3634 * section.c (_bfd_strip_section_from_output): Remove output
3635 sections with no initial link_order.
3636
3637 1999-06-07 Nick Clifton <nickc@cygnus.com>
3638
3639 * elf32-m88k.c (ELF_MAXPAGESIZE): Define.
3640
3641 Mon Jun 7 11:49:43 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3642
3643 * Makefile.am (SOURCE_HFILES): Add missing headers.
3644 * Makefile.in: Regenerated.
3645
3646 1999-06-06 Mark Mitchell <mark@codesourcery.com>
3647
3648 * elf32-mips.c (_bfd_mips_elf_print_private_data): Recognize
3649 the N32 ABI.
3650
3651 1999-06-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3652
3653 * elf32-ppc.c (ppc_elf_relocate_section): Don't barf on out of
3654 range undefweak symbols.
3655 * hash.c: Add missing comma after @xref{}
3656 * linker.c: Likewise.
3657
3658 1999-06-04 Nick Clifton <nickc@cygnus.com>
3659
3660 * elfxx-target.h (ELF_MAXPAGESIZE): Produce an error message
3661 if not defined.
3662 * elf32-gen.c (ELF_MAXPAGESIZE): Define.
3663 * elf32-i860.c (ELF_MAXPAGESIZE): Define.
3664 * elf32-i960.c (ELF_MAXPAGESIZE): Define.
3665 * elf64-gen.c (ELF_MAXPAGESIZE): Define.
3666
3667 1999-06-04 Ian Lance Taylor <ian@zembu.com>
3668
3669 * Makefile.am: Rebuild dependencies.
3670 (BFD32_BACKENDS): Add dwarf1.lo.
3671 (BFD32_BACKENDS_CFILES): Add dwarf1.c.
3672 * Makefile.in: Rebuild.
3673
3674 1999-06-04 Nick Clifton <nickc@cygnus.com>
3675
3676 * Makefile.am: Add epoc-arm-pe target.
3677 * Makefile.in: Regenerate.
3678 * pe-arm.c: Only redefine interworking function names if they have
3679 not already been redefined.
3680 * pei-arm.c: Only redefine interworking function names if they have
3681 not already been redefined.
3682 * epoc-pe-arm.c: Redefine interworking function names to avoid a
3683 name space clash.
3684 * epoc-pei-arm.c: Redefine interworking function names to avoid a
3685 name space clash.
3686
3687 1999-06-03 Nick Clifton <nickc@cygnus.com>
3688
3689 * elfxx-target.h (ELF_MAXPAGESIZE): Default to 0x1000 not 1.
3690
3691 Fri Jun 4 10:05:11 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3692
3693 * elf.c (elf_fake_sections): Undo change of 1999-05-10.
3694
3695 Fri Jun 4 03:10:49 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
3696
3697 * elf32-sh.c (sh_elf_relax_delete_bytes): Fix setting of
3698 start / stop for recalculating of r_addend of R_SH_SWITCH*.
3699
3700 Fri Jun 4 02:53:13 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
3701
3702 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH32
3703 in other text sections.
3704
3705 Fri Jun 4 02:29:34 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
3706
3707 * libbfd.c (_bfd_generic_verify_endian_match): New function.
3708 * libbfd-in.h (_bfd_generic_verify_endian_match): Declare.
3709 * libbfd.h: Regenerate.
3710 * coff-sh.c (sh_merge_private_data): Delete.
3711 (coff_bfd_merge_private_bfd_data): Change to
3712 _bfd_generic_verify_endian_match.
3713 (elf32-sh.c): bfd_elf32_bfd_merge_private_bfd_data: Define.
3714
3715 1999-06-03 Ulrich Drepper <drepper@cygnus.com>
3716
3717 * elf32-arm.h: Fix typo: change ELF_MAXPAGE_SIZE to ELF_MAXPAGESIZE.
3718
3719 1999-06-03 Ian Lance Taylor <ian@zembu.com>
3720
3721 * bfd-in.h (bfd_elf32_arm_allocate_interworking_sections): Correct
3722 prototype.
3723 (bfd_elf32_arm_process_before_allocation): Likewise.
3724 * bfd-in2.h: Rebuild.
3725
3726 1999-06-03 David Mosberger <davidm@hpl.hp.com>
3727
3728 * dwarf2.c (struct line_info): Add member END_SEQUENCE to keep
3729 track of end_sequence markers.
3730 (add_line_info): Add END_SEQUENCE arg.
3731 (decode_line_info): Don't try to infer lo_pc and hi_pc from the
3732 debug-line info---it doesn't work right if a compilation unit
3733 consists of multiple discontiguous code-sequences. It would be
3734 worthwhile to optimize for the common case where a compilation
3735 unit results in a contiguous set of code sequences, but this is
3736 quite tricky to get right for arbitrary DWARF2 files.
3737 (lookup_address_in_line_info_table): Don't use the last line entry
3738 for a compilation unit for anything with an address higher than
3739 this line entry. Also, check for end_sequence markers to
3740 correctly handle discontinuities.
3741 (_bfd_dwarf2_find_nearest_line): When checking previously loaded
3742 compilation units, check all compilation units with each->high==0
3743 just like when reading compilation units.
3744
3745 * dwarf2.c (decode_line_info): Initialize table->files and
3746 table->last_line to NULL to avoid segfaults due to random
3747 values in these members.
3748 (concat_filename): Check for out-of-range file number before
3749 indexing filename table. Segfaults suck.
3750
3751 * dwarf2.c (decode_line_info): Don't truncate address to least
3752 significant 32 bits (breaks 64 bit targets).
3753 (lookup_address_in_function_table): Ditto.
3754 (comp_unit_contains_address): Ditto.
3755
3756 1999-06-02 Mark Mitchell <Mark Mitchell <mark@codesourcery.com>>
3757
3758 * elf32-mips.c (elf_mips_howto_table): Add R_MIPS_JALR.
3759 * elf64-mips.c (mips_elf64_howto_table_rel): Likewise.
3760 (mips_elf64_howto_table_rela): Likewise.
3761
3762 * elfcode.h (elf_slurp_reloc_table_from_section): New function,
3763 split out from ...
3764 (elf_slurp_reloc_table): Here. Use it to handle the case where a
3765 single section has two associated relocation sections.
3766
3767 1999-06-02 Mark Salter <msalter@cygnus.com>
3768
3769 * coffcode.h (coff_set_alignment_hook): Set lma from s_vaddr if
3770 COFF_WITH_PE defined.
3771
3772 1999-06-02 Nick Clifton <nickc@cygnus.com>
3773
3774 * pe-arm.c: Rename global arm interworking functions to avoid name
3775 collision when all targets BFD is built.
3776 * pei-arm.c: Ditto.
3777
3778 1999-05-31 Mark Mitchell <mark@codesourcery.com>
3779
3780 * elf-bfd.h (elf_backend_data): Remove use_rela_p. Add
3781 may_use_rel_p, may_use_rela_p, default_use_rela_p.
3782 (bfd_elf_section_data): Add use_rela_p.
3783 * elf.c (bfd_section_from_shdr): Set use_rela_p appropriately.
3784 (_bfd_elf_new_section_hook): Likewise.
3785 (elf_fake_sections): Use may_use_rela_p, etc., instead of
3786 use_rela_p.
3787 (_bfd_elf_copy_private_section_data): Copy use_rela_p.
3788 * elfcode.h (write_relocs): Determine whether or not use rela
3789 relocs based on the relocation section header.
3790 * elflink.c (_bfd_elf_create_dynamic_sections): Use default_use_rela_p
3791 instead of use_rela_p.
3792 * elfxx-target.h (elf_backend_may_use_relp): New macro.
3793 (elf_backend_may_use_rela_p): Likewise.
3794 (elf_backend_default_use_rela_p): Likewise.
3795 (elfNN_bed): Use them.
3796
3797 Wed Jun 2 12:38:49 1999 Miodrag Vallat <miodrag@multimania.com>
3798
3799 * hosts/alphalinux.h (TRAD_CORE_EXTRA_SIZE_ALLOWED): Expand to 4096.
3800
3801 Tue Jun 1 17:57:58 1999 Mark P. Mitchell <mitchell@n02.acl.lanl.gov>
3802
3803 * reloc.c (BFD_RELOC_MIPS_SUB): New relocation.
3804 (BFD_RELOC_MIPS_GOT_PAGE): Likewise.
3805 (BFD_RELOC_MIPS_GOT_OFST): Likewise.
3806 (BFD_RELOC_MIPS_GOT_DISP): Likewise.
3807 * bfd-in2.h: Regenerated.
3808 * libbfd.h: Likewise.
3809 * elf32-mips.c (mips_info_to_howto_rela): New function.
3810 (USE_REL): Adjust for new conventions.
3811 (MINUS_ONE): New macro.
3812 (elf_mips_howto_table): Add R_MIPS_SUB.
3813 (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE, MIPS_GOT_OFST,
3814 and MIPS_GOT_DISP.
3815 (mips_elf_final_write_processing): Set sh_link, not sh_info, for a
3816 .MIPS.content section.
3817 (_bfd_mips_elf_fake_sections): Treat all sections that begin
3818 with .MIPS.content as .MIPS.content sections. Set
3819 SHF_MNIPS_NOSTRIP for such section.
3820 (elf_info_to_howto): Define to mips_info_to_howto_rela.
3821 * elf64-mips.c (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE,
3822 MIPS_GOT_OFST, and MIPS_GOT_DISP.
3823
3824 Wed Jun 2 11:51:12 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3825
3826 * vms-misc.c (_bfd_vms_hash_newfunc): Fix use of uninitialized
3827 variable.
3828
3829 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Avoid ambigous
3830 `else'.
3831
3832 1999-05-30 Philip Blundell <philb@gnu.org>
3833
3834 * elf32-arm.h (elf32_arm_relocate_section): Reinstate change of
3835 1993-03-25 (!!). Take into account the bitmasks for the reloc so
3836 the addend does not overflow into the rest of the word.
3837
3838 1999-05-29 Nick Clifton <nickc@cygnus.com>
3839
3840 * bfd-in.h: Amend prototype for
3841 bfd_elf32_arm_process_before_allocation .
3842 * bfd-in.h: Regenerate.
3843
3844 * elfarm-oabi.c (NUM_ELEM): New macro: Compute the number of
3845 elements in a fixed sized array.
3846 (ARM_ELF_ABI_VERSION): Define.
3847 (ARM_ELF_OS_ABI_VERSION): Define.
3848 (R_ARM_THM_ABS5): Fix rightshift and size.
3849 (R_ARM_THM_PC22): Fix size.
3850 (R_ARM_PLT32): Define Howto.
3851 (find_howto): New function: Locate a howto based on a reloc
3852 number.
3853 (elf32_arm_info_to_howto): Use find_howto if necessary.
3854 (elf32_arm_reloc_map): Change type of field bfd_reloc_val to
3855 bfd_reloc_code_real_type.
3856 (elf32_arm_reloc_map[]): Add entries for BFD_RELOC_VTABLE_INHERIT
3857 and BFD_RELOC_VTABLE_ENTRY.
3858 (elf32_arm_reloc_type_lookup): Use find_howto if necessary.
3859
3860 * elfarm-nabi.c (NUM_ELEM): New macro: Compute the number of
3861 elements in a fixed sized array.
3862 (ARM_ELF_ABI_VERSION): Define.
3863 (ARM_ELF_OS_ABI_VERSION): Define.
3864 (R_ARM_THM_ABS5): Fix rightshift and size.
3865 (R_ARM_THM_PC22): Fix size.
3866 (elf32_arm_info_to_howto_rel): Rename to elf32_arm_info_to_howto.
3867 (elf32_arm_reloc_map): Change type of field bfd_reloc_val to
3868 bfd_reloc_code_real_type.
3869
3870 * elf32-arm.h (struct elf32_arm_link_hash_table): Add new field:
3871 no_pipeline_knowledge.
3872 (elf32_arm_link_hash_create): Initialise new field to zero.
3873 (bfd_elf32_arm_process_before_allocation): Add new paraemter:
3874 no_pipeline_knowledge. Use this parameter to initialise the field
3875 in the globals data structure.
3876 (elf32_arm_final_link_relocate): Only add in pipeline offset if
3877 no_pipeline_knowledge is false and the binary is from an old
3878 toolchain.
3879 (elf32_arm_merge_private_data): Generate an error if an attempt is
3880 made to linl together big endian and little endian code.
3881 (elf32_arm_post_process_headers): New function: Initialise the
3882 EI_OSABI and EI_ABIVERSION fields of the newly created ELF program
3883 header.
3884 (elf_backend_post_process_headers): Define.
3885
3886 1999-05-28 Nick Clifton <nickc@cygnus.com>
3887
3888 * elf-bfd.h (struct elf_backend_data): Add new field:
3889 elf_backend_post_process_headers.
3890
3891 * elfxx-target.h (elf_backend_post_process_headers): Define to
3892 NULL if not already defined.
3893 (elfNN_bed): Initialise elf_backend_post_process_headers field.
3894
3895 * elf.c (prep_headers): Set the EI_OSABI and EI_ABIVERSION fields
3896 to zero.
3897 (_bfd_elf_compute_section_file_positions): Call
3898 elf_backend_post_process_headers if defined.
3899
3900 1999-05-28 Ian Lance Taylor <ian@zembu.com>
3901
3902 * configure.in: Check whether getuid and getgid exist.
3903 * archive.c: Define getuid and getgid as macros if HAVE_GETUID or
3904 HAVE_GETGID are not defined, respectively.
3905 (bfd_write_armap): Don't special case on _WIN32 for getuid and
3906 getgid.
3907 * configure.host: Set ac_cv_func_get{ug}id for *-*-windows*.
3908 * configure, config.in: Rebuild.
3909
3910 1999-05-28 Martin Dorey <mdorey@madge.com>
3911
3912 * elf32-i960.c: New file.
3913 * elf.c (prep_headers): Handle bfd_arch_i960.
3914 * targets.c (bfd_target_vector): Add &bfd_elf32_i960_vec.
3915 * config.bfd (i960-*-elf*): New target.
3916 * configure.in (bfd_elf32_i960_vec): New target vector.
3917 * Makefile.am (BFD32_BACKENDS): Add elf32-i960.lo.
3918 (BFD32_BACKENDS_CFILES): Add elf32-i960.c.
3919 * Makefile.in, aclocal.m4, configure: Rebuild.
3920
3921 1999-05-27 Nick Clifton <nickc@cygnus.com>
3922
3923 * elfarm-oabi.c (elf32_arm_howto_table): Add entry for
3924 R_ARM_PLT32.
3925 (find_howto): New function: Find entries in the
3926 elf32_arm_howto_table.
3927 (elf32_arm_info_to_howto): Use find_howto if the entry cannot be
3928 computed simply.
3929 (elf32_arm_reloc_type_lookup): Add lookup for
3930 BFD_RELOC_ARM_PLT32.
3931
3932 1999-05-25 Philip Blundell <pb@nexus.co.uk>
3933
3934 * bfd/elf32-arm.h (elf32_arm_link_hash_newfunc): New function.
3935 (elf32_arm_link_hash_table_create): Use above function as the
3936 constructor for hash table entries.
3937 (elf32_arm_relocate_section): Avoid crash when there is no output
3938 section.
3939 (elf32_arm_final_link_relocate): New parameter h.
3940 (elf32_arm_relocate_section): Pass symbol hash entry to above
3941 routine.
3942 (elf32_arm_gc_sweep_hook, elf32_arm_check relocs): Correct
3943 comments.
3944
3945 1999-05-25 Catherine Moore <clm@cygnus.com>
3946
3947 * coff-arm.c (coff_arm_relocate_section): Don't emit
3948 base file entries for pc-relative values.
3949
3950 1999-05-25 DJ Delorie <dj@cygnus.com>
3951
3952 * peicode.h (coff_swap_sym_in): When we create the actual section
3953 to reflect the not-there section C_SECTION symbols refer to,
3954 change the symbol class to C_STAT as the section is now really
3955 there.
3956
3957 1999-05-24 Philip Blundell <pb@nexus.co.uk>
3958
3959 * elf32-arm.h (elf32_arm_relocate_section): Undo change of
3960 1999-03-25.
3961
3962 Mon May 17 13:35:35 1999 Stan Cox <scox@cygnus.com>
3963
3964 * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed
3965 F_PIC_INT to F_PIC.
3966 * coffcode.h (coff_set_arch_mach_hook): Added F_ARM_2a, and
3967 F_ARM_3M labels. Changed F_PIC_INT to F_PIC.
3968
3969 1999-05-16 Nick Clifton <nickc@cygnus.com>
3970
3971 * coff-mcore.c (in_reloc_p): Reinstate.
3972
3973 1999-05-15 Nick Clifton <nickc@cygnus.com>
3974
3975 * reloc.c (BFD_RELOC_MCORE_RVA): Define.
3976 * bfd-in2.h: Regenerate.
3977 * coff-mcore.c (in_reloc_p): Remove defintion.
3978 (mcore_coff_howto): Add IMAGE_REL_MCORE_RVA.
3979 (mcore_coff_reloc_type_lookup): Map BFD_RELOC_RVA to
3980 IMAGE_REL_MCORE_RVA.
3981 (coff_mcore_rtype_to_howto): Add special processing for
3982 IMAGE_REL_MCORE_RVA.
3983 (coff_mcore_relocate_section): Add support for
3984 IMAGE_REL_MCORE_RVA.
3985 * elf32-mcore (mcore_elf_howto_): Add R_MCORE_RELATIVE.
3986 (mcore_elf_reloc_type_lookup): Map BFD_RELOC_RVA to
3987 R_MCORE_RELATIVE.
3988 (mcore_elf_relocate_section): Delete redundant case labels.
3989
3990 Fri May 14 10:59:55 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3991
3992 * elf32-arm.h (elf32_arm_relocate_section): Fix operator
3993 precedence between bit-and and comparison.
3994
3995 Thu May 13 09:45:23 1999 Joel Sherrill (joel@OARcorp.com)
3996
3997 * config.bfd (i[3456]86*-*-rtems*, m68k*-*-rtems*): Added to
3998 list of target formats (targ_selvecs).
3999 (i[3456]86*-*-rtemself*, mips*el-*-rtems*): New targets.
4000 (powerpcle*-*rtems*, sh-*-rtemself*): New targets.
4001
4002 1999-05-10 DJ Delorie <dj@cygnus.com>
4003
4004 * ecoff.c (_bfd_ecoff_write_armap): give the symtab element a
4005 reasonable mode until "ar x" is smart enough to skip it (fixes
4006 gcc/libgcc.a builds on mips-ecoff targets
4007
4008 * coffcode.h (styp_to_sec_flags): Explain how COMDATs are supposed
4009 to work. Hack to support MS import libraries, which use different
4010 COMDAT types than GNU.
4011 (coff_slurp_symbol_table): C_SECTION symbols are local; they refer
4012 to implied zero-length sections (see peicode below)
4013 * coffgen.c (coff_get_normalized_symtab): Properly read long MS
4014 filename symbols, which use one *or more* auxents.
4015 * coffswap.h (coff_swap_aux_in): ditto
4016 * peicode.h (coff_swap_sym_in): Build the implied zero-length
4017 sections
4018
4019 Tue May 11 15:51:58 1999 Jeffrey A Law (law@cygnus.com)
4020
4021 * elf32-v850.c (v850_elf_howto_table): Make partial_inplace false
4022 for all relocations.
4023
4024 1999-05-10 Catherine Moore <clm@cygnus.com>
4025
4026 * bfd-in.h (bfd_arm_allocate_interworking_sections): Static
4027 if COFF_IMAGE_WITH_PE.
4028 (bfd_arm_process_before_allocation): Likewise.
4029 (bfd_arm_get_bfd_for_interworking): Likewise.
4030 * coff-arm.c: Likewise.
4031 * bfd-in2.h: Regenerate.
4032 * configure.in (armpe_little_vec): Remove coff-arm.lo.
4033 (armpe_big_vec): Likewise.
4034 * configure: Rebuild.
4035
4036 1999-05-10 Nick Clifton <nickc@cygnus.com>
4037
4038 * elf.c (elf_fake_sections): Check for .rel. as start of rel
4039 section, not just .rel. Same for .rela.
4040
4041 1999-05-07 Nick Clifton <nickc@cygnus.com>
4042
4043 * coff-mcore.c (coff_mcore_relocate_section): Replace assert about
4044 endianism with an error message.
4045
4046 Thu May 6 17:09:09 1999 Fred Fish <fnf@be.com>
4047
4048 * dwarf2.c (read_abbrevs): Change cast of dwarf_abbrev_buffer
4049 assignment from "unsigned char *" to "char *".
4050 (decode_line_info): Likewise for dwarf_line_buffer assignment.
4051
4052 1999-05-05 Catherine Moore <clm@cygnus.com>
4053
4054 * coff-arm.c (coff_arm_relocate_section): Add one to
4055 address of ARM_RVA32 thumb functions.
4056
4057 1999-05-05 Catherine Moore <clm@cygnus.com>
4058
4059 * elf32-m68k.c (elf32_m68k_set_private_flags): New.
4060 (elf32_m68k_copy_private_bfd_data): New.
4061 (elf32_m68k_merge_private_bfd_data): New.
4062 (elf32_m68k_print_private_bfd_data): New.
4063 (CPU32_FLAG): Define.
4064 (PLT_CPU32_ENTRY_SIZE): Define.
4065 (elf_cpu32_plt0_entry): Declare.
4066 (elf_cpu32_plt_entry): Declare.
4067 (elf_m68k_adjust_dynamic_symbol): Generate cpu32 plt entries.
4068 (elf_m68k_finish_dynamic_symbol): Likewise.
4069 (elf_m68k_finish_dynamic_sections): Likewise.
4070 (elf_backend_plt_header_size): Remove definition.
4071 (bfd_elf32_bfd_copy_private_bfd_data): Define.
4072 (bfd_elf32_bfd_merge_private_bfd_data): Define.
4073 (bfd_elf32_bfd_set_private_flags): Define.
4074 (bfd_elf32_bfd_print_private_bfd_data): Define.
4075
4076 Mon May 3 09:24:49 1999 Jeffrey A Law (law@cygnus.com)
4077
4078 * som.c (som_fixup_formats): Fix comments for R_SHORT_PCREL_MODE
4079 and R_LONG_PCREL_MODE.
4080
4081 1999-04-29 Nick Clifton <nickc@cygnus.com>
4082
4083 * coff-mcore.c (coff_mcore_relocate_section): Fix typos.
4084
4085 Fri Apr 28 16:36:19 1999 Stan Cox <scox@cygnus.com>
4086
4087 * elf32-sh.c (sh_elf_relocate_section): Include relocation addend
4088 in relocation calculation.
4089
4090 1999-04-26 Tom Tromey <tromey@cygnus.com>
4091
4092 * aclocal.m4, configure: Updated for new version of libtool.
4093
4094 1999-04-21 Nick Clifton <nickc@cygnus.com>
4095
4096 * coff-mcore.c: Add support for mcore relocs.
4097
4098 1999-04-20 Gavin Romig-Koch <gavin@cygnus.com>
4099
4100 * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): Scrap the
4101 incorrect use EF_MIPS_xxBITPTRS.
4102
4103 1999-04-18 Ian Lance Taylor <ian@zembu.com>
4104
4105 * elf64-alpha.c (elf64_alpha_relax_section): Remove unused local
4106 variable insn.
4107
4108 * bfd-in2.h: Rebuild.
4109 * libbfd.h: Rebuild.
4110
4111 Sat Apr 17 20:55:15 1999 Catherine Moore <clm@cygnus.com>
4112
4113 * coff-arm.c (coff_arm_rtype_to_howto): Remove ARM26D transform.
4114 (coff_arm_relocate_section): Add ARM26D transform. Only
4115 change to ARM26D for relocateable links.
4116
4117 1999-04-16 Gavin Romig-Koch <gavin@cygnus.com>
4118
4119 * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): New.
4120 (bfd_elf32_bfd_print_private_bfd_data): New.
4121
4122 1999-04-15 Doug Evans <devans@casey.cygnus.com>
4123
4124 * elf32-arm.h (elf32_arm_final_link_relocate): For R_ARM_THM_ABS5,
4125 refetch addend if USE_REL, add many comments regarding current state.
4126 For R_ARM_THM_PC22, refetch addend if USE_REL, simplify.
4127 * elfarm-nabi.c (elf32_arm_howto_table): For R_ARM_THM_ABS5, fix
4128 size and rightshift. For R_ARM_THM_PC22, fix bitsize.
4129 * elfarm-oabi.c (elf32_arm_howto_table): Ditto.
4130
4131 Wed Apr 14 14:33:08 1999 Richard Henderson <rth@cygnus.com>
4132
4133 * elf32-mips.c (_bfd_mips_elf_read_ecoff_info): Zero `debug'.
4134 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Likewise.
4135
4136 1999-04-13 David Mosberger <davidm@hpl.hp.com>
4137
4138 * dwarf2.c (decode_line_info): Don't truncate address to least
4139 significant 32 bits (breaks 64 bit targets).
4140 (lookup_address_in_function_table): Ditto.
4141 (comp_unit_contains_address): Ditto.
4142
4143 Tue Apr 13 21:27:19 1999 Catherine Moore <clm@cygnus.com>
4144
4145 * coff-arm.c (arm_emit_base_file_entry): New routine.
4146 (A2T3_OFFSET): Define.
4147 (T2A3_OFFSET): Define.
4148 (coff_arm_relocate_section): Emit base file entries for interworking
4149 stubs.
4150
4151 1999-04-13 Philip Blundell <philb@gnu.org>
4152
4153 * elfarm-nabi.c (elf32_arm_howto_table): Add dummy entries for
4154 relocs 17 through 19.
4155
4156 Sun Apr 11 01:25:17 1999 Richard Henderson <rth@cygnus.com>
4157
4158 * elfcode.h: Remove fnmatch.h.
4159 * elflink.h (elf_link_assign_sym_version): Call back to ld
4160 instead of calling fnmatch.
4161
4162 * config.bfd (i?86-*-beoself): Include pe vecs.
4163
4164 Sun Apr 11 01:14:06 1999 Richard Henderson <rth@cygnus.com>
4165
4166 * elf32-i386.c (elf_i386_finish_dynamic_sections): Allow .plt
4167 to go missing.
4168
4169 1999-04-10 Richard Henderson <rth@cygnus.com>
4170
4171 * elf32-i386.c (elf_i386_relocate_section): Mind no_undefined
4172 when trying to resolve dynamic symbol references.
4173 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4174 * elf32-mips.c (mips_elf_relocate_section): Likewise.
4175 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4176 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4177 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4178 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4179 * elflink.h (elf_link_output_extsym): Likewise.
4180
4181 Sat Apr 10 15:12:09 1999 Richard Henderson <rth@cygnus.com>
4182
4183 * section.c (_bfd_strip_section_from_output): New function moved from
4184 * elf64-alpha.c (elf64_alpha_strip_section_from_output): ... here.
4185 * elf32-i386.c (elf_i386_size_dynamic_sections): Use it.
4186 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
4187 * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise.
4188 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
4189 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
4190 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
4191 * bfd-in2.h: Update.
4192
4193 1999-04-09 Ian Lance Taylor <ian@zembu.com>
4194
4195 * elf64-sparc.c: Fix incorrect calls to bfd_check_overflow.
4196
4197 1999-04-08 Nick Clifton <nickc@cygnus.com>
4198
4199 * coff-mcore.c: New File: Support for mcore-pe targets.
4200 * cpu-mcore.c: New File: Support for mcore targets.
4201 * elf32-mcore.c: New File: Support for mcore-elf target.
4202 * pe-mcore.c: New File: Definitions for mcore-pe target.
4203 * pei-mcore.c: New File: Definitions for mcore-pei target.
4204 * Makefile.am: Add support for MCore targets.
4205 * Makefile.in: Regenerate.
4206 * config.bfd: Add support for MCore targets.
4207 * configure.in: Add support for MCore targets.
4208 * configure: Regenerate.
4209 * archures.c: Add support for MCore architecture.
4210 * bfd-in2.h: Regenerate.
4211 * coffcode.h: Add support for mcore-pe targets.
4212 * elf.c: Add support for mcore-elf target.
4213 * reloc.c: Add support for MCore relocs.
4214 * targets.c: Add support for MCore targets.
4215
4216 1999-04-07 Nick Clifton <nickc@cygnus.com>
4217
4218 * elfarm-nabi.c (elf32_arm_howto_table): Add entries for
4219 R_ARM_XPC25 and R_ARM_THM_XPC22.
4220 (elf32_arm_reloc_map): Remove redundant entries.
4221
4222 1999-04-06 Ian Lance Taylor <ian@zembu.com>
4223
4224 * sysdep.h (LC_MESSAGES): Never define.
4225
4226 1999-04-06 Chris Torek <torek@bsdi.com>
4227
4228 * reloc.c (bfd_check_overflow): Add addrsize parameter. Change
4229 all callers. Rewrite completely.
4230 (_bfd_relocate_contents): Rewrite overflow checking.
4231 * bfd-in2.h: Rebuild.
4232
4233 1999-04-05 Ian Lance Taylor <ian@zembu.com>
4234
4235 From Gabriel Paubert <paubert@iram.es>:
4236 * elf32-ppc.c (ppc_elf_howto_raw): Set R_PPC_GOT16_LO,
4237 R_PPC_PLT16_LO and R_PPC_SECTOFF_LO to be complain_overflow_dont.
4238 Set R_PPC_PLT16_HA, R_PPC_SECTOFF_HA and R_PPC_EMB_NADDR16_HA to
4239 have a rightshift of 16 and use ppc_elf_addr16_ha_reloc.
4240 * ppcboot.c (ppcboot_vec): Use little endian routines for
4241 headers.
4242
4243 * elf.c (elfcore_strndup): Only define if it will be used.
4244 * elf32-ppc.c (ppc_elf_relax_section): Remove unused locals irel
4245 and irelend.
4246 (ppc_elf_check_relocs): Remove unused local i.
4247 (ppc_elf_gc_mark_hook): Add default case to switch.
4248
4249 From Bernd Nitzler <nitzler@kagcpd01.ag01.kodak.COM>:
4250 * srec.c (srec_scan): Accept \r in symbol definitions.
4251 (srec_object_p): Set HAS_SYMS if we saw any symbols.
4252 (symbolsrec_object_p): Likewise.
4253
4254 1999-04-04 Don Bowman <don@pixsci.com>
4255
4256 * config.bfd: Add mips*el-*-vxworks* and mips*-*-vxworks*.
4257
4258 1999-04-04 Ian Lance Taylor <ian@zembu.com>
4259
4260 * dwarf1.c (parse_line_table): Remove unused locals last_pc and
4261 last_line.
4262 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Declare.
4263 * elf32-i386.c (elf_i386_gc_mark_hook): Add default case to
4264 switch.
4265 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Remove unused
4266 local i.
4267 * syms.c (_bfd_stab_section_find_nearest_line): Remove unused
4268 local val.
4269
4270 1999-03-31 Nick Clifton <nickc@cygnus.com>
4271
4272 * config.bfd: Add support for arm-epoc-pe target.
4273 * configure.in: Add support for arm-epoc-pe target.
4274 * configure: Regenerate.
4275 * targets.c: Add support for arm-epoc-pe target.
4276 * coff-arm.c: Allow header files to override definition of
4277 TARGET_UNDERSCORE and USER_LABEL_PREFIX.
4278 * pe-arm.h: Allow previous header files to override definition of
4279 TARGET_LITTLE_SYM and TARGET_BIG_SYM.
4280 * pei-arm.h: Allow previous header files to override definition of
4281 TARGET_LITTLE_SYM and TARGET_BIG_SYM.
4282 * epoc-pe-arm.c: New file. Support arm-epoc-pe target.
4283 * epoc-pei-arm.c: New file. Support arm-epoc-pei target.
4284
4285 1999-03-30 Nick Clifton <nickc@cygnus.com>
4286
4287 * elf.c (elf_map_symbols): Handle the case where section
4288 symbols are generated for content-less sections which are
4289 not mapped to the output file.
4290
4291 * linker.c: Replace direct references to fields in BFD structure
4292 with accessor macros.
4293
4294 * elflink.h: Replace direct references to fields in BFD structure
4295 with accessor macros.
4296
4297 1999-03-25 Philip Blundell <pb@nexus.co.uk>
4298
4299 * config.bfd: Eliminate redundancy in checks for Linux/ARM.
4300
4301 * elf32-arm.h (elf32_arm_relocate_section): Take the rightshift into
4302 account when adjusting section symbols during a partial link.
4303
4304 1999-03-24 Nick Clifton <nickc@cygnus.com>
4305
4306 * coff-sparc.c (struct coff_reloc_map): Change type of field
4307 'bfd_reloc_val' to bfd_reloc_code_real_type.
4308 * elf-m10200.c (struct mn10200_reloc_map): Ditto.
4309 * elf-m10300.c (struct mn10300_reloc_map): Ditto.
4310 * elf32-arc.c (struct arc_reloc_map): Ditto.
4311 * elf32-d10v.c (struct d10v_reloc_map): Ditto.
4312 * elf32-d30v.c (struct d30v_reloc_map): Ditto.
4313 * elf32-fr30.c (struct fr30_reloc_map): Ditto.
4314 * elf32-m32r.c (struct m32r_reloc_map): Ditto.
4315 * elf32-sh.c (struct elf_reloc_map): Ditto.
4316 * elf32-sparc.c (struct elf_reloc_map): Ditto.
4317 * elf32-v850.c (struct v850_reloc_map): Ditto.
4318 * elf64-sparc.c (struct elf_reloc_map): Ditto.
4319 * elfarm-nabi.c (struct elf32_arm_reloc_map): Ditto.
4320 * elfarm-oabi.c (struct elf32_arm_reloc_map): Ditto.
4321
4322 1999-03-17 Martin Hunt <hunt@cygnus.com>
4323
4324 * syms.c (_bfd_stab_section_find_nearest_line): Changed this
4325 function so source-level assembly works. If multiple N_SOs
4326 are seen without and N_FUNs, create an indextable entry with
4327 a NULL function name.
4328
4329 1999-03-16 Gavin Romig-Koch <gavin@cygnus.com>
4330
4331 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data) Allow merging
4332 of certian similar cpus.
4333
4334 1999-03-16 Gavin Romig-Koch <gavin@cygnus.com>
4335
4336 * elf32-mips.c (_bfd_mips_elf_final_write_processing):
4337 Add the 5000. Change the architecture for the 5400 to mips4.
4338 (elf_mips_mach): Add r5000.
4339
4340 1999-03-11 Doug Evans <devans@casey.cygnus.com>
4341
4342 * cpu-i960.c (scan_i960_mach): Recognize i960:ka_sa and i960:kb_sb.
4343
4344 1999-03-11 Nick Clifton <nickc@cygnus.com>
4345
4346 * binary.c (binary_set_section_contents): Generate warning about
4347 huge file offsets for any section that will occupy file space, not
4348 just those that are loadable.
4349
4350 1999-02-24 Jim Blandy <jimb@zwingli.cygnus.com>
4351
4352 * libbfd.h: Regenerate after Nick Clifton's Feb 17 changes.
4353
4354 1999-02-22 Jim Lemke <jlemke@cygnus.com>
4355
4356 * elf32-ppc.c: Add ppc_elf_relax_section() for the ld option mpc860c0.
4357
4358 Mon Feb 22 18:26:51 1999 Ian Lance Taylor <ian@cygnus.com>
4359
4360 * elf-bfd.h (ELF_LINK_HASH_REF_REGULAR_NONWEAK): Define.
4361 * elflink.h: Revert all changes since Feb 16. Instead:
4362 (elf_link_add_object_symbols): Set REF_REGULAR_NONWEAK flag if
4363 appropriate. Copy it to version symbols.
4364 (elf_fix_symbol_flags): Set REF_REGULAR_NONWEAK for non ELF
4365 symbols if appropriate.
4366 (elf_adjust_dynamic_symbol): Set REF_REGULAR_NONWEAK for weakdef
4367 symbol if appropriate.
4368 (elf_link_output_extsym): If symbol is marked as undefined, and
4369 has no nonweak references, mark it as weak undefined.
4370
4371 Fri Feb 19 16:01:12 1999 Ian Lance Taylor <ian@cygnus.com>
4372
4373 * elflink.h (elf_merge_symbol): When overriding a dynamic
4374 definition with a weak undefined symbol, set NEEDS_PLT if it is a
4375 function.
4376 (elf_link_add_object_symbols): Don't copy the other field if we
4377 are overridding.
4378
4379 Thu Feb 18 18:07:43 1999 Ian Lance Taylor <ian@cygnus.com>
4380
4381 * elflink.h (elf_merge_symbol): Do not merge any symbol from a
4382 shared object with a weak undefined symbol.
4383
4384 1999-02-18 Nick Clifton <nickc@cygnus.com>
4385
4386 * elfarm-nabi.c: Set partial_inplace back to false.
4387
4388 1999-02-17 Nick Clifton <nickc@cygnus.com>
4389
4390 * coff-arm.c (TARGET_UNDERSCORE): Re-enable.
4391 (USER_LABEL_PREFIX): Set to "_".
4392
4393 The following patches are from: Scott Bambrough
4394 <scottb@corelcomputer.com>
4395
4396 * libaout.h (M_ARM6_NETBSD): Set to 143.
4397
4398 * reloc.c: Add ARM PIC relocs: BFD_RELOC_ARM_GOT12,
4399 BFD_RELOC_ARM_GOT32, BFD_RELOC_ARM_JUMP_SLOT, BFD_RELOC_ARM_COPY,
4400 BFD_RELOC_ARM_GLOB_DAT, BFD_RELOC_ARM_PLT32,
4401 BFD_RELOC_ARM_RELATIVE, BFD_RELOC_ARM_GOTOFF, BFD_RELOC_ARM_GOTPC.
4402 * bfd-in2.h: Regenerate.
4403
4404 * elfarm-nabi.c (elf32_arm_howto_table): Set partial_inplace to
4405 'true' as REL relocs are now being used. Add new PIC relocs:
4406 R_ARM_COPY, R_ARM_GLOB_DAT, R_ARM_JUMP_SLOT, R_ARM_RELATIVE,
4407 R_ARM_GOTOFF, R_ARM_GOTPC, R_ARM_GOT32, R_ARM_PLT32.
4408
4409 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Check byte order
4410 of targets.
4411 (elf32_arm_final_link_relocate): Change parameters so that entire
4412 reloc is passed. Add support for PIC relocs.
4413 (elf32_arm_relocate_section): Pass entire reloc to
4414 elf32_arm_final_link_relocate.
4415 (elf32_arm_check_relocs): Handle new PIC relocs.
4416 (elf32_arm_adjust_dynamic_symbol): New function.
4417 (elf32_arm_size_dynamic_sections): New function.
4418 (elf32_arm_discard_copies): New function.
4419 (elf32_arm_finish_dynamic_symbol): New function.
4420 (elf32_arm_finish_dynamic_sections): New function.
4421 (ELF_MAXPAGE_SIZE): Define.
4422 (bfd_elf32_bfd_reloc_type_lookup): Define.
4423 (elf_backend_relocate_section): Define.
4424 (elf_backend_adjust_dynamic_symbol): Define.
4425 (elf_backend_create_dynamic_sections): Define.
4426 (elf_backend_finish_dynamic_symbol): Define.
4427 (elf_backend_finish_dynamic_sections): Define.
4428 (elf_backend_size_dynamic_sections): Define.
4429 (elf_backend_plt_readonly): Define.
4430 (elf_backend_want_got_plt): Define.
4431 (elf_backend_want_plt_sym): Define.
4432
4433 Wed Feb 17 12:02:26 1999 Stan Cox <scox@cygnus.com>
4434
4435 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Make reginfo
4436 sections SEC_LINK_ONCE and SEC_LINK_DUPLICATES_SAME_SIZE.
4437 (_bfd_mips_elf_fake_sections): Likewise.
4438
4439 Wed Feb 17 12:07:23 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4440
4441 * elfarm-oabi.c (bfd_elf32_arm_allocate_interworking_sections,
4442 bfd_elf32_arm_get_bfd_for_interworking,
4443 bfd_elf32_arm_process_before_allocation): Define to avoid clash
4444 with elfarm-nabi.c.
4445
4446 * elf32-arm.h: Don't declare elf32_arm_info_to_howto.
4447 (elf32_thumb_to_arm_stub, elf32_arm_to_thumb_stub,
4448 elf32_arm_find_nearest_line): Make them static.
4449
4450 Tue Feb 16 22:44:37 1999 Ian Lance Taylor <ian@cygnus.com>
4451
4452 * elflink.h (elf_merge_symbol): Add pflags parameter. Change all
4453 callers. Do not merge a definition from a shared object with a
4454 weak undefined symbol.
4455 (elf_link_add_object_symbols): Do not change the symbol type or
4456 size if the old symbol overrides the new one.
4457
4458 1999-02-08 Nick Clifton <nickc@cygnus.com>
4459
4460 * config.bfd: Add support for strongarm target.
4461
4462 Mon Feb 8 11:18:14 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4463
4464 * elf32-m68k.c (reloc_map): Use the correct types for the struct
4465 fields instead of unsigned char.
4466
4467 Fri Feb 5 00:22:36 1999 Ian Lance Taylor <ian@cygnus.com>
4468
4469 * Makefile.am: Rebuild dependencies.
4470 * Makefile.in: Rebuild.
4471
4472 Thu Feb 4 22:30:13 1999 Ian Lance Taylor <ian@cygnus.com>
4473
4474 * configure.in: Change AC_PREREQ to 2.13. Remove AM_CYGWIN32.
4475 Change AM_EXEEXT to AC_EXEEXT and AM_PROG_INSTALL to
4476 AC_PROG_INSTALL. Add comments to uses of AC_DEFINE.
4477 * acinclude.m4: Add comments to uses of AC_DEFINE.
4478 * acconfig.h: Remove.
4479 * configure: Rebuild with current autoconf/automake.
4480 * aclocal.m4: Likewise.
4481 * config.in: Likewise.
4482 * Makefile.in: Likewise.
4483
4484 1999-02-04 DJ Delorie <dj@cygnus.com>
4485
4486 * libbfd.c (real_read): don't call fread for zero bytes. This
4487 covers up a bug (or misuse of bfd) that's exposed by Solaris.
4488
4489 Thu Feb 4 12:38:10 1999 Stan Cox <scox@cygnus.com>
4490
4491 * elf32-mips.c (mips_elf_relocate_section): Insure that the target
4492 of a jump is in the current 256 MB region.
4493
4494 Thu Feb 4 12:15:38 1999 Ian Lance Taylor <ian@cygnus.com>
4495
4496 * format.c (bfd_check_format_matches): Change last patch to only
4497 take effect for the binary target.
4498
4499 Wed Feb 3 19:40:12 1999 Ian Lance Taylor <ian@cygnus.com>
4500
4501 * elf32-i386.c (elf_i386_reloc_type_lookup): Add BFD_RELOC_CTOR.
4502
4503 Wed Feb 3 15:02:44 1999 Catherine Moore <clm@cygnus.com>
4504
4505 * elf32-fr30.c (fr30_elf_check_relocs): New routine.
4506
4507 Tue Feb 2 21:38:28 1999 Ian Lance Taylor <ian@cygnus.com>
4508
4509 * format.c (bfd_check_format_matches): If the target was
4510 previously specified, don't check other targets when checking for
4511 an archive file.
4512
4513 Tue Feb 2 18:16:43 1999 Catherine Moore <clm@cygnus.com>
4514
4515 * elf32-arm.h (elf32_arm_reloc_map): Removed.
4516 (elf32_arm_reloc_type_lookup): Removed
4517 * elfarm-nabi.c (elf32_arm_reloc_map): New.
4518 (elf32_arm_reloc_type_lookup): New.
4519 * elfarm-oabi.c (elf32_arm_reloc_map): New.
4520 (elf32_arm_reloc_type_lookup): New.
4521
4522 Mon Feb 1 19:49:21 1999 Catherine Moore <clm@cygnus.com>
4523
4524 * elfarm-nabi.c: Renamed from elf32-arm-newabi.c.
4525 * elfarm-oabi.c: Renamed from elf32-arm-oldabi.c
4526 * Makefile.am: Use new files.
4527 * Makefile.in: Regenerate.
4528 * configure.in: Use new files.
4529 * configure: Regenerate.
4530
4531 1999-02-01 Nick Clifton <nickc@cygnus.com>
4532
4533 * elf32-fr30.c (fr30_elf_gc_mark_hook): New function.
4534 (fr30_elf_gc_sweep_hook): New function.
4535 (elf_backend_can_gc_sections): Define.
4536
4537 Mon Feb 1 12:21:47 1999 Catherine Moore <clm@cygnus.com>
4538
4539 * targets.c (bfd_target_vector): Add bfd_elf32_littlearm_oabi_vec
4540 and bfd_elf32_bigarm_oabi_vec.
4541
4542 Mon Feb 1 11:46:31 1999 Catherine Moore <clm@cygnus.com>
4543
4544 * Makefile.am (elf32-arm-oldabi.lo): New.
4545 (elf32-arm-newabi.lo): New.
4546 * Makefile.in: Regenerate.
4547 * config.bfd (thumb-*-elf): Remove definition of targ_underscore.
4548 (arm-*-elf): Likewise.
4549 (arm-*-oabi): New.
4550 (thumb-*-oabi): New.
4551 * configure: Regenerate.
4552 * configure.in (bfd_elf32_littlearm_oabi_vec): New.
4553 (bfd_elf32_bigarm_oabi_vec): New.
4554 * elf32-arm-newabi.c: New.
4555 * elf32-arm-oldabi.c: New.
4556 * elf32-arm.c: Removed.
4557 * elf32-arm.h: New.
4558
4559 Mon Feb 1 11:52:12 1999 Frank Ch. Eigler <fche@cygnus.com>
4560
4561 * binary.c (binary_set_section_contents): Omit warnings for
4562 unloadable sections.
4563
4564 1999-01-31 Michael Meissner <meissner@cygnus.com>
4565
4566 * config.bfd (powerpc{,le}-*-vxworks*): Add aliases to
4567 powerpc{,le}-*-eabi.
4568
4569 1999-01-29 Nick Clifton <nickc@cygnus.com>
4570
4571 * dwarf2.c (read_unsigned_leb128): Remove unused variables.
4572 * dwarf2.c (read_signed_leb128): Remove unused variables.
4573
4574 Fri Jan 29 00:47:21 1999 H.J. Lu <hjl@gnu.org>
4575
4576 * elf.c (assign_file_positions_for_segments): Only adjust
4577 p_align when needed.
4578
4579 Thu Jan 28 20:05:22 1999 Ian Lance Taylor <ian@cygnus.com>
4580
4581 * binary.c (binary_set_section_contents): Don't return early for a
4582 non-loadable section, in case the first section is non-loadable.
4583 Don't set the low lma for a SEC_NEVER_LOAD section. From Maciej
4584 W. Rozycki <macro@ds2.pg.gda.pl>.
4585
4586 1999-01-28 Nick Clifton <nickc@cygnus.com>
4587
4588 * elf32-fr30.c (fr30_reloc_map): Add R_FR30_GNU_VTINHERIT and
4589 R_FR30_GNU_VTENTRY relocs.
4590
4591 Thu Jan 28 11:08:16 1999 Catherine Moore <clm@cygnus.com>
4592
4593 * elflink.h (elf_link_output_sym): Zero syms which are
4594 part of sections which have been excluded.
4595
4596 Wed Jan 27 13:35:35 1999 Stan Cox <scox@cygnus.com>
4597
4598 * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed F_PIC
4599 to F_PIC_INT.
4600 * coffcode.h (coff_set_arch_mach_hook): Removed F_ARM_2a and
4601 F_ARM_3M labels. Changed F_PIC to F_PIC_INT.
4602
4603 1999-01-27 Nick Clifton <nickc@cygnus.com>
4604
4605 * elf32-fr30.c (fr30_elf_howto_table): Fix name of R_FR30_48
4606 relocation.
4607 (fr30_final_link_relocate): Use computed value as result of
4608 relocation.
4609
4610 1999-01-26 Frank Ch. Eigler <fche@cygnus.com>
4611
4612 * binary.c (binary_set_section_contents): Emit warning for
4613 huge file offsets due to widely-dispersed section LMAs.
4614
4615 Mon Jan 18 03:35:35 1999 Ian Lance Taylor <ian@cygnus.com>
4616
4617 * elf.c (assign_file_positions_for_segments): If not D_PAGED,
4618 align first section to largest section alignment, not first
4619 section alignment.
4620
4621 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
4622
4623 * configure.in: Require autoconf 2.12.1 or higher.
4624
4625 Tue Dec 22 15:21:41 1998 Catherine Moore <clm@cygnus.com>
4626
4627 * archures.c (bfd_mach_i386_i386_intel_syntax): Define.
4628 * bfd-in2.h: Likewise.
4629 * cpu-i386.c (bfd_i386_arch_intel_syntax): New.
4630
4631 1998-12-16 Gavin Romig-Koch <gavin@cygnus.com>
4632
4633 * archures.c,bfd-in2.h (bfd_mach_mips4111): New.
4634 * cpu-mips.c: Add support for and independent 4111.
4635 * elf32-mips.c (elf_mips_mach): E_MIPS_MACH_4111 -> bfd_mach_mips4111.
4636 (_bfd_mips_elf_final_write_processing):
4637 bfd_mach_mips4111 -> E_MIPS_ARCH_3 | E_MIPS_MACH_4111.
4638
4639 1998-12-15 Gavin Romig-Koch <gavin@cygnus.com>
4640
4641 * elf32-mips.c (elf_mips_abi_name): New.
4642 (_bfd_mips_elf_merge_private_bfd_data): Compare EF_MIPS_ABI flags.
4643
4644 1998-12-12 Gavin Romig-Koch <gavin@cygnus.com>
4645
4646 * elf32-mips.c (_bfd_mips_elf_final_write_processing):
4647 Handle bfd_mach_mips4300.
4648
4649 1998-12-11 Ulrich Drepper <drepper@cygnus.com>
4650
4651 * elf32-i386.c: Remove leaked development code from patch
4652 1998-12-10 by Richard Henderson.
4653
4654 1998-12-10 Richard Henderson <rth@cygnus.com>
4655
4656 * elf32-i386.c (elf_i386_relocate_section): Don't fail relocations
4657 in debug sections for symbol defined externally.
4658
4659 Thu Dec 10 10:58:38 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4660
4661 * targets.c (bfd_target_vector): Remove duplicate entry for
4662 tekhex_vec.
4663
4664 1998-12-09 Nick Clifton <nickc@cygnus.com>
4665
4666 * elf32-fr30.c (fr30_elf_howto_table): Set src_mask fields to 0
4667 since we are using RELAs.
4668
4669 Tue Dec 8 22:15:48 1998 Ian Lance Taylor <ian@cygnus.com>
4670
4671 SCO Open Server Release 5 core file support, from Jouke Numan
4672 <jnuman@hiscom.nl>:
4673 * sco5-core.c: New file.
4674 * configure.in (i[3456]86-*-sco3.2v5*): Use sco5-core.lo.
4675 (sco5-core.lo): Define SCO5_CORE in COREFLAG.
4676 * Makefile.am: Rebuild dependencies.
4677 (OPTIONAL_BACKENDS): Add sco5-core.lo.
4678 (OPTIONAL_BACKENDS_CFILES): Add sco5-core.c.
4679 * bfd.c (struct _bfd): Add sco5_core_data field to tdata.
4680 * targets.c (sco5_core_vec): Add to target list if SCO5_CORE.
4681 * bfd-in2.h, configure, Makefile.in: Rebuild.
4682
4683 Tue Dec 8 19:38:42 1998 Mark Klein <mklein@dis.com>
4684
4685 * config.bfd (hppa*-*-mpeix*): New target.
4686 * configure.in: Add AC_HEADER_DIRENT.
4687 (hppa*-*-mpeix*): New target.
4688 * configure.host (hppa*-*-mpeix*): New host.
4689 * hpux-core.c: Check HOST_HPPAMPEIX. Use HAVE_DIRENT_H and
4690 friends rather than just including <sys/dir.h>.
4691 * som.h (struct som_symbol): Add hppa_priv_level and apto
4692 tc_data. Change all users.
4693 (struct somdata): Add comp_unit field.
4694 (obj_som_compilation_unit): Define.
4695 (bfd_som_attach_compilation_unix): Declare.
4696 * som.c: Check HOST_HPPAMPEIX.
4697 (struct som_misc_symbol_info): Add new field priv_level.
4698 (som_object_setup): Add current_offset parameter. Change all
4699 callers.
4700 (setup_sections): Likewise.
4701 (som_object_p): For EXECLIBMAGIC, read the lst header.
4702 (som_write_symbol_strings): Add compilation_unit parameter.
4703 Change all callers.
4704 (som_finish_writing): Write out compilation_unit.
4705 (som_bfd_derive_misc_symbol_info): Set priv_level.
4706 (som_build_and_write_symbol_table): Set xleast field to 3.
4707 (som_slurp_symbol_table): Set symbol priv_level.
4708 (bfd_som_attach_compilation_unit): New function.
4709 (som_bfd_ar_write_symbol_stuff): Set xleast field to 3. Set
4710 priv_level into symbol_value.
4711 * configure, config.in: Rebuild.
4712
4713 Tue Dec 8 16:21:35 1998 Ian Lance Taylor <ian@cygnus.com>
4714
4715 * hpux-core.c (hpux_core_core_file_p): Change call to nonexistent
4716 warning function to call _bfd_error_handler instead.
4717
4718 * libbfd.c (COERCE32): Cast through unsigned long and long to
4719 avoid bug in old version of gcc.
4720
4721 * elf64-alpha.c (elf64_alpha_additional_program_headers): Remove.
4722 (elf_backend_additional_program_headers): Don't define.
4723
4724 1998-12-08 Nick Clifton <nickc@cygnus.com>
4725
4726 * elf32-fr30.c (fr30_final_link_relocate): Fix PC relative
4727 relocations to include offset of 2 included in the insns, and the
4728 offset of the relocs within the section.
4729
4730 Wed Dec 2 15:03:59 1998 David Taylor <taylor@texas.cygnus.com>
4731
4732 The following changes were made by David Taylor
4733 <taylor@texas.cygnus.com>, Edith Epstein
4734 <eepstein@sophia.cygnus.com>, Jim Blandy
4735 <jimb@zwingli.cygnus.com>, and Elena Zannoni
4736 <ezannoni@kwikemart.cygnus.com> as part of the project to merge in
4737 changes originally made by HP; HP did not create ChangeLog
4738 entries.
4739
4740 * aclocal.m4, configure, Makefile.in: Rebuilt using latest
4741 automake macro library.
4742
4743 * hpux-core.c (hpux_core_core_file_p): this function now
4744 understands HPUX 10.30 thread info. Yes, the thread stacks can be
4745 found in the corefile! Also, in hpux_core_core_file_p, if we
4746 encounter a section with an unknown type, don't punt. Instead,
4747 just skip it. Also, count the number of sections of known type
4748 that we encounter. If we encounter at least one good one, then
4749 we'll declare that the file is a core file. If we encounter any
4750 unknown ones but some known ones, then we'll issue a warning (but
4751 still declare it to be a core file). Also, correctly decide when a
4752 file is not a core.
4753 (PROC_INFO_HAS_THREAD_ID): define if CORE_ANON_SHMEM defined.
4754 (CORE_ANON_SHMEM): define if not defined.
4755 (hpux_core_struct): add members lwpid and user_tid.
4756 (core_kernel_thread_id, core_user_thread_id): new macros.
4757 (make_bfd_asection): use bfd_alloc to allocate room for a copy of
4758 the name before storing it in the bfd.
4759 (hpux_core_core_file_p): handle threads.
4760
4761 * libhppa.h (GET_FIELD): protect against redefinition.
4762 (HPPA_WIDE): define.
4763 (GET_FIELD): define.
4764 (GET_BIT): define.
4765 (MASK): define.
4766 (CATENATE): define.
4767 (ELEVEN): define.
4768 (sign_extend): redefine.
4769 (assemble_6): define.
4770 (assemble_12): rewrite.
4771 (assemble_16): define.
4772 (assemble_16a): define.
4773 (assemble_17): rewrite.
4774 (assemble_22): define.
4775
4776 1998-12-07 Nick Clifton <nickc@cygnus.com>
4777
4778 * elf32-fr30.c (fr30_final_link_relocate): Using signed
4779 relocations for signed values.
4780
4781 Sun Dec 6 16:30:33 1998 Ian Lance Taylor <ian@cygnus.com>
4782
4783 * mipsbsd.c (MY(set_arch_mach)): Make static.
4784 * aoutx.h (NAME(aout,machine_type)): For bfd_arch_mips, use
4785 bfd_mach_mips* macros rather than simple numbers.
4786
4787 COFF weak symbol support, based on patches from Mark Elbrecht
4788 <snowball3@usa.net>:
4789 * coffcode.h (coff_slurp_symbol_table): Handle C_WEAKEXT.
4790 * coffgen.c (coff_renumber_symbols): Handle weak symbols.
4791 (coff_write_alien_symbol): Likewise.
4792 * cofflink.c (coff_link_check_ar_symbols): Likewise.
4793 (coff_link_add_symbols): Likewise.
4794 (_bfd_coff_link_input_bfd): Likewise.
4795 (_bfd_coff_write_global_sym): Likewise.
4796
4797 * elf.c (copy_private_bfd_data): Always initialize the
4798 includes_phdrs field.
4799
4800 * elflink.h (elf_fix_symbol_flags): Check for case where a non-ELF
4801 file defines a symbol first mentioned in an ELF file.
4802
4803 * bfd-in.h: Always define BFD_HOST_64_BIT and BFD_HOST_U_64_BIT if
4804 possible, rather than only if BFD64.
4805 * elflink.h (compute_bucket_count): Just check BFD_HOST_U_64_BIT,
4806 not __GNUC__.
4807 * bfd-in2.h: Rebuild.
4808
4809 * srec.c (srec_set_section_contents): Correct test to avoid
4810 switching to 4 byte addresses after seeing a second section which
4811 requires 3 byte addresses. From Joel Schantz
4812 <joel.schantz@argosys.boeing.com>.
4813
4814 * config.bfd (m68*-*-gnu*): New target. From Aymeric Vincent
4815 <aymeric.vincent@emi.u-bordeaux.fr>.
4816
4817 1998-12-04 Jim Blandy <jimb@zwingli.cygnus.com>
4818
4819 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Fix logic to
4820 decide whether the output file is -mrelocatable-lib,
4821 -mrelocatable, or neither. (gdb.base/nodebug.exp)
4822
4823 1998-12-03 Nick Clifton <nickc@cygnus.com>
4824
4825 * elf32-fr30.c: Add support for R_FR30_48 reloc.
4826 * reloc.c: Add BFD_RELOC_FR30_48 relocation.
4827 * bfd-in2.h: Regenerate.
4828 * libbfd.h: Regenerate
4829
4830 Wed Dec 2 00:58:37 1998 Ian Lance Taylor <ian@cygnus.com>
4831
4832 * elflink.h (elf_adjust_dynamic_symbol): Warn on an attempt to
4833 link against a dynamic symbol with no type or size.
4834
4835 1998-12-01 Ulrich Drepper <drepper@cygnus.com>
4836
4837 * elf32-i386.c (i386_check_relocs) [R_386_32]: Don't emit
4838 relocation for section which does not get loaded.
4839 (elf_i386_relocate_section) [R_386_32]: Likewise.
4840
4841 Tue Dec 1 11:33:33 1998 Jim Wilson <wilson@cygnus.com>
4842
4843 * coff-h8300.c (h8300_bfd_link_add_symbols): Make reloc_size,
4844 reloc_count and i long instead of unsigned long. Handle error
4845 return from bfd_canonicalize_reloc.
4846
4847 1998-12-01 Nick Clifton <nickc@cygnus.com>
4848
4849 * elf32-v850.c (v850_elf_relocate_section): Detect the absence of
4850 a hash table.
4851
4852 Mon Nov 30 15:28:09 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
4853
4854 * elf32-sh.c (elf/sh.h): Include.
4855 sh_reloc_type: Delete. Changed all references to elf_sh_reloc_type.
4856 (sh_elf_howto_tab): Add HOWTO for R_SH_SWITCH8.
4857 (sh_reloc_map): Map BFD_RELOC_8_PCREL to R_SH_SWITCH8.
4858 (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
4859 * Makefile.in: Add dependency of elf32-sh.lo on $(INCDIR)/elf/sh.h.
4860
4861 Fri Nov 27 17:51:38 1998 Geoff Keating <geoffk@ozemail.com.au>
4862
4863 * elflink.h (compute_bucket_count): Don't allow minsize==0, it
4864 causes division by zero later on.
4865
4866 Thu Nov 26 11:19:35 1998 Dave Brolley <brolley@cygnus.com>
4867
4868 * elf32-fr30.c (fr30_elf_pc9_reloc,fr30_elf_pc12_reloc): Not
4869 needed.
4870
4871 1998-11-25 DJ Delorie <dj@cygnus.com>
4872
4873 * coff-i386.c (i3coff_object_p): Remove hack. Use new emulation
4874 hook now.
4875
4876 Tue Nov 24 10:25:27 1998 Nick Clifton <nickc@cygnus.com>
4877
4878 * elf32-fr30.c (fr30_elf_relocate_section): Call
4879 fr30_final_link_relocate.
4880 (fr30_final_link_relocate): New function: Handle I20 and I32
4881 relocs.
4882 (fr30_elf_i32_reloc): New function: Handle I32 relocs.
4883 (fr30_elf_pc9_reloc): New function: Handle 9_PCREL relocs.
4884 (fr30_elf_pc12_reloc): New function: Handle 12_PCREL relocs.
4885
4886 * elf32-v850.c (v850_elf_relocate_section): Reset hi16s reloc
4887 chain to empty.
4888
4889 The following changes are based on a patch submitted by Gianluca
4890 Moro <glctr@abc.it>:
4891
4892 (v850_elf_perform_relocation): Only update a hi16s reloc if it has
4893 not already been updated.
4894 (find_remembered_hi16s_reloc): New parameter 'already_found'
4895 returns state of remembered hi16s reloc.
4896 (remember_hi16s_reloc): Set 'found' field to false.
4897 (hi16s_location): Add 'found' field.
4898
4899 1998-11-23 DJ Delorie <dj@cygnus.com>
4900
4901 * coff-i386.c (bfd_pe_dll_not_recognized_hack): the linker wants
4902 to see .DLL files as unrecognized.
4903 (i3coff_object_p): Sorry, had to hack it to not recognize these
4904 files (pei-i386) on request.
4905
4906 1998-11-23 DJ Delorie <dj@cygnus.com>
4907
4908 * opncls.c (bfd_make_readable): need more cleanup for symbols and
4909 relents. Call bfd_check_format to reinitialize.
4910
4911 Fri Nov 20 14:21:36 1998 Nick Clifton <nickc@cygnus.com>
4912
4913 * elf32-fr30.c (fr30_elf_relocate_section): Remove spurious
4914 warnings.
4915
4916 Thu Nov 19 14:42:15 1998 Geoffrey Noer <noer@cygnus.com>
4917
4918 * aclocal.m4: regenerate
4919 * configure: regenerate
4920
4921 Tue Nov 17 20:23:35 1998 Richard Henderson <rth@cygnus.com>
4922
4923 * elf-bfd.h (struct elf_link_hash_entry): Add vtable_entries_size.
4924 * elf.c (_bfd_elf_link_hash_newfunc): Clear it.
4925 * elflink.h (elf_gc_propagate_vtable_entries_used): Copy it, and
4926 respect it as an upper bound on what memory to reference.
4927 (elf_gc_smash_unused_vtentry_relocs): Likewise.
4928 (elf_gc_record_vtentry): Handle as-yet undefined vtables. Set and
4929 update vtable_entries_size appropriately.
4930
4931 Tue Nov 17 15:28:31 1998 Nick Clifton <nickc@cygnus.com>
4932
4933 * elf32-fr30.c (fr30_reloc_type_lookup): Used integers to hold
4934 reloc number.
4935
4936 Mon Nov 16 22:19:21 1998 DJ Delorie <dj@cygnus.com>
4937
4938 * archive.c (bfd_ar_hdr_from_filesystem): support BFD_IN_MEMORY
4939 bfds; they have no "file" so we fake it.
4940 * bfd-in2.h: add bfd_make_writable and bfd_make_readable (regen)
4941 * libbfd.c (bfd_write): Allow writing to BFD_IN_MEMORY bfds by
4942 resizing the memory buffer.
4943 * opncls.c (bfd_make_writable): New function; lets you write a
4944 bfd_create'd bfd to an in-memory buffer.
4945 (bfd_make_readable): New function; lets you read back that buffer
4946 as if it were from bfd_openr. Used to build generated archive
4947 members (winsup's ld's dlltool)
4948
4949 Mon Nov 16 19:15:19 1998 Dave Brolley <brolley@cygnus.com>
4950
4951 * po/bfd.pot: Regenerated.
4952
4953 Mon Nov 16 10:57:06 1998 Nick Clifton <nickc@cygnus.com>
4954
4955 * elf32-v850.c (hi16s_location): Replaced fixed size array with
4956 linked list.
4957
4958 Sun Nov 15 20:28:25 1998 Richard Henderson <rth@cygnus.com>
4959
4960 * elf64-alpha.c (elf64_alpha_relax_section): Search for the proper
4961 element of the gotentry list for local symbols too.
4962 (elf64_alpha_relocate_section): Unify local and global handling.
4963 Assert that gotent->use_count > 0.
4964
4965 Sat Nov 14 15:16:01 1998 Ian Lance Taylor <ian@cygnus.com>
4966
4967 * configure.in (vms_alpha_vec): Rename from evax_alpha_vec, and
4968 update for file name changes of July 2, 1998.
4969 (vms_vax_vec): New.
4970 * configure: Rebuild.
4971
4972 Thu Nov 12 19:19:54 1998 Dave Brolley <brolley@cygnus.com>
4973
4974 * po/bfd.pot: Regenerated.
4975
4976 Tue Nov 10 16:17:06 1998 Geoffrey Noer <noer@cygnus.com>
4977
4978 * acinclude.m4, config.bfd: detect cygwin* instead of cygwin32*.
4979 * aclocal.m4, configure: regenerate
4980
4981 Tue Nov 10 15:13:59 1998 Nick Clifton <nickc@cygnus.com>
4982
4983 * elf.c (prep_headers): Add support for bfd_arch_fr30.
4984
4985 Tue Nov 10 13:37:36 1998 Felix Lee <flee@cygnus.com>
4986
4987 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE,
4988 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): didn't define macro when value
4989 was cached.
4990 * aclocal.m4, configure: regenerated.
4991
4992 Tue Nov 10 14:31:01 1998 Catherine Moore <clm@cygnus.com>
4993
4994 * elf32-d10v.c (reloc_type): Add R_D10V_GNU_VTINHERIT and
4995 R_D10V_GNU_VTENTRY relocs.
4996 (elf_d10v_howto_table): Likewise.
4997 (d10v_reloc_map d10v_reloc_map): Likewise.
4998 (elf32_d10v_gc_mark_hook): New.
4999 (elf32_d10v_gc_sweep_hook): New.
5000 (elf32_d10v_check_relocs): New.
5001 (elf32_d10v_relocate_section): New.
5002 (elf_backend_relocate_section): Define.
5003 (elf_backend_can_gc_sections): Define.
5004
5005 Sat Nov 7 18:07:51 1998 Peter Schauer <peter.schauer@regent.e-technik.tu-muenchen.de>
5006
5007 * Makefile.am (BFD32_BACKENDS): Move vms files here...
5008 (BFD64_BACKENDS): ...from here.
5009 (BFD32_BACKENDS_CFILES): Move vms files here...
5010 (BFD64_BACKENDS_CFILES): ...from here.
5011 * Makefile.in: Rebuild.
5012
5013 Wed Nov 4 15:58:48 1998 Nick Clifton <nickc@cygnus.com>
5014
5015 * Makefile.am: Add FR30 target.
5016 * Makefile.in: Add FR30 target.
5017 * archures.c: Add support for FR30.
5018 * config.bfd: Add support for FR30.
5019 * configure.in: Add support for FR30.
5020 * reloc.c: Add support for FR30 relocations.
5021 * targets.c: Add support for FR30 relocations.
5022 * bfd-in2.h: Regenerate.
5023 * configure: Regenerate.
5024 * libbfd.h: Regenerate.
5025 * cpu-fr30.c: New file.
5026 * elf32-fr30.c: New file.
5027
5028 Mon Nov 2 14:59:33 1998 Geoffrey Noer <noer@cygnus.com>
5029
5030 * configure.in: detect cygwin* instead of cygwin32*
5031 * configure: regenerate
5032
5033 Sun Nov 1 19:32:28 1998 Jeffrey A Law (law@cygnus.com)
5034
5035 * elf-m10300.c (mn10300_elf_relax_section): Do not use alloca,
5036 use bfd_malloc and free instead and check return value from bfd_malloc.
5037
5038 Sun Nov 1 16:20:35 1998 Ian Lance Taylor <ian@cygnus.com>
5039
5040 * libbfd-in.h (_bfd_dwarf1_find_nearest_line): Declare.
5041 * libbfd.h: Rebuild.
5042
5043 * elf32-mips.c (mips_elf_dynsym_sec_names): Comment out.
5044 (SIZEOF_MIPS_DYNSYM_SECNAMES): Likewise.
5045 (MIPS_TEXT_DYNSYM_SECN): Likewise.
5046 (_bfd_mips_elf_fake_sections): Don't set sh_info field of a .hash
5047 section.
5048 (struct mips_elf_link_hash_table): Remove dynsym_sec_strindex
5049 field.
5050 (mips_elf_link_hash_table_create): Don't initialize
5051 dynsym_sec_strindex.
5052 (mips_elf_gc_mark_hook): Add default case to avoid warning.
5053 (mips_elf_size_dynamic_sections): Generate a section symbol for
5054 every output section.
5055 (mips_elf_finish_dynamic_sections): Count all sections for
5056 DT_MIPS_UNREFEXTNO.
5057 (mips_elf_finish_dynamic_sections): Use dynamic symbols for all
5058 output sections.
5059
5060 Sun Nov 1 12:46:53 1998 Geoff Keating <geoffk@ozemail.com.au>
5061
5062 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Allocate two slots
5063 for later PLT entries in large PLTs.
5064 (ppc_elf_finish_dynamic_symbol): Allow for the extra slots.
5065
5066 Sat Oct 31 20:10:09 1998 Jeffrey A Law (law@cygnus.com)
5067
5068 * elf32-ppc.c (ppc_elf_reload_section): Fix typo.
5069
5070 1998-10-26 15:58 Ulrich Drepper <drepper@cygnus.com>
5071
5072 * elf-bfd.h (struct elf_link_hash_entry): Add new field elf_hash_value.
5073 * elflink.h (elf_collect_hash_codes): New function. This function is
5074 called for each exported symbol and we compute the ELF hash value for
5075 it.
5076 (compute_bucket_value): New function. It is called from
5077 size_dynamic_sections to determine the hash table size. When we are
5078 optimizing a better, but slower, algorithm is used.
5079 (size_dynamic_sections): Call compute_bucket_value.
5080
5081 * elf.c (bfd_elf_hash): Optimize the hash function a bit.
5082
5083 Mon Oct 19 20:03:21 1998 Catherine Moore <clm@cygnus.com>
5084
5085 * elf32-sh.c: Add HOWTO entries for R_SH_GNU_VTINHERIT and
5086 R_SH_GNU_VTENTRY.
5087 (sh_elf_gc_mark_hook): New.
5088 (sh_elf_gc_sweep_hook): New.
5089 (sh_elf_check_relocs): New.
5090 (elf_backend_can_gc_sections): Define.
5091
5092 Mon Oct 19 16:57:05 1998 Felix Lee <flee@cygnus.com>
5093
5094 * acinclude.m4: undo previous gettext change
5095 * aclocal.m4: rebuild with right version of aclocal.
5096
5097 Mon Oct 19 01:47:21 1998 Felix Lee <flee@cygnus.com>
5098
5099 * acinclude.m4, aclocal.m4: move gettext-related fragments from
5100 aclocal.m4 to acinclude.m4, so they don't get lost.
5101
5102 * elfcore.h: rewrite for better corefile support.
5103 * elf.c (elfcore_*): new functions.
5104 * elf-bfd.h (elf_obj_tdata): new structure members.
5105 * acconfig.h, acinclude.m4, configure.in: add feature-tests for
5106 flavor of procfs.
5107 * aclocal.m4, config.in, configure, Makefile.in: regenerated.
5108
5109 Fri Oct 16 14:07:45 1998 Catherine Moore <clm@cygnus.com>
5110
5111 * elf32-m32r.c: Add HOWTO entries for R_M32R_GNU_VTINHERIT
5112 and R_M32R_GNU_VTENTRY.
5113 (elf_backend_can_gc_sections): Define.
5114 (m32r_elf_check_relocs): New.
5115 (m32r_elf_gc_mark_hook): New.
5116 (m32r_elf_gc_sweep_hook): New.
5117 (m32r_elf_relocate_section): Handle VT relocs.
5118
5119 Mon Oct 12 14:18:40 1998 Nick Clifton <nickc@cygnus.com>
5120
5121 * coff-arm.c (arm_relocate_section): Remove redundant test.
5122
5123 * bfd-in2.h (struct reloc_howto_struct): Improve comment to make
5124 cleat that the 'bitsize' field is the size of the bitfield AFTER
5125 relocation not before.
5126
5127 * elf32-m32r.c (R_M32R_18_PCREL): Fix size of bitfield.
5128
5129 * coff-mips.c (mips_relocate_hi): Cope with missing refhi or reflo
5130 relocs.
5131
5132 Tue Oct 6 09:20:44 1998 Catherine Moore <clm@cygnus.com>
5133
5134 * elf32-sparc.c: Add HOWTO entries for R_SPARC_GNU_VTINHERIT and
5135 R_SPARC_GNU_VTENTRY.
5136 (elf32_sparc_check_relocs): Handle them.
5137 (elf32_sparc_reloc_type_lookup): Likewise.
5138 (elf32_sparc_relocate_section): Likewise.
5139 (elf32_sparc_gc_mark_hook): New.
5140 (elf32_sparc_gc_sweep_hook): New.
5141
5142 Mon Oct 5 14:55:30 1998 Jeffrey A Law (law@cygnus.com)
5143
5144 * som.c (som_finish_writing): Perform some sanity checks when
5145 writing an executable or shared library.
5146
5147 Mon Oct 5 12:02:31 1998 Gavin Romig-Koch <gavin@cygnus.com>
5148
5149 * dwarf1.c : New file. Adds _bfd_dwarf1_find_nearest_line.
5150 * configure.in (elf): Add dwarf1.lo.
5151 * elf_bfd.h (elf_ob_tdata): Add dwarf1_find_line_info.
5152 * elf.c (_bfd_elf_find_nearest_line): Add call to
5153 _bfd_dwarf1_find_nearest_line.
5154 * elf32-mips.c (_bfd_mips_elf_find_nearest_line):
5155 Add call to _bfd_dwarf1_find_nearest_line.
5156 * configure: Rebuilt.
5157
5158 Mon Oct 5 10:06:22 1998 Catherine Moore <clm@cygnus.com>
5159
5160 * elflink.h (elf_gc_sections): Do not allow garbage
5161 collection if dynamic sections have been created.
5162
5163 Mon Oct 5 09:07:37 1998 Catherine Moore <clm@cygnus.com>
5164
5165 * elf32-v850.c: Add HOWTO entries for R_V850_GNU_VTINHERIT and
5166 R_V850_GNU_VTENTRY.
5167 (v850_elf_check_relocs): Handle VTINHERIT and VTENTRY relocs.
5168 (v850_elf_perform_relocation): Likewise.
5169 (v850_elf_final_link_relocate): Likewise.
5170 (v850_elf_relocate_section): Likewise.
5171 (v850_elf_gc_sweep_hook): New routine.
5172 (v850_elf_gc_mark_hook): New routine.
5173 (elf_backend_can_gc_sections): Define.
5174
5175 Mon Oct 5 09:04:25 1998 Catherine Moore <clm@cygnus.com>
5176
5177 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Don't assume
5178 that dynobj exists.
5179
5180 Sun Oct 4 23:29:34 1998 David Edelsohn <edelsohn@mhpcc.edu>
5181
5182 * rs6000-core.c (rs6000coff_core_file_matches_executable_p):
5183 Declare size as bfd_size_type.
5184 (rs6000coff_get_section_contents): Declare count as bfd_size_type.
5185
5186 Sun Oct 4 20:38:29 1998 Jeffrey A Law (law@cygnus.com)
5187
5188 * cpu-hppa.c (bfd_hppa20_arch): Define. Link it into the bfd_hppa_arch
5189 structure.
5190 * som.c (CPU_PA_RISC2_0): Define.
5191 (_PA_RISC2_0_ID): Likewise.
5192 (som_finish_writing): Use CPU_PA_RISC2_0 for the system_id as needed.
5193
5194 Sun Oct 4 21:19:09 1998 Ian Lance Taylor <ian@cygnus.com>
5195
5196 * elflink.h (elf_link_add_object_symbols): When a versioned symbol
5197 has a base which is already defined, only add the referenced
5198 symbol to the dynamic symbol table if it is defined or referenced
5199 by a regular file.
5200
5201 * elf32-i386.c (elf_i386_info_to_howto_rel): Handle vtable relocs
5202 correctly.
5203
5204 1998-09-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5205
5206 * elflink.h (elf_link_add_object_symbols): Undo last change.
5207
5208 Wed Sep 23 16:09:31 1998 Richard Henderson <rth@cygnus.com>
5209
5210 * elflink.h (elf_link_add_object_symbols): Don't record a dynamic
5211 symbol for the indirect alias to a versioned symbol.
5212
5213 Mon Sep 21 12:15:22 1998 Catherine Moore <clm@cygnus.com>
5214
5215 * elf32-i386.c (elf32_i386_vtinherit_howto): New.
5216 (elf32_i386_vtentry_howto): New.
5217 (elf_i386_reloc_type_lookup): Return elf32_i386_vtentry_howto
5218 or elf32_i386_vtinherit_howto on lookup.
5219
5220 Sun Sep 20 00:48:07 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5221
5222 * elf32-m68k.c: Include "elf/m68k.h". Remove definition of enum
5223 reloc_type. Rename R_68K__max to R_68K_max.
5224 (howto_table): Use _bfd_elf_rel_vtable_reloc_fn for a VTENTRY
5225 reloc.
5226
5227 Sun Sep 20 00:09:25 1998 Chris Torek <torek@bsdi.com>
5228
5229 * libbfd.c (bfd_getb32): Rewrite expression to get better code.
5230 (bfd_getl32, bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
5231
5232 * libbfd.c (bfd_log2): Cast to bfd_vma before shifting, not
5233 after.
5234
5235 Sat Sep 19 22:42:23 1998 Doug Rabson <dfr@nlsystems.com>
5236
5237 * elflink.h (elf_link_add_object_symbols): Ensure that the warning
5238 message has a null byte terminator.
5239
5240 Fri Sep 18 14:35:29 1998 Nick Clifton <nickc@cygnus.com>
5241
5242 * elf32-v850.c (v850_elf_perform_relocation): Ignore contents of
5243 word subject to R_V850_32 relocation.
5244
5245 Thu Sep 17 17:20:36 1998 Nick Clifton <nickc@cygnus.com>
5246
5247 * dwarf2.c: Add comment describing problem computing line numbers
5248 for undefined symbols at link time.
5249
5250 Thu Sep 17 16:03:28 1998 Richard Henderson <rth@cygnus.com>
5251
5252 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't
5253 transform a defweak into a plt entry.
5254 (elf64_alpha_calc_dynrel_sizes): Allow room for secondary
5255 plt entry references to receive a RELATIVE reloc.
5256 (elf64_alpha_finish_dynamic_symbol): Fill them in.
5257 (elf64_alpha_relocate_section): Assert we don't overrun
5258 the allocated relocation space.
5259
5260 Wed Sep 16 18:03:13 1998 Nick Clifton <nickc@cygnus.com>
5261
5262 * elf.c (swap_out_syms): Always treat section symbols as
5263 special, even if they are attached to a common section.
5264
5265 Wed Sep 16 10:34:13 1998 Nick Clifton <nickc@cygnus.com>
5266
5267 * elf32-v850.c (v850_elf_symbol_processing): Move symbols in
5268 sections with v850 common section attributes into named v850
5269 common sections.
5270 (v850_elf_add_symbol_hook): Move symbols in sections with v850
5271 common section attributes into named v850 common sections.
5272
5273 Wed Sep 16 11:26:49 CDT 1998 Catherine Moore <clm@cygnus.com>
5274
5275 * elf32-arm.c (elf32_arm_gc_mark_hook): Remove print
5276 statement.
5277
5278 1998-09-15 Geoff Keating <geoffk@ozemail.com.au>
5279
5280 * elf32-ppc.c (ppc_elf_relocate_section): Reverse output_offset
5281 part of Vladimir's change of 1998-08-19. Make a R_PPC_SDAREL16
5282 reloc to the wrong section a warning, not an error. .dynsbss
5283 is not an output section, so there is no need to check for it.
5284
5285 Tue Sep 15 12:40:05 1998 Catherine Moore <clm@cygnus.com>
5286
5287 * elf-bfd.h: Add argument to elf_backend_get_symbol_type.
5288
5289 Tue Sep 15 08:34:40 1998 Catherine Moore <clm@cygnus.com>
5290
5291 * elf.c (swap_out_syms): Pass type to elf_backend_get_symbol_type.
5292 * elf32-arm.c: Add HOWTO entries for R_ARM_GNU_VTINHERIT and
5293 R_ARM_GNU_VTENTRY.
5294 (elf32_arm_gc_mark_hook): New.
5295 (elf32_arm_gc_sweep_hook): New.
5296 (elf32_arm_check_relocs): New.
5297 (elf32_arm_final_link_relocate): Handle VTINHERIT and VTENTRY
5298 relocations.
5299 (elf32_arm_relocate_section): Handle VTINHERIT and VTENTRY
5300 relocations.
5301
5302 1998-09-10 Geoff Keating <geoffk@ozemail.com.au>
5303
5304 * elf32-ppc.c (ppc_elf_relocate_section): If dynobj is NULL,
5305 assume there is no PLT or GOT.
5306
5307 Wed Sep 9 14:24:12 1998 Nick Clifton <nickc@cygnus.com>
5308
5309 * elf32-arm.c (elf32_arm_find_nearest_line): New function: just
5310 like _elf_bfd_find_nearest_line() except that STT_ARM_TFUNC is
5311 also accepted as a function symbol type.
5312
5313 Mon Sep 7 13:24:03 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5314
5315 * rs6000-core.c (_LONG_LONG): Define for AIX 4.x only.
5316
5317 Sat Sep 5 20:40:18 1998 Ian Lance Taylor <ian@cygnus.com>
5318
5319 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): Correct definition to
5320 match definition of _bfd_gc_sections field.
5321 * libbfd.h: Rebuild.
5322
5323 Fri Sep 4 13:54:23 1998 David Miller <davem@dm.cobaltmicro.com>
5324
5325 * elf32-sparc.c (elf32_sparc_relocate_section): Properly adjust
5326 the addend of a dynamic relocation referencing a section.
5327 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
5328 (sparc64_elf_finish_dynamic_symbol): Fix the PLT relocation offset.
5329
5330 Thu Sep 3 17:28:50 1998 Richard Henderson <rth@cygnus.com>
5331
5332 * elflink.h (bfd_elfNN_size_dynamic_sections): Verify that the
5333 bed has a size_dynamic_sections routine before trying to use it.
5334
5335 Mon Aug 31 14:49:22 1998 Richard Henderson <rth@cygnus.com>
5336
5337 * elf32-mips.c (elf_mips_gnu_vtentry_howto): Use
5338 _bfd_elf_rel_vtable_reloc_fn.
5339
5340 Mon Aug 31 10:23:40 1998 Catherine Moore <clm@cygnus.com>
5341
5342 * Makefile.am: Add elf32-arm.c.
5343 * Makefile.in: Rebuild.
5344 * elf-bfd.h: Add elf_backend_get_symbol_type.
5345 * elf.c (swap_out_syms): If defined, call
5346 elf_backend_get_symbol_type.
5347 * elf32-arm.c: Define elf_backend_get_symbol_type.
5348 (elf32_arm_get_symbol-type): New routine.
5349 (record_thumb_to_arm_glue): Change to use STT_ARM_TFUNC.
5350 (bfd_elf32_arm_process_before_allocation): Change to
5351 check for STT_ARM_TFUNC.
5352 (elf32_arm_final_link_relocate): Likewise.
5353 * elfxx-target.h: Add elf_backend_get_symbol_type.
5354
5355 Fri Aug 28 19:44:07 1998 Richard Henderson <rth@cygnus.com>
5356
5357 * archures.c (bfd_mach_alpha_ev[456]): New.
5358 * cpu-alpha.c: Rework to match these types.
5359 * bfd-in2.h: Rebuild.
5360
5361 Fri Aug 28 19:38:53 1998 Richard Henderson <rth@cygnus.com>
5362
5363 * elf-bfd.h (_bfd_elf_rel_vtable_reloc_fn): Declare.
5364 * elf.c (_bfd_elf_rel_vtable_reloc_fn): New.
5365
5366 * elf32-i386.c (elf_howto_table): Add vtable relocs.
5367 (elf_i386_reloc_type_lookup): Recognize them.
5368 (elf_i386_check_relocs): Pass them off to generic code.
5369 (elf_i386_relocate_section): Ignore them.
5370 (elf_i386_gc_mark_hook, elf_i386_gc_sweep_hook): New.
5371 (elf_backend_can_gc_sections): True.
5372
5373 Thu Aug 20 15:03:45 1998 Nick Clifton <nickc@cygnus.com>
5374
5375 * elf32-arm.c (elf32_thumb_to_arm_stub): Check sym_sec is not NULL
5376 before looking at owner field.
5377 (elf32_arm_to_thumb_stub): Ditto.
5378 (elf32_arm_relocate_section): Compute name before calling
5379 elf32_arm_final_link_relocate().
5380
5381 Thu Aug 20 11:30:17 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
5382
5383 * elf.c: comment and formatting cleanups.
5384 * elfcore.h: ditto.
5385
5386 Wed Aug 19 15:43:26 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
5387
5388 * elfcode.h (elf_object_p): Reject files of header type ET_CORE
5389 (core files are treated differently than object files).
5390 * elf-bfd.h (_bfd_elf_write_corefile_contents,
5391 bfd_elf_mkcorefile): declare.
5392 * elfxx-target.h (_bfd_elf_write_corefile_contents,
5393 bfd_elf_mkcorefile): add to bfd_target vector.
5394 * elfcore.h (elf_core_file_p): save the program header table,
5395 and set the bfd architecture from the elf file header.
5396 * elf.c (bfd_elf_mkcorefile): new function.
5397 (_bfd_elf_write_corefile_contents): new function.
5398 (assign_file_positions_for_segments): add cases for handling
5399 PT_NOTE segments. (assign_file_positions_except_relocs):
5400 core files should be handled the same as exec files.
5401 (prep_headers): identify core files as type ET_CORE.
5402 (copy_private_bfd_data): identify the sections belonging to
5403 the PT_NOTE segment.
5404
5405 * elf32-sparc.c (elf32_sparc_final_write_processing):
5406 add break statement to default case.
5407
5408 1998-08-19 Vladimir N. Makarov <vmakarov@cygnus.com>
5409
5410 * elf32-ppc.c (ppc_elf_relocate_section): Check that output
5411 section (not input) will be in sections ".sbss", ".sbss2",
5412 ".sdata", and ".sdata" for R_PPC_SDAREL16, R_PPC_EMB_SDA2REL,
5413 R_PPC_EMB_SDA21, R_PPC_EMB_RELSDA. In all these cases also ignore
5414 output_offset for correct evaluation of addend.
5415
5416 Tue Aug 18 11:48:12 1998 Catherine Moore <clm@cygnus.com>
5417
5418 * elf32-arm.c: Add prefix bfd_ to elf32_arm_get_bfd_for_interworking,
5419 elf32_arm_allocate_interworking_sections and
5420 elf32_arm_process_before_allocation.
5421
5422 Tue Aug 18 11:46:00 1998 Nick Clifton <nickc@cygnus.com>
5423
5424 * bfd-in.h: Ammend prototype for
5425 elf32_arm_process_before_allocation to remove surplus third
5426 argument.
5427
5428 * bfd-in2.h: Regenerate.
5429
5430 Sat Aug 15 20:55:08 1998 Richard Henderson <rth@cygnus.com>
5431
5432 * elf64-alpha.c (elf64_alpha_relax_section): Handle indirect symbols.
5433
5434 Fri Aug 14 09:12:28 1998 Stan Cox <scox@cygnus.com>
5435
5436 * aoutx.h (aout_link_input_section_ext): Use the relocation already
5437 calculated for RELOC_SPARC_REV32 case.
5438
5439 Thu Aug 13 14:02:02 1998 Catherine Moore <clm@cygnus.com>
5440
5441 * bfd-in.h: Add prototypes for elf32_arm_get_bfd_for_interworking,
5442 elf32_arm_allocate_interworking_sections and
5443 elf32_arm_process_before_allocation.
5444 * bfd-in2.h: Regenerated.
5445 * elf32-arm.c Define elf32_arm_link_hash_table.
5446 (insert_thumb_branch): New routine.
5447 (find_thumb_glue): New routine.
5448 (find_arm_glue): New routine.
5449 (record_arm_to_thumb_glue): New routine.
5450 (record_thumb_to_arm_glue): New routine.
5451 (elf32_arm_link_hash_table_create): New routine.
5452 (elf32_arm_get_bfd_for_interworking): New routine.
5453 (elf32_arm_allocate_interworking_sections) New routine.
5454 (elf32_arm_process_before_allocation) New routine.
5455 (elf32_thumb_to_arm_stub): New routine.
5456 (elf32_arm_to_thumb_stub): New routine.
5457 (elf32_print_private_bfd_data): Fix typo.
5458 (elf32_arm_final_link_relocate): Add argument sym_sec.
5459 Check for branches to thumb symbols in case R_ARM_PC24.
5460 Check for branches to arm symbols in case R_ARM_THM_PC22.
5461 (elf32_arm_relocate_section): Pass symbol section to
5462 elf32_arm_final_link_relocate.
5463
5464 Wed Aug 12 19:00:39 1998 Geoff Keating <geoffk@ozemail.com.au>
5465
5466 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Generate PLT
5467 entries unless the symbol is defined in the executable; in
5468 particular, undefined weak symbols get a PLT entry.
5469
5470 Wed Aug 12 14:48:33 1998 Ian Lance Taylor <ian@cygnus.com>
5471
5472 * libaout.h: Remove nested comment to avoid warning.
5473
5474 Wed Aug 12 08:10:11 1998 Catherine Moore <clm@cygnus.com>
5475
5476 * elf32-arm.c (elf32_arm_final_link_relocate): Rework
5477 R_ARM_PC24 relocation.
5478
5479 Tue Aug 11 14:42:26 1998 Catherine Moore <clm@cygnus.com>
5480
5481 * elf32-arm.c (elf32_arm_final_link_relocate): Remove unused
5482 argument is_local. Add argument sym_flags. Check sym_flags
5483 in R_ARM_ABS32 case. Include addend for R_ARM_THM_PC22 case.
5484 (elf32_arm_relocate_section): Don't pass local sym and pass
5485 sym_flags to elf32_arm_final_link_relocate.
5486
5487 Mon Aug 10 20:38:39 1998 Richard Henderson <rth@cygnus.com>
5488
5489 * elf64-alpha.c (elf64_alpha_calc_dynrel_sizes): Correct last change
5490 to not count too few relocs for dynamicly linked executables.
5491
5492 Mon Aug 10 15:35:34 1998 Richard Henderson <rth@cygnus.com>
5493
5494 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Never consider
5495 symbols without a dynamic index dynamic. Consider all weak
5496 symbols dynamic.
5497 (elf64_alpha_strip_section_from_output): Don't assume 1-1
5498 correspondance between input and output sections.
5499
5500 Mon Aug 10 15:31:39 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5501
5502 * elflink.h (elf_gc_common_finalize_got_offsets): For backends
5503 that use a .got.plt section start the got offset at zero.
5504
5505 Mon Aug 10 17:31:21 1998 Ian Lance Taylor <ian@cygnus.com>
5506
5507 * ieee.c (ieee_write_processor): Correct the processor ID written
5508 out for bfd_arch_m68k, accommodating change of March 25.
5509
5510 Sun Aug 9 20:55:44 1998 Catherine Moore <clm@cygnus.com>
5511
5512 * elf32-arm.c (elf32_arm_final_link_relocate): Rework
5513 R_ARM_THM_RPC22 relocations.
5514
5515 Sat Aug 8 15:15:30 1998 Richard Henderson <rth@cygnus.com>
5516
5517 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Undef weak symbols
5518 are always dynamic.
5519 (elf64_alpha_calc_dynrel_sizes): Allow enough room for RELATIVE
5520 .got relocs in -Bsymbolic shared objects.
5521
5522 Wed Aug 5 15:48:08 1998 Nick Clifton <nickc@cygnus.com>
5523
5524 * elf32-arm.c: Add private flags to ELF header.
5525 (elf32_arm_print_private_bfd_data): New Function.
5526 (elf32_arm_set_private_flags): New Function.
5527 (elf32_arm_copy_private_flags): New Function.
5528 (elf32_arm_merge_private_bfd_data): New Function.
5529
5530 Mon Aug 3 17:10:15 1998 Ian Lance Taylor <ian@cygnus.com>
5531
5532 * elf32-sparc.c (elf32_sparc_check_relocs): Permit WPLT30 against
5533 a local symbol.
5534 (elf32_sparc_relocate_section): Likewise.
5535
5536 Sun Aug 2 03:19:23 1998 Richard Henderson <rth@cygnus.com>
5537
5538 * elf32-ppc.c (ppc_elf_check_relocs): Init sgot to NULL. Create the
5539 .got if any relocation referrs to _GLOBAL_OFFSET_TABLE_.
5540 (ppc_elf_relocate_section): Pull sgot and splt search to the start
5541 of the function. Recognize no .plt as static linking.
5542
5543 1998-08-01 Ulrich Drepper <drepper@cygnus.com>
5544
5545 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Don't pass
5546 ".liblist" string through gettext.
5547
5548 Fri Jul 31 16:38:14 1998 Catherine Moore <clm@cygnus.com>
5549
5550 * Makefile.am: Add support for elf32-arm.lo.
5551 * Makefile.in: Rebuild.
5552 * config.bfd (arm-*-elf): Define targ_defvec and targ_selvecs.
5553 (thumb-*-elf): Define targ_defvec and targ_selvecs.
5554 * configure.in: Handle bfd_elf32_littlearm_vec and bfd_elf32_bigarm_vec.
5555 * configure: Regenerate.
5556 * elf.c: (prep_headers): Support arch_type of EM_ARM.
5557 * targets.c: Support new targets bfd_elf32_bigarm_vec and
5558 bfd_target bfd_elf32_littlearm_vec.
5559 * elf32-arm.c: New file.
5560
5561 Tue Jun 28 19:05:28 1998 Stan Cox <scox@cygnus.com>
5562
5563 * libaout.h (M_SPARCLITE_LE): New machine.
5564 * sunos.c (MACHTYPE_OK): Add machine M_SPARCLITE_LE.
5565 * aoutf1.h (sunos_set_arch_mach): Add machine M_SPARCLITE_LE.
5566 (sunos_write_object_contents): Add machine bfd_mach_sparc_sparclite_le
5567 * aoutx.h (howto_table_ext): Add relocation R_SPARC_REV32.
5568 (NAME(aout,machine_type)) Add machine bfd_mach_sparc_sparclite_le
5569 (aout_link_input_section_ext): Add RELOC_SPARC_REV32 support.
5570 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
5571 elf32_sparc_relocate_section): Rename R_SPARC_32LE to be R_SPARC_REV32
5572 * libbfd.h (bfd_reloc_code_real_names): Rename BFD_RELOC_SPARC_32LE to
5573 be BFD_RELOC_SPARC_REV32.
5574 * reloc.c: Ditto.
5575 * config.bfd (sparc86x-*-aout): New
5576
5577 Fri Jul 24 13:54:19 1998 Nick Clifton <nickc@cygnus.com>
5578
5579 * linker.c (_bfd_generic_final_link): Allocate NULL symbol before
5580 actually mapping the output sections.
5581
5582 Fri Jul 24 11:24:29 1998 Jeffrey A Law (law@cygnus.com)
5583
5584
5585 * elf-m10300.c (mn10300_elf_howto): Add R_MN10300_24 entry.
5586 (mn10300_elf_reloc_map): Similarly.
5587 (mn10300_elf_final_link_relocate): Handle R_MN10300_24.
5588
5589 Fri Jul 24 12:36:04 1998 Ian Lance Taylor <ian@cygnus.com>
5590
5591 * elf32-mips.c (elf_mips_howto_table): Add reloc types used on
5592 Irix 6.
5593 (bfd_elf32_bfd_reloc_type_lookup): Add default case.
5594 * elf64-mips.c: Replace all uses of mips_elf64_reloc_type with
5595 elf_mips_reloc_type defined in elf/mips.h.
5596
5597 1998-07-24 Ulrich Drepper <drepper@cygnus.com>
5598
5599 * elf64-mips.c: Remove reloc_type definition completely. It's now
5600 in elf/mips.h.
5601
5602 Thu Jul 23 13:33:19 1998 Doug Evans <devans@canuck.cygnus.com>
5603
5604 * elf64-mips.c (mips_elf64_reloc_type): #if 0 out more relocations
5605 as they are defined in elf/mips.h now.
5606
5607 Thu Jul 23 11:29:43 1998 Jeffrey A Law (law@cygnus.com)
5608
5609
5610 * Re-add lost change:
5611 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add new field
5612 "movm_stack_size".
5613 (mn10300_elf_relax_section): Include stack space for register saves
5614 in the imm8 field of a "call" instruction.
5615 (compute_function_info): Determine how much stack is allocated by
5616 the movm instruction. Fix typo.
5617 (elf32_mn10300_link_hash_newfunc): Initialize movm_stack_size.
5618
5619 Thu Jul 23 11:38:05 1998 Ian Lance Taylor <ian@cygnus.com>
5620
5621 * elf32-sparc.c (elf_backend_got_header_size): Define as 4.
5622 * elf64-sparc.c (elf_backend_got_header_size): Define as 8.
5623
5624 1998-07-22 Ulrich Drepper <drepper@cygnus.com>
5625
5626 * elf32-ppc.c: Change use of pp_reloc_type to elf_ppc_reloc_type.
5627
5628 Wed Jul 22 16:27:18 1998 Nick Clifton <nickc@cygnus.com>
5629
5630 * elf32-hppa.h: Let ELF header define the enum containing the
5631 external reloc numbers.
5632 * elf32-i386.h: Likewise.
5633
5634 1998-07-22 14:57 Ulrich Drepper <drepper@cygnus.com>
5635
5636 * elf-m10300.c: Let ELF header now define the macros to get the enum.
5637 * elf32-mips.c: Likewise.
5638 * elf32-ppc.c: Likewise.
5639
5640 Wed Jul 22 13:53:52 1998 Nick Clifton <nickc@cygnus.com>
5641
5642 * bfd-in2.h: Change type of 'class' parameter to 'unsigned int' in
5643 bfd_coff_set_symbol_class(), in order to avoid K&R compatability
5644 prblems.
5645 * bfd-in.h: Regenerate.
5646 * coffgen.c (bfd_coff_set_symbol_class): Change type of 'class'
5647 parameter to 'unsigned int' to avoid K&R compatability problems.
5648
5649 Wed Jul 22 16:43:24 1998 Ian Lance Taylor <ian@cygnus.com>
5650
5651 * ieee.c (ieee_find_nearest_line): Change filename_ptr and
5652 functionname_ptr to be const. Change line_ptr to be unsigned.
5653
5654 * coffcode.h (coff_link_output_has_begun): Simplify handling when
5655 macro is not defined. Change second parameter from bfd_link_info
5656 to coff_final_link_info. Add prototype.
5657 (coff_final_link_postscript): Simplify handling when macro is not
5658 defined. Add prototype.
5659
5660 1998-07-22 13:08 Ulrich Drepper <drepper@cygnus.com>
5661
5662 * elf-mn10300.c: Before include system specific ELF header define
5663 START_RELOC_NUMBERS, RELOC_NUMBER, and END_RELOC_NUMBERS.
5664 * elf32-mips.c: Likewise.
5665 * elf32-ppc.c: Likewise.
5666
5667 Wed Jul 22 13:46:51 1998 Ian Lance Taylor <ian@cygnus.com>
5668
5669 * elf64-mips.c (mips_elf64_reloc_type): Copy Ulrich's elf32-mips.c
5670 temporary patch over to elf64-mips.c as well.
5671
5672 1998-07-21 Ulrich Drepper <drepper@cygnus.com>
5673
5674 * elf32-mips.c (reloc_type): Temporarily disable definition of
5675 standard relocation since they are now defined in elf/mips.h.
5676
5677 Tue Jul 21 09:47:00 1998 Catherine Moore <clm@cygnus.com>
5678
5679 * elf-m10200.c (mn10200_elf_final_link_relocate):
5680 Modify range test for case R_MN10200_8.
5681
5682 * elf-m10300.c (mn10300_elf_final_link_relocate):
5683 Modify range test for case R_MN10300_8.
5684
5685 Mon Jul 20 18:50:54 1998 Richard Henderson <rth@cygnus.com>
5686
5687 * elf-bfd.h (struct elf_backend_data): Add got_ & plt_header_size.
5688 * elf32-i386.c (elf_backend_got_header_size): Define.
5689 (elf_backend_plt_header_size): Define.
5690 * elf32-m68k.c, elf32-mips.c, elf32-ppc.c: Likewise.
5691 * elf32-sparc.c, elf64-alpha.c, elf64-sparc.c: Likewise.
5692 * elfxx-target.h: Provide a default of zero.
5693 * elflink.c (_bfd_elf_create_got_section): Use got_header_size.
5694 * elflink.h (elf_gc_common_finalize_got_offsets): Likewise.
5695
5696 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't remove a PLT
5697 entry from an executable, even if the plt refcount goes to 0.
5698
5699 Mon Jul 20 12:47:26 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5700
5701 * aoutx.h (NAME(aout,find_nearest_line)): Also remember the
5702 directory name at the line number.
5703
5704 * elf.c (_bfd_elf_find_nearest_line): Also consider symbols
5705 with an unspecified type.
5706
5707 Wed Jul 15 11:20:01 1998 Ian Lance Taylor <ian@cygnus.com>
5708
5709 * sunos.c: Add undef of valid to avoid problem on SunOS.
5710
5711 Tue Jul 14 15:30:59 1998 Richard Henderson <rth@cygnus.com>
5712
5713 * config.bfd (i?86-pc-beos{pe,elf,}*): Recognize.
5714
5715 Tue Jul 14 11:22:21 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5716
5717 * elf32-m68k.c (elf_m68k_check_relocs): Also reference count
5718 R_68K_PCxx and R_68K_xx relocations. Make sure that
5719 ELF_LINK_HASH_NEEDS_PLT is always set for a PLT reloc reference.
5720 (elf_m68k_gc_sweep_hook): Also reference count R_68K_PCxx and
5721 R_68K_xx relocations.
5722 (elf_m68k_adjust_dynamic_symbol): Reset the plt offset of a symbol
5723 that has no plt entry.
5724 (elf_m68k_relocate_section): Ignore the plt offset in a static
5725 link.
5726 * elflink.h (elf_adjust_dynamic_symbol): Reset the plt offset for
5727 an ignored symbol.
5728 (elf_gc_common_finalize_got_offsets): Set the got offsets also in
5729 a static link.
5730
5731 * elf32-m68k.c (R_68K_GNU_VTINHERIT, R_68K_GNU_VTENTRY): New reloc
5732 types.
5733 (howto_table, reloc_map): Add entries for them.
5734 (elf_m68k_check_relocs): Handle them. Implement reference
5735 counting for got and plt entries.
5736 (elf_m68k_gc_mark_hook, elf_m68k_gc_sweep_hook): New functions.
5737 (elf_m68k_adjust_dynamic_symbol): Handle unreferenced plt
5738 symbols.
5739 (rtype_to_howto_rel, elf_info_to_howto_rel): Delete.
5740 (elf_m68k_relocate_section): Handle the new reloc types.
5741 (bfd_elf32_bfd_final_link, elf_backend_gc_mark_hook,
5742 elf_backend_gc_sweep_hook, elf_backend_can_gc_sections): Define.
5743 * elflink.h (elf_link_add_object_symbols): When creating an
5744 indirect reference for symbol versioning also copy the plt
5745 offset.
5746 (elf_fix_symbol_flags): When clearing the ELF_LINK_HASH_NEEDS_PLT
5747 flag also reset the plt offset.
5748 (elf_link_assign_sym_version): Likewise.
5749 (elf_gc_common_finalize_got_offsets): Increment the got offset by
5750 the size of the entry in bytes.
5751 (elf_gc_allocate_got_offsets): Likewise.
5752
5753 Tue Jul 14 11:18:14 1998 Ian Lance Taylor <ian@cygnus.com>
5754
5755 * elflink.h (elf_gc_sections): Return true rather than falling off
5756 the bottom.
5757
5758 * coffgen.c (bfd_coff_set_symbol_class): Call bfd_alloc, not
5759 xmalloc.
5760
5761 Mon Jul 13 11:06:31 1998 Nick Clifton <nickc@cygnus.com>
5762
5763 * coff-arm.c: Supress definition of TARGET_UNDERSCORE and add a
5764 comment describing when it should be enabled.
5765 Changed definition of USER_LABEL_PREFIX to "", to fall into line
5766 with GCC sources.
5767
5768 Mon Jul 13 13:06:54 1998 Ian Lance Taylor <ian@cygnus.com>
5769
5770 * ieee.c (ieee_slurp_external_symbols): Handle call optimization
5771 information ATN records.
5772
5773 Fri Jul 10 16:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
5774
5775 * ieee.c (ieee_slurp_external_symbols): Select an appropriate
5776 section for an absolute symbol in a fully linked file. Based on
5777 patch from Christian Holland <CHolland@de.lucent.com>.
5778
5779 Wed Jul 8 11:29:56 1998 Manfred Hollstein <manfred@s-direktnet.de>
5780
5781 * coff-m88k.c (m88k_special_reloc): Don't lose the information
5782 that a symbol is undefined.
5783
5784 Tue Jul 7 21:47:02 1998 Jeffrey A Law (law@cygnus.com)
5785
5786 * som.c (som_bfd_gc_sections): Define.
5787
5788 Mon Jul 6 11:35:50 1998 Nick Clifton <nickc@cygnus.com>
5789
5790 * coff-arm.c (aoutarm_std_reloc_howto): Do not complain about
5791 overflows in ARM_26D patches, since they have already been
5792 implmented. Patch submitted by Dr. R.J. Black <rjb@dcs.gla.ac.uk>
5793
5794 Sat Jul 4 12:25:36 1998 Ian Lance Taylor <ian@cygnus.com>
5795
5796 * coffcode.h (coff_write_object_contents): If we have any long
5797 section names, call coff_write_symbols even if there are no
5798 symbols.
5799
5800 Fri Jul 3 13:11:35 1998 Ian Lance Taylor <ian@cygnus.com>
5801
5802 * elf.c (copy_private_bfd_data): Only set phdr_included once for a
5803 PT_LOAD segment, rather than only setting it once for the entire
5804 file.
5805
5806 * elf.c (_bfd_elf_make_section_from_shdr): When setting the LMA,
5807 rather than ignoring every phdr with a p_paddr of 0, ignore all
5808 the phdrs if they all have a p_paddr of 0.
5809
5810 * stabs.c (_bfd_write_stab_strings): Check whether the .stabstr
5811 section was discarded from the link.
5812
5813 Fri Jul 3 14:39:05 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
5814
5815 * coff-sh.c (sh_insn_uses_freg): Ignore lowest bit of register number.
5816
5817 Fri Jul 3 14:35:48 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
5818
5819 * coff-sh.c (sh_insns_conflict): Load of fpscr conflicts with
5820 floating point operations.
5821
5822 Thu Jul 2 18:37:25 1998 Ian Lance Taylor <ian@cygnus.com>
5823
5824 * cofflink.c (_bfd_coff_link_input_bfd): Skip undefined global
5825 function symbols.
5826
5827 Thu Jul 2 14:59:42 1998 Klaus Kaempf <kkaempf@rmi.de>
5828
5829 Merge of vax/vms (read-only) support
5830 * configure.com: Support Vax target.
5831 * makefile.vms: Support Vax target.
5832 * vms.h: Renamed from evax.h, merged vax/vms (read-only) support.
5833 * vms.c: Renamed from evax-alpha.c, merged vax/vms (read-only)
5834 support.
5835 * vms-hdr.c: Renamed from evax-emh.c, merged vax/vms (read-only)
5836 support.
5837 * vms-gsd.c: Renamed from evax-egsd.c, merged vax/vms (read-only)
5838 support.
5839 * vms-tir.c: Renamed from evax-etir.c, merged vax/vms (read-only)
5840 support.
5841 * vms-misc.c: Renamed from evax-misc.c, merged vax/vms (read-only)
5842 support.
5843 * libbfd.c (real_read): Use unbuffered read on VMS/Vax.
5844 * targets.c (bfd_target_ovax_flavour): New flavour.
5845 (vms_alpha_vec): Renamed from evax_alpha_vec.
5846 (vms_vax_vec): New.
5847 (target_vector): Update accordingly.
5848 * config.bfd (alpha*-*-*vms*): Use vms_alpha_vec, not
5849 evax_alpha_vec.
5850 (vax*-*-*vms*): New target.
5851 * Makefile.am: Update for renamed files. Rebuild dependencies.
5852 * bfd-in2.h: Rebuild.
5853 * configure.in, Makefile.in, aclocal.m4: Rebuild.
5854
5855 Thu Jul 2 13:31:55 1998 Ian Lance Taylor <ian@cygnus.com>
5856
5857 Based on patch from Matt Semersky <matts@scd.hp.com>:
5858 * linker.c (_bfd_generic_final_link): Force a trailing NULL
5859 pointer on abfd->outsymbols.
5860 (generic_add_output_symbol): Handle NULL sym parameter.
5861
5862 Wed Jul 1 17:05:53 1998 Nick Clifton <nickc@cygnus.com>
5863
5864 * elf.c (copy_private_bfd_data): Add support for changing VMA or
5865 LMA of sections.
5866
5867 Wed Jul 1 16:58:50 1998 Ian Lance Taylor <ian@cygnus.com>
5868
5869 * coff-sh.c (sh_relax_delete_bytes): Correct address comparisons
5870 when handling 32 bit immediate relocs.
5871 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
5872
5873 Tue Jun 30 09:55:03 1998 Jeffrey A Law (law@cygnus.com)
5874
5875 * section.c (STD_SECTION): Account for recently added gc_mark
5876 field in struct asection.
5877
5878 * elf-m10300.c (bfd_mn10300_elf_merge_private_bfd_data): New function.
5879 (bfd_elf32_bfd_merge_private_bfd_data): Define.
5880
5881 Thu Jun 25 18:31:41 1998 Richard Henderson <rth@cygnus.com>
5882
5883 ELF Section-level Garbage Collection:
5884 * bfd.c (bfd_gc_sections): New.
5885 * aout-adobe.c: Hook to default implementation.
5886 * aout-target.h, aout-tic30.c, binary.c, bout.c: Likewise.
5887 * coff-alpha.c, coff-mips.c, coff-rs6000.c, coffcode.h: Likewise.
5888 * evax-alpha.c, i386msdos.c, i386os9k.c, ieee.c: Likewise.
5889 * ihex.c, nlm-target.h, oasys.c, ppcboot.c, srec.c: Likewise.
5890 * tekhex.c, versados.c: Likewise.
5891 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): New.
5892 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_gc_sections.
5893
5894 * reloc.c (BFD_RELOC_VTABLE_INHERIT, BFD_RELOC_VTABLE_ENTRY): New.
5895 (bfd_generic_gc_sections): New.
5896 * section.c (SEC_KEEP): New.
5897 (asection): Add gc_mark member.
5898
5899 * elfcode.h (elf_gc*): New name remappings.
5900 * elflink.h (elf_link_input_bfd): Don't set contents on stabs
5901 sections to be excluded.
5902 (elf_gc_mark, elf_gc_sweep, elf_gc_sweep_symbol): New.
5903 (elf_gc_propogate_vtable_entries_used): New.
5904 (elf_gc_smash_unused_vtentry_relocs): New.
5905 (elf_gc_sections, elf_gc_record_vtinherit, elf_gc_record_vtentry): New.
5906 (elf_gc_common_finalize_got_offsets): New.
5907 (elf_gc_allocate_got_offsets, elf_gc_common_final_link): New.
5908 * elfxx-target.h: Add and default gc hooks.
5909
5910 * elf-bfd.h (struct elf_link_hash_entry): Swap got_offset/plt_offset
5911 for unions.
5912 (struct elf_obj_tdata): Likewise for local_got_offsets.
5913 * elf.c, elf-i386.c, elf32-m68k.c, elf32-mips.c: Update all uses.
5914 * elf32-ppc.c, elf32-sparc.c, elf64-alpha.c: Likewise.
5915 * elf64-sparc.c, elflink.h: Likewise.
5916
5917 * elf-bfd.h (struct elf_link_hash_entry): Add vtable members.
5918 (ELF_LINK_HASH_MARK): Define.
5919 (struct elf_backend_data): Add GC hooks.
5920 * elf.c (_bfd_elf_link_hash_newfunc): Zero vtable members.
5921
5922 * elf-m10300.c (mn10300_elf_check_relocs): New.
5923 (mn10300_elf_gc_mark_hook): New.
5924 (R_MN10300_GNU_VTINHERIT, R_MN10300_GNU_VTENTRY): New.
5925 (elf_mn10300_howto, mn10300_reloc_map): Handle them.
5926 (mn10300_elf_final_link_relocate): Likewise.
5927 (mn10300_elf_relocate_section): Likewise.
5928 (elf_backend_can_gc_sections): Define.
5929 * elf32-mips.c (R_MIPS_GNU_VTINHERIT, R_MIPS_GNU_VTENTRY): New.
5930 (elf_mips_gnu_vtinherit_howto, elf_mips_gnu_vtentry_howto): New.
5931 (bfd_elf32_bfd_reloc_type_lookup): Handle them.
5932 (mips_info_to_howto_rel): Likewise.
5933 (mips_elf_relocate_section): Likewise.
5934 (mips_elf_check_relocs): Likewise.
5935 (mips_elf_gc_mark_hook, mips_elf_gc_sweep_hook): New.
5936 (elf_backend_can_gc_sections): Define.
5937 * elf32-ppc.c (R_PPC_GNU_VTINHERIT, R_PPC_GNU_VTENTRY): New.
5938 (ppc_elf_howto_raw): Handle them.
5939 (ppc_elf_reloc_type_lookup): Likewise.
5940 (ppc_elf_relocate_section): Likewise.
5941 (ppc_elf_check_relocs): Reference count .got and .plt entries.
5942 Handle new vtable relocs.
5943 (ppc_elf_adjust_dynamic_symbol): Recognize unused .plt entries.
5944 (ppc_elf_gc_mark_hook, ppc_elf_gc_sweep_hook): New.
5945 (elf_backend_can_gc_sections): Define.
5946
5947 Fri Jun 26 10:48:23 1998 Jeffrey A Law (law@cygnus.com)
5948
5949 * archures.c (bfd_mach_mn10300): Define.
5950 * elf-m10300.c: Include elf/mn10300.h
5951 (elf_mn10300_mach): New function.
5952 (_bfd_mn10300_elf_final_write_processing): Likewise.
5953 (_bfd_mn10300_elf_object_p): Likewise.
5954 (elf_backendfinal_write_processing): Define.
5955 (elf_backend_object_p): Likewise.
5956
5957 Thu Jun 25 18:31:08 1998 Nick Clifton <nickc@cygnus.com>
5958
5959 * elf32-v850.c (v850_elf_perform_relocation): Fix HI16_S
5960 relocation.
5961
5962 Wed Jun 24 17:17:57 1998 Ian Lance Taylor <ian@cygnus.com>
5963
5964 * elflink.h (elf_bfd_final_link): Loop over input_bfds using the
5965 link_next field, not the next field.
5966
5967 Sun Jun 21 19:38:39 1998 Ian Lance Taylor <ian@cygnus.com>
5968
5969 * elf.c (map_sections_to_segments): Check the section address
5970 against the phdr size both with and without a modulo of
5971 maxpagesize.
5972
5973 Fri Jun 19 17:08:18 1998 Ian Lance Taylor <ian@cygnus.com>
5974
5975 * elf32-mips.c (mips_elf_size_dynamic_sections): Only strip a
5976 linker created empty input section if the output section has the
5977 same name.
5978
5979 * elflink.h (elf_link_output_extsym): Print an error message if
5980 _bfd_elf_section_from_bfd_section fails.
5981
5982 * elf.c (_bfd_elf_section_from_bfd_section): Call bfd_set_error on
5983 failure.
5984
5985 Tue Jun 16 11:55:55 1998 Ian Lance Taylor <ian@cygnus.com>
5986
5987 * elf.c (copy_private_bfd_data): Improve handling of Solaris
5988 native linker output. Avoid putting an empty section in more than
5989 one segment.
5990
5991 Fri Jun 12 13:30:17 1998 Tom Tromey <tromey@cygnus.com>
5992
5993 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
5994 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
5995
5996 Fri Jun 12 13:34:02 1998 Doug Evans <devans@canuck.cygnus.com>
5997
5998 * elf.c (swap_out_syms): New arg relocatable_p.
5999 Don't add section VMA to symbols for relocatable output.
6000 (_bfd_elf_compute_section_file_positions): Update call to
6001 swap_out_syms.
6002
6003 Mon Jun 8 15:20:57 1998 Nick Clifton <nickc@cygnus.com>
6004
6005 * elf32-v850.c (v850_elf_perform_relocation): Make comparisons
6006 against 'addend' be signed rather than unsigned.
6007
6008 Sat Jun 6 00:31:21 1998 Nick Clifton <nickc@cygnus.com>
6009
6010 * elf32-m32r.c: Add prototyps for static functions.
6011
6012 * coff-arm.c: Add prototypes for static functions.
6013
6014 Fri Jun 5 17:21:51 1998 Nick Clifton <nickc@cygnus.com>
6015
6016 * elf.c (elf_sort_sections): Sort by LMA first then VMA, since the
6017 LMA is used to order sections in a segment.
6018
6019 * elf32-v850.c: Add prototypes for static functions.
6020 Change type of addend parameter to bfd_vma in various functions.
6021
6022 Fri Jun 5 18:09:58 1998 Ian Lance Taylor <ian@cygnus.com>
6023
6024 * aoutx.h (howto_table_ext): Change RELOC_BASE13 to use
6025 complain_overflow_signed instead of complain_overflow_bitfield.
6026
6027 Fri Jun 5 15:11:11 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6028
6029 * elf.c (elf_map_symbols): Don't add section VMA to symbol value
6030 when comparing against 0.
6031
6032 Wed Jun 3 17:52:49 1998 Ian Lance Taylor <ian@cygnus.com>
6033
6034 * Makefile.am (config.status): New target.
6035 * Makefile.in: Rebuild.
6036
6037 Wed Jun 3 12:18:24 1998 Stan Cox <scox@equinox.cygnus.com>
6038
6039 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Give an
6040 error if previous object endianness doesn't match current object.
6041
6042 Tue Jun 2 17:50:59 1998 Nick Clifton <nickc@cygnus.com>
6043
6044 * elf32-v850.c (v850_elf_print_private_bfd_data): Call
6045 _bfd_elf_print_private)bfd_data ().
6046
6047 Tue Jun 2 15:29:35 1998 Ian Lance Taylor <ian@cygnus.com>
6048
6049 * elflink.h (elf_merge_symbol): Don't always set type_change_ok
6050 and size_change_ok.
6051 (elf_link_add_object_symbols): Set type_change_ok and
6052 size_change_ok before calling elf_merge_symbol.
6053
6054 * elf32-mips.c (mips_elf_relocate_section): If we issue an
6055 undefined symbol error, don't also issue an overflow error.
6056
6057 Tue Jun 2 13:51:00 1998 Geoff Keating <geoffk@ozemail.com.au>
6058
6059 * elf32-ppc.c (ppc_elf_relocate_section): The target of an
6060 R_PPC_LOCAL24PC relocation should be local; if not, print an error
6061 message instead of crashing.
6062
6063 Mon Jun 1 18:23:12 1998 Yuli Barcohen <yuli.barcohen@telrad.co.il>
6064
6065 * archures.c (bfd_mach_cpu32): Define.
6066 (bfd_default_scan): Add case for 68060. Fix 68332 case to use
6067 bfd_mach_cpu32.
6068 * cpu-m68k.c (arch_info_struct): Add m68k:cpu32.
6069 * ieee.c: Include <ctype.h>.
6070 (ieee_object_p): Parse out process ID string to make it more
6071 likely to be acceptable for bfd_scan_arch.
6072 * bfd-in2.h: Rebuild.
6073
6074 Mon Jun 1 11:12:02 1998 Nick Clifton <nickc@cygnus.com>
6075
6076 * elf32-m32r.c (m32r_elf_print_private_bfd_data): Also call
6077 _bfd_elf_print_private_bfd_data() so that the program header will
6078 be displayed.
6079
6080 Mon Jun 1 12:14:28 1998 Ian Lance Taylor <ian@cygnus.com>
6081
6082 * peicode.h (coff_swap_sym_in): Check for C_SECTION rather than
6083 0x68. Reindent. Add some comments.
6084
6085 Fri May 29 09:58:08 1998 Nick Clifton <nickc@cygnus.com>
6086
6087 * elf.c (copy_private_bfd_data): Adjust physical address of
6088 segment in output BFD to contain LMAs of its sections.
6089
6090 Tue May 26 19:37:47 1998 Stan Cox <scox@equinox.cygnus.com>
6091
6092 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
6093 elf32_sparc_relocate_section): Added R_SPARC_32LE for little
6094 endian data 32 bit relocations.
6095 (elf32_sparc_merge_private_bfd_data): Check if linking little
6096 endian objects with big endian objects.
6097 (elf32_sparc_object_p): Set bfd_mach_sparc_sparclite_le.
6098 (elf32_sparc_final_write_processing): Set EF_SPARC_LEDATA in e_flags.
6099 * libbfd.h (bfd_reloc_code_real_names): Added BFD_RELOC_SPARC_32LE.
6100 * reloc.c: Same.
6101 * cpu-sparc.c (arch_info_struct): Added sparc:sparclite_le
6102 * archures.c (bfd_mach_sparc_sparclite_le): New.
6103 * bfd-in2.h (BFD_RELOC_SPARC_32LE, bfd_mach_sparc_sparclite_le): New.
6104
6105 Thu May 21 16:59:28 1998 Nick Clifton <nickc@cygnus.com>
6106
6107 * peicode.h (add_data_entry): Fix precedence of operators in if ()
6108 statement.
6109
6110 Tue May 19 18:41:19 1998 Ian Lance Taylor <ian@cygnus.com>
6111
6112 * bfd-in.h: Move over patch to bfd-in2.h.
6113
6114 * reloc.c (bfd_check_overflow): Add casts before shifts which may
6115 not fit in 32 bits.
6116 (_bfd_relocate_contents): Likewise.
6117
6118 Mon May 18 14:44:15 1998 Nick Clifton <nickc@cygnus.com>
6119
6120 * peicode.h (add_data_entry): If the section has no private data
6121 then do not create a Data Dictionary entry for it.
6122
6123 Mon May 18 00:09:28 1998 Richard Henderson <rth@cygnus.com>
6124
6125 * elf64-alpha.c (elf64_alpha_relax_section): Set again on changes.
6126 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots,
6127 elf64_alpha_size_got_sections): Rewrite, handling multiple got
6128 subsections during relaxation more correctly.
6129
6130 Thu May 14 14:22:58 1998 Nick Clifton <nickc@cygnus.com>
6131
6132 * bfd-in2.h: Add new prototype: bfd_coff_set_symbol_class ().
6133 Add extra argument to bfd_arm_process_before_allocation ().
6134 * bfd-in.h: Reflect changes made in bfd-in2.h.
6135 * coffgen.c (bfd_coff_set_symbol_class): New function. Set the
6136 coff class of a BFD symbol.
6137 * coff-arm.c: Add support for interworking between Thumb code and
6138 non-interworking aware ARM code.
6139
6140 Sun May 10 22:33:59 1998 Jeffrey A Law (law@cygnus.com)
6141
6142 * po/Make-in (install-info): New target.
6143
6144 Thu May 7 17:40:56 1998 Ian Lance Taylor <ian@cygnus.com>
6145
6146 * filemode.c: Remove; not used.
6147
6148 If sysdep.h includes a header file, don't include it again:
6149 * aix386-core.c: Don't include <stdio.h>, <stddef.h>, or
6150 <errno.h>.
6151 * aoutx.h: Don't include <string.h>. Use "sysdep.h" rather than
6152 <sysdep.h>.
6153 * archive.c: Don't include <string.h> or <errno.h>.
6154 * evax-alpha.c; Don't include <stdio.h>.
6155 * evax-egsd.c: Likewise.
6156 * evax-etir.c: Likewise.
6157 * evax-misc.c: Likewise.
6158 * evax-emh.c: Likewise. Also, don't include <sys/types.h>.
6159 * hppabsd-core.c: Don't include <stdio.h>, <sys/types.h>, or
6160 <errno.h>.
6161 * hpux-core.c: Likewise.
6162 * netbsd-core.c: Likewise.
6163 * som.c: Likewise.
6164 * libbfd.c: Don't include <sys/types.h>.
6165 * nlmcode.h: Don't include <string.h>.
6166 * osf-core.c: Don't include <string.h> or <stdio.h>.
6167 * ptrace-core.c: Don't include <stdio.h>, <sys/types.h>,
6168 <errno.h>, or <unistd.h>.
6169 * trad-core.c: Don't include <stdio.h> or <sys/types.h>.
6170
6171 Thu May 7 13:12:50 1998 Klaus Kaempf <kkaempf@progis.de>
6172
6173 * configure.com: If the version number can not be found in
6174 configure.in, set it to "unknown" rather than "2.8.1".
6175
6176 Wed May 6 09:46:05 1998 Gavin Koch <gavin@cygnus.com>
6177
6178 * elf32-mips.c (elf_mips_mach): New.
6179 (_bfd_mips_elf_object_p): Use elf_mips_mach.
6180 (_bfd_mips_elf_final_write_processing): Use the names
6181 of machines, rather than the numbers. Set both the ARCH
6182 and MACH in e_flags. Handle a few more specific machines.
6183 (_bfd_mips_elf_merge_private_bfd_data): Merge both
6184 EF_MIPS_ARCH and EF_MIPS_MACH.
6185
6186 Tue May 5 21:01:53 1998 Richard Henderson <rth@cygnus.com>
6187
6188 * syms.c (bfd_is_local_label): Revert last change.
6189 * srec.c (srec_write_symbols): Discard debugging symbols.
6190
6191 Tue May 5 23:36:06 1998 Ian Lance Taylor <ian@cygnus.com>
6192
6193 * som.c: Include <ctype.h>.
6194 * som.h: Don't include sysdep.h.
6195
6196 Tue May 5 18:29:24 1998 Tom Tromey <tromey@cygnus.com>
6197
6198 * libbfd.h: Rebuilt.
6199 * libbfd-in.h: Removed gettext includes and defines.
6200 * sysdep.h: Moved gettext-related includes and defines here.
6201
6202 Tue May 5 16:47:54 1998 Richard Henderson <rth@cygnus.com>
6203
6204 * srec.c (srec_write_symbols): Use bfd_is_local_label rather than
6205 an ad-hoc test. Kill bogus #if 0 code.
6206 * syms.c (bfd_is_local_label): Consider BSF_DEBUGGING symbols local.
6207
6208 Mon May 4 16:10:33 1998 Ian Lance Taylor <ian@cygnus.com>
6209
6210 * sunos.c (sunos_check_dynamic_reloc): Don't use the PLT address
6211 when generating a normal executable for a symbol defined in a
6212 regular file. When copying a reloc into the output file, adjust
6213 the addend for a PC relative reloc against a global symbol.
6214
6215 Mon May 4 10:08:18 1998 Tom Tromey <tromey@cygnus.com>
6216
6217 * libbfd.h: Rebuilt.
6218 * libbfd-in.h (_): Define as dgettext.
6219
6220 Mon May 4 11:02:23 1998 Ian Lance Taylor <ian@cygnus.com>
6221
6222 * coff-arm.c (coff_arm_relocate_section): Cast to bfd_signed_vma,
6223 not signed.
6224 * peicode.h (pe_saved_coff_bfd_print_private_bfd_data): Use PARAMS
6225 when declaring parameter types.
6226 (pe_saved_coff_bfd_copy_private_bfd_data): Likewise.
6227
6228 Wed Apr 29 15:35:03 1998 Ian Lance Taylor <ian@cygnus.com>
6229
6230 * config.bfd: If we include any ELF targets in targ_defvec and/or
6231 targ_selvecs, then add the generic ELF targets to targ_selvecs.
6232 * elf32-gen.c (dummy): New static const variable.
6233 (elf_generic_info_to_howto): New static function.
6234 (elf_generic_info_to_howto_rel): New static function.
6235 (elf_info_to_howto): Define as elf_generic_info_to_howto.
6236 (elf_info_to_howto_rel): Define as elf_generic_info_to_howto_rel.
6237 * elf64-gen.c: Same changes as elf32-gen.c.
6238 * elfcode.h (elf_object_p): For the generic target, ignore a
6239 failure of bfd_default_set_arch_mach. Fix indentation a bit.
6240
6241 Tue Apr 28 20:05:52 1998 Ian Lance Taylor <ian@cygnus.com>
6242
6243 * configure.in (WIN32LIBADD): Add -lintl on cygwin32.
6244 * configure: Rebuild.
6245
6246 Tue Apr 28 12:16:57 1998 Jason Molenda (crash@bugshack.cygnus.com)
6247
6248 * config.bfd: Update OSR5/Unixware patterns.
6249
6250 Mon Apr 27 18:02:24 1998 Richard Henderson <rth@cygnus.com>
6251
6252 * elf.c (assign_file_positions_for_segments): Allow for holes
6253 between sections added by a link script.
6254
6255 Mon Apr 27 11:49:55 1998 Ian Lance Taylor <ian@cygnus.com>
6256
6257 * configure.in: Change version number to 2.9.4
6258 * configure: Rebuild.
6259
6260 Based on patch from H.J. Lu <hjl@gnu.org>:
6261 * elf.c (bfd_elf_get_bfd_needed_list): New function.
6262 * bfd-in.h (bfd_elf_get_bfd_needed_list): Declare.
6263 * bfd-in2.h: Rebuild.
6264
6265 Sat Apr 25 20:07:53 1998 Richard Henderson <rth@cygnus.com>
6266
6267 * elf64-alpha.c (struct alpha_relax_info): Replace elfsym with other.
6268 Change all users.
6269
6270 Sat Apr 25 18:29:07 1998 Richard Henderson <rth@cygnus.com>
6271
6272 * elf64-alpha.c (struct alpha_relax_info): Add tsec & elfsym members.
6273 (elf64_alpha_relax_section): Fill them in.
6274 (elf64_alpha_relax_opt_call): Implement more than a stub.
6275 (elf64_alpha_add_symbol_hook): Don't set SEC_LOAD or default
6276 alignment on .scommon.
6277 (elf64_alpha_merge_gots): Merge use counts as well.
6278
6279 Sat Apr 25 14:07:29 1998 Richard Henderson <rth@cygnus.com>
6280
6281 * elf64-alpha.c (elf64_alpha_relax_section): Use the proper section
6282 for calculating a local symbol's address.
6283 (elf64_alpha_calc_got_offsets): Skip entries with 0 use count.
6284 Set the .got's cooked size as well as the raw size.
6285
6286 Fri Apr 24 09:16:00 1998 Nick Clifton <nickc@cygnus.com>
6287
6288 * elf32-v850.c (v850_elf_print_private_bfd_data): Add
6289 internationalisation of printed information.
6290
6291 * coff-arm.c (coff_arm_print_private_bfd_data): Add
6292 internationalisation of printed information.
6293
6294 Fri Apr 24 12:09:18 1998 Ian Lance Taylor <ian@cygnus.com>
6295
6296 * syms.c (struct indexentry): Change directory_name, file_name,
6297 and function_name fields to char *.
6298 (struct stab_find_info): Change cached_file_name field to char *.
6299
6300 Thu Apr 23 08:13:04 1998 Nick Clifton <nickc@cygnus.com>
6301
6302 * peicode.h (dir_names): Add missing N_() macros to dir_names array.
6303
6304 Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
6305
6306 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
6307
6308 Wed Apr 22 17:48:48 1998 Ian Lance Taylor <ian@cygnus.com>
6309
6310 * Makefile.am (install-data-local): Make $(includedir).
6311 * Makefile.in: Rebuild.
6312
6313 Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
6314
6315 * libbfd-in.h: Use `gettext' and not `dgettext' for now.
6316
6317 Wed Apr 22 12:53:40 1998 Ian Lance Taylor <ian@cygnus.com>
6318
6319 * Makefile.am (INCLUDES): Add -I$(srcdir)/../intl -I../intl.
6320 * Makefile.in: Rebuild.
6321
6322 * bfd-in2.h: Rebuild for Nick's changes.
6323
6324 Tue Apr 21 23:11:51 1998 Richard Henderson <rth@cygnus.com>
6325
6326 * archive.c (_bfd_generic_read_ar_hdr_mag): Fix lossage in last
6327 change wrt length == max_namelen.
6328
6329 Tue Apr 21 21:19:36 1998 Tom Tromey <tromey@scribbles.cygnus.com>
6330
6331 * Many files: Added gettext invocations around user-visible
6332 strings.
6333 * libbfd-in.h: Added gettext includes and defines.
6334 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
6335 HAVE_LC_MESSAGES): Define.
6336 * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and
6337 po/Makefile.
6338 * Makefile.am (SUBDIRS): Added po.
6339 (POTFILES): New macro.
6340 (po/POTFILES.in): New target.
6341 (SOURCE_HFILES): New macro.
6342 (HFILES): Use it.
6343 * po/Make-in, po/POTFILES.in, po/bfd.pot: New files.
6344
6345 Tue Apr 21 13:38:18 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
6346
6347 * elfcore.h (bfd_prstatus): Copy core_prstatus from the first
6348 NT_PRSTATUS note section encountered, it contains the status of
6349 the currently executing thread when the core file was written.
6350
6351 Tue Apr 21 10:00:12 1998 Nick Clifton <nickc@cygnus.com>
6352
6353 * libcoff.h: Add extra parameter to
6354 bfd_coff_link_output_has_begun overrideable function.
6355 * cofflink.c: Pass extra parameter to
6356 bfd_coff_link_output_has_begun function.
6357 * bfd-in.h: Add prototypes for exported ARM interworking
6358 functions.
6359 * peicode.h: ARM specific code reorganised to conform to BFD
6360 coding conventions.
6361 * coffcode.h: ARM specific code reorganised to conform to BFD
6362 coding conventions.
6363 * coff-arm.c: Code reorganised to conform to the BFD coding
6364 conventions. Global variables have been moved into an ARM
6365 specific hash table structure and a new function:
6366 bfd_arm_get_bfd_for_interworking() has been created which is
6367 called from the linker scripts.
6368
6369 Tue Apr 21 00:11:51 1998 Richard Henderson <rth@cygnus.com>
6370
6371 * archive.c (_bfd_generic_read_ar_hdr_mag): Simplify end-of-name test.
6372
6373 * elf64-alpha.c (elf64_alpha_find_reloc_at_ofs): Renamed from
6374 elf64_alpha_relax_find_reloc_ofs. Changed all callers.
6375 (elf64_alpha_add_symbol_hook): Put small commons in .scommon not .sbss.
6376 (elf64_alpha_size_got_sections): Don't merge .got sections twice.
6377
6378 Sat Apr 18 01:21:04 1998 Stan Cox <scox@cygnus.com>
6379
6380 * config.bfd: Added sparc86x support.
6381
6382 Fri Apr 17 22:29:04 1998 Ian Lance Taylor <ian@cygnus.com>
6383
6384 * elf32-mips.c (mips_elf_relocate_section): Do not complain about
6385 an out of range pc-relative jump/call to an undefined weak symbol.
6386
6387 Thu Apr 16 13:49:00 1998 Richard Henderson <rth@cygnus.com>
6388
6389 * elf64-alpha.c (elf64_alpha_do_reloc_gpdisp): Do all gpdisp
6390 comparisons signed.
6391
6392 Thu Apr 16 11:43:33 1998 Ian Lance Taylor <ian@cygnus.com>
6393
6394 * archive.c (bfd_generic_archive_p): If a slurp subroutine returns
6395 an error other than bfd_error_system_call, set the error to
6396 bfd_error_wrong_format.
6397
6398 * targets.c (bfd_target_vector) [SELECT_VECS not defined]: Add
6399 bfd_elf32_powerpcle_vec.
6400
6401 * elf.c (copy_private_bfd_data): If all the p_paddr fields in the
6402 program segments are zero, don't set p_paddr_valid.
6403
6404 Wed Apr 15 22:15:16 1998 Richard Henderson <rth@cygnus.com>
6405
6406 * elf64-alpha.c: Initial implementation of relaxation --
6407 (struct alpha_elf_link_hash_entry): Add use_count member.
6408 (elf64_alpha_check_relocs): Initialize and increment it.
6409 (elf64_alpha_can_merge_gots): Check it when considering merging.
6410 (elf64_alpha_merge_gots): Drop entries with zero use.
6411 (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
6412 (elf64_alpha_always_size_sections): Split out got sizing ...
6413 (elf64_alpha_size_got_sections): ... here. New function.
6414 (elf64_alpha_relax_find_reloc_ofs): New function.
6415 (elf64_alpha_relax_with_lituse): Likewise.
6416 (elf64_alpha_relax_without_lituse): Likewise.
6417 (elf64_alpha_relax_opt_call): Likewise.
6418 (elf64_alpha_relax_section): Likewise.
6419 (elf64_alpha_add_symbol_hook): Likewise.
6420 (elf64_alpha_howto_table): Implement GPRELHIGH/LOW & IMMED_GP_16.
6421 (elf64_alpha_relocate_section): Likewise.
6422 (bfd_elf64_bfd_relax_section): Define.
6423 (elf_backend_add_symbol_hook): Likewise.
6424
6425 Wed Apr 15 16:08:46 1998 Richard Henderson <rth@cygnus.com>
6426
6427 * elf.c (prep_headers): Use new EM_SPARCV9 symbol.
6428 * elf64-sparc.c (ELF_MACHINE_CODE): Likewise.
6429 (ELF_MACHINE_ALT1): New. Set to EM_OLD_SPARC64.
6430
6431 Wed Apr 15 11:34:33 1998 Ian Lance Taylor <ian@cygnus.com>
6432
6433 * configure.in: Add -lkernel32 to WIN32LIBADD on cygwin32.
6434 * configure: Rebuild.
6435
6436 Mon Apr 13 16:46:27 1998 Ian Lance Taylor <ian@cygnus.com>
6437
6438 * Makefile.am (libbfd_la_LIBADD): Add @WIN32LIBADD@.
6439 (libbfd_la_LDFLAGS): Add @WIN32LDFLAGS@.
6440 * configure.in: Define and substitute WIN32LDFLAGS and
6441 WIN32LIBADD.
6442 * aclocal.m4: Rebuild with new libtool.
6443 * configure, Makefile.in: Rebuild.
6444
6445 Fri Apr 10 13:44:27 1998 Ian Lance Taylor <ian@cygnus.com>
6446
6447 * coffcode.h (coff_write_object_contents): Move a PE COMDAT symbol
6448 before any other symbols in the same section.
6449
6450 Wed Apr 8 14:50:23 1998 Michael Meissner <meissner@cygnus.com>
6451
6452 * config.bfd (powerpc*-*-*): Remove PowerPC NT support from ELF
6453 systems.
6454
6455 Tue Apr 7 16:25:31 1998 Gavin Romig-Koch <gavin@cygnus.com>
6456
6457 * dwarf2.c (comp_unit): Move it earlier in the source. Add
6458 addr_size.
6459 (read_address): Replace 'bdf*' argument with 'comp_unit*' argument.
6460 Use addr_size for address size, rather than sizeof(bfd_vma).
6461 (read_attribute): Replace bdf* argument with 'comp_unit*' argument.
6462 Fix call to read_address.
6463 (decode_line_info): Replace bdf* argument with 'comp_unit*' argument.
6464 Scrap other unneeded arguments. Fix call to read_address.
6465 (scan_unit_for_functions): Fix call to read_attribute.
6466 (parse_comp_unit): We now handle more values for addr_size.
6467 Set addr_size in unit. Fix call to read_attribute and
6468 decode_line_info.
6469
6470 Tue Apr 7 15:44:47 1998 Gavin Romig-Koch <gavin@cygnus.com>
6471
6472 * dwarf2.c (parse_comp_unit): Drop use of unit->name when it is null.
6473
6474 Tue Apr 7 12:35:18 1998 Ian Lance Taylor <ian@cygnus.com>
6475
6476 * archures.c (bfd_default_scan): Add m68k cases back to default
6477 switch, reverting patch of March 25, since IEEE support depends
6478 upon them.
6479
6480 Mon Apr 6 14:06:40 1998 Ian Lance Taylor <ian@cygnus.com>
6481
6482 * Makefile.am (diststuff): New target.
6483 * Makefile.in: Rebuild.
6484
6485 Sun Apr 5 16:21:44 1998 Jeffrey A Law (law@cygnus.com)
6486
6487 * som.c (som_bfd_ar_write_symbol_stuff): Fix computation of
6488 som_offset when we have an extended name table.
6489
6490 Sun Apr 5 16:04:39 1998 H.J. Lu <hjl@gnu.org>
6491
6492 * Makefile.am (stamp-lib): Check that .libs/libbfd.a exists before
6493 trying to copy it.
6494 * Makefile.in: Rebuild.
6495
6496 Fri Apr 3 11:09:42 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6497
6498 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Generate section
6499 symbols when creating a shared library.
6500 (elf_m68k_adjust_dynindx): New function, used by above code.
6501 (elf_m68k_finish_dynamic_sections): Initialize the section
6502 symbols.
6503 (elf_m68k_relocate_section): Change abort to BFD_ASSERT.
6504
6505 Wed Apr 1 16:04:02 1998 Nick Clifton <nickc@cygnus.com>
6506
6507 * coff-arm.c (in_reloc_p): Use ARM_RVA32 in place of constant
6508 value 11.
6509
6510 Wed Apr 1 13:36:58 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6511
6512 * elf32-m68k.c (elf_m68k_relocate_section, case R_68K_PLT*O): Fix
6513 assertion.
6514
6515 Tue Mar 31 00:12:12 1998 Jeffrey A Law (law@cygnus.com)
6516
6517 * elf-m10300.c (mn10300_elf_relax_section): Correctly handle
6518 absolute symbols.
6519
6520 Mon Mar 30 12:46:15 1998 Ian Lance Taylor <ian@cygnus.com>
6521
6522 * configure.in: Set version to 2.9.1.
6523 * configure: Rebuild.
6524
6525 * Branched binutils 2.9.
6526
6527 Mon Mar 30 12:20:50 1998 Brent Baccala <baccala@freesoft.org>
6528
6529 * syms.c (ENABLE_CACHING): Define.
6530 (struct indexentry): Define.
6531 (struct stab_cache): Remove.
6532 (cmpindexentry): New static function.
6533 (struct stab_find_info): Add new fields: indextable,
6534 indextablesize, cached_indexentry, cached_offset, cached_stab, and
6535 cached_file_name. Remove fields: file_cache, function_cache, and
6536 line_cache.
6537 (_bfd_stab_section_find_nearest_line): Rewrite to build a sorted
6538 index table and search it.
6539
6540 Mon Mar 30 10:39:34 1998 Ian Lance Taylor <ian@cygnus.com>
6541
6542 * elf.c (_bfd_elf_copy_private_section_data): Call
6543 copy_private_bfd_data once we've seen the last SEC_ALLOC section.
6544
6545 * cpu-mips.c: Remove trailing comma at end of enumeration list.
6546
6547 Sat Mar 28 16:33:02 1998 Ian Lance Taylor <ian@cygnus.com>
6548
6549 * coff-arm.c: Define all globally visible variables and functions
6550 only when COFF_WITH_PE is not defined.
6551 * configure.in (armpe_little_vec, armpe_big_vec): Add
6552 coff-arm.lo.
6553 * configure: Rebuild.
6554
6555 Fri Mar 27 16:06:02 1998 Ian Lance Taylor <ian@cygnus.com>
6556
6557 Fix some gcc -Wall warnings:
6558 * aout-arm.c (MY(fix_pcrel_26)): Add casts to avoid warnings.
6559 * archive.c (_bfd_generic_read_ar_hdr_mag): Likewise.
6560 * archures.c (bfd_default_scan): Likewise.
6561 * bfd.c (bfd_scan_vma): Likewise.
6562 * binary.c (mangle_name): Likewise
6563 * coff-arm.c (aoutarm_fix_pcrel_26): Likewise.
6564 * coff-sh.c (sh_relocate_section): Likewise.
6565 * coff-stgo32.c (create_go32_stub): Likewise.
6566 * coffcode.h (coff_slurp_line_table): Likewise.
6567 * ecoff.c (_bfd_ecoff_write_armap): Likewise.
6568 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
6569 (assign_file_positions_for_segments): Likewise.
6570 * elf32-mips.c (mips_elf_relocate_section): Likewise.
6571 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
6572 * oasys.c (oasys_write_sections): Likewise.
6573 * ppcboot.c (ppcboot_object_p): Likewise.
6574 (mangle_name): Likewise.
6575 * riscix.c (riscix_fix_pcrel_26): Likewise.
6576 * srec.c (srec_scan): Likewise.
6577 * stabs.c (_bfd_write_section_stabs): Likewise.
6578 * sunos.c (sunos_add_dynamic_symbols): Likewise.
6579 * aout-ns32k.c (_bfd_ns32k_relocate_contents): Add default case to
6580 switch. Declare parameters for function pointers.
6581 * archures.c (bfd_default_scan): Add braces to avoid ambiguous if
6582 warning.
6583 * elf.c (elf_sort_sections): Likewise.
6584 * coff-arm.c (coff_thumb_pcrel_common): Initialize relocation.
6585 Add default cases to switches.
6586 (coff_arm_relocate_section): Remove unused local variables.
6587 Always set rstat.
6588 (coff_arm_bfd_set_private_flags): Change flag variable to type
6589 flagword.
6590 * coff-mips.c (mips_relocate_section): Initialize use_lo.
6591 * coff-ppc.c (ppc_record_toc_entry): Change i to unsigned int.
6592 (dump_toc): Change cat to const, and initialize it.
6593 * coff-sh.c (sh_relax_delete_bytes): Initialize start and voff.
6594 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
6595 (sh_elf_relocate_section): Initialize r_symndx.
6596 * coffcode.h (coff_compute_section_file_positions): Only declare
6597 old_sofar if ALIGN_SECTIONS_IN_FILE.
6598 (coff_write_object_contents): Initialize csym.
6599 * coffgen.c (coff_pointerize_aux): Make type and class unsigned.
6600 * cpu-ns32k.c (_bfd_ns32k_get_displacement): Add default case to
6601 switch.
6602 * dwarf2.c: Include libiberty.h.
6603 (read_2_signed_bytes, read_4_signed_bytes): Comment out.
6604 (decode_line_info): Remove unused local variables.
6605 * elf32-m32r.c (m32r_elf_sda16_reloc): Likewise.
6606 (m32r_elf_relocate_section): Likewise.
6607 * elf32-v850.c (v850_elf_store_addend_in_insn): Likewise.
6608 (v850_elf_reloc): Likewise.
6609 * elf-bfd.h (elf_linker_section_t): Make alignment unsigned.
6610 (struct elf_obj_tdata): Make cverdefs and cverrefs unsigned.
6611 * elf.c (assign_file_positions_for_segments): Always set adjust.
6612 * elf32-d30v.c (bfd_elf_d30v_reloc): Initialize tmp_addr. Fully
6613 parenthesize expression.
6614 * elf32-m32r.c (m32r_elf_relocate_section): Always initialize h.
6615 (m32r_elf_object_p): Return a value.
6616 (m32r_elf_print_private_bfd_data): Change fprintf format string.
6617 * elf32-mips.c (mips_elf_final_link): Initialize last.
6618 (mips_elf_finish_dynamic_sections): Initialize last and dindx.
6619 * elf32-v850.c (v850_elf_object_p): Return a value.
6620 (v850_elf_print_private_bfd_data): Change fprintf format string.
6621 * elfcode.h (elf_slurp_symbol_table): Change symcount and i to
6622 unsigned long.
6623 * elflink.h (elf_link_add_object_symbols): Change vernum to
6624 unsigned int, and initialize it. Change fprintf format string.
6625 (NAME(bfd_elf,size_dynamic_sections)): Cast -1 to bfd_size_type
6626 when setting or comparing to soname_indx.
6627 (elf_create_pointer_linker_section): Change num_symbols to
6628 unsigned int.
6629 * libcoff-in.h (coff_data_type): Change flags to flagword.
6630 * peicode.h (pe_print_idata): Initialize idx. Change j to
6631 bfd_size_type. Initialize hint_member. Remove useless test to
6632 time_stamp.
6633 (pe_print_edata): Change num_functions and num_names in struct
6634 EDT_type to unsigned long. Remove cast. Change fprintf format
6635 string.
6636 * ppcboot.c (ppcboot_object_p): Change i to size_t.
6637 * reloc.c (bfd_get_reloc_size): Change return type to unsigned
6638 int.
6639 * reloc16.c (bfd_coff_reloc16_relax_section): Change shrinks to
6640 int *. Update uses. Change j to long.
6641 * bfd-in2.h, libcoff.h: Rebuild.
6642
6643 Fri Mar 27 10:10:46 1998 Catherine Moore <clm@cygnus.com>
6644
6645 * elf32-v850.c Remove definition of USE_REL.
6646 (v850_elf_info_to_howto_rela): New function.
6647 (v850_elf_perform_relocation): Renamed from
6648 v850_elf_store_addend_in_insn. Removed replace argument.
6649 (v850_elf_reloc): store the relocation in the addend field instead
6650 of the insn.
6651 (v850_elf_final_link_relocate): Now calls
6652 v850_elf_perform_relocation.
6653 (v850_elf_relocate_section): Remove code to generate REL
6654 relocations.
6655
6656 Thu Mar 26 13:32:17 1998 Ian Lance Taylor <ian@cygnus.com>
6657
6658 * coffcode.h (coff_new_section_hook): Set the type and storage
6659 class in the native symbol information allocated for a new section
6660 symbol.
6661
6662 Thu Mar 26 10:13:41 1998 Nick Clifton <nickc@cygnus.com>
6663
6664 * peicode.h: Chain together calls to
6665 coff_bfd_copy_private_bfd_data and
6666 coff_bfd_print_private_bfd_data.
6667
6668 * coff-arm.c: Add prototypes for
6669 coff_arm_bfd_print_private_bfd_data and
6670 coff_arm_bfd_copy_private_bfd_data.
6671
6672 Wed Mar 25 15:45:55 1998 Nick Clifton <nickc@cygnus.com>
6673
6674 * coffcode.h (coff_mkobject_hook): Set private falgs even for a PE
6675 build.
6676
6677 * peicode.h: Call arm-coff private data functions after handling
6678 pe private data.
6679
6680 * coff-arm.c: Turn statics into globals so that they can be shared
6681 both pe and pei backends.
6682
6683 Wed Mar 25 15:19:38 1998 Ian Lance Taylor <ian@cygnus.com>
6684
6685 * aoutf1.h (sunos_set_arch_mach): Use bfd_mach_m68* rather than
6686 plain numbers.
6687 (sunos_write_object_contents): Likewise.
6688 * aoutx.h (NAME(aout,machine_type)): Likewise.
6689 * coffcode.h (coff_set_arch_mach_hook): Likewise.
6690
6691 Wed Mar 25 13:59:24 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6692
6693 * archures.c (bfd_mach_m68*): Add definitions for various m68k
6694 variants.
6695 (bfd_default_scan): Remove m68k special cases.
6696 * bfd-in2.h: Rebuild.
6697 * mipsbsd.c (MY(write_object_contents)): Use bfd_mach_m68* rather
6698 than plain numbers.
6699 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
6700 * cpu-m68k.c (arch_info_struct): Likewise. Add entry for
6701 m68k:68000.
6702 (bfd_m68k_arch): Set mach field to zero to signal no explicit
6703 selection, change printable_name to just "m68k" and make that the
6704 default instead of m68k:68020.
6705
6706 * aout-tic30.c (NAME): Define this to avoid multiple definitions
6707 from aoutx.h.
6708 (MY_get_section_contents): Define as aout_32_get_section_contents
6709 rather than NAME(aout,get_section_contents).
6710
6711 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Fix cast.
6712
6713 * evax-alpha.c (evax_set_arch_mach): Only accept bfd_arch_alpha
6714 and call bfd_default_set_arch_mach to do the real work.
6715
6716 Wed Mar 25 10:41:35 1998 Richard Henderson <rth@cygnus.com>
6717
6718 * bout.c (BALX): Include return register g14 as part of the insn.
6719 (BALX_MASK): New.
6720 (calljx_callback): Use it.
6721
6722 Wed Mar 25 11:19:28 1998 Ian Lance Taylor <ian@cygnus.com>
6723
6724 * libbfd-in.h (BFD_ALIGN): Cast this parameter to bfd_vma.
6725 * libbfd.h: Rebuild.
6726
6727 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Change
6728 byte_count to unsigned int.
6729 (mn10300_elf_relax_section): Initialize internal_relocs. Remove
6730 unused local variables.
6731
6732 * evax-alpha.c (evax_close_and_cleanup): Remove unused local
6733 variables er and er1.
6734
6735 * cpu-v850.c: Include <ctype.h>.
6736 (scan): Case isdigit argument to unsigned char.
6737
6738 From Yan Meroth <YAN.MEROTH@st.com>:
6739 * ihex.c (ihex_scan): Add extbase variable so that getting an
6740 extended linear address record does not ignore any previous
6741 extended address.
6742 (ihex_write_object_contents): When writing out an extended linear
6743 address record, zero out any previous extended address.
6744
6745 Tue Mar 24 16:09:43 1998 Manfred Hollstein <manfred@s-direktnet.de>
6746
6747 * ieee.c (do_one): Check section before dereferencing it.
6748 (ieee_canonicalize_reloc): Likewise with src->relent.sym_ptr_ptr.
6749 (ieee_generic_stat_arch_elt): Likewise with abfd->my_archive.
6750
6751 Mon Mar 23 18:51:47 1998 Joel Sherrill <joel@OARcorp.com>
6752
6753 * config.bfd: (sh*-*-rtems*): Switched from ELF to COFF.
6754
6755 Mon Mar 23 14:23:36 1998 Nick Clifton <nickc@cygnus.com>
6756
6757 * coff-arm.c: Add interworking functions to pe backends.
6758
6759 Fri Mar 20 18:47:20 1998 Ian Lance Taylor <ian@cygnus.com>
6760
6761 * configure.in: Use AM_DISABLE_SHARED.
6762 * aclocal.m4, configure: Rebuild with libtool 1.2.
6763
6764 Fri Mar 20 11:25:41 1998 Nick Clifton <nickc@cygnus.com>
6765
6766 * coff-arm.c (coff_arm_relocate_section): Better error messages
6767 when interowrking conflucts occur. Courtesy of Jonathan Walton
6768 and Tony Thompson.
6769 (aoutarm_std_reloc_howto): Fixed bitsize fields of rightshifted
6770 relocations. Patch courtesy of Jonathan Walton and Tony
6771 Thompson.
6772
6773 Fri Mar 20 02:26:43 1998 Richard Henderson <rth@cygnus.com>
6774
6775 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Revert
6776 part of Feb 22 change controling when to override the existing
6777 symbol with the .plt entry.
6778
6779 Wed Mar 18 09:26:25 1998 Nick Clifton <nickc@cygnus.com>
6780
6781 * config.bfd (targ_cpu): Add thumb-pe target.
6782
6783 * coffcode.h (OTHER_GLOBAL_CLASS): Support thumb external
6784 functions in PE build.
6785
6786 Sun Mar 8 23:37:26 1998 Stan Cox <scox@equinox.cygnus.com>
6787
6788 * config.bfd (sparclite-*-elf*): Added.
6789
6790 Mon Feb 23 19:31:19 1998 Ian Lance Taylor <ian@cygnus.com>
6791
6792 * configure.in: Add elf.lo to elf shell variable.
6793 * Makefile.am (BFD_LIBS): Remove elf.lo.
6794 (BFD_LIBS_CFILES): Remove elf.c.
6795 (BFD32_BACKENDS): Add elf.lo.
6796 (BFD32_BACKENDS_CFILES): Add elf.c.
6797 * configure, Makefile.in: Rebuild.
6798
6799 1998-02-23 15:53 Richard Henderson <rth@cygnus.com>
6800
6801 * elf32-i386.c (elf_i386_relocate_section): A pc-relative
6802 relocation against a non-local symbol should not have a dynamic
6803 relocation.
6804
6805 Mon Feb 23 16:17:08 1998 Ian Lance Taylor <ian@cygnus.com>
6806
6807 * peicode.h (coff_swap_filehdr_in): Don't set BFD flag HAS_SYMS in
6808 COFF filehdr flags.
6809 (pe_print_private_bfd_data): Print PE flags. From Mikey
6810 <jeffdb@netzone.com>.
6811
6812 Sun Feb 22 20:39:00 1998 Richard Henderson <rth@cygnus.com>
6813
6814 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Don't create
6815 a plt entry when we can determine that we authoritatively define
6816 the symbol.
6817
6818 Sun Feb 22 20:33:05 1998 Richard Henderson <rth@cygnus.com>
6819
6820 * configure.in (COREFILE selection): Remove sparc-*-linux*. They
6821 don't actually use trad-core, but a SunOS-style core file handled
6822 by gdb directly.
6823 * hosts/sparclinux.h: Remove.
6824
6825 Wed Feb 18 15:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
6826
6827 * peicode.h (pe_print_idata): If there is no .idata section, look
6828 for the import tables in some other section. Make the initial
6829 label line up better with the data. Print the import address
6830 table even if there is no import name table. If the import
6831 address table holds actual addresses, print them.
6832
6833 Tue Feb 17 12:58:34 1998 Ian Lance Taylor <ian@cygnus.com>
6834
6835 * libbfd.c (bfd_seek): If fseek fails, save errno around call to
6836 bfd_tell. If errno is EINVAL, set bfd_error_file_truncated, not
6837 bfd_error_system_call.
6838
6839 Fri Feb 13 13:11:33 1998 Ian Lance Taylor <ian@cygnus.com>
6840
6841 * Makefile.am (AUTOMAKE_OPTIONS): Define.
6842 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
6843
6844 From H.J. Lu <hjl@gnu.org>:
6845 * Makefile.am (libbfd_la_LDFLAGS): Define.
6846 * Makefile.in: Rebuild.
6847
6848 Thu Feb 12 17:31:11 1998 Ian Lance Taylor <ian@cygnus.com>
6849
6850 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
6851 * netbsd.h (MACHTYPE_OK): Define.
6852 (MY(write_object_contents)): Use DEFAULT_ARCH and DEFAULT_MID when
6853 calling N_SET_MACHTYPE, rather than having a switch.
6854 * libaout.h (enum machine_type): Add M_PMAX_NETBSD, M_VAX_NETBSD,
6855 and M_ALPHA_NETBSD.
6856 * i386netbsd.c (MACHTYPE_OK): Don't define.
6857 (DEFAULT_MID): Define.
6858 * m68k4knetbsd.c (SEGMENT_SIZE): Don't define.
6859 (MACHTYPE_OK): Don't define.
6860 (DEFAULT_MID): Define.
6861 * m68knetbsd.c: (MACHTYPE_OK): Don't define.
6862 (DEFAULT_MID): Define.
6863 * ns32knetbsd.c (MACHTYPE_OK): Don't define.
6864 (DEFAULT_MID): Define.
6865 * sparcnetbsd.c (MACHTYPE_OK): Don't define.
6866 (DEFAULT_MID): Define.
6867
6868 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
6869 * vaxnetbsd.c: New file.
6870 * netbsd-core.c: Clean up. Remove unused macros. Use netbsd
6871 rather than netbsd_core.
6872 * targets.c (vaxnetbsd_vec): Declare.
6873 (bfd_target_vector): Add vaxnetbsd_vec. If NETBSD_CORE is
6874 defined, add netbsd_core_vec.
6875 * configure.in: Set COREFILE for alpha*-*-netbsd* and
6876 powerpc-*-netbsd* to netbsd-core.lo. If COREFILE is
6877 netbsd-core.lo, set COREFLAG to -DNETBSD_CORE.
6878 * config.bfd (alpha*-*-netbsd*): New target.
6879 * Makefile.am: Rebuild dependencies.
6880 (BFD32_BACKENDS): Add vaxnetbsd.lo.
6881 (BFD32_BACKENDS_CFILES): Add vaxnetbsd.c.
6882 * configure, Makefile.in: Rebuild.
6883
6884 * configure.host: Remove the old shared library build stuff. We
6885 now use libtool instead.
6886
6887 Wed Feb 11 17:13:09 1998 Richard Henderson <rth@cygnus.com>
6888
6889 * tekhex.c (tekhex_write_object_contents): Call tekhex_init.
6890
6891 Tue Feb 10 19:23:28 1998 H.J. Lu <hjl@gnu.org>
6892
6893 * configure.in: Take stab-syms.lo out of sparclinux_vec list.
6894 * configure: Rebuild.
6895
6896 Tue Feb 10 15:16:38 1998 Nick Clifton <nickc@cygnus.com>
6897 * elf32-v850.c (remember_hi16s_reloc): New function.
6898 (find_remembered_hi16s_reloc): New function.
6899 (v850_elf_store_addend_in_insn): Use the above new functions to
6900 match up HI6S relocs with LO16 relocs.
6901
6902 Tue Feb 10 15:01:39 1998 Ian Lance Taylor <ian@cygnus.com>
6903
6904 * configure.in: Change -linux* to -linux-gnu*.
6905 * config.bfd, configure.host: Likewise.
6906 * configure: Rebuild.
6907
6908 Mon Feb 9 19:40:59 1998 Nick Clifton <nickc@cygnus.com>
6909
6910 * elf32-v850.c (v850_elf_store_addend_in_insn): Fix another
6911 LO16/HI16S bug and improve comments about what is going on.
6912
6913 Sat Feb 7 15:27:03 1998 Ian Lance Taylor <ian@cygnus.com>
6914
6915 * configure, aclocal.m4: Rebuild with new libtool.
6916
6917 Fri Feb 6 14:48:20 1998 Nick Clifton <nickc@cygnus.com>
6918
6919 * elf32-v850.c (v850_elf_merge_private_bfd_data): Do not complain
6920 when merging v850 code into v850e/v850ea code. Do not initialise
6921 output flags if the input is the default architecture.
6922
6923 Fri Feb 6 11:50:22 1998 Jeffrey A Law (law@cygnus.com)
6924
6925 * elf32-mips.c (bfd_elf32_bfd_reloc_type_lookup): For BFD_RELOC_CTOR
6926 get the size from bfd_arch_bits_per_address instead of directly
6927 from the isa.
6928
6929 Thu Feb 5 14:21:34 1998 Michael Meissner <meissner@cygnus.com>
6930
6931 * libbfd-in.h (BFD_ALIGN): If rounding up would cause the address
6932 to wrap, just return all 1's bits instead.
6933 * libbfd.h: Regenerate.
6934
6935 Thu Feb 5 11:51:05 1998 Ian Lance Taylor <ian@cygnus.com>
6936
6937 * coff-i386.c (coff_pe_i386_relocate_section): New static function
6938 if COFF_WITH_PE.
6939 (coff_relocate_section): If COFF_WITH_PE, define as
6940 coff_pe_i386_relocate_section.
6941 * coffcode.h (coff_write_object_contents): If COFF_IMAGE_WITH_PE,
6942 skip empty sections, to match coff_write_object_contents.
6943
6944 * elf64-mips.c (mips_elf64_swap_reloca_out): Swap out r_addend,
6945 rather than swapping out r_offset twice. From Luke Deller
6946 <luked@cse.unsw.edu.au>.
6947
6948 Wed Feb 4 19:11:28 1998 Ian Lance Taylor <ian@cygnus.com>
6949
6950 * configure.in: Set libtool_enable_shared rather than
6951 libtool_shared. Remove diversion hack.
6952 * configure, Makefile.in, doc/Makefile.in, aclocal.m4: Rebuild
6953 with new libtool.
6954
6955 Wed Feb 4 16:10:21 1998 Brent Baccala <baccala@freesoft.org>
6956
6957 * syms.c (struct stab_cache): Define.
6958 (struct stab_find_info): Remove cached_offset, cached_stab,
6959 cached_str, and cached_stroff fields. Add file_cache,
6960 function_cache, and line_cache fields.
6961 (_bfd_stab_section_find_nearest_line): Use extensive caching to
6962 speed up searches.
6963
6964 Wed Feb 4 13:34:22 1998 Ian Lance Taylor <ian@cygnus.com>
6965
6966 * peicode.h (pe_print_idata): Check for import of ordinal rather
6967 than name.
6968 (pe_print_edata): If there is no .edata section, look for the
6969 export data in some other section.
6970
6971 Mon Feb 2 20:05:42 1998 Jason Molenda (crash@bugshack.cygnus.com)
6972
6973 * configure.in: Change version to 2.8.4.
6974 * configure: Regenerated.
6975
6976 Mon Feb 2 17:39:39 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
6977
6978 Add tms320c30 support:
6979 * cpu-tic30.c: New file.
6980 * aout-tic30.c: New file.
6981 * coff-tic30.c: New file.
6982 * archures.c (bfd_arch_tic30): Define.
6983 (bfd_tic30_arch): Declare.
6984 (bfd_archures_list): Add bfd_tic30_arch.
6985 * targets.c (bfd_target_vector): Add tic30_aout_vec and
6986 tic30_coff_vec.
6987 * reloc.c (BFD_RELOC_TIC30_LDP): Define.
6988 * coffcode.h (coff_set_arch_mach_hook): Add tic30 case.
6989 (coff_set_flags): Likewise.
6990 * config.bfd (tic30-*-*aout*, tic30-*-*coff*): New targets.
6991 * configure.in (tic30_aout_vec, tic30_coff_vec): New vectors.
6992 * Makefile.am: Rebuild dependencies.
6993 (ALL_MACHINES): Add cpu-tic30.lo.
6994 (ALL_MACHINES_CFILES): Add cpu-tic30.c.
6995 (BFD32_BACKENDS): Add aout-tic30.lo and coff-tic30.lo.
6996 (BFD32_BACKENDS_CFILES): Add aout-tic30.c and coff-tic30.c.
6997 * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
6998
6999 Mon Feb 2 12:25:12 1998 Nick Clifton <nickc@cygnus.com>
7000
7001 * elf32-v850.c (v850_elf_store_addend_in_insn): Allow HI16_S reloc
7002 to lag behind LO16 reloc by a couple of instructions.
7003
7004 Mon Feb 2 14:09:46 1998 Ian Lance Taylor <ian@cygnus.com>
7005
7006 * Makefile.am ($(srcdir)/bfd-in2.h): Add dummy command to force
7007 make to reexamine the file timestamp.
7008 ($(srcdir)/libbfd.h, $(srcddir)/libcoff.h): Likewise.
7009
7010 * elf64-alpha.c (ELF_MAXPAGESIZE): Change to 0x10000 from
7011 0x100000.
7012
7013 Fri Jan 30 19:07:07 1998 Geoff Keating <geoffk@ozemail.com.au>
7014
7015 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New procedure
7016 to create .dynsbss and .rela.sbss sections.
7017 (ppc_elf_adjust_dynamic_symbol): Put space for small data to be
7018 copied from dynamic objects into .sbss.
7019 (ppc_elf_size_dynamic_sections): Strip .rela.sbss if we don't
7020 use it. Correct typo of .rela.sdata2.
7021 (ppc_elf_finish_dynamic_symbol): Generate reloc to where we
7022 put the data, which may now be in .sbss.
7023 (ppc_elf_relocate_section): A SDAREL16 reloc can be in dynsbss.
7024 (elf_backend_create_dynamic_sections): Define as
7025 ppc_elf_create_dynamic_sections.
7026
7027 * elf32-ppc.c (ppc_elf_check_relocs): Don't emit R_PPC_REL* relocs
7028 against _GLOBAL_OFFSET_TABLE_.
7029 (ppc_elf_relocate_section): Don't emit R_PPC_REL32 relocs in
7030 shared libraries which refer to local symbols. Make sure that the
7031 test for allocating space for a reloc in a shared object is the
7032 same as the test for emitting a reloc.
7033
7034 Thu Jan 29 15:55:35 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
7035
7036 * config.bfd (i[3456]-*-mingw32*): New target.
7037 * acinclude.m4 (BFD_BINARY_OPEN): Check for mingw32.
7038 * aclocal.m4, configure: Rebuild.
7039
7040 Wed Jan 28 13:41:26 1998 Ian Lance Taylor <ian@cygnus.com>
7041
7042 * elf.c (_bfd_elf_close_and_cleanup): Only check the strtab if we
7043 have a bfd_object.
7044
7045 Tue Jan 27 21:43:55 1998 Richard Henderson <rth@cygnus.com>
7046
7047 Sparc v9 ABI compliant PLT:
7048 * elf64-sparc.c (PLT_HEADER_SIZE): V9 ABI uses 4 entries.
7049 (plt_templates, sparc64_elf_build_plt_entry): Delete.
7050 (LARGE_PLT_THRESHOLD): New define.
7051 (GOT_RESERVED_ENTRIES): V9 ABI only uses 1.
7052 (sparc64_elf_build_plt): New function.
7053 (sparc64_elf_plt_entry_offset): Likewise.
7054 (sparc64_elf_plt_ptr_offset): Likewise.
7055 (sparc64_elf_adjust_dynamic_symbol): Change h->plt_offset to
7056 contain the index for convenience. Skip the initial entries
7057 in .rela.plt.
7058 (sparc64_elf_size_dynamic_sections): Zero the allocated contents
7059 memory for the benefit of .rela.plt.
7060 (sparc64_elf_relocate_section): Call sparc64_elf_plt_entry_offset.
7061 (sparc64_elf_finish_dynamic_symbol): Kill template stuff. Use
7062 sparc64_elf_plt_entry_offset & sparc64_elf_plt_ptr_offset for reloc.
7063 (sparc64_elf_finish_dynamic_sections): DT_PLTGOT points to .plt.
7064 Call sparc64_elf_build_plt.
7065 (elf_backend_want_got_plt): No.
7066 (elf_backend_plt_readonly): No.
7067 (elf_backend_plt_alignment): 8.
7068
7069 * elf.c (_bfd_elf_close_and_cleanup): New function; free the shstrtab.
7070 * elf-bfd.h (_bfd_elf_close_and_cleanup): Declare it.
7071 * elfxx-target.h (bfd_elfNN_close_and_cleanup): Arrange for it
7072 to be called.
7073
7074 Tue Jan 27 21:45:15 1998 Jeffrey A Law (law@cygnus.com)
7075
7076 * archures.c (bfd_mach_mips*): Add definitions for various MIPS
7077 processors.
7078 * cpu-mips.c (arch_info_struct): Add mips variants.
7079 * bfd-in2.h: Rebuilt.
7080
7081 Tue Jan 27 15:06:04 1998 Nick Clifton <nickc@cygnus.com>
7082
7083 * coff-arm.c (coff_arm_relocate_section): Preserve the contents of
7084 t2a3_b_insn.
7085
7086 Tue Jan 27 12:47:27 1998 Robert Lipe <robertl@dgii.com>
7087
7088 * config.bfd (i[3456]86-sco3.2v5*): ELF now the default.
7089 (i[3456]86sco3.2v5*coff): New target.
7090
7091 Mon Jan 26 15:41:30 1998 Ian Lance Taylor <ian@cygnus.com>
7092
7093 * bfd-in2.h: Rebuild with changes to chew--tab expansion.
7094
7095 Thu Jan 22 21:26:48 1998 Richard Henderson <rth@cygnus.com>
7096
7097 * bfd.c (bfd_get_error_handler): Add orthogonal function.
7098 * bfd-in2.h: Regenerate.
7099
7100 Thu Jan 22 21:13:39 1998 Richard Henderson <rth@cygnus.com>
7101
7102 * tekhex.c (tekhex_write_object_contents): Check for no symbols.
7103
7104 Wed Jan 21 21:19:03 1998 Ian Lance Taylor <ian@cygnus.com>
7105
7106 * coff-i386.c (coff_i386_rtype_to_howto): If COFF_WITH_PE, don't
7107 adjust addend for an output common symbol (from Jimmy Blair
7108 <jimmyb@wrs.com>). If COFF_WITH_PE, adjust addend for PC relative
7109 defined symbol to counteract adjustment made in generic relocation
7110 code.
7111
7112 * dwarf2.c: Include sysdep.h, not stdio.h and stdlib.h.
7113
7114 Wed Jan 21 21:16:06 1998 Manfred Hollstein <manfred@s-direktnet.de>
7115
7116 * coff-m88k.c (GET_SCNDHR_NRELOC): Fix typo in macro name.
7117 (GET_SCNDHR_NLNNO): Likewise.
7118
7119 Mon Jan 19 12:49:52 1998 Ian Lance Taylor <ian@cygnus.com>
7120
7121 * cpu-sh.c (arch_info_struct): Correct next field of sh3e.
7122
7123 Wed Jan 14 17:23:27 1998 Nick Clifton <nickc@cygnus.com>
7124
7125 * elf32-m32r.c: Add macros to handle NOP insertion.
7126
7127 Wed Jan 14 16:15:22 1998 Richard Henderson <rth@cygnus.com>
7128
7129 * xcofflink.c (xcoff_mark_symbol): Don't mark the absolute section.
7130 (xcoff_mark): Likewise.
7131 (xcoff_build_ldsyms): Mark absolute symbols.
7132
7133 Wed Jan 14 16:03:11 1998 Richard Henderson <rth@cygnus.com>
7134
7135 * bout.c (b_out_write_object_contents): Sort symbols before output
7136 to keep {CALL,BAL}NAME symbols adjacent.
7137 (b_out_symbol_cmp): New function.
7138
7139 For older changes see ChangeLog-9697
7140 \f
7141 Local Variables:
7142 mode: change-log
7143 left-margin: 8
7144 fill-column: 74
7145 version-control: never
7146 End: