* section.c (STD_SECTION): Account for recently added gc_mark
[binutils-gdb.git] / bfd / ChangeLog
1 Tue Jun 30 09:55:03 1998 Jeffrey A Law (law@cygnus.com)
2
3 * section.c (STD_SECTION): Account for recently added gc_mark
4 field in struct asection.
5
6 * elf-m10300.c (bfd_mn10300_elf_merge_private_bfd_data): New function.
7 (bfd_elf32_bfd_merge_private_bfd_data): Define.
8
9 Thu Jun 25 18:31:41 1998 Richard Henderson <rth@cygnus.com>
10
11 ELF Section-level Garbage Collection:
12 * bfd.c (bfd_gc_sections): New.
13 * aout-adobe.c: Hook to default implementation.
14 * aout-target.h, aout-tic30.c, binary.c, bout.c: Likewise.
15 * coff-alpha.c, coff-mips.c, coff-rs6000.c, coffcode.h: Likewise.
16 * evax-alpha.c, i386msdos.c, i386os9k.c, ieee.c: Likewise.
17 * ihex.c, nlm-target.h, oasys.c, ppcboot.c, srec.c: Likewise.
18 * tekhex.c, versados.c: Likewise.
19 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): New.
20 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_gc_sections.
21
22 * reloc.c (BFD_RELOC_VTABLE_INHERIT, BFD_RELOC_VTABLE_ENTRY): New.
23 (bfd_generic_gc_sections): New.
24 * section.c (SEC_KEEP): New.
25 (asection): Add gc_mark member.
26
27 * elfcode.h (elf_gc*): New name remappings.
28 * elflink.h (elf_link_input_bfd): Don't set contents on stabs
29 sections to be excluded.
30 (elf_gc_mark, elf_gc_sweep, elf_gc_sweep_symbol): New.
31 (elf_gc_propogate_vtable_entries_used): New.
32 (elf_gc_smash_unused_vtentry_relocs): New.
33 (elf_gc_sections, elf_gc_record_vtinherit, elf_gc_record_vtentry): New.
34 (elf_gc_common_finalize_got_offsets): New.
35 (elf_gc_allocate_got_offsets, elf_gc_common_final_link): New.
36 * elfxx-target.h: Add and default gc hooks.
37
38 * elf-bfd.h (struct elf_link_hash_entry): Swap got_offset/plt_offset
39 for unions.
40 (struct elf_obj_tdata): Likewise for local_got_offsets.
41 * elf.c, elf-i386.c, elf32-m68k.c, elf32-mips.c: Update all uses.
42 * elf32-ppc.c, elf32-sparc.c, elf64-alpha.c: Likewise.
43 * elf64-sparc.c, elflink.h: Likewise.
44
45 * elf-bfd.h (struct elf_link_hash_entry): Add vtable members.
46 (ELF_LINK_HASH_MARK): Define.
47 (struct elf_backend_data): Add GC hooks.
48 * elf.c (_bfd_elf_link_hash_newfunc): Zero vtable members.
49
50 * elf-m10300.c (mn10300_elf_check_relocs): New.
51 (mn10300_elf_gc_mark_hook): New.
52 (R_MN10300_GNU_VTINHERIT, R_MN10300_GNU_VTENTRY): New.
53 (elf_mn10300_howto, mn10300_reloc_map): Handle them.
54 (mn10300_elf_final_link_relocate): Likewise.
55 (mn10300_elf_relocate_section): Likewise.
56 (elf_backend_can_gc_sections): Define.
57 * elf32-mips.c (R_MIPS_GNU_VTINHERIT, R_MIPS_GNU_VTENTRY): New.
58 (elf_mips_gnu_vtinherit_howto, elf_mips_gnu_vtentry_howto): New.
59 (bfd_elf32_bfd_reloc_type_lookup): Handle them.
60 (mips_info_to_howto_rel): Likewise.
61 (mips_elf_relocate_section): Likewise.
62 (mips_elf_check_relocs): Likewise.
63 (mips_elf_gc_mark_hook, mips_elf_gc_sweep_hook): New.
64 (elf_backend_can_gc_sections): Define.
65 * elf32-ppc.c (R_PPC_GNU_VTINHERIT, R_PPC_GNU_VTENTRY): New.
66 (ppc_elf_howto_raw): Handle them.
67 (ppc_elf_reloc_type_lookup): Likewise.
68 (ppc_elf_relocate_section): Likewise.
69 (ppc_elf_check_relocs): Reference count .got and .plt entires.
70 Handle new vtable relocs.
71 (ppc_elf_adjust_dynamic_symbol): Recognize unused .plt entries.
72 (ppc_elf_gc_mark_hook, ppc_elf_gc_sweep_hook): New.
73 (elf_backend_can_gc_sections): Define.
74
75 Fri Jun 26 10:48:23 1998 Jeffrey A Law (law@cygnus.com)
76
77 * archures.c (bfd_mach_mn10300): Define.
78 * elf-m10300.c: Include elf/mn10300.h
79 (elf_mn10300_mach): New function.
80 (_bfd_mn10300_elf_final_write_processing): Likewise.
81 (_bfd_mn10300_elf_object_p): Likewise.
82 (elf_backendfinal_write_processing): Define.
83 (elf_backend_object_p): Likewise.
84 start-sanitize-am33
85 * archures.c (bfd_mach_am33): Define.
86 * cpu-m10300.c (bfd_am33_arch): New arch info structure. Link it
87 into the NEXT field of bfd_mn10300_arch.
88 end-sanitize-am33
89
90 Thu Jun 25 18:31:08 1998 Nick Clifton <nickc@cygnus.com>
91
92 * elf32-v850.c (v850_elf_perform_relocation): Fix HI16_S
93 relocation.
94
95 Wed Jun 24 17:17:57 1998 Ian Lance Taylor <ian@cygnus.com>
96
97 * elflink.h (elf_bfd_final_link): Loop over input_bfds using the
98 link_next field, not the next field.
99
100 Sun Jun 21 19:38:39 1998 Ian Lance Taylor <ian@cygnus.com>
101
102 * elf.c (map_sections_to_segments): Check the section address
103 against the phdr size both with and without a modulo of
104 maxpagesize.
105
106 Fri Jun 19 17:08:18 1998 Ian Lance Taylor <ian@cygnus.com>
107
108 * elf32-mips.c (mips_elf_size_dynamic_sections): Only strip a
109 linker created empty input section if the output section has the
110 same name.
111
112 * elflink.h (elf_link_output_extsym): Print an error message if
113 _bfd_elf_section_from_bfd_section fails.
114
115 * elf.c (_bfd_elf_section_from_bfd_section): Call bfd_set_error on
116 failure.
117
118 Tue Jun 16 11:55:55 1998 Ian Lance Taylor <ian@cygnus.com>
119
120 * elf.c (copy_private_bfd_data): Improve handling of Solaris
121 native linker output. Avoid putting an empty section in more than
122 one segment.
123
124 Fri Jun 12 13:30:17 1998 Tom Tromey <tromey@cygnus.com>
125
126 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
127 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
128
129 Fri Jun 12 13:34:02 1998 Doug Evans <devans@canuck.cygnus.com>
130
131 * elf.c (swap_out_syms): New arg relocatable_p.
132 Don't add section VMA to symbols for relocatable output.
133 (_bfd_elf_compute_section_file_positions): Update call to
134 swap_out_syms.
135
136 Mon Jun 8 15:20:57 1998 Nick Clifton <nickc@cygnus.com>
137
138 * elf32-v850.c (v850_elf_perform_relocation): Make comparisons
139 against 'addend' be signed rather than unsigned.
140
141 Sat Jun 6 00:31:21 1998 Nick Clifton <nickc@cygnus.com>
142
143 * elf32-m32r.c: Add prototyps for static functions.
144
145 * coff-arm.c: Add prototypes for static functions.
146
147 Fri Jun 5 17:21:51 1998 Nick Clifton <nickc@cygnus.com>
148
149 * elf.c (elf_sort_sections): Sort by LMA first then VMA, since the
150 LMA is used to order sections in a segment.
151
152 * elf32-v850.c: Add prototypes for static functions.
153 Change type of addend parameter to bfd_vma in various functions.
154
155 Fri Jun 5 18:09:58 1998 Ian Lance Taylor <ian@cygnus.com>
156
157 * aoutx.h (howto_table_ext): Change RELOC_BASE13 to use
158 complain_overflow_signed instead of complain_overflow_bitfield.
159
160 Fri Jun 5 15:11:11 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
161
162 * elf.c (elf_map_symbols): Don't add section VMA to symbol value
163 when comparing against 0.
164
165 Wed Jun 3 17:52:49 1998 Ian Lance Taylor <ian@cygnus.com>
166
167 * Makefile.am (config.status): New target.
168 * Makefile.in: Rebuild.
169
170 start-sanitize-sky
171 Wed Jun 3 11:39:57 1998 Doug Evans <devans@canuck.cygnus.com>
172
173 * elf32-mips.c (_bfd_mips_elf_fake_sections): Update to use
174 Elf32_Dvp_External_Overlay instead of 64 bit version.
175
176 end-sanitize-sky
177 Wed Jun 3 12:18:24 1998 Stan Cox <scox@equinox.cygnus.com>
178
179 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Give an
180 error if previous object endianness doesn't match current object.
181
182 Tue Jun 2 17:50:59 1998 Nick Clifton <nickc@cygnus.com>
183
184 * elf32-v850.c (v850_elf_print_private_bfd_data): Call
185 _bfd_elf_print_private)bfd_data ().
186
187 Tue Jun 2 15:29:35 1998 Ian Lance Taylor <ian@cygnus.com>
188
189 * elflink.h (elf_merge_symbol): Don't always set type_change_ok
190 and size_change_ok.
191 (elf_link_add_object_symbols): Set type_change_ok and
192 size_change_ok before calling elf_merge_symbol.
193
194 * elf32-mips.c (mips_elf_relocate_section): If we issue an
195 undefined symbol error, don't also issue an overflow error.
196
197 Tue Jun 2 13:51:00 1998 Geoff Keating <geoffk@ozemail.com.au>
198
199 * elf32-ppc.c (ppc_elf_relocate_section): The target of an
200 R_PPC_LOCAL24PC relocation should be local; if not, print an error
201 message instead of crashing.
202
203 Mon Jun 1 18:23:12 1998 Yuli Barcohen <yuli.barcohen@telrad.co.il>
204
205 * archures.c (bfd_mach_cpu32): Define.
206 (bfd_default_scan): Add case for 68060. Fix 68332 case to use
207 bfd_mach_cpu32.
208 * cpu-m68k.c (arch_info_struct): Add m68k:cpu32.
209 * ieee.c: Include <ctype.h>.
210 (ieee_object_p): Parse out process ID string to make it more
211 likely to be acceptable for bfd_scan_arch.
212 * bfd-in2.h: Rebuild.
213
214 Mon Jun 1 11:12:02 1998 Nick Clifton <nickc@cygnus.com>
215
216 * elf32-m32r.c (m32r_elf_print_private_bfd_data): Also call
217 _bfd_elf_print_private_bfd_data() so that the program header will
218 be displayed.
219
220 Mon Jun 1 12:14:28 1998 Ian Lance Taylor <ian@cygnus.com>
221
222 * peicode.h (coff_swap_sym_in): Check for C_SECTION rather than
223 0x68. Reindent. Add some comments.
224
225 start-sanitize-sky
226 Sun May 31 16:11:22 1998 Doug Evans <devans@canuck.cygnus.com>
227
228 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Set sh_link
229 field of .DVP.ovlytab to .DVP.ovlystrtab's section index.
230 (_bfd_mips_elf_section_from_shdr): Recognize SHT_DVP_OVERLAY_TABLE
231 and SHT_DVP_OVERLAY.
232 (_bfd_mips_elf_fake_sections): Ditto.
233
234 end-sanitize-sky
235 Fri May 29 09:58:08 1998 Nick Clifton <nickc@cygnus.com>
236
237 * elf.c (copy_private_bfd_data): Adjust physical address of
238 segment in output BFD to contain LMAs of its sections.
239
240 Tue May 26 19:37:47 1998 Stan Cox <scox@equinox.cygnus.com>
241
242 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
243 elf32_sparc_relocate_section): Added R_SPARC_32LE for little
244 endian data 32 bit relocations.
245 (elf32_sparc_merge_private_bfd_data): Check if linking little
246 endian objects with big endian objects.
247 (elf32_sparc_object_p): Set bfd_mach_sparc_sparclite_le.
248 (elf32_sparc_final_write_processing): Set EF_SPARC_LEDATA in e_flags.
249 * libbfd.h (bfd_reloc_code_real_names): Added BFD_RELOC_SPARC_32LE.
250 * reloc.c: Same.
251 * cpu-sparc.c (arch_info_struct): Added sparc:sparclite_le
252 * archures.c (bfd_mach_sparc_sparclite_le): New.
253 * bfd-in2.h (BFD_RELOC_SPARC_32LE, bfd_mach_sparc_sparclite_le): New.
254
255 Thu May 21 16:59:28 1998 Nick Clifton <nickc@cygnus.com>
256
257 * peicode.h (add_data_entry): Fix precedence of operators in if ()
258 statement.
259
260 Tue May 19 18:41:19 1998 Ian Lance Taylor <ian@cygnus.com>
261
262 * bfd-in.h: Move over patch to bfd-in2.h.
263
264 * reloc.c (bfd_check_overflow): Add casts before shifts which may
265 not fit in 32 bits.
266 (_bfd_relocate_contents): Likewise.
267
268 Mon May 18 14:44:15 1998 Nick Clifton <nickc@cygnus.com>
269
270 * peicode.h (add_data_entry): If the section has no private data
271 then do not create a Data Dictionary entry for it.
272
273 Mon May 18 00:09:28 1998 Richard Henderson <rth@cygnus.com>
274
275 * elf64-alpha.c (elf64_alpha_relax_section): Set again on changes.
276 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots,
277 elf64_alpha_size_got_sections): Rewrite, handling multiple got
278 subsections during relaxation more correctly.
279
280 Thu May 14 14:22:58 1998 Nick Clifton <nickc@cygnus.com>
281
282 * bfd-in2.h: Add new prototype: bfd_coff_set_symbol_class ().
283 Add extra argument to bfd_arm_process_before_allocation ().
284 * bfd-in.h: Reflect changes made in bfd-in2.h.
285 * coffgen.c (bfd_coff_set_symbol_class): New function. Set the
286 coff class of a BFD symbol.
287 * coff-arm.c: Add support for interworking between Thumb code and
288 non-interworking aware ARM code.
289
290 Sun May 10 22:33:59 1998 Jeffrey A Law (law@cygnus.com)
291
292 * po/Make-in (install-info): New target.
293
294 Thu May 7 17:40:56 1998 Ian Lance Taylor <ian@cygnus.com>
295
296 * filemode.c: Remove; not used.
297
298 If sysdep.h includes a header file, don't include it again:
299 * aix386-core.c: Don't include <stdio.h>, <stddef.h>, or
300 <errno.h>.
301 * aoutx.h: Don't include <string.h>. Use "sysdep.h" rather than
302 <sysdep.h>.
303 * archive.c: Don't include <string.h> or <errno.h>.
304 * evax-alpha.c; Don't include <stdio.h>.
305 * evax-egsd.c: Likewise.
306 * evax-etir.c: Likewise.
307 * evax-misc.c: Likewise.
308 * evax-emh.c: Likewise. Also, don't include <sys/types.h>.
309 * hppabsd-core.c: Don't include <stdio.h>, <sys/types.h>, or
310 <errno.h>.
311 * hpux-core.c: Likewise.
312 * netbsd-core.c: Likewise.
313 * som.c: Likewise.
314 * libbfd.c: Don't include <sys/types.h>.
315 * nlmcode.h: Don't include <string.h>.
316 * osf-core.c: Don't include <string.h> or <stdio.h>.
317 * ptrace-core.c: Don't include <stdio.h>, <sys/types.h>,
318 <errno.h>, or <unistd.h>.
319 * trad-core.c: Don't include <stdio.h> or <sys/types.h>.
320
321 Thu May 7 13:12:50 1998 Klaus Kaempf <kkaempf@progis.de>
322
323 * configure.com: If the version number can not be found in
324 configure.in, set it to "unknown" rather than "2.8.1".
325
326 Wed May 6 09:46:05 1998 Gavin Koch <gavin@cygnus.com>
327
328 * elf32-mips.c (elf_mips_mach): New.
329 (_bfd_mips_elf_object_p): Use elf_mips_mach.
330 (_bfd_mips_elf_final_write_processing): Use the names
331 of machines, rather than the numbers. Set both the ARCH
332 and MACH in e_flags. Handle a few more specific machines.
333 (_bfd_mips_elf_merge_private_bfd_data): Merge both
334 EF_MIPS_ARCH and EF_MIPS_MACH.
335
336 Tue May 5 21:01:53 1998 Richard Henderson <rth@cygnus.com>
337
338 * syms.c (bfd_is_local_label): Revert last change.
339 * srec.c (srec_write_symbols): Discard debugging symbols.
340
341 Tue May 5 23:36:06 1998 Ian Lance Taylor <ian@cygnus.com>
342
343 * som.c: Include <ctype.h>.
344 * som.h: Don't include sysdep.h.
345
346 Tue May 5 18:29:24 1998 Tom Tromey <tromey@cygnus.com>
347
348 * libbfd.h: Rebuilt.
349 * libbfd-in.h: Removed gettext includes and defines.
350 * sysdep.h: Moved gettext-related includes and defines here.
351
352 Tue May 5 16:47:54 1998 Richard Henderson <rth@cygnus.com>
353
354 * srec.c (srec_write_symbols): Use bfd_is_local_label rather than
355 an ad-hoc test. Kill bogus #if 0 code.
356 * syms.c (bfd_is_local_label): Consider BSF_DEBUGGING symbols local.
357
358 Mon May 4 16:10:33 1998 Ian Lance Taylor <ian@cygnus.com>
359
360 * sunos.c (sunos_check_dynamic_reloc): Don't use the PLT address
361 when generating a normal executable for a symbol defined in a
362 regular file. When copying a reloc into the output file, adjust
363 the addend for a PC relative reloc against a global symbol.
364
365 Mon May 4 10:08:18 1998 Tom Tromey <tromey@cygnus.com>
366
367 * libbfd.h: Rebuilt.
368 * libbfd-in.h (_): Define as dgettext.
369
370 Mon May 4 11:02:23 1998 Ian Lance Taylor <ian@cygnus.com>
371
372 * coff-arm.c (coff_arm_relocate_section): Cast to bfd_signed_vma,
373 not signed.
374 * peicode.h (pe_saved_coff_bfd_print_private_bfd_data): Use PARAMS
375 when declaring parameter types.
376 (pe_saved_coff_bfd_copy_private_bfd_data): Likewise.
377
378 Wed Apr 29 15:35:03 1998 Ian Lance Taylor <ian@cygnus.com>
379
380 * config.bfd: If we include any ELF targets in targ_defvec and/or
381 targ_selvecs, then add the generic ELF targets to targ_selvecs.
382 * elf32-gen.c (dummy): New static const variable.
383 (elf_generic_info_to_howto): New static function.
384 (elf_generic_info_to_howto_rel): New static function.
385 (elf_info_to_howto): Define as elf_generic_info_to_howto.
386 (elf_info_to_howto_rel): Define as elf_generic_info_to_howto_rel.
387 * elf64-gen.c: Same changes as elf32-gen.c.
388 * elfcode.h (elf_object_p): For the generic target, ignore a
389 failure of bfd_default_set_arch_mach. Fix indentation a bit.
390
391 Tue Apr 28 20:05:52 1998 Ian Lance Taylor <ian@cygnus.com>
392
393 * configure.in (WIN32LIBADD): Add -lintl on cygwin32.
394 * configure: Rebuild.
395
396 Tue Apr 28 12:16:57 1998 Jason Molenda (crash@bugshack.cygnus.com)
397
398 * config.bfd: Update OSR5/Unixware patterns.
399
400 Mon Apr 27 18:02:24 1998 Richard Henderson <rth@cygnus.com>
401
402 * elf.c (assign_file_positions_for_segments): Allow for holes
403 between sections added by a link script.
404
405 Mon Apr 27 11:49:55 1998 Ian Lance Taylor <ian@cygnus.com>
406
407 * configure.in: Change version number to 2.9.4
408 * configure: Rebuild.
409
410 Based on patch from H.J. Lu <hjl@gnu.org>:
411 * elf.c (bfd_elf_get_bfd_needed_list): New function.
412 * bfd-in.h (bfd_elf_get_bfd_needed_list): Declare.
413 * bfd-in2.h: Rebuild.
414
415 Sat Apr 25 20:07:53 1998 Richard Henderson <rth@cygnus.com>
416
417 * elf64-alpha.c (struct alpha_relax_info): Replace elfsym with other.
418 Change all users.
419
420 Sat Apr 25 18:29:07 1998 Richard Henderson <rth@cygnus.com>
421
422 * elf64-alpha.c (struct alpha_relax_info): Add tsec & elfsym members.
423 (elf64_alpha_relax_section): Fill them in.
424 (elf64_alpha_relax_opt_call): Implement more than a stub.
425 (elf64_alpha_add_symbol_hook): Don't set SEC_LOAD or default
426 alignment on .scommon.
427 (elf64_alpha_merge_gots): Merge use counts as well.
428
429 Sat Apr 25 14:07:29 1998 Richard Henderson <rth@cygnus.com>
430
431 * elf64-alpha.c (elf64_alpha_relax_section): Use the proper section
432 for calculating a local symbol's address.
433 (elf64_alpha_calc_got_offsets): Skip entries with 0 use count.
434 Set the .got's cooked size as well as the raw size.
435
436 Fri Apr 24 09:16:00 1998 Nick Clifton <nickc@cygnus.com>
437
438 * elf32-v850.c (v850_elf_print_private_bfd_data): Add
439 internationalisation of printed information.
440
441 * coff-arm.c (coff_arm_print_private_bfd_data): Add
442 internationalisation of printed information.
443
444 Fri Apr 24 12:09:18 1998 Ian Lance Taylor <ian@cygnus.com>
445
446 * syms.c (struct indexentry): Change directory_name, file_name,
447 and function_name fields to char *.
448 (struct stab_find_info): Change cached_file_name field to char *.
449
450 Thu Apr 23 08:13:04 1998 Nick Clifton <nickc@cygnus.com>
451
452 * peicode.h (dir_names): Add missing N_() macros to dir_names array.
453
454 Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
455
456 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
457
458 Wed Apr 22 17:48:48 1998 Ian Lance Taylor <ian@cygnus.com>
459
460 * Makefile.am (install-data-local): Make $(includedir).
461 * Makefile.in: Rebuild.
462
463 Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
464
465 * libbfd-in.h: Use `gettext' and not `dgettext' for now.
466
467 Wed Apr 22 12:53:40 1998 Ian Lance Taylor <ian@cygnus.com>
468
469 * Makefile.am (INCLUDES): Add -I$(srcdir)/../intl -I../intl.
470 * Makefile.in: Rebuild.
471
472 * bfd-in2.h: Rebuild for Nick's changes.
473
474 Tue Apr 21 23:11:51 1998 Richard Henderson <rth@cygnus.com>
475
476 * archive.c (_bfd_generic_read_ar_hdr_mag): Fix lossage in last
477 change wrt length == max_namelen.
478
479 Tue Apr 21 21:19:36 1998 Tom Tromey <tromey@scribbles.cygnus.com>
480
481 * Many files: Added gettext invocations around user-visible
482 strings.
483 * libbfd-in.h: Added gettext includes and defines.
484 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
485 HAVE_LC_MESSAGES): Define.
486 * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and
487 po/Makefile.
488 * Makefile.am (SUBDIRS): Added po.
489 (POTFILES): New macro.
490 (po/POTFILES.in): New target.
491 (SOURCE_HFILES): New macro.
492 (HFILES): Use it.
493 * po/Make-in, po/POTFILES.in, po/bfd.pot: New files.
494
495 Tue Apr 21 13:38:18 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
496
497 * elfcore.h (bfd_prstatus): Copy core_prstatus from the first
498 NT_PRSTATUS note section encountered, it contains the status of
499 the currently executing thread when the core file was written.
500
501 Tue Apr 21 10:00:12 1998 Nick Clifton <nickc@cygnus.com>
502
503 * libcoff.h: Add extra parameter to
504 bfd_coff_link_output_has_begun overrideable function.
505 * cofflink.c: Pass extra parameter to
506 bfd_coff_link_output_has_begun function.
507 * bfd-in.h: Add prototypes for exported ARM interworking
508 functions.
509 * peicode.h: ARM specific code reorganised to conform to BFD
510 coding conventions.
511 * coffcode.h: ARM specific code reorganised to conform to BFD
512 coding conventions.
513 * coff-arm.c: Code reorganised to conform to the BFD coding
514 conventions. Global variables have been moved into an ARM
515 specific hash table structure and a new function:
516 bfd_arm_get_bfd_for_interworking() has been created which is
517 called from the linker scripts.
518
519 Tue Apr 21 00:11:51 1998 Richard Henderson <rth@cygnus.com>
520
521 * archive.c (_bfd_generic_read_ar_hdr_mag): Simplify end-of-name test.
522
523 * elf64-alpha.c (elf64_alpha_find_reloc_at_ofs): Renamed from
524 elf64_alpha_relax_find_reloc_ofs. Changed all callers.
525 (elf64_alpha_add_symbol_hook): Put small commons in .scommon not .sbss.
526 (elf64_alpha_size_got_sections): Don't merge .got sections twice.
527
528 Sat Apr 18 01:21:04 1998 Stan Cox <scox@cygnus.com>
529
530 * config.bfd: Added sparc86x support.
531
532 Fri Apr 17 22:29:04 1998 Ian Lance Taylor <ian@cygnus.com>
533
534 * elf32-mips.c (mips_elf_relocate_section): Do not complain about
535 an out of range pc-relative jump/call to an undefined weak symbol.
536
537 Thu Apr 16 13:49:00 1998 Richard Henderson <rth@cygnus.com>
538
539 * elf64-alpha.c (elf64_alpha_do_reloc_gpdisp): Do all gpdisp
540 comparisons signed.
541
542 Thu Apr 16 11:43:33 1998 Ian Lance Taylor <ian@cygnus.com>
543
544 * archive.c (bfd_generic_archive_p): If a slurp subroutine returns
545 an error other than bfd_error_system_call, set the error to
546 bfd_error_wrong_format.
547
548 * targets.c (bfd_target_vector) [SELECT_VECS not defined]: Add
549 bfd_elf32_powerpcle_vec.
550
551 * elf.c (copy_private_bfd_data): If all the p_paddr fields in the
552 program segments are zero, don't set p_paddr_valid.
553
554 Wed Apr 15 22:15:16 1998 Richard Henderson <rth@cygnus.com>
555
556 * elf64-alpha.c: Initial implementation of relaxation --
557 (struct alpha_elf_link_hash_entry): Add use_count member.
558 (elf64_alpha_check_relocs): Initialize and increment it.
559 (elf64_alpha_can_merge_gots): Check it when considering merging.
560 (elf64_alpha_merge_gots): Drop entries with zero use.
561 (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
562 (elf64_alpha_always_size_sections): Split out got sizing ...
563 (elf64_alpha_size_got_sections): ... here. New function.
564 (elf64_alpha_relax_find_reloc_ofs): New function.
565 (elf64_alpha_relax_with_lituse): Likewise.
566 (elf64_alpha_relax_without_lituse): Likewise.
567 (elf64_alpha_relax_opt_call): Likewise.
568 (elf64_alpha_relax_section): Likewise.
569 (elf64_alpha_add_symbol_hook): Likewise.
570 (elf64_alpha_howto_table): Implement GPRELHIGH/LOW & IMMED_GP_16.
571 (elf64_alpha_relocate_section): Likewise.
572 (bfd_elf64_bfd_relax_section): Define.
573 (elf_backend_add_symbol_hook): Likewise.
574
575 Wed Apr 15 16:08:46 1998 Richard Henderson <rth@cygnus.com>
576
577 * elf.c (prep_headers): Use new EM_SPARCV9 symbol.
578 * elf64-sparc.c (ELF_MACHINE_CODE): Likewise.
579 (ELF_MACHINE_ALT1): New. Set to EM_OLD_SPARC64.
580
581 Wed Apr 15 11:34:33 1998 Ian Lance Taylor <ian@cygnus.com>
582
583 * configure.in: Add -lkernel32 to WIN32LIBADD on cygwin32.
584 * configure: Rebuild.
585
586 Mon Apr 13 16:46:27 1998 Ian Lance Taylor <ian@cygnus.com>
587
588 * Makefile.am (libbfd_la_LIBADD): Add @WIN32LIBADD@.
589 (libbfd_la_LDFLAGS): Add @WIN32LDFLAGS@.
590 * configure.in: Define and substitute WIN32LDFLAGS and
591 WIN32LIBADD.
592 * aclocal.m4: Rebuild with new libtool.
593 * configure, Makefile.in: Rebuild.
594
595 Fri Apr 10 13:44:27 1998 Ian Lance Taylor <ian@cygnus.com>
596
597 * coffcode.h (coff_write_object_contents): Move a PE COMDAT symbol
598 before any other symbols in the same section.
599
600 Wed Apr 8 14:50:23 1998 Michael Meissner <meissner@cygnus.com>
601
602 * config.bfd (powerpc*-*-*): Remove PowerPC NT support from ELF
603 systems.
604
605 Tue Apr 7 16:25:31 1998 Gavin Romig-Koch <gavin@cygnus.com>
606
607 * dwarf2.c (comp_unit): Move it earlier in the source. Add
608 addr_size.
609 (read_address): Replace 'bdf*' argument with 'comp_unit*' argument.
610 Use addr_size for address size, rather than sizeof(bfd_vma).
611 (read_attribute): Replace bdf* argument with 'comp_unit*' argument.
612 Fix call to read_address.
613 (decode_line_info): Replace bdf* argument with 'comp_unit*' argument.
614 Scrap other unneeded arguments. Fix call to read_address.
615 (scan_unit_for_functions): Fix call to read_attribute.
616 (parse_comp_unit): We now handle more values for addr_size.
617 Set addr_size in unit. Fix call to read_attribute and
618 decode_line_info.
619
620 Tue Apr 7 15:44:47 1998 Gavin Romig-Koch <gavin@cygnus.com>
621
622 * dwarf2.c (parse_comp_unit): Drop use of unit->name when it is null.
623
624 Tue Apr 7 12:35:18 1998 Ian Lance Taylor <ian@cygnus.com>
625
626 * archures.c (bfd_default_scan): Add m68k cases back to default
627 switch, reverting patch of March 25, since IEEE support depends
628 upon them.
629
630 Mon Apr 6 14:06:40 1998 Ian Lance Taylor <ian@cygnus.com>
631
632 * Makefile.am (diststuff): New target.
633 * Makefile.in: Rebuild.
634
635 Sun Apr 5 16:21:44 1998 Jeffrey A Law (law@cygnus.com)
636
637 * som.c (som_bfd_ar_write_symbol_stuff): Fix computation of
638 som_offset when we have an extended name table.
639
640 Sun Apr 5 16:04:39 1998 H.J. Lu <hjl@gnu.org>
641
642 * Makefile.am (stamp-lib): Check that .libs/libbfd.a exists before
643 trying to copy it.
644 * Makefile.in: Rebuild.
645
646 Fri Apr 3 11:09:42 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
647
648 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Generate section
649 symbols when creating a shared library.
650 (elf_m68k_adjust_dynindx): New function, used by above code.
651 (elf_m68k_finish_dynamic_sections): Initialize the section
652 symbols.
653 (elf_m68k_relocate_section): Change abort to BFD_ASSERT.
654
655 Wed Apr 1 16:04:02 1998 Nick Clifton <nickc@cygnus.com>
656
657 * coff-arm.c (in_reloc_p): Use ARM_RVA32 in place of constant
658 value 11.
659
660 Wed Apr 1 13:36:58 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
661
662 * elf32-m68k.c (elf_m68k_relocate_section, case R_68K_PLT*O): Fix
663 assertion.
664
665 Tue Mar 31 00:12:12 1998 Jeffrey A Law (law@cygnus.com)
666
667 * elf-m10300.c (mn10300_elf_relax_section): Correctly handle
668 absolute symbols.
669
670 Mon Mar 30 12:46:15 1998 Ian Lance Taylor <ian@cygnus.com>
671
672 * configure.in: Set version to 2.9.1.
673 * configure: Rebuild.
674
675 * Branched binutils 2.9.
676
677 Mon Mar 30 12:20:50 1998 Brent Baccala <baccala@freesoft.org>
678
679 * syms.c (ENABLE_CACHING): Define.
680 (struct indexentry): Define.
681 (struct stab_cache): Remove.
682 (cmpindexentry): New static function.
683 (struct stab_find_info): Add new fields: indextable,
684 indextablesize, cached_indexentry, cached_offset, cached_stab, and
685 cached_file_name. Remove fields: file_cache, function_cache, and
686 line_cache.
687 (_bfd_stab_section_find_nearest_line): Rewrite to build a sorted
688 index table and search it.
689
690 Mon Mar 30 10:39:34 1998 Ian Lance Taylor <ian@cygnus.com>
691
692 * elf.c (_bfd_elf_copy_private_section_data): Call
693 copy_private_bfd_data once we've seen the last SEC_ALLOC section.
694
695 * cpu-mips.c: Remove trailing comma at end of enumeration list.
696
697 Sat Mar 28 16:33:02 1998 Ian Lance Taylor <ian@cygnus.com>
698
699 * coff-arm.c: Define all globally visible variables and functions
700 only when COFF_WITH_PE is not defined.
701 * configure.in (armpe_little_vec, armpe_big_vec): Add
702 coff-arm.lo.
703 * configure: Rebuild.
704
705 Fri Mar 27 16:06:02 1998 Ian Lance Taylor <ian@cygnus.com>
706
707 Fix some gcc -Wall warnings:
708 * aout-arm.c (MY(fix_pcrel_26)): Add casts to avoid warnings.
709 * archive.c (_bfd_generic_read_ar_hdr_mag): Likewise.
710 * archures.c (bfd_default_scan): Likewise.
711 * bfd.c (bfd_scan_vma): Likewise.
712 * binary.c (mangle_name): Likewise
713 * coff-arm.c (aoutarm_fix_pcrel_26): Likewise.
714 * coff-sh.c (sh_relocate_section): Likewise.
715 * coff-stgo32.c (create_go32_stub): Likewise.
716 * coffcode.h (coff_slurp_line_table): Likewise.
717 * ecoff.c (_bfd_ecoff_write_armap): Likewise.
718 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
719 (assign_file_positions_for_segments): Likewise.
720 * elf32-mips.c (mips_elf_relocate_section): Likewise.
721 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
722 * oasys.c (oasys_write_sections): Likewise.
723 * ppcboot.c (ppcboot_object_p): Likewise.
724 (mangle_name): Likewise.
725 * riscix.c (riscix_fix_pcrel_26): Likewise.
726 * srec.c (srec_scan): Likewise.
727 * stabs.c (_bfd_write_section_stabs): Likewise.
728 * sunos.c (sunos_add_dynamic_symbols): Likewise.
729 * aout-ns32k.c (_bfd_ns32k_relocate_contents): Add default case to
730 switch. Declare parameters for function pointers.
731 * archures.c (bfd_default_scan): Add braces to avoid ambiguous if
732 warning.
733 * elf.c (elf_sort_sections): Likewise.
734 * coff-arm.c (coff_thumb_pcrel_common): Initialize relocation.
735 Add default cases to switches.
736 (coff_arm_relocate_section): Remove unused local variables.
737 Always set rstat.
738 (coff_arm_bfd_set_private_flags): Change flag variable to type
739 flagword.
740 * coff-mips.c (mips_relocate_section): Initialize use_lo.
741 * coff-ppc.c (ppc_record_toc_entry): Change i to unsigned int.
742 (dump_toc): Change cat to const, and initialize it.
743 * coff-sh.c (sh_relax_delete_bytes): Initialize start and voff.
744 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
745 (sh_elf_relocate_section): Initialize r_symndx.
746 * coffcode.h (coff_compute_section_file_positions): Only declare
747 old_sofar if ALIGN_SECTIONS_IN_FILE.
748 (coff_write_object_contents): Initialize csym.
749 * coffgen.c (coff_pointerize_aux): Make type and class unsigned.
750 * cpu-ns32k.c (_bfd_ns32k_get_displacement): Add default case to
751 switch.
752 * dwarf2.c: Include libiberty.h.
753 (read_2_signed_bytes, read_4_signed_bytes): Comment out.
754 (decode_line_info): Remove unused local variables.
755 * elf32-m32r.c (m32r_elf_sda16_reloc): Likewise.
756 (m32r_elf_relocate_section): Likewise.
757 * elf32-v850.c (v850_elf_store_addend_in_insn): Likewise.
758 (v850_elf_reloc): Likewise.
759 * elf-bfd.h (elf_linker_section_t): Make alignment unsigned.
760 (struct elf_obj_tdata): Make cverdefs and cverrefs unsigned.
761 * elf.c (assign_file_positions_for_segments): Always set adjust.
762 start-sanitize-d30v
763 * elf32-d30v.c (bfd_elf_d30v_reloc): Initialize tmp_addr. Fully
764 parenthesize expression.
765 end-sanitize-d30v
766 * elf32-m32r.c (m32r_elf_relocate_section): Always initialize h.
767 (m32r_elf_object_p): Return a value.
768 (m32r_elf_print_private_bfd_data): Change fprintf format string.
769 * elf32-mips.c (mips_elf_final_link): Initialize last.
770 (mips_elf_finish_dynamic_sections): Initialize last and dindx.
771 * elf32-v850.c (v850_elf_object_p): Return a value.
772 (v850_elf_print_private_bfd_data): Change fprintf format string.
773 * elfcode.h (elf_slurp_symbol_table): Change symcount and i to
774 unsigned long.
775 * elflink.h (elf_link_add_object_symbols): Change vernum to
776 unsigned int, and initialize it. Change fprintf format string.
777 (NAME(bfd_elf,size_dynamic_sections)): Cast -1 to bfd_size_type
778 when setting or comparing to soname_indx.
779 (elf_create_pointer_linker_section): Change num_symbols to
780 unsigned int.
781 * libcoff-in.h (coff_data_type): Change flags to flagword.
782 * peicode.h (pe_print_idata): Initialize idx. Change j to
783 bfd_size_type. Initialize hint_member. Remove useless test to
784 time_stamp.
785 (pe_print_edata): Change num_functions and num_names in struct
786 EDT_type to unsigned long. Remove cast. Change fprintf format
787 string.
788 * ppcboot.c (ppcboot_object_p): Change i to size_t.
789 * reloc.c (bfd_get_reloc_size): Change return type to unsigned
790 int.
791 * reloc16.c (bfd_coff_reloc16_relax_section): Change shrinks to
792 int *. Update uses. Change j to long.
793 * bfd-in2.h, libcoff.h: Rebuild.
794
795 Fri Mar 27 10:10:46 1998 Catherine Moore <clm@cygnus.com>
796
797 * elf32-v850.c Remove definition of USE_REL.
798 (v850_elf_info_to_howto_rela): New function.
799 (v850_elf_perform_relocation): Renamed from
800 v850_elf_store_addend_in_insn. Removed replace argument.
801 (v850_elf_reloc): store the relocation in the addend field instead
802 of the insn.
803 (v850_elf_final_link_relocate): Now calls
804 v850_elf_perform_relocation.
805 (v850_elf_relocate_section): Remove code to generate REL
806 relocations.
807
808 Thu Mar 26 13:32:17 1998 Ian Lance Taylor <ian@cygnus.com>
809
810 * coffcode.h (coff_new_section_hook): Set the type and storage
811 class in the native symbol information allocated for a new section
812 symbol.
813
814 Thu Mar 26 10:13:41 1998 Nick Clifton <nickc@cygnus.com>
815
816 * peicode.h: Chain together calls to
817 coff_bfd_copy_private_bfd_data and
818 coff_bfd_print_private_bfd_data.
819
820 * coff-arm.c: Add prototypes for
821 coff_arm_bfd_print_private_bfd_data and
822 coff_arm_bfd_copy_private_bfd_data.
823
824 Wed Mar 25 15:45:55 1998 Nick Clifton <nickc@cygnus.com>
825
826 * coffcode.h (coff_mkobject_hook): Set private falgs even for a PE
827 build.
828
829 * peicode.h: Call arm-coff private data functions after handling
830 pe private data.
831
832 * coff-arm.c: Turn statics into globals so that they can be shared
833 both pe and pei backends.
834
835 Wed Mar 25 15:19:38 1998 Ian Lance Taylor <ian@cygnus.com>
836
837 * aoutf1.h (sunos_set_arch_mach): Use bfd_mach_m68* rather than
838 plain numbers.
839 (sunos_write_object_contents): Likewise.
840 * aoutx.h (NAME(aout,machine_type)): Likewise.
841 * coffcode.h (coff_set_arch_mach_hook): Likewise.
842
843 Wed Mar 25 13:59:24 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
844
845 * archures.c (bfd_mach_m68*): Add definitions for various m68k
846 variants.
847 (bfd_default_scan): Remove m68k special cases.
848 * bfd-in2.h: Rebuild.
849 * mipsbsd.c (MY(write_object_contents)): Use bfd_mach_m68* rather
850 than plain numbers.
851 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
852 * cpu-m68k.c (arch_info_struct): Likewise. Add entry for
853 m68k:68000.
854 (bfd_m68k_arch): Set mach field to zero to signal no explicit
855 selection, change printable_name to just "m68k" and make that the
856 default instead of m68k:68020.
857
858 * aout-tic30.c (NAME): Define this to avoid multiple definitions
859 from aoutx.h.
860 (MY_get_section_contents): Define as aout_32_get_section_contents
861 rather than NAME(aout,get_section_contents).
862
863 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Fix cast.
864
865 * evax-alpha.c (evax_set_arch_mach): Only accept bfd_arch_alpha
866 and call bfd_default_set_arch_mach to do the real work.
867
868 Wed Mar 25 10:41:35 1998 Richard Henderson <rth@cygnus.com>
869
870 * bout.c (BALX): Include return register g14 as part of the insn.
871 (BALX_MASK): New.
872 (calljx_callback): Use it.
873
874 Wed Mar 25 11:19:28 1998 Ian Lance Taylor <ian@cygnus.com>
875
876 * libbfd-in.h (BFD_ALIGN): Cast this parameter to bfd_vma.
877 * libbfd.h: Rebuild.
878
879 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Change
880 byte_count to unsigned int.
881 (mn10300_elf_relax_section): Initialize internal_relocs. Remove
882 unused local variables.
883
884 * evax-alpha.c (evax_close_and_cleanup): Remove unused local
885 variables er and er1.
886
887 * cpu-v850.c: Include <ctype.h>.
888 (scan): Case isdigit argument to unsigned char.
889
890 From Yan Meroth <YAN.MEROTH@st.com>:
891 * ihex.c (ihex_scan): Add extbase variable so that getting an
892 extended linear address record does not ignore any previous
893 extended address.
894 (ihex_write_object_contents): When writing out an extended linear
895 address record, zero out any previous extended address.
896
897 Tue Mar 24 16:09:43 1998 Manfred Hollstein <manfred@s-direktnet.de>
898
899 * ieee.c (do_one): Check section before dereferencing it.
900 (ieee_canonicalize_reloc): Likewise with src->relent.sym_ptr_ptr.
901 (ieee_generic_stat_arch_elt): Likewise with abfd->my_archive.
902
903 Mon Mar 23 18:51:47 1998 Joel Sherrill <joel@OARcorp.com>
904
905 * config.bfd: (sh*-*-rtems*): Switched from ELF to COFF.
906
907 Mon Mar 23 14:23:36 1998 Nick Clifton <nickc@cygnus.com>
908
909 * coff-arm.c: Add interworking functions to pe backends.
910
911 start-sanitize-r5900
912 Sun Mar 22 13:05:08 1998 Jeffrey A Law (law@cygnus.com)
913
914 * elf32-mips.c (R_MIPS15_S3): New relocation type.
915 (elf_mips_howto_table): Add R_MIPS15_S3.
916 (mips_reloc_map): Map BFD_RELOC_MIPS15_S3 to R_MIPS15_S3.
917 * reloc.c (BFD_RELOC_MIPS15_S3): New relocation type.
918 * bfd-in2.h, libbfd.h: Rebuilt.
919
920 end-sanitize-r5900
921 Fri Mar 20 18:47:20 1998 Ian Lance Taylor <ian@cygnus.com>
922
923 * configure.in: Use AM_DISABLE_SHARED.
924 * aclocal.m4, configure: Rebuild with libtool 1.2.
925
926 Fri Mar 20 11:25:41 1998 Nick Clifton <nickc@cygnus.com>
927
928 * coff-arm.c (coff_arm_relocate_section): Better error messages
929 when interowrking conflucts occur. Courtesy of Jonathan Walton
930 and Tony Thompson.
931 (aoutarm_std_reloc_howto): Fixed bitsize fields of rightshifted
932 relocations. Patch courtesy of Jonathan Walton and Tony
933 Thompson.
934
935 Fri Mar 20 02:26:43 1998 Richard Henderson <rth@cygnus.com>
936
937 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Revert
938 part of Feb 22 change controling when to override the existing
939 symbol with the .plt entry.
940
941 Wed Mar 18 09:26:25 1998 Nick Clifton <nickc@cygnus.com>
942
943 * config.bfd (targ_cpu): Add thumb-pe target.
944
945 * coffcode.h (OTHER_GLOBAL_CLASS): Support thumb external
946 functions in PE build.
947
948 Sun Mar 8 23:37:26 1998 Stan Cox <scox@equinox.cygnus.com>
949
950 * config.bfd (sparclite-*-elf*): Added.
951
952 start-sanitize-vr4320
953 Tue Mar 3 11:24:05 1998 Gavin Koch <gavin@cygnus.com>
954
955 * mips-cpu.c: Reorganize sanitization.
956
957 * archures.c, bfd-in2.h, mips-cpu.c : Added bfd_mach_mips4320.
958
959 end-sanitize-vr4320
960 Mon Feb 23 19:31:19 1998 Ian Lance Taylor <ian@cygnus.com>
961
962 * configure.in: Add elf.lo to elf shell variable.
963 * Makefile.am (BFD_LIBS): Remove elf.lo.
964 (BFD_LIBS_CFILES): Remove elf.c.
965 (BFD32_BACKENDS): Add elf.lo.
966 (BFD32_BACKENDS_CFILES): Add elf.c.
967 * configure, Makefile.in: Rebuild.
968
969 1998-02-23 15:53 Richard Henderson <rth@cygnus.com>
970
971 * elf32-i386.c (elf_i386_relocate_section): A pc-relative
972 relocation against a now-local symbol should not have a dynamic
973 relocation.
974
975 Mon Feb 23 16:17:08 1998 Ian Lance Taylor <ian@cygnus.com>
976
977 * peicode.h (coff_swap_filehdr_in): Don't set BFD flag HAS_SYMS in
978 COFF filehdr flags.
979 (pe_print_private_bfd_data): Print PE flags. From Mikey
980 <jeffdb@netzone.com>.
981
982 Sun Feb 22 20:39:00 1998 Richard Henderson <rth@cygnus.com>
983
984 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Don't create
985 a plt entry when we can determine that we authoritatively define
986 the symbol.
987
988 Sun Feb 22 20:33:05 1998 Richard Henderson <rth@cygnus.com>
989
990 * configure.in (COREFILE selection): Remove sparc-*-linux*. They
991 don't actually use trad-core, but a SunOS-style core file handled
992 by gdb directly.
993 * hosts/sparclinux.h: Remove.
994
995 start-sanitize-sky
996 Thu Feb 19 02:38:52 1998 Doug Evans <devans@charmed.cygnus.com>
997
998 * reloc.c (BFD_RELOC_MIPS_DVP_27_S4): New reloc type.
999 * elf32-mips.c (enum reloc_type): Add R_MIPS_DVP_27_S4.
1000 (elf_mips_dvp_27_s4_howto): Describe it.
1001 (bfd_elf32_bfd_reloc_type_lookup): Handle it.
1002 (mips_info_to_how_rel): Handle it.
1003 (mips_elf_relocate_section): Handle it.
1004 * bfd-in2.h,libbfd.h: Regenerate.
1005
1006 end-sanitize-sky
1007 Wed Feb 18 15:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
1008
1009 * peicode.h (pe_print_idata): If there is no .idata section, look
1010 for the import tables in some other section. Make the initial
1011 label line up better with the data. Print the import address
1012 table even if there is no import name table. If the import
1013 address table holds actual addresses, print them.
1014
1015 start-sanitize-sky
1016 Tue Feb 17 20:00:26 1998 Doug Evans <devans@canuck.cygnus.com>
1017
1018 * config.bfd (targ_archs): If mips64r5900-sky-elf, add bfd_dvp_arch.
1019
1020 end-sanitize-sky
1021 Tue Feb 17 12:58:34 1998 Ian Lance Taylor <ian@cygnus.com>
1022
1023 * libbfd.c (bfd_seek): If fseek fails, save errno around call to
1024 bfd_tell. If errno is EINVAL, set bfd_error_file_truncated, not
1025 bfd_error_system_call.
1026
1027 Fri Feb 13 13:11:33 1998 Ian Lance Taylor <ian@cygnus.com>
1028
1029 * Makefile.am (AUTOMAKE_OPTIONS): Define.
1030 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
1031
1032 From H.J. Lu <hjl@gnu.org>:
1033 * Makefile.am (libbfd_la_LDFLAGS): Define.
1034 * Makefile.in: Rebuild.
1035
1036 Thu Feb 12 17:31:11 1998 Ian Lance Taylor <ian@cygnus.com>
1037
1038 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
1039 * netbsd.h (MACHTYPE_OK): Define.
1040 (MY(write_object_contents)): Use DEFAULT_ARCH and DEFAULT_MID when
1041 calling N_SET_MACHTYPE, rather than having a switch.
1042 * libaout.h (enum machine_type): Add M_PMAX_NETBSD, M_VAX_NETBSD,
1043 and M_ALPHA_NETBSD.
1044 * i386netbsd.c (MACHTYPE_OK): Don't define.
1045 (DEFAULT_MID): Define.
1046 * m68k4knetbsd.c (SEGMENT_SIZE): Don't define.
1047 (MACHTYPE_OK): Don't define.
1048 (DEFAULT_MID): Define.
1049 * m68knetbsd.c: (MACHTYPE_OK): Don't define.
1050 (DEFAULT_MID): Define.
1051 * ns32knetbsd.c (MACHTYPE_OK): Don't define.
1052 (DEFAULT_MID): Define.
1053 * sparcnetbsd.c (MACHTYPE_OK): Don't define.
1054 (DEFAULT_MID): Define.
1055
1056 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
1057 * vaxnetbsd.c: New file.
1058 * netbsd-core.c: Clean up. Remove unused macros. Use netbsd
1059 rather than netbsd_core.
1060 * targets.c (vaxnetbsd_vec): Declare.
1061 (bfd_target_vector): Add vaxnetbsd_vec. If NETBSD_CORE is
1062 defined, add netbsd_core_vec.
1063 * configure.in: Set COREFILE for alpha*-*-netbsd* and
1064 powerpc-*-netbsd* to netbsd-core.lo. If COREFILE is
1065 netbsd-core.lo, set COREFLAG to -DNETBSD_CORE.
1066 * config.bfd (alpha*-*-netbsd*): New target.
1067 * Makefile.am: Rebuild dependencies.
1068 (BFD32_BACKENDS): Add vaxnetbsd.lo.
1069 (BFD32_BACKENDS_CFILES): Add vaxnetbsd.c.
1070 * configure, Makefile.in: Rebuild.
1071
1072 * configure.host: Remove the old shared library build stuff. We
1073 now use libtool instead.
1074
1075 Wed Feb 11 17:13:09 1998 Richard Henderson <rth@cygnus.com>
1076
1077 * tekhex.c (tekhex_write_object_contents): Call tekhex_init.
1078
1079 Tue Feb 10 19:23:28 1998 H.J. Lu <hjl@gnu.org>
1080
1081 * configure.in: Take stab-syms.lo out of sparclinux_vec list.
1082 * configure: Rebuild.
1083
1084 Tue Feb 10 15:16:38 1998 Nick Clifton <nickc@cygnus.com>
1085 start-sanitize-m32rx
1086 * elf32-m32r.c (m32r_elf_merge_private_bfd_data): Do not complain
1087 when merging m32r BFDs into m32rx BFDs.
1088 end-sanitize-m32rx
1089 * elf32-v850.c (remember_hi16s_reloc): New function.
1090 (find_remembered_hi16s_reloc): New function.
1091 (v850_elf_store_addend_in_insn): Use the above new functions to
1092 match up HI6S relocs with LO16 relocs.
1093
1094 start-sanitize-sky
1095 Tue Feb 10 13:25:14 1998 Doug Evans <devans@canuck.cygnus.com>
1096
1097 * archures.c (bfd_mach_dvp_{vif,gif}): Renamed from ..._{pke,gpuif}.
1098 (bfd_txvu_arch): Delete.
1099 * cpu-mips.c (arch_info_struct): dvp:{vif,gif} renamed from
1100 dvp:{pke,gpuif}.
1101 * bfd-in2.h: Regenerate.
1102
1103 end-sanitize-sky
1104 Tue Feb 10 15:01:39 1998 Ian Lance Taylor <ian@cygnus.com>
1105
1106 * configure.in: Change -linux* to -linux-gnu*.
1107 * config.bfd, configure.host: Likewise.
1108 * configure: Rebuild.
1109
1110 Mon Feb 9 19:40:59 1998 Nick Clifton <nickc@cygnus.com>
1111
1112 * elf32-v850.c (v850_elf_store_addend_in_insn): Fix another
1113 LO16/HI16S bug and improve comments about what is going on.
1114
1115 Sat Feb 7 15:27:03 1998 Ian Lance Taylor <ian@cygnus.com>
1116
1117 * configure, aclocal.m4: Rebuild with new libtool.
1118
1119 start-sanitize-v850e
1120 Fri Feb 6 14:48:20 1998 Nick Clifton <nickc@cygnus.com>
1121
1122 * elf32-v850.c (v850_elf_merge_private_bfd_data): Do not complain
1123 when merging v850 code into v850e/v850ea code. Do not initialise
1124 output flags if the input is the default architecture.
1125 end-sanitize-v850e
1126 Fri Feb 6 11:50:22 1998 Jeffrey A Law (law@cygnus.com)
1127
1128 start-sanitize-r5900
1129 * cpu-mips.c (arch_info_struct): Make r5900 pointer size 32bits.
1130 end-sanitize-r5900
1131 * elf32-mips.c (bfd_elf32_bfd_reloc_type_lookup): For BFD_RELOC_CTOR
1132 get the size from bfd_arch_bits_per_address instead of directly
1133 from the isa.
1134
1135 Thu Feb 5 14:21:34 1998 Michael Meissner <meissner@cygnus.com>
1136
1137 * libbfd-in.h (BFD_ALIGN): If rounding up would cause the address
1138 to wrap, just return all 1's bits instead.
1139 * libbfd.h: Regenerate.
1140
1141 Thu Feb 5 11:51:05 1998 Ian Lance Taylor <ian@cygnus.com>
1142
1143 * coff-i386.c (coff_pe_i386_relocate_section): New static function
1144 if COFF_WITH_PE.
1145 (coff_relocate_section): If COFF_WITH_PE, define as
1146 coff_pe_i386_relocate_section.
1147 * coffcode.h (coff_write_object_contents): If COFF_IMAGE_WITH_PE,
1148 skip empty sections, to match coff_write_object_contents.
1149
1150 * elf64-mips.c (mips_elf64_swap_reloca_out): Swap out r_addend,
1151 rather than swapping out r_offset twice. From Luke Deller
1152 <luked@cse.unsw.edu.au>.
1153
1154 Wed Feb 4 19:11:28 1998 Ian Lance Taylor <ian@cygnus.com>
1155
1156 * configure.in: Set libtool_enable_shared rather than
1157 libtool_shared. Remove diversion hack.
1158 * configure, Makefile.in, doc/Makefile.in, aclocal.m4: Rebuild
1159 with new libtool.
1160
1161 Wed Feb 4 16:10:21 1998 Brent Baccala <baccala@freesoft.org>
1162
1163 * syms.c (struct stab_cache): Define.
1164 (struct stab_find_info): Remove cached_offset, cached_stab,
1165 cached_str, and cached_stroff fields. Add file_cache,
1166 function_cache, and line_cache fields.
1167 (_bfd_stab_section_find_nearest_line): Use extensive caching to
1168 speed up searches.
1169
1170 Wed Feb 4 13:34:22 1998 Ian Lance Taylor <ian@cygnus.com>
1171
1172 * peicode.h (pe_print_idata): Check for import of ordinal rather
1173 than name.
1174 (pe_print_edata): If there is no .edata section, look for the
1175 export data in some other section.
1176
1177 Mon Feb 2 20:05:42 1998 Jason Molenda (crash@bugshack.cygnus.com)
1178
1179 * configure.in: Change version to 2.8.4.
1180 * configure: Regenerated.
1181
1182 Mon Feb 2 17:39:39 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
1183
1184 Add tms320c30 support:
1185 * cpu-tic30.c: New file.
1186 * aout-tic30.c: New file.
1187 * coff-tic30.c: New file.
1188 * archures.c (bfd_arch_tic30): Define.
1189 (bfd_tic30_arch): Declare.
1190 (bfd_archures_list): Add bfd_tic30_arch.
1191 * targets.c (bfd_target_vector): Add tic30_aout_vec and
1192 tic30_coff_vec.
1193 * reloc.c (BFD_RELOC_TIC30_LDP): Define.
1194 * coffcode.h (coff_set_arch_mach_hook): Add tic30 case.
1195 (coff_set_flags): Likewise.
1196 * config.bfd (tic30-*-*aout*, tic30-*-*coff*): New targets.
1197 * configure.in (tic30_aout_vec, tic30_coff_vec): New vectors.
1198 * Makefile.am: Rebuild dependencies.
1199 (ALL_MACHINES): Add cpu-tic30.lo.
1200 (ALL_MACHINES_CFILES): Add cpu-tic30.c.
1201 (BFD32_BACKENDS): Add aout-tic30.lo and coff-tic30.lo.
1202 (BFD32_BACKENDS_CFILES): Add aout-tic30.c and coff-tic30.c.
1203 * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
1204
1205 Mon Feb 2 12:25:12 1998 Nick Clifton <nickc@cygnus.com>
1206
1207 * elf32-v850.c (v850_elf_store_addend_in_insn): Allow HI16_S reloc
1208 to lag behind LO16 reloc by a couple of instructions.
1209
1210 Mon Feb 2 14:09:46 1998 Ian Lance Taylor <ian@cygnus.com>
1211
1212 * Makefile.am ($(srcdir)/bfd-in2.h): Add dummy command to force
1213 make to reexamine the file timestamp.
1214 ($(srcdir)/libbfd.h, $(srcddir)/libcoff.h): Likewise.
1215
1216 * elf64-alpha.c (ELF_MAXPAGESIZE): Change to 0x10000 from
1217 0x100000.
1218
1219 start-sanitize-sky
1220 Fri Jan 30 17:48:17 1998 Doug Evans <devans@canuck.cygnus.com>
1221
1222 * elf32-mips.c (elf_mips_dvp_11_pcrel_howto): Set pcrel_offset=true
1223 and partial_inplace=false.
1224 (mips_elf_relocate_section): Recognize R_MIPS_DVP_11_PCREL.
1225
1226 end-sanitize-sky
1227 Fri Jan 30 19:07:07 1998 Geoff Keating <geoffk@ozemail.com.au>
1228
1229 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New procedure
1230 to create .dynsbss and .rela.sbss sections.
1231 (ppc_elf_adjust_dynamic_symbol): Put space for small data to be
1232 copied from dynamic objects into .sbss.
1233 (ppc_elf_size_dynamic_sections): Strip .rela.sbss if we don't
1234 use it. Correct typo of .rela.sdata2.
1235 (ppc_elf_finish_dynamic_symbol): Generate reloc to where we
1236 put the data, which may now be in .sbss.
1237 (ppc_elf_relocate_section): A SDAREL16 reloc can be in dynsbss.
1238 (elf_backend_create_dynamic_sections): Define as
1239 ppc_elf_create_dynamic_sections.
1240
1241 * elf32-ppc.c (ppc_elf_check_relocs): Don't emit R_PPC_REL* relocs
1242 against _GLOBAL_OFFSET_TABLE_.
1243 (ppc_elf_relocate_section): Don't emit R_PPC_REL32 relocs in
1244 shared libraries which refer to local symbols. Make sure that the
1245 test for allocating space for a reloc in a shared object is the
1246 same as the test for emitting a reloc.
1247
1248 start-sanitize-sky
1249 Thu Jan 29 17:44:53 1998 Doug Evans <devans@canuck.cygnus.com>
1250
1251 * elf32-mips.c: Add dvp support.
1252
1253 end-sanitize-sky
1254 Thu Jan 29 15:55:35 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
1255
1256 * config.bfd (i[3456]-*-mingw32*): New target.
1257 * acinclude.m4 (BFD_BINARY_OPEN): Check for mingw32.
1258 * aclocal.m4, configure: Rebuild.
1259
1260 start-sanitize-sky
1261 Wed Jan 28 15:14:28 1997 Doug Evans <devans@canuck.cygnus.com>
1262
1263 * config.bfd, configure.in: Add dvp support.
1264 * configure: Regenerate.
1265 * aclocal.m4: Regenerate.
1266 * archures.c, reloc.c, cpu-mips.c: Add dvp support.
1267 * bfd-in2.h, libbfd.h, libcoff.h: Regenerate.
1268
1269 end-sanitize-sky
1270 Wed Jan 28 13:41:26 1998 Ian Lance Taylor <ian@cygnus.com>
1271
1272 * elf.c (_bfd_elf_close_and_cleanup): Only check the strtab if we
1273 have a bfd_object.
1274
1275 Tue Jan 27 21:43:55 1998 Richard Henderson <rth@cygnus.com>
1276
1277 Sparc v9 ABI compliant PLT:
1278 * elf64-sparc.c (PLT_HEADER_SIZE): V9 ABI uses 4 entries.
1279 (plt_templates, sparc64_elf_build_plt_entry): Delete.
1280 (LARGE_PLT_THRESHOLD): New define.
1281 (GOT_RESERVED_ENTRIES): V9 ABI only uses 1.
1282 (sparc64_elf_build_plt): New function.
1283 (sparc64_elf_plt_entry_offset): Likewise.
1284 (sparc64_elf_plt_ptr_offset): Likewise.
1285 (sparc64_elf_adjust_dynamic_symbol): Change h->plt_offset to
1286 contain the index for convenience. Skip the initial entries
1287 in .rela.plt.
1288 (sparc64_elf_size_dynamic_sections): Zero the allocated contents
1289 memory for the benefit of .rela.plt.
1290 (sparc64_elf_relocate_section): Call sparc64_elf_plt_entry_offset.
1291 (sparc64_elf_finish_dynamic_symbol): Kill template stuff. Use
1292 sparc64_elf_plt_entry_offset & sparc64_elf_plt_ptr_offset for reloc.
1293 (sparc64_elf_finish_dynamic_sections): DT_PLTGOT points to .plt.
1294 Call sparc64_elf_build_plt.
1295 (elf_backend_want_got_plt): No.
1296 (elf_backend_plt_readonly): No.
1297 (elf_backend_plt_alignment): 8.
1298
1299 * elf.c (_bfd_elf_close_and_cleanup): New function; free the shstrtab.
1300 * elf-bfd.h (_bfd_elf_close_and_cleanup): Declare it.
1301 * elfxx-target.h (bfd_elfNN_close_and_cleanup): Arrange for it
1302 to be called.
1303
1304 Tue Jan 27 21:45:15 1998 Jeffrey A Law (law@cygnus.com)
1305
1306 * archures.c (bfd_mach_mips*): Add definitions for various MIPS
1307 processors.
1308 * cpu-mips.c (arch_info_struct): Add mips variants.
1309 * bfd-in2.h: Rebuilt.
1310
1311 Tue Jan 27 15:06:04 1998 Nick Clifton <nickc@cygnus.com>
1312
1313 * coff-arm.c (coff_arm_relocate_section): Preserve the contents of
1314 t2a3_b_insn.
1315
1316 Tue Jan 27 12:47:27 1998 Robert Lipe <robertl@dgii.com>
1317
1318 * config.bfd (i[3456]86-sco3.2v5*): ELF now the default.
1319 (i[3456]86sco3.2v5*coff): New target.
1320
1321 Mon Jan 26 15:41:30 1998 Ian Lance Taylor <ian@cygnus.com>
1322
1323 * bfd-in2.h: Rebuild with changes to chew--tab expansion.
1324
1325 Thu Jan 22 21:26:48 1998 Richard Henderson <rth@cygnus.com>
1326
1327 * bfd.c (bfd_get_error_handler): Add orthogonal function.
1328 * bfd-in2.h: Regenerate.
1329
1330 Thu Jan 22 21:13:39 1998 Richard Henderson <rth@cygnus.com>
1331
1332 * tekhex.c (tekhex_write_object_contents): Check for no symbols.
1333
1334 Wed Jan 21 21:19:03 1998 Ian Lance Taylor <ian@cygnus.com>
1335
1336 * coff-i386.c (coff_i386_rtype_to_howto): If COFF_WITH_PE, don't
1337 adjust addend for an output common symbol (from Jimmy Blair
1338 <jimmyb@wrs.com>). If COFF_WITH_PE, adjust addend for PC relative
1339 defined symbol to counteract adjustment made in generic relocation
1340 code.
1341
1342 * dwarf2.c: Include sysdep.h, not stdio.h and stdlib.h.
1343
1344 Wed Jan 21 21:16:06 1998 Manfred Hollstein <manfred@s-direktnet.de>
1345
1346 * coff-m88k.c (GET_SCNDHR_NRELOC): Fix typo in macro name.
1347 (GET_SCNDHR_NLNNO): Likewise.
1348
1349 Mon Jan 19 12:49:52 1998 Ian Lance Taylor <ian@cygnus.com>
1350
1351 * cpu-sh.c (arch_info_struct): Correct next field of sh3e.
1352
1353 Wed Jan 14 17:23:27 1998 Nick Clifton <nickc@cygnus.com>
1354
1355 * elf32-m32r.c: Add macros to handle NOP insertion.
1356
1357 Wed Jan 14 16:15:22 1998 Richard Henderson <rth@cygnus.com>
1358
1359 * xcofflink.c (xcoff_mark_symbol): Don't mark the absolute section.
1360 (xcoff_mark): Likewise.
1361 (xcoff_build_ldsyms): Mark absolute symbols.
1362
1363 Wed Jan 14 16:03:11 1998 Richard Henderson <rth@cygnus.com>
1364
1365 * bout.c (b_out_write_object_contents): Sort symbols before output
1366 to keep {CALL,BAL}NAME symbols adjacent.
1367 (b_out_symbol_cmp): New function.
1368
1369 Tue Dec 30 12:45:18 1997 Ian Lance Taylor <ian@cygnus.com>
1370
1371 * elf32-sparc.c (elf32_sparc_check_relocs): If -Bsymbolic, don't
1372 allocate space for a PC relative reloc against a symbol which is
1373 defined in a regular file.
1374 (elf32_sparc_relocate_section): If -Bsymbolic, don't copy a PC
1375 relative reloc against a symbol which is defined in a regular
1376 file.
1377
1378 Mon Dec 29 18:02:28 1997 Ian Lance Taylor <ian@cygnus.com>
1379
1380 From Jonathan Stone <jonathan@DSG.Stanford.EDU>:
1381 * config.bfd (mips-dec-netbsd*): Add ECOFF vectors to
1382 targ_selvecs.
1383 (mips*el-*-netbsd*): Like mips-dec-netbsd*.
1384 (mips*-*-netbsd*): New target.
1385
1386 Mon Dec 29 17:13:28 1997 H.J. Lu (hjl@gnu.org)
1387
1388 * elflink.h (elf_link_assign_sym_version): Change error message
1389 from "undefined version name" to "undefined versioned symbol
1390 name".
1391
1392 Mon Dec 29 11:41:16 1997 Nick Clifton <nickc@cygnus.com>
1393
1394 * coff-arm.c (coff_arm_relocate_section): Fix typo from previous
1395 delta.
1396
1397 Tue Dec 23 17:01:10 1997 Ian Lance Taylor <ian@cygnus.com>
1398
1399 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Declare.
1400 * libbfd.h: Rebuild.
1401
1402 * peicode.h (coff_swap_scnhdr_out): Set .reloc section to be
1403 shared. Set stab* sections to be shared and read. Set .rsrc
1404 section to be read and shared.
1405
1406 Mon Dec 22 13:20:57 1997 Ian Lance Taylor <ian@cygnus.com>
1407
1408 * Makefile.am: Rebuild dependencies.
1409 (ALL_MACHINES_CFILES): Add dwarf2.lo.
1410 (ALL_MACHINES_CFILES): Add dwarf2.c.
1411 * Makefile.in: Rebuild.
1412
1413 * coff-arm.c: Don't include obstack.h.
1414
1415 Mon Dec 22 13:04:33 1997 Joel Sherrill <joel@oarcorp.com>
1416
1417 * config.bfd (i[3456]86*-go32-rtems*): Fix to be the same as
1418 i[3456]86-go32.
1419
1420 Thu Dec 18 16:01:25 1997 Doug Evans <devans@canuck.cygnus.com>
1421
1422 * configure: Regenerate to get @SHELL@ substituted.
1423
1424 Wed Dec 17 09:45:09 1997 Nick Clifton <nickc@cygnus.com>
1425
1426 * coff-arm.c (coff_arm_relocate_section): Only look at section
1427 owner if there is one.
1428
1429 * elf.c (assign_file_positions_for_segments): Fail if there is not
1430 enough room for the program headers.
1431
1432 Tue Dec 16 08:09:56 1997 Gavin Koch <gavin@cygnus.com>
1433
1434 * elf.c (_bfd_elf_find_nearest_line): Call
1435 _bfd_dwarf2_find_nearest_line first.
1436 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Same.
1437 * dwarf2.c: New file; implement _bfd_dwarf2_find_nearest_line.
1438
1439 Mon Dec 15 16:08:52 1997 Nick Clifton <nickc@cygnus.com>
1440
1441 start-sanitize-m32rx
1442 * elf32-m32r.c (m32r_elf_merge_private_bfd_data): Allow M32R
1443 object files to be merged into a M32RX executable.
1444
1445 * archures.c: Add bfd_mach_m32rx.
1446 end-sanitize-m32rx
1447 * archures.c: Add bfd_mach_m32r.
1448
1449 Mon Dec 15 16:11:22 1997 Fred Fish <fnf@cygnus.com>
1450
1451 * coffcode.h (ALIGN_SECTIONS_IN_FILE): Define if I960 not defined.
1452 (coff_compute_section_file_positions): Use ALIGN_SECTIONS_IN_FILE
1453 to decide when to align the file sections for paging.
1454 start-sanitize-tic80
1455 * coffcode.h (ALIGN_SECTIONS_IN_FILE): Undefine for TIC80COFF.
1456 end-sanitize-tic80
1457
1458 Mon Dec 15 15:01:15 1997 Nick Clifton <nickc@cygnus.com>
1459
1460 * elf32-m32r.c (m32r_elf_object_p): New Function.
1461 (m32r_elf_final_write_processing): New Function.
1462 (m32r_elf_set_private_flags): New Function.
1463 (m32r_elf_copy_private_bfd_data): New Function.
1464 (m32r_elf_merge_private_bfd_data): New Function.
1465 (m32r_elf_print_private_bfd_data): New Function.
1466 (elf_backend_object_p): Point to m32r_object_p.
1467 (elf_backend_final_write_processing): Point to
1468 m32r_elf_final_write_processing.
1469 (bfd_elf32_bfd_copy_private_bfd_data): Point to
1470 m32r_elf_copy_private_bfd_data.
1471 (bfd_elf32_bfd_merge_private_bfd_data): Point to
1472 m32r_elf_merge_private_bfd_data.
1473 (bfd_elf32_bfd_set_private_flags): Point to
1474 m32r_elf_set_private_bfd_data.
1475 (bfd_elf32_bfd_print_private_bfd_data): Point to
1476 m32r_elf_print_private_bfd_data.
1477
1478 start-sanitize-m32rx
1479 * cpu-m32r.c: Add m32rx cpu architecture.
1480 * bfd-in2.h (bfd_mach_m32rx): Add identifier for M32RX
1481 architecture machines.
1482 end-sanitize-m32rx
1483
1484 * bfd-in2.h (bfd_mach_m32r): Add identifier for M32R architecture
1485 machines.
1486
1487 Fri Dec 12 11:30:28 1997 Brendan Kehoe <brendan@canuck.cygnus.com>
1488
1489 * configure: Only build libbfd shared if --enable-shared's value
1490 was `yes', or was set to `*bfd*'.
1491 * aclocal.m4: Likewise.
1492 * NOTE: this really needs to be fixed in libtool/libtool.m4, the
1493 original source of this bit of code. It's not clear what the best fix
1494 would be, though.
1495
1496 Thu Dec 11 17:48:11 1997 Richard Henderson <rth@cygnus.com>
1497
1498 * linker.c (generic_link_add_symbol_list): Always init udata.p so
1499 that the generic relaxation code can function when input and output
1500 file formats are mismatched.
1501
1502 Thu Dec 11 01:02:18 1997 Ian Lance Taylor <ian@cygnus.com>
1503
1504 * coff-sh.c (bfd_coff_small_swap_table): Initialize new fields.
1505
1506 * elf.c (assign_file_positions_for_segments): For a loadable
1507 section, make sure that the load address is correct relative to
1508 the load address of the segment plus the size of the segment so
1509 far.
1510
1511 * coffcode.h (_coff_link_output_has_begun): Make static.
1512 (_coff_final_link_postscript): Likewise.
1513
1514 Wed Dec 10 23:37:11 1997 Ian Lance Taylor <ian@cygnus.com>
1515
1516 * elflink.h (elf_link_input_bfd): Handle a relocateable link in
1517 which a relocation refers to an indirect or warning symbol.
1518
1519 Wed Dec 10 11:15:55 1997 Nick Clifton <nickc@cygnus.com>
1520
1521 * coff-arm.c (bfd_arm_coff_final_link): Function deleted.
1522 (coff_arm_final_link_postscript): New function.
1523 (coff_arm_link_output_has_begun): New function.
1524
1525 * libcoff.h (struct bfd_coff_backend_data): Add new fields:
1526 _bfd_coff_link_output_has_begun and
1527 _bfd_coff_final_link_postscript. Add new macros:
1528 bfd_coff_link_output_has_begun() and
1529 bfd_coff_final_link_postscript().
1530
1531 * cofflink.c (_bfd_coff_final_link): Insert calls to
1532 bfd_coff_link_output_has_begun() and
1533 bfd_coff_final_link_postscript().
1534
1535 * coffcode.h: Add two new fields to bfd_coff_backend_data
1536 structure: _bfd_coff_link_output_has_begun and
1537 _bfd_coff_final_link_postscript. Add default initialisers for
1538 these fields. Add overridable aliases for the coff swap functions
1539 in the backend data structure.
1540
1541 * elf32-v850.c: Update with patches from the branch to fix
1542 HI16_S/LO16 reloc pairs.
1543
1544 start-sanitize-d30v
1545 Wed Dec 10 14:06:48 1997 Michael Meissner <meissner@cygnus.com>
1546
1547 * elf32-d30v.c (d30v_info_to_howto_rela): New function to support
1548 RELA relocations.
1549 (USE_REL): Don't define any more, switch to using RELA
1550 relocations.
1551 (elf_info_to_howto): Define as d30v_info_to_howto_rela.
1552
1553 end-sanitize-d30v
1554 Tue Dec 9 11:37:53 1997 Andrew Cagney <cagney@b1.cygnus.com>
1555
1556 * archures.c (bfd_mach_mips*): Define.
1557 (start-sanitize-vr5400):
1558 (vr5400, bfd_mach_vr5000): Define.
1559 (end-sanitize-vr5400):
1560 (bfd_default_scan): For 3000 and 4000 replace magic constant with
1561 macro.
1562
1563 * cpu-mips.c (N): Define.
1564 (bfd_mips_arch, arch_info_struct): Re-write using macro N, replace
1565 numbers with bfd_mach_mips* macros.
1566
1567 Fri Dec 5 11:13:46 1997 Nick Clifton <nickc@cygnus.com>
1568
1569 * elf32-v850.c (v850_elf_reloc, v850_elf_store_addend_in_insn,
1570 v850_elf_relocate_section): Fix reloc addend handling.
1571 (v850_elf_section_from_bfd_section, v850_elf_symbol_processing,
1572 v850_elf_add_symbol_hook, v850_elf_link_output_symbol_hook,
1573 v850_elf_section_from_shdr, v850_elf_fake_sections): New functions
1574 to create and handle special common sections.
1575 (v850_elf_final_link_relocate): Fix HI16 and HI16_S relocations
1576 which have data stored in the instructions.
1577
1578 Tue Dec 2 10:26:16 1997 Nick Clifton <nickc@cygnus.com>
1579
1580 * coff-arm.c (TARGET_UNDERSCORE): Revert back to '_'
1581 (USER_LABEL_PREFIX): Revert back to '_'
1582
1583 * config.bfd (targ_cpu): Add support for Thumb target.
1584
1585 Mon Dec 1 20:24:18 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
1586
1587 * coff-sh.c (sh_coff_howtos): Add R_SH_SWITCH8 entry.
1588 (get_symbol_value): Handle R_SH_SWITCH8.
1589 (sh_relax_delete_bytes): Likewise.
1590
1591 Wed Nov 26 14:13:34 1997 Nick Clifton <nickc@cygnus.com>
1592
1593 * coff-arm.c (TARGET_UNDERSCORE): Changed to match definition in
1594 gcc/config/arm/semi.h
1595
1596 * coffcode.h (coff_slurp_symbol_table): Add ARM and Thumb symbol
1597 classes.
1598
1599 Sun Nov 23 16:02:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
1600
1601 * freebsd.h (SWAP_MAGIC): Read magic number little and not big
1602 endian.
1603
1604 Wed Nov 26 09:30:37 1997 Nick Clifton <nickc@cygnus.com>
1605
1606 * coffcode.h (coff_mkobject_hook): Only set private flags for non
1607 PE ARM ports.
1608
1609 Tue Nov 25 15:33:23 1997 Richard Henderson <rth@cygnus.com>
1610
1611 * binary.c (binary_set_section_contents): Also ignore NEVER_LOAD
1612 sections.
1613
1614 Tue Nov 25 10:55:36 1997 Nick Clifton <nickc@cygnus.com>
1615
1616 * coff-arm.c (coff_arm_bfd_merge_private_bfd_data): Do not
1617 complain if inout and output formats differ.
1618
1619 Tue Nov 25 11:26:27 1997 Ian Lance Taylor <ian@cygnus.com>
1620
1621 * Makefile.am (BFD32_BACKENDS): Remove tekhex.lo.
1622 (BFD32_BACKENDS_CFILES): Remove tekhex.c.
1623 * Makefile.in: Rebuild.
1624 * aclocal.m4, configure, src/Makefile.in: Rebuild with current
1625 automake and autoconf.
1626
1627 * coff-arm.c (arm_allocate_interworking_sections): Fix typo
1628 (COFF_WITH_PR to COFF_WITH_PE).
1629
1630 Mon Nov 24 15:47:49 1997 Nick Clifton <nickc@cygnus.com>
1631
1632 * coff-arm.c: Make variables and some functions static, so that
1633 this file can be included in multiple object files.
1634 (coff_arm_bfd_final_link): Fix minor bug.
1635
1636 Sat Nov 22 15:16:00 1997 Nick Clifton <nickc@cygnus.com>
1637
1638 * coff-arm.c: Add support for PIC and APCS-FLOAT type binaries.
1639
1640 * coffcode.h: Add support for PIC and APCS-FLOAT type binaries.
1641
1642 Sat Nov 22 16:06:56 1997 Klaus Kaempf <kkaempf@progis.de>
1643
1644 * evax-emh.c (_bfd_evax_write_emh): Use alloca instead of strdup.
1645
1646 Sat Nov 22 12:29:30 1997 Ian Lance Taylor <ian@cygnus.com>
1647
1648 * sunos.c (sunos_add_one_symbol): When overriding a defined
1649 symbol, set it to undefined, not new.
1650
1651 * elf32-sh.c (sh_elf_relax_delete_bytes): Don't kill LABEL
1652 relocs.
1653
1654 Fri Nov 21 14:14:22 1997 Richard Henderson <rth@cygnus.com>
1655
1656 * coff-sh.c (sh_relax_section): Force sign extention of USES r_offset.
1657 (sh_relax_delete_bytes): Don't kill LABEL relocs.
1658
1659 Mon Nov 17 15:08:38 1997 Jeffrey A Law (law@cygnus.com)
1660
1661 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Fix typo.
1662 (mn10300_elf_relax_section): Likewise.
1663
1664 Sat Nov 15 15:36:07 1997 Fred Fish <fnf@cygnus.com>
1665
1666 * peicode.h (coff_swap_aouthdr_in): Cast second arg of
1667 bfd_h_get_* calls to "bfd_byte *".
1668
1669 Tue Nov 11 10:37:23 1997 Jeffrey A Law (law@cygnus.com)
1670
1671 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add new field
1672 "movm_stack_size".
1673 (mn10300_elf_relax_section): Include stack space for register saves
1674 in the imm8 field of a "call" instruction.
1675 (compute_function_info): Determine how much stack is allocated by
1676 the movm instruction. Fix typo.
1677 (elf32_mn10300_link_hash_newfunc): Initialize movm_stack_size.
1678
1679 Mon Nov 10 14:32:40 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1680
1681 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't crash if
1682 a version dependency could not be found.
1683
1684 Tue Nov 4 12:05:56 1997 Klaus K"ampf <kkaempf@progis.de>
1685
1686 * configure.com: Get version info from configure.in
1687
1688 Fri Oct 24 11:15:58 1997 Jakub Jelinek <jj@sunsite.mff.cuni.cz>
1689
1690 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data):
1691 New function. Avoid mixing US1 and HAL R1 code.
1692 Set resulting memory ordering to the strongest one used.
1693 (sparc64_elf_object_p): Set bfd_mach correctly.
1694
1695 Thu Oct 23 14:09:33 1997 Richard Henderson <rth@cygnus.com>
1696
1697 * elf64-sparc.c (sparc64_elf_howto_table): Add UA64 & UA16.
1698 (sparc64_elf_check_relocs): Handle them.
1699 (sparc64_elf_relocate_section): Likewise. Before emitting a dyn reloc,
1700 check alignment and transmute R_SPARC_x<->R_SPARC_UAx.
1701
1702 Thu Oct 23 00:53:14 1997 Richard Henderson <rth@dot.cygnus.com>
1703
1704 * configure.in (sparc*-*-linux*): Use trad-core and ...
1705 * hosts/sparclinux.h: New file.
1706
1707 Thu Oct 23 00:25:29 1997 Richard Henderson <rth@dot.cygnus.com>
1708
1709 * config.bfd (sparc64-*-linux*): New target.
1710
1711 * elf-bfd.h (struct elf_backend_data): Add plt_alignment member.
1712 * elflink.c (_bfd_elf_create_got_section): Set .got alignment based
1713 on arch_size.
1714 (_bfd_elf_create_dynamic_sections): Likewise for .rel* sections.
1715 Set .plt alignment from new plt_alignment.
1716 * elflink.h (elf_link_create_dynamic_sections): Set version section
1717 alignment to LOG_FILE_ALIGN.
1718 * elfxx-target.h (elf_backend_plt_alignment): Provide default.
1719 (elfXX_bed): Init plt_alignment.
1720
1721 * elf64-sparc.c (sparc64_elf_check_relocs,
1722 sparc64_elf_adjust_dynamic_symbol, sparc64_elf_size_dynamic_sections,
1723 sparc64_elf_adjust_dynindx, sparc64_elf_finish_dynamic_symbol,
1724 sparc64_elf_finish_dynamic_sections): New functions.
1725 (sparc64_elf_howto_table): Fix a few name strings.
1726 (ELF_DYNAMIC_INTERPRETER): New definition.
1727 (sparc64_elf_relocate_section): Handle shared libraries.
1728
1729 * elf64-sparc.c (struct plt_template, plt_*_header, plt_*_entry,
1730 sparc64_elf_build_plt_entry, sparc64_elf_finish_dynamic_symbol):
1731 PLT definitions sparc64-linux originally choose. These will go
1732 away soon in favour of the official abi definitions.
1733
1734 Wed Oct 22 16:08:45 1997 Ian Lance Taylor <ian@cygnus.com>
1735
1736 * coff-sh.c (coff_small_object_p): New static function.
1737 (coff_small_new_section_hook): New static function.
1738 (bfd_coff_small_swap_table): New static const structure.
1739 (coff_small_close_and_cleanup): Define.
1740 (coff_small_bfd_free_cached_info): Define.
1741 (coff_small_get_section_contents): Define.
1742 (coff_small_get_section_contents_in_window): Define.
1743 (shcoff_small_vec): New static structure.
1744 (shlcoff_small_vec): New static structure.
1745 * targets.c (bfd_target_vector): Add shcoff_small_vec and
1746 shlcoff_small_vec.
1747 * config.bfd (sh-*-elf*): Add shcoff_small_vec and
1748 shlcoff_small_vec to targ_selvecs.
1749 (sh-*-*): Likewise.
1750 * configure.in: Add shcoff_small_vec and shlcoff_small_vec cases.
1751 * configure: Rebuild.
1752
1753 Mon Oct 20 15:01:27 1997 Klaus K"ampf <kkaempf@progis.de>
1754
1755 * evax-egsd.c: Weak symbols are global.
1756
1757 * evax-emh.c: Use proper casts.
1758
1759 * evax-egsd.c (_bfd_evax_write_egsd): Remove unneeded uname.
1760
1761 * evax-egsd.c: Section names and symbols have different
1762 length restrictions. Add length parameter to
1763 _bfd_evax_length_hash_symbol.
1764 * evax-etir.c: Likewise.
1765 * evax-misc.c (_bfd_evax_length_hash_symbol): Add length
1766 parameter.
1767 * evax.h (EOBJ_S_C_SECSIZ): Define.
1768
1769 * evax-alpha.c: Remove duplicate test.
1770
1771 * evax-emh.c: SYS$ functions are upper-case.
1772
1773 * evax-egsd.c: Create separate sections for common symbols.
1774 * evax-etir.c: Don't output common section.
1775 * evax.h: Bump up section count.
1776
1777 * configure.com: Use 64bit integers with DEC C.
1778
1779 * evax-egsd.c: Make section flags dec c compatible.
1780
1781 Mon Oct 20 09:38:31 1997 Jeffrey A Law (law@cygnus.com)
1782
1783 * som.c (normalize): Delete function.
1784 (som_bfd_ar_write_symbol_stuff): New parameter elength. All callers
1785 changed. Use passed in elength to determine size of the extended
1786 name table instead of computing it again.
1787
1788 Sun Oct 19 23:36:21 1997 Jim Wilson <wilson@cygnus.com>
1789
1790 * peicode.h (coff_swap_scnhdr_out): Use |= not = to set
1791 IMAGE_SCN_MEM_READ for an unrecognized section.
1792
1793 Sun Oct 19 21:04:56 1997 Jeffrey A Law (law@cygnus.com)
1794
1795 * som.c (som_bfd_ar_write_symbol_stuff): Account for trailing
1796 '/' in the extended name table.
1797
1798 Fri Oct 17 00:04:13 1997 Richard Henderson <rth@cygnus.com>
1799
1800 * elflink.h (elf_link_assign_sym_version): For explicitly versioned
1801 symbols, check globals list before matching on locals.
1802
1803 Thu Oct 16 08:17:06 1997 Michael Meissner <meissner@cygnus.com>
1804
1805 * peicode.h (coff_swap_scnhdr_out,pe_print_idata): Fix mangled
1806 patch.
1807
1808 Wed Oct 15 13:45:10 1997 Ian Lance Taylor <ian@cygnus.com>
1809
1810 * peicode.h (pe_mkobject_hook): Set DLL flag.
1811 (pe_bfd_copy_private_bfd_data): Copy DLL flag.
1812
1813 * peicode.h (coff_swap_scnhdr_out): Set IMAGE_SCN_MEM_DISCARDABLE
1814 for .stab* sections. Replace strlen of constant strings with
1815 number.
1816
1817 Tue Oct 14 15:42:45 1997 Richard Henderson <rth@cygnus.com>
1818
1819 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): New function to
1820 merge got and reloc entries from ind syms to their target.
1821 (elf64_alpha_always_size_sections): Call it.
1822 (elf64_alpha_check_relocs): Operate on the target of indirect symbols.
1823 (elf64_alpha_can_merge_gots): Likewise.
1824 (elf64_alpha_merge_gots): Likewise.
1825
1826 * elf64-alpha.c (elf64_alpha_relocate_section): Back out HJ's change,
1827 as it is insufficient to handle the relocation changes as well.
1828
1829 Mon Oct 13 23:10:08 1997 Richard Henderson <rth@cygnus.com>
1830
1831 * elf64-alpha.c (elf64_alpha_calc_dynrel_sizes): Allow for RELATIVE
1832 relocs for symbols in shlibs that have been forced local.
1833 (elf64_alpha_relocate_section): Output RELATIVEs in .got for same.
1834
1835 Mon Oct 13 21:24:04 1997 Richard Henderson <rth@cygnus.com>
1836
1837 * elf64-alpha.c (elf64_alpha_relocate_section): Use the
1838 got_enties of the default symbol for the default versioned
1839 symbol. Patch from hjl@gnu.ai.mit.edu, modified not to use
1840 alloca in the loop.
1841
1842 Mon Oct 13 17:37:37 1997 Nick Clifton <nickc@cygnus.com>
1843
1844 * elf32-v850.c (v850_elf_final_link_relocate): Only use the bottom
1845 24 bits of the PC when computing a PC relative relocation.
1846
1847 Fri Oct 10 16:01:30 1997 Nick Clifton <nickc@cygnus.com>
1848
1849 * elf32-v850.c (v850_elf_reloc, v850_elf_final_link_relocate):
1850 Correct value for maximum positive 22 bit PC relative relocation.
1851 (v850_elf_final_link_relocate): Prevent overflow from HI16_S and
1852 HI_16 relocations. Correct bit adjustment in TDA offsets.
1853
1854 Thu Oct 9 16:43:39 1997 Doug Evans <dje@canuck.cygnus.com>
1855
1856 * elf64-sparc.c (sparc_elf_{hix22,lox10}_reloc): New functions.
1857 (sparc64_elf_howto_table): Use them for HIX22,LOX10 relocs.
1858
1859 Wed Oct 8 11:38:45 1997 Richard Henderson <rth@cygnus.com>
1860
1861 * elfcore.h (bfd_prstatus): Pedanticly, alignment_power should
1862 be LOG_FILE_ALIGN.
1863
1864 Wed Oct 8 11:36:00 1997 Richard Henderson <rth@cygnus.com>
1865
1866 * config.bfd: Missed one alpha* change.
1867
1868 Tue Oct 7 13:00:17 1997 Doug Evans <dje@canuck.cygnus.com>
1869
1870 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove BFD64 support.
1871 * elf64-sparc.c (SPARC64_OLD_RELOCS): Undef.
1872 (MINUS_ONE): New macro.
1873 (sparc_elf_notsup_reloc): New function.
1874 (sparc64_elf_howto_table): Add entries for DISP64,PLT64,HIX22,LOX10,
1875 H44,M44,L44,REGISTER.
1876 (sparc_reloc_map): Likewise. Map BFD_RELOC_CTOR to R_SPARC_64.
1877 (init_insn_reloc): New function.
1878 (sparc_elf_wdisp16_reloc): Use it.
1879 (sparc64_elf_relocate_section): Add entries for OLO10,HIX22,LOX10.
1880
1881 Tue Oct 7 11:40:37 1997 Ian Lance Taylor <ian@cygnus.com>
1882
1883 * som.c (som_construct_extended_name_table): Remove static
1884 function, and define as macro instead.
1885
1886 Fri Oct 3 14:02:17 1997 Richard Henderson <rth@cygnus.com>
1887
1888 * config.bfd: Change alpha-*-* to alpha*-*-*; config.guess now
1889 recognizes alphaev5 etc.
1890 * configure.host: Likewise.
1891
1892 Fri Oct 3 11:23:47 1997 Ian Lance Taylor <ian@cygnus.com>
1893
1894 Make ld -s work on AIX:
1895 * xcofflink.c (xcoff_link_add_symbols): Don't create the .debug
1896 section if we are stripping.
1897 (bfd_xcoff_size_dynamic_sections): Don't set the .debug section
1898 size if we are stripping.
1899 (_bfd_xcoff_bfd_final_link): Don't set SEC_RELOC or rel_filepos,
1900 and don't write out relocs, if we are stripping.
1901 (xcoff_link_input_bfd): Don't set up reloc if we are stripping.
1902 (xcoff_write_global_symbol): Don't write out symbol or reloc if we
1903 are stripping.
1904
1905 * configure.in: Don't include elf.lo again for ELF targets; it's
1906 always in the library anyhow.
1907 * configure: Rebuild.
1908
1909 * bfd-in2.h: Rebuild.
1910
1911 * elf32-sparc.c (sparc_elf_wdisp16_reloc): Cast to bfd_byte *, not
1912 char *, when calling bfd_get_32 and bfd_put_32.
1913 * sunos.c (sunos_scan_dynamic_symbol): Cast contents to char *
1914 when calling strcpy.
1915
1916 Thu Oct 2 16:15:50 1997 Doug Evans <dje@canuck.cygnus.com>
1917
1918 * reloc.c (bfd_check_overflow): New function.
1919 (bfd_perform_relocation, bfd_install_relocation): Use it.
1920 (BFD_RELOC_SPARC_{DISP64,PLT64}): New relocs.
1921 (BFD_RELOC_SPARC_{HIX22,LOX10,H44,M44,L44,REGISTER}): New relocs.
1922 * bfd-in2.h: Regenerate.
1923 * libbfd.h: Regenerate.
1924
1925 Thu Oct 2 13:17:18 1997 Ian Lance Taylor <ian@cygnus.com>
1926
1927 * peicode.h (coff_swap_scnhdr_out): Set IMAGE_SCN_MEM_READ for an
1928 unrecognized section. From Jon Thackray <jont@harlequin.co.uk>.
1929
1930 Wed Oct 1 14:03:44 1997 Ian Lance Taylor <ian@cygnus.com>
1931
1932 * Makefile.am ($(BFD_H)): Change stmp-bfd.h to stmp-bfd-h.
1933 (stmp-bfd-h): Rename from stmp-bfd.h.
1934 (BFD_H_FILES, LIBBFD_H_FILES, LIBCOFF_H_FILES): New variables.
1935 ($(srcdir)/bfd-in2.h): Just depend upon stmp-bin2-h.
1936 (stmp-bin2-h): New target.
1937 ($(srcdir)/libbfd.h): Just depend upon stmp-lbfd-h.
1938 (stmp-lbfd-h): New target.
1939 ($(srcdir)/libcoff.h): Just depend upon stmp-lcoff-h.
1940 (stmp-lcoff-h): New target.
1941 (CLEANFILES): Change stmp-bfd.h to stmp-bfd-h. Add stmp-bin2.h,
1942 stmp-lbfd-h, and stmp-lcoff-h.
1943 * Makefile.in: Rebuild.
1944
1945 * configure.in: Use a diversion to set enable_shared before the
1946 arguments are parsed.
1947 * configure: Rebuild.
1948
1949 Tue Sep 30 14:18:32 1997 Doug Evans <dje@canuck.cygnus.com>
1950
1951 * elf32-sparc.c (_bfd_sparc_elf_howto_table): R_SPARC_GLOB_JMP
1952 renamed to R_SPARC_UNUSED_42.
1953 (sparc_reloc_map): Delete R_SPARC_GLOB_JMP entry.
1954 * elf64-sparc.c (_bfd_sparc_elf_howto_table): R_SPARC_GLOB_JMP
1955 renamed to R_SPARC_UNUSED_42.
1956 (sparc_reloc_map): Delete R_SPARC_GLOB_JMP entry.
1957 * reloc.c (BFD_RELOC_SPARC_GLOB_JMP): Delete.
1958 * bfd-in2.h: Regenerated.
1959 * libbfd.h: Regenerated.
1960
1961 Thu Sep 25 12:15:02 1997 Ian Lance Taylor <ian@cygnus.com>
1962
1963 * elflink.h (elf_merge_symbol): Don't check the hash creator until
1964 after we have set *sym_hash.
1965
1966 Wed Sep 24 16:52:28 1997 Joel Sherrill <joel@oarcorp.com>
1967
1968 * config.bfd (sh*-*-rtems*): New target, like sh-*-*elf*.
1969
1970 Wed Sep 24 11:27:23 1997 Ian Lance Taylor <ian@cygnus.com>
1971
1972 * Makefile.am (libbfd_a_SOURCES): Define.
1973 * Makefile.in: Rebuild.
1974
1975 * configure.in: Call AC_CHECK_TOOL before AM_PROG_LIBTOOL.
1976 * aclocal.m4: Rebuild with new libtool.
1977 * configure: Rebuild.
1978
1979 Tue Sep 23 19:03:13 1997 Ian Lance Taylor <ian@cygnus.com>
1980
1981 * elf.c (map_sections_to_segments): Even if we are not demand
1982 paged, don't put a loadable section after a nonloadable section.
1983 (assign_file_positions_for_segments): Increment the file offset
1984 for a section with contents, even if it is not loadable.
1985
1986 start-sanitize-v850e
1987 Sun Sep 21 11:03:24 1997 Nick Clifton <nickc@cygnus.com>
1988
1989 * elf32-v850.c (v850_elf_final_link_relocate): Add return code
1990 indicating that __ctbp could not be found.
1991
1992 end-sanitize-v850e
1993 Thu Sep 18 15:04:57 1997 Nick Clifton <nickc@cygnus.com>
1994
1995 * elf32-v850.c (v850_elf_check_relocs): Improve error message.
1996
1997 Wed Sep 17 09:54:51 1997 Nick Clifton <nickc@cygnus.com>
1998 start-sanitize-v850e
1999
2000 * elf32-v850.c (v850_elf_final_link_relocate, v850_elf_reloc,
2001 v850_elf_check_relocs, v850_elf_reloc_map, v850_elf_howto_table):
2002 Add support for the CALLT relocs.
2003
2004 * reloc.c (COMMENT): Add BFD_RELOC_V850_CALLT_6_7_OFFSET and
2005 BFD_RELOC_V850_CALLT_16_16_OFFSET.
2006 end-sanitize-v850e
2007
2008 * elf32-v850.c (v850_elf_final_link_relocate): Add checks to catch
2009 relocations against non-existant symbols.
2010
2011 Tue Sep 16 14:20:27 1997 Nick Clifton <nickc@cygnus.com>
2012
2013 * reloc.c: Add BFR_RELOC_V850_TDA_16_16_OFFSET.
2014
2015 * elf32-v850.c (v850_elf_reloc, v850_elf_final_link_relocate,
2016 v850_elf_howto_table, v850_elf_reloc_map): Add support for a 16
2017 bit reloc in the tiny data area.
2018
2019 start-sanitize-d30v
2020 Mon Sep 15 11:27:36 1997 Ken Raeburn <raeburn@cygnus.com>
2021
2022 Merged changes from Martin Hunt:
2023
2024 * elf32-d30v.c (bfd_elf_d30v_reloc): Change pc-relative relocs
2025 over 2^32 bytes to be absolute. Needed because D30V PC doesn't
2026 necessarily wrap.
2027
2028 * reloc.c, elf32-d30v.c (BFD_RELOC_D30V_9_PCREL,
2029 BFD_RELOC_D30V_9_PCREL_R): New relocs.
2030
2031 * elf32-d30v.c (bfd_elf_d30v_reloc_21): New function.
2032 Do 15 and 21 bit pc-relative relocations.
2033 * reloc.c (BFD_RELOC_D30V_15_PCREL_R, BFD_RELOC_D30V_21_PCREL_R):
2034 New relocations.
2035
2036 * elf32-d30v.c (bfd_elf_d30v_reloc): Addend needs to be
2037 added to the relocation, not or'd.
2038
2039 end-sanitize-d30v
2040 Wed Sep 10 15:17:25 1997 Nick Clifton <nickc@cygnus.com>
2041
2042 * elf32-v850.c (v850_elf_reloc): Remove spurious error message.
2043
2044 Wed Sep 10 11:17:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
2045
2046 * archures.c (bfd_default_scan): Use strcasecmp.
2047 (bfd_default_scan): Test for match with arch_name + ":" +
2048 printable_name.
2049 (bfd_default_scan): Test for match with printable_name - ":".
2050 (bfd_default_scan): Delete w65, h8300, h8500, z8k, i960 special
2051 cases. Each implements their own scan function.
2052 (bfd_default_scan): Delete 386, 2900, 860, mips 2000, mips 4400
2053 special cases. Since info->mach == 0. The test mach == number
2054 fails.
2055 (bfd_arch_list): New function, return name of all the supported
2056 architectures.
2057
2058 Tue Sep 9 10:21:56 1997 Nick Clifton <nickc@cygnus.com>
2059
2060 * elf32-v850.c (v850_elf_print_private_bfd_data): Break after
2061 decoding architecture.
2062 (v850_elf_reloc): Do not complain if a R_V850_LO16 reloc has bit
2063 15 set.
2064
2065 Sun Sep 7 12:25:22 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
2066
2067 * bfd/elf64-alpha.c (reloc_howto_type): Fix the howto table.
2068
2069 Thu Sep 4 09:44:10 1997 Ian Lance Taylor <ian@cygnus.com>
2070
2071 * Makefile.am: Rebuild dependencies.
2072 (ALL_MACHINES_CFILES): Add cpu-v850.c.
2073 (ALL_MACHINES_CFILES): Add elf32-v850.c.
2074 * Makefile.in: Rebuild.
2075
2076 * reloc.c: Remove extraneous commas from relocation entries.
2077 Remove BFD_RELOC_V850_16_PCREL.
2078 * bfd-in2.h: Rebuild.
2079
2080 * xcofflink.c (xcoff_link_add_symbols): Put XTY_CM/XMC_TD symbols
2081 in sections named .tocbss rather than .bss.
2082
2083 Wed Sep 3 11:23:23 1997 Nick Clifton <nickc@cygnus.com>
2084
2085 * libbfd.h, bfd-in2.h, elf32-v850.c: Removed
2086 BFD_RELOC_V850_16_PCREL.
2087
2088 Tue Sep 2 20:44:10 1997 Fred Fish <fnf@cygnus.com>
2089
2090 * cofflink.c (coff_link_check_ar_symbols): Handle C_SYSTEM syms
2091 the same as C_EXT syms.
2092 (coff_link_add_symbols): Ditto.
2093 (_bfd_coff_link_input_bfd): Ditto.
2094 (_bfd_coff_write_task_globals): Add save_global_to_static. Use
2095 it to preserve and restore state of global_to_static flag.
2096
2097 Tue Sep 2 17:45:22 1997 Nick Clifton <nickc@cygnus.com>
2098
2099 * elf32-v850.c (v850_elf_object_p): Set machine number based on
2100 bits in e_flags field rather than magic numbers.
2101 (v850_elf_final_write_processing, v850_elf_set_private_flags,
2102 v850_elf_copy_private_bfd_data, v850_elf_merge_private_bfd_data,
2103 v850_elf_print_private_bfd_data): New functions.
2104
2105 start-sanitize-v850e
2106 Tue Sep 2 17:43:49 1997 Nick Clifton <nickc@cygnus.com>
2107
2108 * elf.c (prep_headers): Remove V850E magic number.
2109 * elf.c (prep_headers): Remove V850EA magic number.
2110 end-sanitize-v850e
2111
2112 Tue Sep 2 17:35:05 1997 Doug Evans <dje@canuck.cygnus.com>
2113
2114 * cpu-arc.c (arc_get_mach): Properly scan defined mach entries.
2115
2116 Tue Sep 2 18:29:37 1997 Jeffrey A Law (law@cygnus.com)
2117
2118 * elf-m10200.c (mn10200_elf_final_link_relocate): PC relative
2119 instructions are relative to the next instruction, not the
2120 current instruction.
2121 (mn10200_elf_relax_section): Similarly.
2122
2123 Tue Sep 2 15:45:45 1997 Nick Clifton <nickc@cygnus.com>
2124
2125 * cpu-v850.c: Use a macro to construct bfd_arch_info_type
2126 entries.
2127
2128 * reloc.c, libbfd.h, bfd-in2.h, elf32-v850.c: Replace
2129 BFD_RELOC_V850_{SDA/TDA/ZDA}_OFFSET relocs with new bit pattern
2130 specific versions: BFD_RELOC_V850_{area}_{bits}_OFFSET.
2131
2132 Thu Aug 28 17:01:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
2133
2134 * cpu-v850.c: Remove "plain" from v850 printable name.
2135 (scan): Use strcasecmp.
2136
2137 * archures.c (bfd_mach_v850): Define.
2138
2139 * cpu-sh.c (scan_mach): Compare with table instead of hardwired to
2140 just sh/SH, use strcasecmp.
2141 (arch_info_struct): Add entries for sh3 et.al.
2142
2143 * archures.c (bfd_mach_sh, ...): Define.
2144
2145 Wed Aug 27 17:33:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
2146
2147 * archures.c (bfd_archures_list): Always NULL terminate the list.
2148
2149 Tue Aug 26 17:26:51 1997 Ian Lance Taylor <ian@cygnus.com>
2150
2151 * Makefile.am: Rebuild dependencies.
2152 (ALL_MACHINES_CFILES): Add cpu-arc.c.
2153 (ALL_MACHINES_CFILES): Add elf32-arc.c.
2154 (elf32-arc.lo): Remove explicit dependency.
2155 * Makefile.in: Rebuild.
2156
2157 * acinclude.m4 (BFD_CC_FOR_BUILD): Set EXEEXT_FOR_BUILD.
2158 * doc/Makefile.am (MKDOC): Use EXEEXT_FOR_BUILD, not EXEEXT.
2159 * aclocal.m4, configure, Makefile.in, doc/Makefile.in: Rebuild.
2160
2161 Mon Aug 25 16:14:34 1997 Christopher Provenzano <proven@cygnus.com>
2162
2163 * configure: Rebuild with latest devo autoconf for NT support
2164
2165 Mon Aug 25 16:11:04 1997 Nick Clifton <nickc@cygnus.com>
2166
2167 * cpu-arm.c (compatible): If B is a default type, return A.
2168
2169 Mon Aug 25 15:35:46 1997 Nick Clifton <nickc@cygnus.com>
2170
2171 * cpu-v850.c (scan): New function.
2172 (arch_info_struct): New structure.
2173 (bfd_v850_arch): Add link into arch_info_structure.
2174
2175 * config.bfd (targ_cpu): All v850 variants use the bfd_arch_v850
2176 architecture.
2177
2178 * elf32-v850.c (v850_elf_object_p): New function.
2179
2180 start-sanitize-v850e
2181 * archures.c (bfd_mach_v850e): Machine value for v850e.
2182
2183 * bfd-in2.h (bfd_mach_v850e): Machine value for v850e.
2184
2185 * elf32-v850.c (ELF_MACHINE_CODE): Default to v850e machine
2186 number.
2187
2188 * elf.c (prep_headers): Add support for v850e machine number.
2189
2190 * archures.c (bfd_mach_v850ea): Machine value for v850ea.
2191
2192 * bfd-in2.h (bfd_mach_v850ea): Machine value for v850ea.
2193
2194 * elf32-v850.c (ELF_MACHINE_CODE): Default to v850ea machine
2195 number.
2196
2197 * elf.c (prep_headers): Add support for v850ea machine number.
2198 end-sanitize-v850e
2199
2200 Mon Aug 25 14:07:33 1997 Ian Lance Taylor <ian@cygnus.com>
2201
2202 * syms.c (_bfd_stab_section_find_nearest_line): Clear the
2203 cached_stab field if the offset prevents us from using the cache.
2204
2205 Mon Aug 25 12:08:13 1997 Ian Lance Taylor <ian@cygnus.com>
2206
2207 * aout-target.h (MY(vec)): Add SEC_CODE and SEC_DATA to section
2208 flags.
2209 * aout-arm.c (aout_arm_little_vec): Likewise.
2210 (aout_arm_big_vec): Likewise.
2211 * bout.c (b_out_vec_big_host): Likewise.
2212 (b_out_vec_little_host): Likewise.
2213 * mipsbsd.c (aout_mips_little_vec): Likewise.
2214 (aout_mips_big_vec): Likewise.
2215
2216 start-sanitize-tic80
2217 Tue Aug 19 10:09:10 1997 Fred Fish <fnf@cygnus.com>
2218
2219 * coff-tic80.c (COFF_ALIGN_IN_SFLAGS): Define to 1.
2220 * coffcode.h (styp_to_sec_flags): Ignore incoming STYP_INFO
2221 bit in s_flags if COFF_ALIGN_IN_S_FLAGS is defined.
2222
2223 end-sanitize-tic80
2224 Tue Aug 19 08:47:17 1997 Fred Fish <fnf@cygnus.com>
2225
2226 * coff-i960.c (COFF_ALIGN_IN_SECTION_HEADER): Define to 1.
2227 (GET_SCNHDR_ALIGN, PUT_SCNHDR_ALIGN): Define.
2228 * coff-m88k.c (GET_SCNHDR_NRELOC, GET_SCNHDR_NLNNO): Define.
2229 * coffcode.h (coff_set_alignment_hook): Conditionally compile in if
2230 COFF_ALIGN_IN_SECTION_HEADER is defined. Convert alignment to power
2231 of two for I960 only.
2232 * coffswap.h (GET_SCNHDR_NRELOC, PUT_SCNHDR_NRELOC, GET_SCNDHR_NLNNO,
2233 PUT_SCNHDR_NLNNO, GET_SCNHDR_FLAGS, PUT_SCNHDR_FLAGS): Provide
2234 default definitions.
2235 (coff_swap_scnhdr_in): Use GET_SCNHDR_FLAGS, GET_SCNHDR_NRELOC,
2236 GET_SCNHDR_NLNNO, and GET_SCNHDR_ALIGN.
2237 (coff_swap_scnhdr_out): Use PUT_SCNHDR_FLAGS, PUT_SCNHDR_ALIGN.
2238 start-sanitize-tic80
2239 * Makefile.in (coff-tic80.o): Depends upon coffswap.h.
2240 * coff-tic80.c (COFF_ALIGN_IN_SECTION_HEADER): Define to 1.
2241 (GET_SCNHDR_FLAGS, PUT_SCNHDR_FLAGS): Define
2242 *coffcode.h (coff_write_object_contents): Set alignment field in
2243 section header for TIC80COFF files.
2244 end-sanitize-tic80
2245
2246 Mon Aug 18 11:36:19 1997 Nick Clifton <nickc@cygnus.com>
2247
2248 * elf32-v850.c (v850_elf_howto_table, v850_elf_reloc_map,
2249 v850_elf_check_relocs, v850_elf_reloc,
2250 v850_elf_final_link_relocate): Add support for
2251 BFD_RELOC_V850_16_PCREL relocation.
2252
2253 * reloc.c (COMMENT): Add suuport for BFD_RELOC_V850_16_PCREL
2254 relocation.
2255
2256 * libbfd.h: Add support for BFD_RELOC_V850_16_PCREL relocation.
2257
2258 * bfd-in2.h: Add support for BFD_RELOC_V850_16_PCREL relocation.
2259
2260 start-sanitize-v850e
2261 Mon Aug 18 11:33:56 1997 Nick Clifton <nickc@cygnus.com>
2262
2263 * cpu-v850e: New file.
2264
2265 * elf.c (prep_headers): Add support for v850e target.
2266
2267 * bfd-in2.h (bfd_architecture): Add support for v850e target.
2268
2269 * config.bfd: Add support for v850e target.
2270
2271 * archures.c: Add support for v850e target.
2272
2273 Mon Aug 18 11:33:56 1997 Nick Clifton <nickc@cygnus.com>
2274
2275 * cpu-v850ea: New file.
2276
2277 * elf.c (prep_headers): Add support for v850ea target.
2278
2279 * bfd-in2.h (bfd_architecture): Add support for v850ea target.
2280
2281 * config.bfd: Add support for v850ea target.
2282
2283 * archures.c: Add support for v850ea target.
2284 end-sanitize-v850e
2285
2286 Fri Aug 15 12:01:28 1997 Ian Lance Taylor <ian@cygnus.com>
2287
2288 * coffgen.c (coff_find_nearest_line): Correctly handle the offset
2289 argument as section relative, rather than an absolute address.
2290 From Jan Hoogenraad <hoogenrd@natlab.research.philips.com>.
2291
2292 Fri Aug 15 04:58:02 1997 Doug Evans <dje@canuck.cygnus.com>
2293
2294 * config.bfd (arc-*-elf*): Add.
2295 * configure.in (bfd_elf32_{little,big}arc_vec): Add.
2296 * configure: Rebuild.
2297 * Makefile.am (ALL_MACHINES): Add cpu-arc.lo.
2298 (BFD32_BACKENDS): Add elf32-arc.lo.
2299 (cpu-arc.lo,elf32-arc.lo): Add rules for.
2300 * Makefile.in: Rebuild.
2301 * archures.c (architecture list): Add bfd_arch_arc.
2302 (bfd_archures_list): Add bfd_arc_arch.
2303 (bfd_mach_arc_base): Define.
2304 * reloc.c (BFD_RELOC_ARC_B22_PCREL,BFD_RELOC_ARC_B26): Add.
2305 * targets.c (bfd_elf32_{little,big}arc_vec): Declare.
2306 (bfd_target_vect): Add them.
2307 * bfd-in2.h, libbfd.h: Rebuild.
2308 * cpu-arc.c, elf32-arc.c: New files.
2309 * elf.c (pre_headers): Recognize bfd_arch_arc.
2310
2311 Tue Aug 12 11:45:18 1997 Ian Lance Taylor <ian@cygnus.com>
2312
2313 * aoutx.h (NAME(aout,final_link)): If no symbols, make sure the
2314 data section is correctly rounded to a page in the file.
2315
2316 Mon Aug 11 12:45:43 1997 Ian Lance Taylor <ian@cygnus.com>
2317
2318 * aoutx.h (NAME(aout,final_link)): Don't emit the string table if
2319 there are no symbols.
2320
2321 Sun Aug 10 14:45:56 1997 Ian Lance Taylor <ian@cygnus.com>
2322
2323 * coff-stgo32.c: Rename from coff-stubgo32.c to avoid old System V
2324 file system 14 character limit.
2325 * Makefile.am, configure.in: Corresponding changes.
2326 * Makefile.in, configure: Rebuild.
2327
2328 Fri Aug 8 18:34:36 1997 Ian Lance Taylor <ian@cygnus.com>
2329
2330 * Makefile.am: (ALL_MACHINES_CFILES): Add elf32-d10v.c.
2331 Rebuild dependencies.
2332 * Makefile.in: Rebuild.
2333
2334 Wed Aug 6 18:56:51 1997 Ian Lance Taylor <ian@cygnus.com>
2335
2336 * Makefile.am (docdir): Define.
2337 * Makefile.in: Rebuild.
2338
2339 Tue Aug 5 23:05:03 1997 Ian Lance Taylor <ian@cygnus.com>
2340
2341 * configure: Rebuild with autoconf 2.12.1.
2342
2343 Mon Aug 4 12:00:35 1997 Ian Lance Taylor <ian@cygnus.com>
2344
2345 * aclocal.m4, configure: Rebuild with new automake patches.
2346
2347 Sun Aug 3 08:15:12 1997 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2348
2349 * rs6000-core.c (make_bfd_asection): New function to add a section
2350 to the core file bfd.
2351 (rs6000coff_core_p): Use make_bfd_asection to add the core file
2352 sections.
2353 Use BFD routines to seek, read and stat the core file.
2354 Handle .data sections from loaded objects and anonymously mmapped
2355 regions, these are available in AIX 4 core files.
2356
2357 Fri Aug 1 12:58:32 1997 Ian Lance Taylor <ian@cygnus.com>
2358
2359 * configure.in: Set enable_shared before AM_PROG_LIBTOOL.
2360 * acinclude.m4: Move acmacros.m4 in here. Remove AM_PROG_LIBTOOL
2361 copy; use a patches libtool instead.
2362 * acmacros.m4: Remove.
2363 * Makefile.in, aclocal.m4, configure: Rebuild.
2364
2365 Thu Jul 31 19:55:36 1997 Ian Lance Taylor <ian@cygnus.com>
2366
2367 * Makefile.am: New file, based on old Makefile.in.
2368 * acmacros.m4: New file, copied from old aclocal.m4.
2369 * acinclude.m4: New file.
2370 * configure.in: Call AM_PROG_LIBTOOL. Remove shared library
2371 handling; now handled by libtool. Replace AC_CONFIG_HEADER with
2372 AM_CONFIG_HEADER. Replace AC_PROG_INSTALL with AM_PROG_INSTALL.
2373 Call AM_MAINTAINER_MODE, AM_CYGWIN32, and AM_EXEEXT. Change all
2374 .o files to .lo. Remove stamp-h handling in AC_OUTPUT.
2375 * acconfig.h: Mention PACKAGE and VERSION.
2376 * stamp-h.in: New file.
2377 * dep-in.sed: Change .o to .lo.
2378 * Makefile.in: Now built with automake.
2379 * aclocal.m4: Now built with aclocal.
2380 * config.in, configure: Rebuild.
2381 * VERSION: Remove.
2382
2383 Thu Jul 31 12:09:20 1997 Geoff Keating <geoffk@ozemail.com.au>
2384
2385 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Don't set TEXTREL
2386 if there is only a relocation to a read-only but not allocatable
2387 section (like .stab).
2388 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
2389 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
2390 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
2391 * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise.
2392 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
2393
2394 * elf32-ppc.c (ppc_elf_howto_raw): Correct various comments.
2395 (ppc_elf_create_linker_section): These sections are not
2396 created by the linker (that is, they are created by the user
2397 putting data in them). In particular, they can be the source
2398 and target of relocations.
2399 (ppc_elf_adjust_dynamic_symbol): Check postcondition of
2400 bfd_elf32_link_record_dynamic_symbol. Align 16-byte common
2401 objects (for instance, 'long double') to 16-byte boundaries.
2402 (ppc_elf_size_dynamic_sections): Make the code that generates
2403 section symbols exactly the same as for sparc, reducing the
2404 number of section symbols output.
2405 (ppc_elf_check_relocs): Check postcondition of
2406 bfd_elf32_link_record_dynamic_symbol. Make default case the
2407 same as corresponding code for sparc, fixing bug involving
2408 .rela.stabs.
2409 (ppc_elf_finish_dynamic_symbol): Fix case involving GOT symbols
2410 forced to be local because of versioning (by replicating
2411 corresponding change in sparc). Treat R_PPC_RELATIVE RELA relocs
2412 as usual in ELF, not as pseudo-REL relocs (as the sparc linker
2413 does).
2414 (ppc_elf_relocate_section): Add handy debugging code for when
2415 assertion fails. Add some more 'symbol made local because of
2416 versioning' cases.
2417
2418 * elf32-ppc.c (ppc_elf_relocate_section): Cope with addend when
2419 processing a GOT relocation as required by ABI.
2420
2421 Wed Jul 30 21:30:35 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2422
2423 * elflink.h (NAME(bfd_elf,record_link_assignment)): Remove any
2424 version info if this symbol came from a dynamic object.
2425 (elf_link_add_object_symbols): Set the version info of a symbol
2426 only if the object actually contains version definitions and
2427 defines this symbol.
2428
2429 Mon Jul 28 18:07:43 1997 Rob Savoye <rob@chinadoll.cygnus.com>
2430
2431 * aclocal.m4: Add CYGWIN and EXEEXT autoconf macros.
2432 * configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
2433 win32 dependencies.
2434 * configure: Regenerated with autoconf 2.12.
2435 * doc/Makefile.in: Add $(EXEEXT) to chew executable.
2436
2437 Mon Jul 28 02:50:29 1997 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2438
2439 * rs6000-core.c (rs6000coff_core_p): If CORE_TRUNC is set, print
2440 a warning rather than returning an error.
2441
2442 Sun Jul 27 19:54:14 1997 Felix Lee <flee@cygnus.com>
2443
2444 * coffswap.h (coff_swap_aux_in): add semicolon to make MSVC happy.
2445
2446 Fri Jul 25 14:50:08 1997 Felix Lee <flee@cygnus.com>
2447
2448 * cisco-core.c: define signals for wingdb.
2449
2450 Fri Jul 25 16:27:07 1997 Ian Lance Taylor <ian@cygnus.com>
2451
2452 * ecofflink.c (bfd_ecoff_debug_accumulate): Only merge files with
2453 the same number of aux entries.
2454
2455 Fri Jul 25 08:22:15 1997 Jeffrey A Law (law@cygnus.com)
2456
2457 * som.c (hppa_som_gen_reloc_type): Use R_DATA_EXPR for the
2458 difference of two symbols if the relocation size is 32 bits.
2459 (som_write_fixups): Handle R_DATA_EXPR.
2460
2461 Wed Jul 23 16:08:02 1997 Ian Lance Taylor <ian@cygnus.com>
2462
2463 * coff-i386.c (coff_i386_reloc): Don't offset a common symbol by
2464 its value if COFF_WITH_PE is defined.
2465
2466 Tue Jul 22 17:19:45 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
2467
2468 * coff-stubgo32.c: New file.
2469 * go32stub.h: New file.
2470 * coff-i386.c: If COFF_GO32_EXE, include coff/go32exe.h.
2471 * coffswap.h (coff_swap_filehdr_in): Invoke
2472 COFF_ADJUST_FILEHDR_IN_PRE and COFF_ADJUST_FILEHDR_IN_POST if they
2473 are defined.
2474 (coff_swap_filehdr_out): Invoke COFF_ADJUST_FILEHDR_OUT_PRE and
2475 COFF_ADJUST_FILEHDR_OUT_POST if they are defined.
2476 (coff_swap_aux_in): Invoke COFF_ADJUST_AUX_IN_PRE and
2477 COFF_ADJUST_AUX_IN_POST if they are defined.
2478 (coff_swap_aux_out): Invoke COFF_ADJUST_AUX_OUT_PRE and
2479 COFF_ADJUST_AUX_OUT_POST if they are defined.
2480 (coff_swap_scnhdr_in): Invoke COFF_ADJUST_SCNHDR_IN_PRE and
2481 COFF_ADJUST_SCNHDR_IN_POST if they are defined.
2482 (coff_swap_scnhdr_out): Invoke COFF_ADJUST_SCNHDR_OUT_PRE and
2483 COFF_ADJUST_SCNHDR_OUT_POST if they are defined.
2484 * targets.c (go32stubbedcoff_vec): Declare.
2485 (bfd_target_vector): Add go32stubbedcoff_vec.
2486 * configure.in (go32coff_vec): New target vector.
2487 (go32stubbedcoff_vec): Likewise.
2488 * config.bfd (i[3456]86-*-msdosdjgpp*): New target.
2489 (i[3456]86-*-go32*): Change to be like new msdosdjgpp*.
2490 * Makefile.in: Rebuild dependencies.
2491 (BFD32_BACKENDS): Add coff-stubgo32.o.
2492 (BFD32_BACKENDS_CFILES): Add coff-stubgo32.c.
2493 (HFILES): Add go32stub.h.
2494
2495 Tue Jul 22 15:09:12 1997 Ian Lance Taylor <ian@cygnus.com>
2496
2497 * configure.in: Check for fdopen.
2498 * configure, config.in: Rebuild.
2499 * opncls.c (bfd_fdopenr): Check HAVE_FDOPEN rather than VMS or
2500 __GO32__. Reindent a bit.
2501
2502 Sun Jul 20 20:05:20 1997 Ian Lance Taylor <ian@cygnus.com>
2503
2504 * sunos.c (sunos_create_dynamic_sections): Set SEC_LINKER_CREATED
2505 flag for newly created sections.
2506 (sunos_add_dynamic_symbols): Don't discard newly created sections
2507 if shared library is dynobj.
2508
2509 Mon Jul 14 15:33:55 1997 Ian Lance Taylor <ian@cygnus.com>
2510
2511 * elf.c (map_sections_to_segments): When checking whether
2512 including a section in a segment would force us to skip a page,
2513 align the address of the next segment to avoid wraparound
2514 problems.
2515
2516 start-sanitize-tic80
2517 Tue Jul 8 12:11:29 1997 Fred Fish <fnf@cygnus.com>
2518
2519 * coffcode.h (coff_write_object_contents): Initialize
2520 target id field to TIC80_TARGET_ID.
2521 * coffswap.h (coff_swap_filehdr_out): Swap out target id field
2522 if used.
2523 (coff_swap_filehdr_in): Swap in target id field if used.
2524
2525 end-sanitize-tic80
2526 Mon Jul 7 16:41:20 1997 Ian Lance Taylor <ian@cygnus.com>
2527
2528 * coff-i386.c (coff_i386_is_local_label_name): New static function
2529 if TARGET_UNDERSCORE.
2530 (coff_bfd_is_local_label_name): Define if TARGET_UNDERSCORE.
2531 (i386coff_vec): Add SEC_CODE and SEC_DATA to section_flags.
2532
2533 Mon Jun 30 14:29:26 1997 Ian Lance Taylor <ian@cygnus.com>
2534
2535 * elf32-m68k.c (howto_table): Use complain_overflow_bitfield, not
2536 complain_overflow_signed, for 32 bit PC relative relocations.
2537
2538 Thu Jun 26 01:26:31 1997 Ian Lance Taylor <ian@cygnus.com>
2539
2540 * elflink.h (elf_link_add_object_symbols): When a version
2541 indirection symbol is overridden, make the original symbol point
2542 at the real overriding symbol.
2543
2544 * elf.c (bfd_elf_string_from_elf_section): Check for an invalid
2545 string index.
2546
2547 * elflink.h (elf_link_output_extsym): Use the right section for a
2548 common symbol.
2549 * elf32-mips.c (mips_elf_link_output_symbol_hook): If a common
2550 symbol was in .scommon, mark it as SHN_MIPS_SCOMMON.
2551
2552 Wed Jun 25 12:43:10 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
2553
2554 * elflink.h (elf_merge_symbols): Resolve indirect and warning
2555 symbols before checking for new symbols.
2556
2557 * elfcore.h (elf_corefile_note): Move out of HAVE_SYS_PROCFS_H.
2558
2559 Tue Jun 24 11:20:43 1997 Ian Lance Taylor <ian@cygnus.com>
2560
2561 * coffgen.c (coff_object_p): Read the f_opthdr bytes from the
2562 file, not aoutsz bytes (they are different in XCOFF .o files).
2563
2564 * xcofflink.c (xcoff_link_add_symbols): Permit symbols to be
2565 redefined by objects included from archives.
2566
2567 Mon Jun 23 18:03:27 1997 Ian Lance Taylor <ian@cygnus.com>
2568
2569 * elflink.h (elf_merge_symbol): In the case of a new defined
2570 symbol overriding an old defined symbol, return the hash table
2571 entry which we modify, even if it is the target of an
2572 indirection.
2573 (elf_link_add_object_symbols): If the real name of the symbol gets
2574 overridden, convert the versioned symbol into an indirect symbol
2575 to the real symbol.
2576
2577 * elflink.h (elf_merge_symbol): New static function, broken out of
2578 elf_link_add_object_symbols.
2579 (elf_link_add_object_symbols): Call it.
2580
2581 Sun Jun 22 19:40:57 1997 Ian Lance Taylor <ian@cygnus.com>
2582
2583 * coff-i386.c (i3coff_object_p): If COFF_IMAGE_WITH_PE, hack to
2584 handle case where COFF filehdr does not immediately follow PE
2585 header.
2586 * coffgen.c (coff_object_p): Remove useless seek to current
2587 location.
2588
2589 Wed Jun 18 19:03:38 1997 Ian Lance Taylor <ian@cygnus.com>
2590
2591 * linker.c (link_action): Change COMMON_ROW/indr to from CREF to
2592 REFC.
2593
2594 Tue Jun 17 11:55:02 1997 Ian Lance Taylor <ian@cygnus.com>
2595
2596 * cofflink.c (_bfd_coff_link_input_bfd): If stripping debugging
2597 symbols, skip N_ABS symbols with debugging storage classes.
2598
2599 Mon Jun 16 18:56:27 1997 Geoff Keating <geoffk@ozemail.com.au>
2600
2601 * elf32-ppc.c (ppc_elf_relocate_section): Don't emit R_PPC_REL*
2602 relocs in shared libraries which refer to local symbols. Cope
2603 with addend when processing a GOT relocation.
2604
2605 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Only create symbols
2606 for sections that the linker didn't create.
2607 (ppc_elf_finish_dynamic_sections): Only try to write out a section
2608 symbol if it was created in ppc_elf_size_dynamic_sections.
2609 (ppc_elf_relocate_section): Complain if we have to generate a reloc
2610 relative to a section for which we didn't output a symbol.
2611
2612 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Clean up. PLT
2613 relocs are 'rela' relocs, like everything else. .rela.plt is not
2614 a read-only section, so we don't have to special-case it.
2615
2616 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Entries in the
2617 .rela.bss section are (of course) 'rela' relocs not 'rel' relocs.
2618
2619 * elf32-ppc.c (ppc_elf_check_relocs): Initialise srelgot.
2620 (ppc_elf_relocate_section): @got offsets are 4 from start of the
2621 actual .got section.
2622 * elflink.c (_bfd_elf_create_got_section): The three reserved
2623 words start from the symbol '_GLOBAL_OFFSET_TABLE_'.
2624
2625 * elf32-ppc.c (ppc_elf_size_dynamic_sections): '.rela' is 5
2626 characters, not 4.
2627
2628 * elf32-ppc.c (ppc_elf_check_relocs): Use
2629 _bfd_elf_create_got_section to create the GOT rather than
2630 ppc_elf_create_linker_section. Create the '.rela.got' section
2631 ourselves.
2632 (ppc_elf_finish_dynamic_symbol): Set up GOT relocations when a
2633 symbol has a GOT entry.
2634 (ppc_elf_relocate_section): Record when a symbol is used through
2635 the GOT, and allocate space in the GOT for each such symbol.
2636 (ppc_elf_adjust_dynamic_symbol): Delete unused .got.plt stuff.
2637 (ppc_elf_create_linker_section): Delete unused LINKER_SECTION_GOT
2638 stuff.
2639
2640 * elf32-ppc.c (ppc_elf_howto_raw): GOT16_HA relocs should be
2641 treated in a similar way to ADDR16_HA relocs.
2642 (ppc_elf_relocate_section): PLTREL24 relocs do not get copied into
2643 shared objects; the linker must deal with them.
2644 (ppc_elf_create_linker_section): Stop setting
2645 _GLOBAL_OFFSET_TABLE_ to the wrong value; delete unused
2646 LINKER_SECTION_PLT stuff.
2647 (ppc_elf_check_relocs): Delete unused LINKER_SECTION_PLT stuff.
2648 (ppc_elf_finish_dynamic_sections): Use BFD calls to get GOT
2649 section, not ELF-specific calls.
2650 (elf_backend_plt_not_loaded): Set to 1.
2651 (elf_backend_got_symbol_offset): Set to 4.
2652 * elf-bfd.h (elf_backend_data): Add 'plt_not_loaded' member
2653 for when ld.so fills in the PLT; and 'got_symbol_offset' member.
2654 * elflink.c (_bfd_elf_create_dynamic_sections): Apply
2655 plt_not_loaded member.
2656 (_bfd_elf_create_got_section): Apply got_symbol_offset.
2657 * elfxx-target.h (elf_backend_plt_not_loaded): Set default to
2658 'loaded'.
2659 (elf_backend_G_O_T_offset): Set default to 0.
2660 (elfNN_bed): Set added fields.
2661
2662 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Was setting
2663 DT_RELENT in shared objects; should be DT_RELAENT.
2664
2665 * elf32-ppc.c (ppc_elf_relocate_section): Propagate
2666 R_PPC_ADDR16_HA relocs to shared objects. Cope with case where
2667 such a reloc (in a non-shared object) refers to a symbol that's
2668 not defined.
2669
2670 Mon Jun 16 14:42:14 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
2671
2672 * elfcode.h (put_signed_word): Define.
2673 (get_signed_word): Define.
2674 (elf_swap_reloca_in): Use get_signed_word for the r_addend field.
2675 (elf_swap_reloca_out): Use put_signed_word for the r_addend
2676 field.
2677 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Use
2678 bfd_get_signed_32 to set the r_addend field.
2679 * elf64-mips.c (mips_elf64_swap_reloca_in): Use
2680 bfd_h_get_signed_64 to set the r_addend field.
2681
2682 Mon Jun 16 12:31:29 1997 Ian Lance Taylor <ian@cygnus.com>
2683
2684 * elf32-i386.c (elf_i386_relocate_section): When generating a
2685 shared library, do the relocation if the input section is not
2686 allocated in memory.
2687
2688 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Call
2689 elf_link_assign_sym_version before elf_adjust_dynamic_symbol.
2690 (elf_fix_symbol_flags): New static function, broken out of
2691 elf_adjust_dynamic_symbol.
2692 (elf_adjust_dynamic_symbol): Call elf_fix_symbol_flags.
2693 (elf_link_assign_sym_version): Likewise. Permit a symbol to be
2694 forced local even if NEEDS_PLT is set. When forcing a symbol to
2695 be local, clear NEEDS_PLT.
2696 (elf_link_output_extsym): Remove unused local bed.
2697
2698 Wed Jun 11 22:44:20 1997 Jeffrey A Law (law@cygnus.com)
2699
2700 * elf32-mn10300.c (elf32_mn10300_link_hash_entry): New structure
2701 for derived elf linker hash table entries. References to
2702 elf_link_hash_entry changed appropriately.
2703 (elf32_mn10300_link_hash_table): New structure for derived elf
2704 linker hash table.
2705 (elf32_mn10300_hash_table): Define.
2706 (elf32_mn10300_link_hash_traverse): Likewise.
2707 (elf32_mn10300_link_hash_newfunc): New function.
2708 (elf32_mn10300_link_hash_table_create): Likewise.
2709 (elf32_mn10300_finish_hash_table_entry): Likewise.
2710 (mn10300_elf_relax_section): Handle "call" -> "calls", removal
2711 of prologue code, and call:32->call:16 relaxing.
2712 (compute_function_info: New function.
2713 (bfd_elf32_bfd_ilink_hash_table_create): Define.
2714
2715 Wed Jun 11 00:00:07 1997 Ian Lance Taylor <ian@cygnus.com>
2716
2717 * elflink.h (elf_link_output_extsym): Call finish_dynamic_symbol
2718 for a symbol which is being forced to be local.
2719 * elf32-i386.c (elf_i386_relocate_section): Write out the
2720 relocation value for a GOT reloc for a symbol which is turning
2721 into a local symbol.
2722 (elf_i386_finish_dynamic_symbol): If a symbol is turning into a
2723 local symbol, write out a RELATIVE reloc rather than a GLOB_DAT
2724 reloc.
2725 * elf32-m68k.c, elf32-sparc.c: Corresponding changes.
2726
2727 * elf32-i386.c (elf_i386_relocate_section): Get the relocation
2728 value if the symbol is turning into a local symbol.
2729 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2730 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2731
2732 1997-06-10 22:58 Ulrich Drepper <drepper@cygnus.com>
2733
2734 * elflink.h (elf_link_add_object_symbols): Also read verneed
2735 information by calling `_bfd_elf_slurp_version_tables'.
2736 (elf_link_add_object_symbols): For undefined symbols look for
2737 version information in the verneed records.
2738 (elf_link_add_object_symbols): Use soname of shared object
2739 for verneed record if it is available.
2740
2741 Tue Jun 10 11:13:03 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
2742
2743 * cpu-arm.c: Add prototypes for compatible and scan.
2744 * cofflink.c: Add prototype for mark_relocs.
2745
2746 * archive.c (bfd_special_undocumented_glue): Change filename to
2747 const pointer. Add prototype.
2748
2749 Mon Jun 9 12:34:21 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2750
2751 * elflink.h (elf_link_add_object_symbols): Ignore relocations of
2752 sections that will be discarded.
2753
2754 1997-06-06 22:58 Ulrich Drepper <drepper@cygnus.com>
2755
2756 * elflink.h (elf_link_find_version_dependencies): When searching
2757 for known version symbol skip non-matching verdef records, not
2758 matching records.
2759
2760 Thu Jun 5 15:52:45 1997 Ian Lance Taylor <ian@cygnus.com>
2761
2762 * cofflink.c (_bfd_coff_generic_relocate_section): Write a long,
2763 not a bfd_vma, to the base file, to match how dlltool reads it.
2764
2765 Tue Jun 3 16:57:45 1997 Nick Clifton <nickc@cygnus.com>
2766
2767 * reloc.c: Add thumb relocations.
2768
2769 * bfd-in2.h: Add Thumb relocations.
2770
2771 * libbfd.h: Add Thumb relocations.
2772
2773 Mon Jun 2 10:41:52 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2774
2775 * cpu-m68k.c (arch_info_struct): Fix 68060 cpu name.
2776
2777 Fri May 30 12:46:27 1997 Ian Lance Taylor <ian@cygnus.com>
2778
2779 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Set dynindx
2780 for a section even if it is not loaded.
2781
2782 * cofflink.c (coff_link_add_symbols): If PE file, don't subtract
2783 section VMA.
2784 (_bfd_coff_link_input_bfd): Separate section VMA handling for
2785 input and output files.
2786 (_bfd_coff_generic_relocate_section): Check whether input file,
2787 not output file, is a PE file.
2788
2789 Wed May 28 15:48:43 1997 Nick Clifton <nickc@cygnus.com>
2790
2791 * coff-arm.c: (coff_arm_bfd_set_private_flags): Make static.
2792
2793 Wed May 28 16:16:04 1997 Ian Lance Taylor <ian@cygnus.com>
2794
2795 * coff-i386.c (coff_i386_reloc): Don't just exit if we see an
2796 R_IMAGEBASE reloc.
2797
2798 Wed May 28 09:48:43 1997 Nick Clifton <nickc@cygnus.com>
2799
2800 * cpu-arm.c (compatible): Add test for supersets of ARM
2801 architectures.
2802
2803 Tue May 27 19:42:03 1997 Bob Manson <manson@charmed.cygnus.com>
2804
2805 * cofflink.c (_bfd_coff_final_link): Initialize global_to_static
2806 member.
2807
2808 Tue May 27 14:34:08 1997 Nick Clifton <nickc@cygnus.com>
2809
2810 * coff-arm.c (coff_arm_bfd_set_private_flags): Make global. It is
2811 called directly by gas/config/tc-arm.c.
2812
2813 Tue May 27 15:58:53 1997 Richard Henderson <rth@tamu.edu>
2814
2815 * elf64-alpha.c (PLT_ENTRY_*): Use a new thread-safe format.
2816 (elf64_alpha_finish_dynamic_symbol): Fill it in properly.
2817
2818 Mon May 26 14:05:13 1997 Ian Lance Taylor <ian@cygnus.com>
2819
2820 * coff-ppc.c (coff_ppc_relocate_section): If PE file, don't add
2821 section VMA.
2822
2823 Mon May 26 10:57:48 1997 Fred Fish <fnf@cygnus.com>
2824
2825 * peicode.h (coff_bfd_print_private_bfd_data): #undef before #define.
2826 (coff_bfd_copy_private_bfd_data): Ditto.
2827 * coff-arm.c (coff_arm_bfd_merge_private_bfd_data): Make static.
2828 (coff_arm_bfd_print_private_bfd_data): Ditto.
2829 (coff_arm_bfd_set_private_flags): Ditto.
2830 (coff_arm_bfd_copy_private_bfd_data): Ditto.
2831
2832 Fri May 23 15:14:58 1997 Fred Fish <fnf@cygnus.com>
2833
2834 * libcoff-in.h (struct coff_final_link_info): Add boolean
2835 global_to_static member for support of task linking.
2836 (_bfd_coff_write_task_globals): Add prototype.
2837 * libcoff.h: Regenerate.
2838 * coffcode.h (coff_write_object_contents): Use #ifdef to
2839 check RS6000COFF_C, to be consistent with all other uses
2840 in this file.
2841 * cofflink.c (_bfd_coff_final_link): If doing task linking,
2842 call _bfd_coff_write_task_globals.
2843 (_bfd_coff_link_input_bfd): If doing task linking, convert
2844 global functions to static.
2845 (_bfd_coff_write_global_sym): If doing task linking, convert
2846 global variables to static.
2847 (_bfd_coff_write_task_globals): New function.
2848 start-sanitize-tic80
2849 * coff-tic80.c (TIC80COFF): Define this instead of just TIC80.
2850 (C_AUTOARG): #undef since it clashes with C_UEXT.
2851 (C_LASTENT): #undef since it clashes with C_STATLAB.
2852 * coffcode.h (coff_write_object_contents): Use TIC80COFF
2853 rather than TIC80.
2854 (coff_slurp_symbol_table): Use C_SYSTEM. Hide C_AUTOARG use
2855 when TIC80COFF defined (clashes with C_UEXT). Explicitly
2856 recognize C_UEXT, C_STATLAB, and C_EXTLAB as unsupported.
2857 end-sanitize-tic80
2858
2859 start-sanitize-tic80
2860 Fri May 23 12:38:24 1997 Ian Lance Taylor <ian@cygnus.com>
2861
2862 * coff-tic80.c (tic80_howto_table): Change overflow check for most
2863 PP relocations to complain_overflow_dont.
2864
2865 Thu May 22 20:22:14 1997 Ian Lance Taylor <ian@cygnus.com>
2866
2867 * coff-tic80.c (tic80_howto_table): Add PP relocations. Change
2868 name of R_RELLONG to "RELLONG". Set rightshift and complain for
2869 M_PPCR.
2870 (ppbase_reloc, glob15_reloc): New static functions.
2871 (glob16_reloc, local16_reloc): New static functions.
2872 (rtype2howto): Handle all relocation types.
2873 (coff_tic80_relocate_section): New static function.
2874 (coff_relocate_section): Define to coff_tic80_relocate_section.
2875 * Makefile.in (coff-tic80.o): Depends upon include/coff/tic80.h.
2876
2877 end-sanitize-tic80
2878 Wed May 21 17:15:50 1997 Ian Lance Taylor <ian@cygnus.com>
2879
2880 * coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE or
2881 COFF_IMAGE_WITH_PE, don't subtract the section VMA from the symbol
2882 value.
2883 * coffgen.c (fixup_symbol_value): Add abfd parameter. Change all
2884 callers. If PE file, don't add section VMA.
2885 (coff_write_alien_symbol): If PE file, don't add section VMA.
2886 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
2887 (_bfd_coff_write_global_sym): Likewise.
2888 (_bfd_coff_generic_relocate_section): Likewise.
2889
2890 * peicode.h: Add & 0xffffffff when using ImageBase in case bfd_vma
2891 is 64 bits.
2892
2893 Wed May 21 09:58:10 1997 Nick Clifton <nickc@cygnus.com>
2894
2895 * cofflink.c (mark_relocs): Add new function to mark symbols which
2896 are used by relocations.
2897 (_bfd_coff_link_input_bfd): Add call to mark_relocs() and code to
2898 suppress the skipping of symbols that have thus been marked.
2899
2900 Tue May 20 18:45:26 1997 Ian Lance Taylor <ian@cygnus.com>
2901
2902 * coff-sh.c (sh_merge_private_data): New static function.
2903 (coff_bfd_merge_private_bfd_data): Define.
2904
2905 start-sanitize-tic80
2906 Mon May 19 14:46:00 1997 Mark Alexander <marka@cygnus.com>
2907
2908 * coff-tic80.c: Remove unnecessary #ifdefs.
2909 * config.bfd: Set targ_underscore to yes for tic80.
2910
2911 Mon May 19 14:26:36 1997 Mark Alexander <marka@cygnus.com>
2912
2913 * coff-tic80.c (NAMES_HAVE_UNDERSCORE): Define (fixes problem
2914 with unresolved external symbols in GDB).
2915
2916 end-sanitize-tic80
2917 Fri May 16 10:23:03 1997 Jeffrey A Law (law@cygnus.com)
2918
2919 * elf-m10300.c (elf32_mn10300_relax_section): Read in all
2920 the symbols associated with each BFD.
2921 (mn10300_elf_relax_delete_bytes): Don't adjust the same symbol
2922 more than once.
2923 * elf-m10200.c: Likewise.
2924 * elf32-m32r.c: Likewise.
2925 * elf32-sh.c: Likewise.
2926
2927 Fri May 16 12:10:52 1997 Ian Lance Taylor <ian@cygnus.com>
2928
2929 * elflink.h (elf_link_add_object_symbols): Don't decrease the
2930 alignment of a common symbol. If two symbols that look like
2931 common symbols are found in two shared libraries, and the size is
2932 different, use the larger size, and warn if --warn-common. If a
2933 common symbol overrides a definition in a shared library, set the
2934 size to the larger size, and warn if --warn-common.
2935
2936 Thu May 15 14:31:28 1997 Nick Clifton <nickc@cygnus.com>
2937
2938 * cpu-arm.c (compatible): Allow default machine to be polymorphed
2939 into any other machine type.
2940
2941 * coffcode.h (coff_set_flags): Initialise flags variable to 0.
2942
2943 * coff-arm.c (coff_arm_bfd_merge_private_bfd_data): When merging
2944 data into an unitialised destination set its machine type as well.
2945
2946 Thu May 15 16:40:20 1997 Ian Lance Taylor <ian@cygnus.com>
2947
2948 * elflink.h (elf_link_add_object_symbols): Force ELF symbol size
2949 to common symbol size. Consistently treat uninitialized symbols
2950 in shared objects as common symbols.
2951
2952 Fri May 9 10:15:27 1997 Nick Clifton <nickc@cygnus.com>
2953
2954 * archures.c (constants): Added new constants to identify the
2955 type of the ARM architecture: bfd_mach_arm_2, bfd_mach_arm_2a,
2956 bfd_mach_arm_3, bfd_mach_arm_3M, bfd_mach_arm_4 and bfd_mach_arm_4T.
2957
2958 * bfd-in2.h (constants): Added new constants to identify
2959 the type of the ARM architecture: bfd_mach_arm_2, bfd_mach_arm_2a,
2960 bfd_mach_arm_3, bfd_mach_arm_3M, bfd_mach_arm_4 and
2961 bfd_mach_arm_4T. This file is auto-magically generated from the
2962 archures.c file. This update is just to save work.
2963
2964 * coff-arm.c (coff_arm_bfd_merge_private_bfd_data,
2965 coff_arm_bfd_print_private_bfd_data,
2966 coff_arm_bfd_set_private_flags,
2967 coff_arm_bfd_copy_private_bfd_data): Added these new functions.
2968 (global): Macro redefinitions set up to use these new functions.
2969
2970 * coffcode.h (coff_mkobject_hook): Added call to
2971 coff_arm_bfd_set_private_flags().
2972 (coff_set_arch_mach_hook): Added code to set machine type based on
2973 bits stored in internal flags.
2974 (coff_set_flags): Added code to set the new bits in the flags
2975 field based on the machine number.
2976 (function definition macros): Made all function definition macros
2977 conditional so that they can be overridden by target specific
2978 files.
2979
2980 * cpu-arm.c (compatible): Added this function. (arch_info_struct):
2981 Structure extended to include new types, one each for ARMv2,
2982 ARMv2a, ARMv3, ARMv3M, ARMv4 and ARMv4T.
2983
2984 * libcoff-in.h (struct coff_tdata): Added flags field.
2985
2986 Fri May 9 17:40:02 1997 Ian Lance Taylor <ian@cygnus.com>
2987
2988 * config.bfd (i[3456]86-*-gnu*): Don't include Mach support.
2989
2990 * config.bfd: Change #if 0 around uses of host_aout_vec to #if
2991 HAVE_host_aout_vec.
2992
2993 Mon May 5 13:57:32 1997 Mike Meissner <meissner@cygnus.com>
2994
2995 * coffgen.c (coff_find_nearest_line): If there are no syments,
2996 just return false.
2997
2998 Mon May 5 18:18:45 1997 Philip Blundell <pjb27@cam.ac.uk>
2999
3000 * config.bfd: cope with '*-*-linux-gnuaout' targets.
3001
3002 Thu May 1 11:31:12 1997 Ian Lance Taylor <ian@cygnus.com>
3003
3004 * targmatch.sed: Add explicit \n characters to work around bug in
3005 HP/UX 10.20 sed program.
3006
3007 Wed Apr 30 12:27:03 1997 Ian Lance Taylor <ian@cygnus.com>
3008
3009 * elf.c (copy_private_bfd_data): Cast csecs to avoid sign
3010 extension problems.
3011
3012 Tue Apr 22 12:06:08 1997 Ian Lance Taylor <ian@cygnus.com>
3013
3014 * Makefile.in (do_maintainer_clean): Don't remove bfd-in2.h.
3015
3016 Mon Apr 21 11:21:31 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3017
3018 * elf32-m68k.c: Follow the last changes in elf32-i386.c:
3019 (struct elf_m68k_pcrel_relocs_copied, struct
3020 elf_m68k_link_hash_entry, struct elf_m68k_link_hash_table,
3021 elf_m68k_link_hash_traverse, elf_m68k_hash_table,
3022 elf_m68k_link_hash_newfunc, elf_m68k_link_hash_table_create,
3023 elf_m68k_discard_copies, bfd_elf32_bfd_link_hash_table_create):
3024 New definitions.
3025 (elf_m68k_check_relocs): If linking with -Bsymbolic, don't copy
3026 PC relative relocs for a global symbol defined in a regular
3027 object, and count the number of PC relative relocs copied for any
3028 global symbol.
3029 (elf_m68k_size_dynamic_sections): If linking with -Bsymbolic,
3030 traverse with elf_m68k_discard_copies.
3031
3032 Sat Apr 19 22:50:14 1997 Ian Lance Taylor <ian@cygnus.com>
3033
3034 * elf32-i386.c (elf_i386_check_relocs): Only count PC relative
3035 relocs. From Jamie Lokier <jamie@rebellion.co.uk>.
3036
3037 * coffcode.h (coff_compute_section_file_positions): Force the
3038 potential last byte in the file to be written out when
3039 COFF_IMAGE_WITH_PE.
3040
3041 Thu Apr 17 13:46:56 1997 Per Fogelstrom <pefo@openbsd.org>
3042
3043 * configure.host (mips*-*-openbsd*): New host.
3044
3045 Thu Apr 17 11:10:54 1997 Ian Lance Taylor <ian@cygnus.com>
3046
3047 * elflink.h (elf_link_add_object_symbols): Only subtract the
3048 section VMA from the symbol value if this is a fully linked file.
3049
3050 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Define.
3051 (struct elf_i386_link_hash_entry): Define.
3052 (struct elf_i386_link_hash_table): Define.
3053 (elf_i386_link_hash_traverse): Define.
3054 (elf_i386_hash_table): Define.
3055 (elf_i386_link_hash_newfunc): New static function.
3056 (elf_i386_link_hash_table_create): New static function.
3057 (elf_i386_check_relocs): If linking with -Bsymbolic, don't copy
3058 PC relative relocs for a global symbol defined in a regular
3059 object, and count the number of PC relative relocs copied for any
3060 global symbol.
3061 (elf_i386_size_dynamic_sections): If linking with -Bsymbolic,
3062 traverse with elf_i386_discard_copies.
3063 (elf_i386_discard_copies): New static function.
3064 (bfd_elf32_bfd_link_hash_table_create): Define.
3065
3066 From Gordon W. Ross <gwr@mc.com>:
3067 * aoutf1.h (MY_entry_is_text_address): Define if not defined.
3068 (sunos4_aout_backend): Use MY_entry_is_text_address.
3069
3070 start-sanitize-d30v
3071 Wed Apr 16 12:43:32 1997 Martin Hunt <hunt@cygnus.com>
3072
3073 * elf32-d30v.c (elf_d30v_howto_table): Changed size of
3074 R_D30V_32_NORMAL to 2 (4 bytes).
3075
3076 end-sanitize-d30v
3077 Wed Apr 16 14:02:29 1997 Ian Lance Taylor <ian@cygnus.com>
3078
3079 From Gordon W. Ross <gwr@mc.com>:
3080 * netbsd.h (N_SHARED_LIB): Define.
3081 (SEGMENT_SIZE): Don't define.
3082 * m68knetbsd.c (SEGMENT_SIZE): Don't define (revert change of
3083 April 11).
3084 * sparcnetbsd.c (TARGET_PAGE_SIZE): Define as 0x2000.
3085 (SEGMENT_SIZE): Don't define.
3086
3087 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Set .rela.bss size
3088 to sizeof Rela structure, not sizeof Rel structure. From Gary
3089 Thomas <g.thomas@opengroup.org>.
3090
3091 Tue Apr 15 11:50:37 1997 Ian Lance Taylor <ian@cygnus.com>
3092
3093 * aout-target.h (MY(callback)): If entry_is_text_address, adjust
3094 whenever entry is larger than text address, but only by whole
3095 pages. From Gordon W. Ross <gwr@mc.com>.
3096
3097 * Makefile.in (install): Depend upon installdirs. Use
3098 mkinstalldirs to build $(oldincludedir).
3099 (installdirs): New target.
3100
3101 * elflink.h (elf_link_add_object_symbols): Don't call check_relocs
3102 if this is a debugging section which we are stripping.
3103
3104 Mon Apr 14 12:39:30 1997 Richard Henderson <rth@tamu.edu>
3105
3106 * elf64-alpha.c (elf64_alpha_object_p): Allocate the
3107 alpha-specific target data struct.
3108
3109 Mon Apr 14 11:45:46 1997 Ian Lance Taylor <ian@cygnus.com>
3110
3111 From Thomas Graichen <graichen@rzpd.de>:
3112 * Makefile.in: Always use $(SHELL) when running move-if-change.
3113 * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
3114 * configure: Rebuild.
3115
3116 Fri Apr 11 15:43:24 1997 Ian Lance Taylor <ian@cygnus.com>
3117
3118 * elfcode.h (elf_slurp_symbol_table): Only subtract the section
3119 VMA if this is an executable file or a shared object.
3120
3121 * targets.c (netbsd_core_vec): Declare. From Gordon W. Ross
3122 <gwr@mc.com>.
3123
3124 * libaout.h (struct aout_backend_data): Add entry_is_text_address
3125 field.
3126 * aout-target.h (SEGMENT_SIZE): Define to TARGET_PAGE_SIZE at the
3127 start of the file. Remove uses later on which switch using
3128 ifdef.
3129 (MY(callback)): Handle entry_is_text_address.
3130 (MY_entry_is_text_address): Define if not defined.
3131 (MY(backend_data)): Initialize new field.
3132 * aoutf1.h (sunos4_aout_backend): Likewise.
3133 * i386aout.c (MY(backend_data)): Likewise.
3134 * i386mach3.c (MY(backend_data)): Likewise.
3135 * mipsbsd.c (MY(backend_data)): Likewise.
3136 * sparclynx.c (sparclynx_aout_backend): Likewise.
3137 * netbsd.h (SEGMENT_SIZE): Define if not defined.
3138 (MY_entry_is_text_address): Define.
3139 * m68knetbsd.c (SEGMENT_SIZE): Define as 0x20000.
3140
3141 * xcofflink.c (bfd_xcoff_import_symbol): Handle importing a symbol
3142 whose name starts with `.'.
3143
3144 Fri Apr 11 11:57:15 1997 Niklas Hallqvist <niklas@appli.se>
3145
3146 * config.bfd: (i[3456]86-*-openbsd*, m68*-*-openbsd*,
3147 mips*el*-*-openbsd*, mips*-*-openbsd*, ns32k-*-openbsd*,
3148 powerpc-*-*bsd*, sparc-*-openbsd*): New targets.
3149 * configure.in (i[3456]86-*-openbsd*, mips*-*-openbsd*,
3150 m68*-*-openbsd*, ns32k-*-openbsd*, powerpc-*-*bsd*,
3151 sparc-*-openbsd*): New targets.
3152 * configure: Rebuild.
3153
3154 Tue Apr 8 18:09:29 1997 Jamie Lokier <jamie@rebellion.co.uk>
3155
3156 * stabs.c (struct stab_section_info): New field
3157 `cumulative_skips'.
3158 (_bfd_link_section_stabs): Fill the above array.
3159 (_bfd_stab_section_offset): Use `cumulative_skips' to
3160 speed up offset calculation.
3161
3162 Tue Apr 8 00:01:31 1997 Jeffrey A Law (law@cygnus.com)
3163
3164 * elf-mn10300.c (mn10300_elf_relax_section): Don't forget the
3165 addend for non pc-relative relocations.
3166
3167 * elf-m10300.c (bfd_elf32_mn10300_reloc): Remove prototype
3168 for non-existent function.
3169
3170 * elf-m10300.c (mn10300_elf_relax_section): New function.
3171 (mn10300_elf_relax_delete_bytes): Likewise.
3172 (mn10300_elf_symbol_address_p): Likewise.
3173 (mn10300_elf_get_relocated_section_contents): Likewise.
3174 (bfd_elf32_bfd_relax_section): Define.
3175 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
3176
3177 Mon Apr 7 16:47:09 1997 Ian Lance Taylor <ian@cygnus.com>
3178
3179 * configure.host: Set SHLIB_LIBS.
3180 * configure.in: Substitute SHLIB_LIBS.
3181 * configure: Rebuild.
3182 * Makefile.in (SHLIB_LIBS): New variable.
3183 ($(SHLIB)): Use $(SHLIB_LIBS).
3184
3185 Mon Apr 7 10:53:52 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
3186
3187 * bfd-in.h bfd-in2.h: add bfd_section_lma macro to correspond
3188 with bfd_section_vma.
3189
3190 Fri Apr 4 11:37:15 1997 Ian Lance Taylor <ian@cygnus.com>
3191
3192 * configure.in: Update file names for bfd_elf32_mn10[23]00_vec.
3193 Correct CPU file names for mn10[23]00.
3194 * configure: Rebuild.
3195
3196 * bfd.c (bfd_record_phdr): Cast count to size_t before
3197 subtraction.
3198
3199 * coff-ppc.c (dump_toc): Add cast to avoid warning from SunOS cc.
3200 * coff-rs6000.c (xcoff_read_ar_hdr): Likewise.
3201 (xcoff_write_archive_contents): LIkewise.
3202 * elf32-mips.c (_bfd_mips_elf_set_section_contents): Likewise.
3203 (mips_elf_create_procedure_table): Likewise.
3204 * peicode.h (pe_print_idata): Likewise.
3205 (pe_print_edata, pe_print_pdata, pe_print_reloc): Likewise.
3206 * xcofflink.c (xcoff_get_section_contents): Likewise.
3207 (_bfd_xcoff_canonicalize_dynamic_symtab): Likewise.
3208 (xcoff_link_add_symbols): Likewise.
3209 (xcoff_link_add_symbols): Likewise.
3210
3211 * ppcboot.c (ppcboot_set_arch_mach): Make static.
3212 (ppcboot_bfd_print_private_bfd_data): Likewise.
3213
3214 * elf32-mips.c (elf_mips_ctor64_howto): Set complain_on_overflow
3215 to complain_overflow_signed.
3216
3217 Thu Apr 3 11:51:54 1997 Ian Lance Taylor <ian@cygnus.com>
3218
3219 * VERSION: Set to 2.8.1.
3220
3221 * Branched binutils 2.8.
3222
3223 * elf32-ppc.c (ppc_elf_check_relocs): Don't check SEC_ALLOC when
3224 deciding whether to copy a reloc into a shared object.
3225 (ppc_elf_relocate_section): Likewise. Relocate R_PPC_RELATIVE
3226 relocs in unallocated sections.
3227 * elf32-sparc.c (elf32_sparc_relocate_section): Relocate
3228 R_SPARC_RELATIVE relocs in unallocated sections.
3229
3230 Wed Apr 2 16:19:41 1997 Mike Meissner <meissner@cygnus.com>
3231
3232 * elf32-ppc.c (ppc_elf_check_relocs): Undo March 26 change and
3233 always create got section so that the _GLOBAL_OFFSET_TABLE_ label
3234 is always created.
3235
3236 Wed Apr 2 10:49:07 1997 Ian Lance Taylor <ian@cygnus.com>
3237
3238 * elflink.h (elf_link_add_object_symbols): Let a common symbol
3239 override an uninitialized symbol from a shared library with a
3240 smaller size.
3241
3242 * elf-m10200.c: Rename from elf32-mn10200.c.
3243 * elf-m10300.c: Rename from elf32-mn10300.c.
3244 * cpu-m10200.c: Rename from cpu-mn10200.c
3245 * cpu-m10300.c: Rename from cpu-mn10300.c
3246 * Makefile.in: Update accordingly.
3247
3248 * elf32-mips.c (elf_mips_ctor64_howto): New static variable.
3249 (elf_mips_isa): Move to earlier in file.
3250 (mips_reloc_map): Remove BFD_RELOC_CTOR entry.
3251 (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_CTOR
3252 specially.
3253
3254 * elf32-mips.c (mips16_jump_reloc): Print a warning rather than
3255 calling abort.
3256
3257 Tue Apr 1 16:18:05 1997 Klaus Kaempf <kkaempf@progis.de>
3258
3259 * configure.com: New file.
3260 * config.h-vms: Remove file.
3261 * makefile.vms: Update for new configure scheme.
3262
3263 Mon Mar 31 23:28:39 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
3264
3265 * libcoff-in.h (ppc_allocate_toc_section): Declare.
3266 (ppc_process_before_allocation): Declare.
3267 * libcoff.h: Rebuild.
3268
3269 * coffcode.h (coff_mkobject_hook): Declare if not a macro.
3270
3271 Mon Mar 31 16:29:50 1997 Joel Sherrill <joel@oarcorp.com>
3272
3273 * config.bfd (hppa*-*-rtems*): New target, like hppa-*-*elf*.
3274
3275 Mon Mar 31 16:11:35 1997 Ian Lance Taylor <ian@cygnus.com>
3276
3277 * coff-a29k.c (coff_a29k_relocate_section): Don't use symndx as a
3278 symbol index for a R_IHCONST reloc.
3279
3280 Mon Mar 31 15:40:59 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
3281
3282 * targmatch.sed: Do not use \(\) recursively.
3283
3284 Fri Mar 28 14:44:08 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
3285
3286 * m68klinux.c (MACHTYPE_OK): Define.
3287 * i386linux.c (MACHTYPE_OK): Define.
3288
3289 Fri Mar 28 11:56:15 1997 Ian Lance Taylor <ian@cygnus.com>
3290
3291 From David S. Miller <davem@caip.rutgers.edu> and H.J. Lu
3292 <hjl@gnu.ai.mit.edu>:
3293 * sparclinux.c: New file.
3294 * bfd-in.h (bfd_sparclinux_size_dynamic_sections): Declare.
3295 * bfd-in2.h: Rebuild.
3296 * config.bfd (sparc-*-linuxaout*, sparc-*-linux*): New targets.
3297 * configure.in (sparclinux_vec): Add to list of vectors.
3298 * configure: Rebuild.
3299 * targets.c (sparclinux_vec): Declare.
3300 (bfd_target_vector): Add sparclinux_vec.
3301 * Makefile.in: Rebuild dependencies.
3302 (BFD32_BACKENDS): Add sparclinux.o.
3303 (BFD32_BACKENDS_CFILES): Add sparclinux.c.
3304
3305 * coff-mips.c (mips_ecoff_backend_data): Initialize new
3306 bfd_coff_backend_data field.
3307 * coff-alpha.c (alpha_ecoff_backend_data): Likewise.
3308
3309 * config.bfd: Add bfd_elf64_{big,little}mips_vec to targ_selvecs
3310 for mips*el*-*-linux* and mips*-*-linux*. From H.J. Lu
3311 <hjl@lucon.org> and Ralf Baechle <ralf@gnu.ai.mit.edu>.
3312
3313 * bfd.c: Include "libiberty.h".
3314 (strerror): Don't declare.
3315 (bfd_errmsg): Call xstrerror rather than strerror.
3316
3317 Thu Mar 27 12:55:42 1997 Ian Lance Taylor <ian@cygnus.com>
3318
3319 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Generate a COPY
3320 reloc even if the symbol is in the .bss section.
3321 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
3322 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
3323 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.
3324
3325 * coffcode.h (bfd_coff_backend_data): Add new field
3326 _bfd_coff_default_section_alignment_power.
3327 (bfd_coff_default_section_alignment_power): Define.
3328 (bfd_coff_std_swap_table): Initialize new field.
3329 * libcoff.h: Rebuild.
3330 * cofflink.c (coff_link_add_symbols): Limit alignment of a common
3331 symbol to the default section alignment.
3332
3333 * COPYING: Update FSF address.
3334
3335 start-sanitize-d30v
3336 Thu Mar 27 00:45:57 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
3337
3338 * elf32-d30v.c (elf_d30v_howto_table): Fix a typo in the
3339 21-bit absolute that made it act as a relative.
3340
3341 end-sanitize-d30v
3342 Wed Mar 26 14:50:20 1997 Ian Lance Taylor <ian@cygnus.com>
3343
3344 * elflink.c (_bfd_elf_create_linker_section): Don't set
3345 bss_section and rel_section from existing sections.
3346
3347 * elf32-ppc.c (ppc_elf_check_relocs): Only create the got section
3348 if it is needed.
3349
3350 Tue Mar 25 22:26:56 1997 Stu Grossman (grossman@critters.cygnus.com)
3351
3352 * aoutx.h (some_aout_object_p): Change executable test to fix
3353 problems with embedded a.out systems.
3354
3355 Tue Mar 25 14:35:37 1997 Ian Lance Taylor <ian@cygnus.com>
3356
3357 * stabs.c (_bfd_stab_section_offset): New function.
3358 * libbfd-in.h (_bfd_stab_section_offset): Declare.
3359 * libbfd.h: Rebuild.
3360 * elf32-i386.c (elf_i386_relocate_section): Adjust the offset of a
3361 stab reloc.
3362 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3363 * elf32-mips.c (mips_elf_relocate_section): Likewise.
3364 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3365 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3366 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3367
3368 * stabs.c (_bfd_link_section_stabs): Copy over the first header
3369 symbol. Check for memory allocation failure of *psinfo.
3370 (_bfd_write_section_stabs): Add psinfo parameter. Change all
3371 callers. Set the value of the header symbol.
3372 * libbfd-in.h (_bfd_write_section_stabs): Update declaration.
3373 * libbfd.h: Rebuild.
3374
3375 start-sanitize-tic80
3376 Mon Mar 24 20:07:29 1997 Fred Fish <fnf@cygnus.com>
3377
3378 * coff-tic80.c (tic80_howto_table): Add R_ABS entry.
3379 (rtype2howto): Handle R_ABS reloc type. Also abort on unhandled
3380 reloc types, rather than silently failing to generate an output file.
3381
3382 end-sanitize-tic80
3383 Mon Mar 24 13:41:00 1997 Ian Lance Taylor <ian@cygnus.com>
3384
3385 * targmatch.sed: Use the hold space to put the #ifdef around the
3386 the string constant.
3387 * targets.c (UNSUPPORTED_TARGET): Don't define.
3388 (find_target): Don't check for UNSUPPORTED_TARGET.
3389 (bfd_set_default_target): Don't try to optimize by checking for
3390 default.
3391
3392 * Makefile.in: Rebuild dependencies.
3393 (ALL_MACHINES_CFILES): Add cpu-m32r.c.
3394 (BFD32_BACKENDS_CFILES): Add elf32-m32r.c.
3395 (elf32-m32r.o): Remove explicit target.
3396
3397 * config.bfd: Don't set targ_underscore for i[3456]86-*-gnu* or
3398 i[3456]86-*-linux*.
3399
3400 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Don't
3401 count section symbols for sections that were created by the
3402 linker, or are not allocatable or not loadable.
3403 (elf32_sparc_finish_dynamic_sections): Output output section
3404 symbols for section for which we made space for them.
3405
3406 Fri Mar 21 13:08:26 1997 Ian Lance Taylor <ian@cygnus.com>
3407
3408 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): If there is
3409 no .rela.plt section, don't output a DT_PLTGOT dynamic entry.
3410
3411 Fri Mar 21 12:36:46 1997 Doug Evans <dje@canuck.cygnus.com>
3412
3413 * elf32-m32r.c (m32r_elf_howto_table): Use special function for LO16.
3414 (m32r_hi16_list): New static local.
3415 (m32r_elf_hi16_reloc): Don't perform reloc, just queue it up.
3416 (m32r_elf_do_hi16_reloc): Delete.
3417 (m32r_elf_relocate_hi16): New function.
3418 (m32r_elf_lo16_reloc): New function.
3419 (m32r_elf_relocate_section): For HI16 relocs, scan for corresponding
3420 LO16 reloc.
3421
3422 Mon Mar 10 16:03:31 1997 Doug Evans <dje@seba.cygnus.com>
3423
3424 * elf32-m32r.c (m32r_elf_create_linker_section): Delete.
3425 (m32r_elf_add_symbol_hook): Rewrite _SDA_BASE_ support.
3426 (m32r_elf_final_sda_base): New function.
3427 (m32r_elf_relocate_section): Rewrite sdata support.
3428 (m32r_elf_finish_dynamic_sections): Delete.
3429
3430 Thu Mar 20 12:39:02 1997 Ian Lance Taylor <ian@cygnus.com>
3431
3432 Based on patches from Philippe De Muyter <phdm@info.ucl.ac.be>.
3433 * coff-svm68k.c: New file. Just defines some macros and includes
3434 coff-m68k.c.
3435 * coff-m68k.c: Add functions to handle common addends, moved in
3436 from cf-m68klynx.c. Control them using COFF_COMMON_ADDEND macro.
3437 Control whether relocs are visible using STATIC_RELOCS.
3438 * cf-m68klynx.c: Simplify greatly: just define macros to control
3439 coff-m68k.c.
3440 * coff-aux.c: Likewise. Just leave add_one_symbol routine.
3441 * targets. (m68ksysvcoff_vec): Declare.
3442 (bfd_target_vector): Add m68ksysvcoff_vec.
3443 * config.bfd (m68*-motorola-sysv*): New target.
3444 * configure.in (m68ksysvcoff_vec): New vector.
3445 * configure: Rebuild.
3446 * Makefile.in: Rebuild dependencies.
3447 (BFD32_BACKENDS): Add coff-svm68k.o.
3448 (BFD32_BACKENDS_CFILES): Add coff-svm68k.c.
3449
3450 * binary.c (binary_set_section_contents): Don't get misled if the
3451 first section is not loadable. From Matthew L. Martin
3452 <mlm@xedia.com>.
3453
3454 * elflink.h (elf_bfd_final_link): Set the value of a section
3455 symbol to the section address unless doing a relocateable link.
3456
3457 Tue Mar 18 23:03:17 1997 Richard Henderson <rth@tamu.edu>
3458
3459 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't create
3460 .plt entry if we've taken the function's address.
3461 (elf64_alpha_merge_gots): Merge collected flags info as well.
3462
3463 Tue Mar 18 22:40:09 1997 H.J. Lu <hjl@lucon.org>
3464
3465 * Many files: Add function prototypes.
3466 * cpu-m68k.c (bfd_default_scan_num_mach): Don't declare.
3467 * ecofflink.c: Include "libcoff.h" and "libecoff.h".
3468 * elf32-ppc.c (ppc_elf_fake_sections): Make static.
3469 * opncls.c (bfd_openstreamr): Change stream parameter to PTR.
3470 * peicode.h: Change several void * parameters to PTR.
3471 * srec.c (srec_get_symbol_info): Make static.
3472 * syms.c (bfd_symbol_is_absolute): Remove.
3473 * Makefile.in: Rebuild dependencies.
3474
3475 Tue Mar 18 12:58:08 1997 Ian Lance Taylor <ian@cygnus.com>
3476
3477 * elf32-m32r.c (m32r_elf_is_local_label_name): Remove.
3478 (bfd_elf32_bfd_is_local_label): Don't define.
3479
3480 * xcofflink.c (_bfd_xcoff_bfd_final_link): Call bfd_malloc rather
3481 than malloc.
3482
3483 Mon Mar 17 11:32:53 1997 Ian Lance Taylor <ian@cygnus.com>
3484
3485 * bfd-in.h: Don't include obstack.h.
3486 (struct bfd_hash_table): Change memory field to PTR.
3487 * bfd.c (struct _bfd): Change memory field to PTR.
3488 * bfd-in2.h: Rebuild.
3489 * libbfd-in.h (bfd_release): Declare as function, don't define as
3490 macro.
3491 * libbfd.h: Rebuild.
3492 * opncls.c: Include "objalloc.h" rather than "obstack.h". Use
3493 objalloc routines rather than obstack routines.
3494 (obstack_chunk_alloc, obstack_chunk_free): Don't define.
3495 (getpagesize): Don't define.
3496 (_bfd_new_bfd): Don't set _bfd_chunksize.
3497 (bfd_openr): Free new bfd and objalloc on failure.
3498 (bfd_fdopenr, bfd_openstreamr, bfd_openw): Likewise.
3499 (bfd_alloc_size): Remove.
3500 (bfd_release): New function.
3501 * hash.c: Include "objalloc.h" rather than "obstack.h". Use
3502 objalloc routines rather than obstack routines.
3503 (obstack_chunk_alloc, obstack_chunk_free): Don't define.
3504 * ecofflink.c: Include "objalloc.h" rather than "obstack.h". Use
3505 objalloc routines rather than obstack routines.
3506 (obstack_chunk_alloc, obstack_chunk_free): Don't define.
3507 (struct accumulate): Change memory to struct objalloc *.
3508 * liboasys.h (oasys_data_type): Remove oasys_obstack field.
3509 * dep-in.sed: Don't remove obstack.h from dependency list.
3510 * Makefile.in: Rebuild dependencies.
3511 (BFD_H_DEPS): Remove obstack.h.
3512 (install): Don't install obstack.h.
3513 * Many files: Don't include "obstack.h".
3514 * VERSION: Bump.
3515
3516 * opncls.c (bfd_alloc_grow, bfd_alloc_finish): Remove.
3517 * libbfd-in.h (bfd_alloc_grow, bfd_alloc_finish): Don't declare.
3518 * libbfd.h: Rebuild.
3519 * ieee.c (ieee_archive_p): Rewrite to not use bfd_alloc_grow.
3520 * sunos.c (sunos_add_dynamic_symbols): Likewise.
3521 * srec.c (srec_scan): Rewrite to not use obstack_1grow.
3522
3523 * opncls.c (bfd_alloc): Rename from bfd_alloc_by_size_t. Remove
3524 old version of bfd_alloc.
3525 * libbfd-in.h (bfd_alloc_by_size_t): Don't declare.
3526 * libbfd.h: Rebuild.
3527 * Several files: Call bfd_alloc rather than bfd_alloc_by_size_t.
3528
3529 Sat Mar 15 15:24:18 1997 Ian Lance Taylor <ian@cygnus.com>
3530
3531 * elf32-mips.c (mips_elf_is_local_label_name): Accept the generic
3532 ELF local label syntax as well.
3533
3534 Sat Mar 15 10:16:42 1997 Fred Fish <fnf@cygnus.com>
3535
3536 * config.bfd (powerpc-*-beos*): New target.
3537 * configure.in (powerpc-*-beos*): Add case that explicitly
3538 does not set COREFILE for now. A future BeOS version is
3539 expected to support core files.
3540 * configure: Regenerate with autoconf.
3541
3542 Fri Mar 14 16:43:22 1997 Ian Lance Taylor <ian@cygnus.com>
3543
3544 * elf32-mips.c (mips_elf_check_relocs): Give an error if CALL16 is
3545 seen with a local symbol, rather than crashing.
3546
3547 * elfcode.h (elf_slurp_symbol_table): Don't try to read the
3548 version symbols if there aren't any.
3549
3550 start-sanitize-tic80
3551 Thu Mar 13 16:38:30 1997 Fred Fish <fnf@cygnus.com>
3552
3553 * coff-tic80.c (coff_rtype_to_howto): Define
3554 (coff_tic80_rtype_to_howto): Clone generic coff version and
3555 add code to handle the funky TI "internal relocations".
3556
3557 end-sanitize-tic80
3558 Thu Mar 13 14:08:53 1997 Ian Lance Taylor <ian@cygnus.com>
3559
3560 * elflink.h (elf_link_add_object_symbols): Don't warn about type
3561 or size changes because of a weak symbol.
3562
3563 * cisco-core.c (SIGEMT): Define if not defined.
3564
3565 Wed Mar 12 21:36:05 1997 Ian Lance Taylor <ian@cygnus.com>
3566
3567 * elflink.h (elf_link_add_object_symbols): Use extsymoff when
3568 setting ever. Sanity check the version number. Sort out copying
3569 flags and other information when adding an indirect symbol.
3570 (NAME(bfd_elf,size_dynamic_sections)): Preserve any dynamic
3571 symbols added by the backend. Clear the entire contents of the
3572 versym section.
3573 (elf_export_symbol): Ignore indirect symbols.
3574 (elf_link_output_extsym): Accept a section without an owner in an
3575 assert.
3576 * elfcode.h (elf_slurp_symbol_table): Add a sanity check on the
3577 version count. Correct the allocation of x_versymp.
3578
3579 * elf32-mips.c (mips_elf_add_symbol_hook): Don't set the owner of
3580 the magic sections used for SHN_MIPS_TEXT and SHN_MIPS_DATA.
3581 Don't return bfd_und_section_ptr when info->shared.
3582 (mips_elf_final_link): Set the alignment of .rtproc to 4, not 12.
3583 (mips_elf_create_dynamic_sections): Correct type: ^= for &=.
3584 (mips_elf_check_relocs): Resolve an indirect symbol in
3585 sym_hashes.
3586 (mips_elf_finish_dynamic_symbol): Don't change SHN_ABS into
3587 SHN_MIPS_TEXT or SHN_MIPS_DATA.
3588
3589 * elf.c (bfd_elf_print_symbol): Tweak version output slightly.
3590
3591 Tue Mar 11 01:38:36 1997 Ian Lance Taylor <ian@cygnus.com>
3592
3593 From Eric Youngdale <eric@andante.jic.com>:
3594 * elf-bfd.h (ELF_LINK_FORCED_LOCAL): Define.
3595 * elf.c (bfd_elf_print_symbol): Correct errors in last change.
3596 * elflink.h (elf_link_add_object_symbols): Handle cases in which a
3597 versioned symbol appears in both a regular and a shared object.
3598 (elf_link_assign_sym_version): Set ELF_LINK_FORCED_LOCAL when
3599 appropriate. Improve error message.
3600 (struct elf_outext_info): Rename from elf_finfo_failed. Change
3601 all uses. Add localsyms field.
3602 (elf_bfd_final_link): When generating a shared library, call
3603 elf_link_output_extsym to output all local symbols.
3604 (elf_link_output_extsym): Handle symbols which were forced to
3605 become local.
3606
3607 Sun Mar 9 23:08:49 1997 Ian Lance Taylor <ian@cygnus.com>
3608
3609 From Eric Youngdale <eric@andante.jic.com>:
3610 * elf-bfd.h (elf_symbol_type): Add version field.
3611 * elfcode.h (elf_slurp_symbol_table): Set version field.
3612 * elflink.h (elf_link_add_object_symbols): When creating an
3613 indirect symbol for a default version symbol, set DEF_DYNAMIC if
3614 appropriate. Set up an indirection from the nondefault version of
3615 the symbol as well.
3616 (NAME(bfd_elf,size_dynamic_sections)): Call
3617 elf_link_assign_sym_version before checking whether there are any
3618 versions. Always record the version name as a dynamic symbol.
3619 Initialize counters.
3620 (elf_link_assign_sym_version): After finding a version, see if a
3621 symbol should be forced to local scope. Create a new version
3622 definition if appropriate.
3623 (elf_link_output_extsym): Correct indirect symbol handling.
3624 * elf.c (bfd_elf_print_symbol): Print version information.
3625 (bfd_section_from_shdr): Turn version sections into BFD sections.
3626 (elf_fake_sections): Only copy cverdefs and cverrefs into sh_info
3627 if sh_info is not already set.
3628 (_bfd_elf_copy_private_section_data): Copy sh_info for version
3629 sections.
3630 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Tell
3631 _bfd_stringtab_add to copy the name into permanent memory if
3632 appropriate.
3633
3634 Fri Mar 7 11:55:31 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
3635
3636 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Fully parenthesize.
3637
3638 Fri Mar 7 10:37:30 1997 Ian Lance Taylor <ian@cygnus.com>
3639
3640 * coffcode.h (bfd_coff_backend_data): Change
3641 _bfd_coff_compute_section_file_positions to return a boolean
3642 value. Change all callers.
3643 (coff_compute_section_file_positions): Change return type to
3644 boolean. If the size of the last section changed, then output a
3645 zero byte at the end of the file.
3646 * libcoff.h: Rebuild.
3647
3648 * xcofflink.c (_bfd_xcoff_bfd_final_link): Always allocate space
3649 for at least 6 output symbols.
3650 (xcoff_write_global_symbol): When emitting TOC entry relocs, also
3651 emit a TC csect to represent the space they take up. For an XO
3652 symbol, just emit a reference, not a csect.
3653
3654 * Makefile.in ($(SHLINK)): Just use ln -s, not ln -sf, since
3655 Solaris doesn't like the combined options, and the -f is
3656 unnecessary.
3657 (stamp-tshlink, install): Likewise.
3658
3659 * elf32-mips.c (mips_elf_relocate_section): Correct R_MIPS16_26
3660 handling when little endian.
3661
3662 Thu Mar 6 13:51:51 1997 Jeffrey A Law (law@cygnus.com)
3663
3664 * elf32-mn10300.c (mn10300_elf_final_link_relocate): New function.
3665 (mn10300_elf_relocate_section): Likewise.
3666 (elf_backend_relocate_section): Define.
3667
3668 * elf32-mn10300.c (reloc_type): Remove PCREL{8,16,32}_{1,2}BYTE
3669 relocs. Replace them with generic PCREL_{8,16,32} relocs.
3670 (elf32_mn10300_howto_table): Likewise.
3671 (elf32_mn10300_reloc_map): Likewise.
3672 (bfd_elf32_mn10300_reloc): Delete unused function.
3673
3674 Thu Mar 6 12:19:59 1997 Fred Fish <fnf@cygnus.com>
3675
3676 start-sanitize-tic80
3677 * coff-tic80.c (rtype2howto): If passed a relocation type we don't
3678 understand, just set the howto field to NULL, and the caller will
3679 print an appropriate error message.
3680 end-sanitize-tic80
3681 * coffcode.h (coff_slurp_reloc_table): Pull duplicate declarations and
3682 code fragment out of both legs of #ifdef RELOC_PROCESSING ... #endif
3683 block. Use NULL for initializations of "ptr" rather than bare 0.
3684 * coff-h8300.c: Fix typo in comment.
3685 * coff-h8500.c: Ditto.
3686 * coff-w65.c: Ditto
3687 * coff-z8k.c: Ditto.
3688
3689 Wed Mar 5 13:59:09 1997 Doug Evans <dje@seba.cygnus.com>
3690
3691 * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc): Fix overflow calc.
3692 (m32r_elf_relax_section, m32r_elf_relax_delete_bytes,
3693 m32r_elf_get_relocated_section_contents): First pass at relax support.
3694
3695 Mon Mar 3 13:27:09 1997 Ulrich Drepper <drepper@rtl.cygnus.com>
3696
3697 * elflink.h (elf_link_add_object_symbols): Use correct sh_size
3698 entry for reading verdef records.
3699 Use correct braces for computing increments of extverdaux and
3700 exteverdef record pointers.
3701
3702 start-sanitize-tic80
3703 Sun Mar 2 22:47:54 1997 Fred Fish <fnf@cygnus.com>
3704
3705 * coff-tic80.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set this to 2
3706 instead of 4.
3707
3708 end-sanitize-tic80
3709 Sun Mar 2 16:25:35 1997 Ian Lance Taylor <ian@cygnus.com>
3710
3711 * elflink.h (elf_link_find_version_dependencies): Check that
3712 DEF_REGULAR is not set as well as checking that DEF_DYNAMIC is
3713 set.
3714
3715 start-sanitize-tic80
3716 Fri Feb 28 16:52:40 1997 Fred Fish <fnf@cygnus.com>
3717
3718 * coffcode.h (coff_set_flags): Add case for TIC80_ARCH_MAGIC.
3719
3720 end-sanitize-tic80
3721 Fri Feb 28 15:06:45 1997 Ian Lance Taylor <ian@cygnus.com>
3722
3723 * targets.c (bfd_default_vector): Make non-const.
3724 (find_target): New static function, broken out of
3725 bfd_find_target.
3726 (bfd_set_default_target): New function.
3727 (bfd_find_target): Call find_target. When defaulting, use
3728 bfd_default_vector[0] if it is not NULL.
3729 * libbfd-in.h (bfd_default_vector): Adjust declaration.
3730 * bfd-in2.h, libbfd.h: Rebuild.
3731
3732 * syms.c (bfd_is_local_label): Return false if the symbol has no
3733 name.
3734 * coff-i960.c (coff_i960_is_local_label_name): New function.
3735 (coff_bfd_is_local_label_name): Define.
3736 * coff-m68k.c (m68k_coff_is_local_label_name): New function.
3737 (coff_bfd_is_local_label_name): Define.
3738 * coff-rs6000.c (xcoff_is_local_label_name): New function.
3739 (coff_bfd_is_local_label_name): Define.
3740 * elf.c (_bfd_elf_is_local_label_name): Treat symbols beginning
3741 with .. or _.L_ as local.
3742 * elf32-i386.c (elf_i386_is_local_label_name): New function.
3743 (bfd_elf32_bfd_is_local_label_name): Define.
3744 * evax-alpha.c (evax_bfd_is_local_label_name): Treat symbols
3745 beginning with $ as local.
3746
3747 Thu Feb 27 18:36:23 1997 Ian Lance Taylor <ian@cygnus.com>
3748
3749 * aoutx.h (aout_link_write_symbols): Use bfd_is_local_label_name
3750 rather than comparing against info->lprefix.
3751 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
3752 * elflink.h (elf_link_input_bfd): Likewise.
3753 * linker.c (_bfd_generic_link_output_symbols): Likewise.
3754 * xcofflink.c (xcoff_link_input_bfd): Likewise.
3755
3756 * elfxx-target.h (bfd_elfNN_bfd_is_local_label_name): Define as
3757 _bfd_elf_is_local_label_name if not already defined.
3758 * elf.c (_bfd_elf_is_local_label_name): New function.
3759 * elf-bfd.h (_bfd_elf_is_local_label_name): Declare.
3760
3761 * coff-m88k.c (coff_bfd_is_local_label_name): Define.
3762 (m88k_is_local_label_name): New static function.
3763
3764 * coffcode.h (coff_bfd_is_local_label_name): Define as
3765 _bfd_coff_is_local_label_name if not already defined.
3766 * coffgen.c (_bfd_coff_is_local_label_name): New function.
3767 * libcoff-in.h (_bfd_coff_is_local_label_name): Declare.
3768 * libcoff.h: Rebuild.
3769
3770 * targets.c (BFD_JUMP_TABLE_SYMBOLS): Change _bfd_is_local_label
3771 to _bfd_is_local_label_name.
3772 (bfd_target): Likewise.
3773 * syms.c (bfd_is_local_label): Define as function, not macro.
3774 (bfd_is_local_name): Define.
3775 * libbfd.c (bfd_generic_is_local_label_name): Rename from
3776 bfd_generic_is_local_label, and take a string rather than a
3777 symbol.
3778 * libbfd-in.h (_bfd_nosymbols_bfd_is_local_label): Don't define.
3779 (_bfd_nosymbols_bfd_is_local_label_name): Define.
3780 (bfd_generic_is_local_label): Don't declare.
3781 (bfd_generic_is_local_label_name): Declare.
3782 * bfd-in2.h, libbfd.h: Rebuild.
3783 * All backends: Change local_label to local_label_name.
3784
3785 * elf32-mips.c (struct mips_got_info): Add assigned_gotno field.
3786 (mips_elf_relocate_got_local): Change return type to boolean.
3787 Don't assume that the first zero entry is unassigned; instead, use
3788 assigned_gotno.
3789 (mips_elf_relocate_section): Check return value of
3790 mips_elf_relocate_got_local.
3791 (mips_elf_create_got_section): Initialize assigned_gotno field.
3792
3793 start-sanitize-d30v
3794 Wed Feb 26 15:19:51 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
3795
3796 * elf32-d30v.c (bfd_elf_d30v_reloc): Add code to do 32-bit
3797 relocations.
3798
3799 end-sanitize-d30v
3800 Wed Feb 26 13:33:03 1997 Ian Lance Taylor <ian@cygnus.com>
3801
3802 * elflink.h (elf_link_input_bfd): Don't skip symbols from sections
3803 that have no contents merely because linker_mark is not set.
3804
3805 Tue Feb 25 18:51:35 1997 Stan Shebs <shebs@andros.cygnus.com>
3806
3807 * config.bfd (mips*-*-lnews*): New target.
3808 * coff-mips.c (mips_relocate_section): Make assert compare
3809 content byteorder instead of header byteorder.
3810 (ecoff_biglittle_vec): New BFD, big-endian headers, little-endian
3811 data.
3812 * targets.c (bfd_target_vector): Add ecoff_biglittle_vec.
3813 * configure.in (ecoff_biglittle_vec): Add case.
3814 * configure: Update.
3815
3816 Tue Feb 25 00:32:49 1997 Ian Lance Taylor <ian@cygnus.com>
3817
3818 * elf.c (elf_fake_sections): Use SHT_NOTE for any section whose
3819 name begins with ".note".
3820 (map_sections_to_segments): Add a PT_NOTE segment for any loadable
3821 section whose name begins with ".note".
3822 (get_program_header_size): Corresponding change.
3823
3824 * elf32-mips.c (mips_elf_relocate_section): Check for misaligned
3825 jal and for jal overflow.
3826
3827 Mon Feb 24 17:53:14 1997 Ian Lance Taylor <ian@cygnus.com>
3828
3829 From Eric Youngdale <eric@andante.jic.com>:
3830 * elflink.h (elf_link_add_archive_symbols): If a default symbol is
3831 not found, try looking it up again without the version name.
3832 (elf_link_add_object_symbols): Always link against the dynamic
3833 symbol table of a dynamic object. When linking against a dynamic
3834 object, include version strings in symbol names, and set up
3835 version information. Add indirect symbols for default versions.
3836 (elf_link_create_dynamic_sections): Add special version sections.
3837 (struct elf_assign_sym_version_info): Define.
3838 (struct elf_find_verdep_info): Define.
3839 (NAME(bfd_elf,size_dynamic_sections)): Add verdefs parameter. Set
3840 up version sections.
3841 (elf_adjust_dynamic_symbol): Ignore indirect symbols.
3842 (elf_link_find_version_dependencies): New static function.
3843 (elf_link_assign_sym_version): New static function.
3844 (elf_link_renumber_dynsyms): New static function.
3845 (struct elf_final_link_info): Add symver_sec field.
3846 (elf_bfd_final_link): Initialize finfo.symver_sec. Don't count
3847 local symbols of a dynamic object. Handle DT_VER* constants.
3848 (elf_link_output_extsym): Simplify BFD_ASSERT checking for a
3849 dynamic object. Skip indirect symbols from ELF objects. Remove
3850 the version name before choosing a hash bucket. Write out the
3851 version information if appropriate.
3852 (elf_link_input_bfd): Check for DYNAMIC, not ET_DYN.
3853 * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
3854 (bfd_elf64_size_dynamic_sections): Likewise.
3855 * bfd-in2.h: Rebuild.
3856 * elf-bfd.h (struct elf_link_hash_entry): Add verinfo field.
3857 Change elf_link_hash_flags to unsigned short.
3858 (ELF_LINK_HIDDEN): Define.
3859 (struct elf_obj_tdata): Add fields dynversym_hdr, dynverref_hdr,
3860 dynverdef_hdr, dynversym_section, dynverdef_section,
3861 dynverref_section, cverdefs, cverrefs, verdef, verref.
3862 (elf_dynversym, elf_dynverdef, elf_dynverref): Define.
3863 (_bfd_elf_swap_verdef_in, _bfd_elf_swap_verdef_out): Declare.
3864 (_bfd_elf_swap_verdaux_in, _bfd_elf_swap_verdaux_out): Declare.
3865 (_bfd_elf_swap_verneed_in, _bfd_elf_swap_verneed_out): Declare.
3866 (_bfd_elf_swap_vernaux_in, _bfd_elf_swap_vernaux_out): Declare.
3867 (_bfd_elf_swap_versym_in, _bfd_elf_swap_versym_out): Declare.
3868 (_bfd_elf_slurp_version_tables): Declare.
3869 * elf.c (_bfd_elf_swap_verdef_in): New function.
3870 (_bfd_elf_swap_verdef_out): Likewise.
3871 (_bfd_elf_swap_verdaux_in, _bfd_elf_swap_verdaux_out): Likewise.
3872 (_bfd_elf_swap_verneed_in, _bfd_elf_swap_verneed_out): Likewise.
3873 (_bfd_elf_swap_vernaux_in, _bfd_elf_swap_vernaux_out): Likewise.
3874 (_bfd_elf_swap_versym_in, _bfd_elf_swap_versym_out): Likewise.
3875 (_bfd_elf_print_private_bfd_data): Add DT_VER* constants. Print
3876 version information if there is any.
3877 (_bfd_elf_link_hash_newfunc): Initialize verinfo field.
3878 (bfd_section_from_shdr): Handle SHT_GNU_ver* section types.
3879 (elf_fake_sections): Handle .gnu.version* section names.
3880 (assign_section_numbers): Handle SHT_GNU_ver* section types.
3881 (_bfd_elf_slurp_version_tables): New function.
3882 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't include
3883 version name in string entered in dynamic hash table.
3884 * elfcode.h: Include fnmatch.h.
3885 * elf32-i386.c (elf_i386_relocate_section): Handle a dynamic
3886 symbol which was forced to become local.
3887 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3888 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3889 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3890 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
3891
3892 Fri Feb 21 16:15:18 1997 Jeffrey A Law (law@cygnus.com)
3893
3894 * elf32-mn10200.c (mn10200_elf_final_link_relocate): Simplify
3895 somewhat.
3896 (mn10200_elf_relax_section): Correctly compute a symbol's value
3897 when the symbol is local, but not in the same section as we are
3898 relaxing. Implement abs24 -> abs16, imm24 -> imm16 and d24 -> d16
3899 relaxing.
3900
3901 Fri Feb 21 13:55:14 1997 Doug Evans <dje@seba.cygnus.com>
3902
3903 * elf32-m32r.c: Rewrite to use ELF backend linker.
3904 Store lower 16 bits of addend in R_M32R_HI16_[SU]LO insns.
3905 Add small data area support (R_M32R_SDA16).
3906 * reloc.c: Document BFD_RELOC_M32R_SDA16.
3907 * bfd-in2.h,libbfd.h: Regenerated.
3908
3909 Thu Feb 20 23:50:31 1997 Jeffrey A Law (law@cygnus.com)
3910
3911 * elf32-mn10200.c (mn10200_elf_relax_section): New function.
3912 (mn10200_elf_relax_delete_bytes): Likewise.
3913 (mn10200_elf_symbol_address_p): Likewise.
3914 (mn10200_elf_get_relocated_section_contents): Likewise.
3915 (bfd_elf32_bfd_relax_section): Define.
3916 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
3917
3918 * elf32-mn10200.c (mn10200_elf_final_link_relocate): New function.
3919 (mn10200_elf_relocate_section): Likewise.
3920 (elf_backend_relocate_section): Define.
3921
3922 start-sanitize-d30v
3923 Tue Feb 18 17:22:59 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
3924
3925 * Makefile.in, archures.c, config.bfd, configure.in, elf.c,
3926 reloc.c, targets.c: New target, elf-*-D30V.
3927
3928 * bfd-in2.h, configure, libbfd.h: Rebuilt.
3929
3930 * cpu-d30v.c, elf32-d30v.c: New files.
3931
3932 end-sanitize-d30v
3933 Tue Feb 18 15:31:48 1997 Fred Fish <fnf@cygnus.com>
3934
3935 * reloc.c (struct reloc_howto_struct): Fix typo in comment.
3936 * bfd-in2.h: Regenerated.
3937 start-sanitize-tic80
3938 * coff-tic80.c (RTYPE2HOWTO): Replace abort with real function.
3939 (rtype2howto): Add function.
3940 (tic80_howto_table): Add.
3941 end-sanitize-tic80
3942
3943 Tue Feb 18 11:41:00 1996 Dawn Perchik <dawn@cygnus.com>
3944
3945 * sysdep.h: Don't define errno in MSVC if error.h is included.
3946
3947 Tue Feb 18 10:04:13 1997 Jeffrey A Law (law@cygnus.com)
3948
3949 * elf32-v850.c (v850_elf_relocate_section): Make sure r_symndx
3950 is initialized before it is used.
3951
3952 Mon Feb 17 11:28:40 1997 Ian Lance Taylor <ian@cygnus.com>
3953
3954 * hp300hpux.c (convert_sym_type): Don't convert a secondary common
3955 symbol into a weak undefined symbol; leave it as a common symbol.
3956
3957 Fri Feb 14 19:08:03 1997 Ian Lance Taylor <ian@cygnus.com>
3958
3959 * elflink.h (elf_link_add_object_symbols): Don't issue a warning
3960 about a symbol defined in a dynamic object if it has already been
3961 defined in a regular object.
3962
3963 Thu Feb 13 20:53:22 1997 Klaus Kaempf (kkaempf@progis.de)
3964
3965 * makefile.vms: Add gcc flags to allow compiling with current gcc
3966 snapshot
3967 (targmatch.h): New dependency.
3968
3969 * reloc.c (BFD_RELOC_ALPHA_CODEADDR): New relocation for
3970 openVMS/Alpha.
3971 * evax.h (ALPHA_R_CODEADDR): New relocation.
3972 * evax-alpha.c (ALPHA_R_CODEADDR): 64 bit procedure relocation for
3973 openVMS/Alpha.
3974 * evax-etir.c (ALPHA_R_CODEADDR): Output object code for this
3975 relocation.
3976 * bfd-in2.h, libbfd.h: Rebuild.
3977
3978 Restrict symbol length to 64 bytes, case preserving:
3979 * evax-emh.c (_bfd_evax_write_emh): Remove case hacking.
3980 * evax-misc.c (_bfd_evax_case_hack_symbol): Remove.
3981 (_bfd_evax_length_hash_symbol): Added.
3982 * evax-etir.c (_bfd_evax_write_etir): Call
3983 _bfd_evax_length_hash_symbol before output of symbol.
3984 * evax-egsd.c (_bfd_evax_write_egsd): Likewise.
3985 * evax.h (flag_hash_long_names, flag_show_after_trunc): Remove.
3986
3987 * evax-emh.c: Output filename to object file without path.
3988
3989 * evax-egsd.c: New sections for local and global commons.
3990
3991 * evax-alpha.c, evax-emh.c, evax-egsd.c, evax-etir.c,
3992 evax-misc.c, evax.h: Remove 8 bit characters from copyright
3993 notices. Replace AXP with Alpha.
3994
3995 Wed Feb 12 18:10:30 1997 Ian Lance Taylor <ian@cygnus.com>
3996
3997 * sunos.c (sunos_create_dynamic_sections): We need the dynamic
3998 sections if we are creating a shared library.
3999
4000 Tue Feb 11 15:45:43 1997 Doug Evans <dje@canuck.cygnus.com>
4001
4002 * configure.host (i386-windows): Don't set host64=true.
4003
4004 Tue Feb 11 15:27:32 1997 Ian Lance Taylor <ian@cygnus.com>
4005
4006 * elf32-mips.c (reloc_type): Add R_MIPS16_GPREL.
4007 (elf_mips16_gprel_howto): New static variable.
4008 (mips16_gprel_reloc): New static function.
4009 (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_GPREL.
4010 (mips_info_to_howto_rel): Handle R_MIPS16_GPREL.
4011 (mips_elf_relocate_section): Handle R_MIPS16_GPREL.
4012 * reloc.c (BFD_RELOC_MIPS16_GPREL): Define.
4013 * bfd-in2.h, libbfd.h: Rebuild.
4014
4015 Mon Feb 10 23:25:00 1997 Doug Evans <dje@seba.cygnus.com>
4016
4017 * elf32-m32r.c (elf_m32r_howto_table): Change partial_inplace to true
4018 for R_M32R_{16,32,24,HI16_ULO,HI16_SLO,LO16}.
4019
4020 start-sanitize-r5900
4021 Fri Feb 7 16:20:17 1997 Gavin Koch <gavin@cygnus.com>
4022
4023 * config.bfd: add r5900
4024
4025 end-sanitize-r5900
4026 Fri Feb 7 12:39:11 1997 Ian Lance Taylor <ian@cygnus.com>
4027
4028 * elflink.h (elf_link_input_bfd): If we've discarded a section,
4029 the output section will be the absolute section; don't print an
4030 assertion message for that case when doing a relocateable link.
4031
4032 Thu Feb 6 16:55:43 1997 Ian Lance Taylor <ian@cygnus.com>
4033
4034 * elf32-mips.c (FN_STUB, CALL_STUB, CALL_FP_STUB): Define.
4035 (struct mips_elf_link_hash_entry): Add new fields fn_stub,
4036 need_fn_sub, call_stub, and call_fp_stub.
4037 (struct mips_elf_link_hash_table): Add field mips16_stubs_seen.
4038 (mips_elf_link_hash_newfunc): Initialize new fields.
4039 (mips_elf_link_hash_table_create): Likewise.
4040 (mips_elf_relocate_section): Redirect relocations to use mips16
4041 stubs when appropriate.
4042 (mips_elf_check_relocs): Attach stub sections to the appropriate
4043 symbol. Set need_fn_stub when appropriate.
4044 (mips_elf_always_size_sections): New static function.
4045 (mips_elf_check_mips16_stubs): New static function.
4046 (elf_backend_always_size_sections): Define.
4047 * elf-bfd.h (struct elf_obj_tdata): Add local_stubs field.
4048
4049 * elflink.h (elf_link_input_bfd): Discard local symbols that are
4050 attached to sections which are not being included in the link.
4051
4052 Wed Feb 5 13:20:17 1997 Ian Lance Taylor <ian@cygnus.com>
4053
4054 * cofflink.c (_bfd_coff_generic_relocate_section): Ignore the
4055 symbol value when computing the addend for a pc_relative
4056 pcrel_offset reloc.
4057
4058 Mon Feb 3 11:54:06 1997 Ian Lance Taylor <ian@cygnus.com>
4059
4060 * cofflink.c (_bfd_coff_generic_relocate_section): If doing a
4061 relocateable link, just skip pc_relative pcrel_offset relocs.
4062 * coff-arm.c (coff_arm_rtype_to_howto): Return a different howto
4063 structure for an ARM26 reloc which can be resolved.
4064 (coff_arm_adjust_symndx): Only convert ARM26 to ARM26D if the
4065 reloc can be resolved.
4066
4067 * coff-h8300.c (h8300_reloc16_extra_cases): Correct off by one
4068 error in overflow check for R_RELBYTE.
4069
4070 Fri Jan 31 14:07:27 1997 Ian Lance Taylor <ian@cygnus.com>
4071
4072 * ieee.c (ieee_slurp_section_data): Pick up the start address.
4073 From Mark Rasin <mark.rasin@telrad.co.il>.
4074
4075 * aoutx.h (aout_link_write_symbols): Don't apply discard_l to
4076 debugging symbols.
4077
4078 Wed Jan 29 00:00:49 1997 Jeffrey A Law (law@cygnus.com)
4079
4080 * elf32-mn10200.c (reloc_type): Add 16bit pc-relative reloc.
4081 (elf_mn10200_howto_table): Likewise.
4082 (mn10200_reloc_map): Likewise.
4083
4084 Mon Jan 27 12:07:35 1997 Doug Evans <dje@seba.cygnus.com>
4085
4086 * reloc.c: Add relocs BFD_RELOC_M32R_{HI16_[US]LO,LO16}.
4087 * bfd-in2.h, libbfd.h: Regenerated.
4088 * elf32-m32r.c: Add support for them.
4089
4090 Mon Jan 27 12:25:02 1997 Ian Lance Taylor <ian@cygnus.com>
4091
4092 * aout-arm.c (MY_swap_std_reloc_in): Remove unused r_length.
4093 * elf32-ppc.c (ppc_elf_check_relocs): Remove unused plt.
4094 * elf32-v850.c (v850_elf_final_link_relocate): Remove used
4095 r_format and r_pcrel. Always return a value.
4096 * riscix.c (MY_final_link_callback): Define to dummy value.
4097
4098 * elf32-i386.c (elf_i386_size_dynamic_sections): When checking for
4099 relocations against the text segment, look up the output name of
4100 the reloc section.
4101 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
4102 * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise.
4103 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
4104 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
4105 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
4106
4107 start-sanitize-tic80
4108 Wed Jan 22 15:40:28 1997 Fred Fish <fnf@cygnus.com>
4109
4110 * coff-tic80.c (tic80coff_vec): Use correct data put/get
4111 routines for little endian data.
4112 * coffcode.h (coff_write_object_contents): Set magic to
4113 TIC80_ARCH_MAGIC for TIc80.
4114
4115 Tue Jan 21 12:32:43 1997 Fred Fish <fnf@cygnus.com>
4116
4117 * coff-tic80.c (tic80coff_vec): Change to little endian data
4118 as the default.
4119
4120 end-sanitize-tic80
4121 Thu Jan 16 17:45:57 1997 Ian Lance Taylor <ian@cygnus.com>
4122
4123 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Change type of
4124 auxiliary_filters parameter to be const char * const *. Accept a
4125 NULL terminated array.
4126 * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
4127 (bfd_elf32_size_dynamic_sections): Update declaration.
4128 * bfd-in2.h: Rebuild.
4129
4130 Wed Jan 15 11:21:32 1997 Ian Lance Taylor <ian@cygnus.com>
4131
4132 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Treat a
4133 NOTYPE symbol in a text section as a FUNC symbol.
4134
4135 * coffcode.h (coff_compute_section_file_positions): Force
4136 relocbase to be aligned to COFF_DEFAULT_SECTION_ALIGNMENT_POWER.
4137
4138 Tue Jan 14 08:46:33 1997 Doug Evans <dje@canuck.cygnus.com>
4139
4140 * libaout.h (machine_type): Reserve several values for sparclet.
4141
4142 start-sanitize-tic80
4143 Mon Jan 13 22:39:08 1997 Michael Meissner <meissner@tiktok.cygnus.com>
4144
4145 * config.bfd (tic80-*-*): Don't require 'coff'.
4146
4147 end-sanitize-tic80
4148 Mon Jan 13 19:36:25 1997 Michael Meissner <meissner@tiktok.cygnus.com>
4149
4150 * elf32-v850.c (v850_elf_howto_table): Set the special_function
4151 table to v850_elf_reloc for all non-standard relocations.
4152 (v850_elf_check_relocs): Add check for h being non-null.
4153 (v850_elf_reloc): Add R_V850_ZDA_OFFSET support. Use switch
4154 statement instead of multiple ifs.
4155 (v850_elf_relocate_section): Fix up error message, don't just call
4156 abort.
4157
4158 Mon Jan 6 13:28:35 1997 Jeffrey A Law (law@cygnus.com)
4159
4160 * elf32-mn10200.c (elf_mn10200_howto): Don't ever set partial-inplace.
4161 Use bfd_elf_generic_reloc as special function for all relocs.
4162 (bfd_elf32_mn10200_reloc): Remove unnecessary function.
4163
4164 * elf32-mn10200.c (elf_mn10200_howto): Set pcrel_offset for
4165 24bit pc-relative reloc.
4166
4167 start-sanitize-tic80
4168 Fri Jan 3 16:33:00 1997 Fred Fish <fnf@cygnus.com>
4169
4170 * Makefile.in (coff-tic80.o): Add coffcode.h to dependency list.
4171 * coff-tic80.c (tic80coff_vec): Data byte order is big endian and
4172 header byte order is little endian. Use correct bfd_get and
4173 bfd_put routines for little endian headers.
4174 * coffcode.h (coff_set_arch_mach_hook): Set arch to
4175 bfd_arch_tic80 for TIC80_ARCH_MAGIC number.
4176
4177 end-sanitize-tic80
4178 Fri Jan 3 16:54:08 1997 Jeffrey A Law (law@cygnus.com)
4179
4180 * reloc.c: Add BFD_RELOC_24.
4181 * elf32-mn10200.c (enum reloc_type): Add 24bit and pcrel relocs.
4182 (elf_mn10200_howto, mn10200_reloc_map): Corresponding changes.
4183 * bfd-in2.h, libbfd.h: Rebuilt.
4184
4185 Fri Jan 3 16:58:31 1997 Richard Henderson <rth@tamu.edu>
4186
4187 elf64-alpha multiple .got rewrite:
4188
4189 * elf-bfd.h (struct elf_backend_data): Add always_size_sections entry.
4190 (bfd_elf*_mkobject): Don't define here ...
4191 * elfxx-target.h: ... but rather here. Default always_size_sections
4192 hook to NULL.
4193 * elf.c (elf_mkobject): Rename to bfd_elf_mkobject, since that was
4194 what the #defines in elf-bfd.h transmuted it to anyway.
4195
4196 * section.c: Add SEC_LINKER_CREATED flag.
4197 * bfd-in2.h: Rebuild.
4198 * elf32-i386.c (elf_i386_check_relocs): Add SEC_LINKER_CREATED to
4199 relocation section flags.
4200 (elf_i386_size_dynamic_sections): Use SEC_LINKER_CREATED instead of
4201 SEC_IN_MEMORY to recognize generated bits.
4202 * elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_size_dynamic_sections):
4203 Likewise.
4204 * elf32-mips.c (mips_elf_final_link, mips_elf_create_dynamic_sections,
4205 mips_elf_create_compact_rel_section, mips_elf_create_got_section,
4206 mips_elf_check_relocs, mips_elf_size_dynamic_sections): Likewise.
4207 * elf32-ppc.c (ppc_elf_create_linker_section,
4208 ppc_elf_size_dynamic_sections): Likewise.
4209 * elf32-sparc.c (elf32_sparc_check_relocs,
4210 elf32_sparc_size_dynamic_sections): Likewise.
4211 * elflink.c (_bfd_elf_create_got_section): Add SEC_LINKER_CREATED to
4212 section flags.
4213 (_bfd_elf_create_dynamic_sections): Likewise.
4214 (_bfd_elf_make_linker_section_rela): Likewise.
4215 * elflink.h (elf_link_create_dynamic_sections): Likewise.
4216 (bfd_elf,size_dynamic_sections): Call the always_size_sections hook.
4217 (elf_bfd_final_link): Use SEC_LINKER_CREATED instead of SEC_IN_MEMORY
4218 to identify generated bits.
4219 (elf_link_input_bfd): Likewise.
4220
4221 * elf64-alpha.c: Rewrite everything touching relocations.
4222
4223 Fri Jan 3 11:42:53 1997 Michael Meissner <meissner@tiktok.cygnus.com>
4224
4225 * elf32-v850.c (all functions and static variables): Go through
4226 and regularize names to be of the form v850_elf_<xxx>.
4227 (toplevel): Include <elf/v850.h>.
4228 (enum reloc_type): Move to include/elf/v850.h.
4229 (v850_elf_check_relocs): For common variables, if the variable is
4230 referenced by a R_V850_{SDA,ZDA,TDA} relocation, put the variable
4231 into the appropriate section.
4232 (elf_backend_check_relocs): Define.
4233
4234 Tue Dec 31 15:15:28 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4235
4236 * elf32-v850.c (elf_v850_howto_table): Fix some spacing.
4237
4238 Tue Dec 31 14:44:50 1996 Ian Lance Taylor <ian@cygnus.com>
4239
4240 * config.bfd (mips*el-*-linux*): New target.
4241 (mips*-*-linux*): New target.
4242
4243 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Clean up.
4244 Return a useful value.
4245
4246 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
4247
4248 * configure.in: Check ac_cv_func_mmap_fixed_mapped, not
4249 ac_cv_func_mmap.
4250 * configure: Rebuild.
4251 * configure.host: Use ac_cv_func_mmap_fixed_mapped instead of
4252 ac_cv_func_mmap in bfd/configure.host.
4253
4254 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Add
4255 filter_shlib and auxiliary_filter_shlib parameters.
4256 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_AUXILIARY and
4257 DT_FILTER.
4258 * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
4259 (bfd_elf64_size_dynamic_sections): Likewise.
4260 * bfd-in2.h: Rebuild.
4261
4262 Mon Dec 30 18:48:52 1996 Ian Lance Taylor <ian@cygnus.com>
4263
4264 * xcofflink.c (xcoff_build_ldsyms): When exporting all defined
4265 symbols, don't export a symbol which is defined by an object in an
4266 archive which contains shared objects.
4267
4268 start-sanitize-tic80
4269 Mon Dec 30 16:12:58 1996 Fred Fish <fnf@cygnus.com>
4270
4271 * archures.c (enum bfd_architecture): Add bfd_arch_tic80
4272 for TI TMS320c80 (MVP).
4273 (bfd_archures_list): Add bfd_tic80_arch.
4274 * bfd-in2.h: Regenerate by running "make headers".
4275
4276 Sun Dec 29 16:18:52 1996 Fred Fish <fnf@cygnus.com>
4277
4278 * cpu-tic80.c (bfd_tic80_arch): Add struct.
4279 * configure.in (case $vec): Correct typo, "tb" not "tp".
4280 Also add cofflink.o for tic80coff_vec.
4281 * configure: Regenerate with autoconf.
4282
4283 end-sanitize-tic80
4284 Mon Dec 30 11:54:56 1996 Ian Lance Taylor <ian@cygnus.com>
4285
4286 * libbfd.c: Patch up the mmap code so that it is only built if BFD
4287 is configured with --with-mmap.
4288
4289 start-sanitize-tic80
4290 Sun Dec 29 10:48:57 1996 Fred Fish <fnf@cygnus.com>
4291
4292 * Makefile.in (BFD32_BACKENDS): Add coff-tic80.o
4293 (ALL_MACHINES): Add cpu-tic80.o
4294 (cpu-tic80.o, coff-tic80.o): Add dependencies.
4295 * coff-tic80.c: Add skeleton, cloned from another coff config.
4296 * coffcode.h (coff_write_object_contents): Set magic to TIC80MAGIC
4297 for TIc80.
4298
4299 end-sanitize-tic80
4300 Fri Dec 27 20:56:41 1996 Fred Fish <fnf@cygnus.com>
4301
4302 * TODO: Correct a misspelling.
4303 start-sanitize-tic80
4304 * coff-tic80.c: New file for TI TMS320C80 (MVP).
4305 * cpu-tic80.c: New file for TI TMS320C80 (MVP).
4306 * configure.in (case $vec): Add tic80coff_vec entry.
4307 * configure: Regenerate with autoconf.
4308 * archures.c (bfd_tic80_arch): Declare.
4309 * bfd-in2.h (enum bfd_architecture): Add bfd_arch_tic80.
4310 * config.bfd (case ${targ}): Add tic80*-*-coff* target.
4311 * targets.c (tic80coff_vec): Add decl as extern bfd_target.
4312 (bfd_target_vector): Add tic80coff_vec entry.
4313 end-sanitize-tic80
4314
4315 Fri Dec 27 11:48:12 1996 H.J. Lu <hjl@lucon.org>
4316
4317 * elflink.h (elf_buckets): Add some more values for larger
4318 binaries.
4319
4320 Thu Dec 26 18:36:54 1996 Ian Lance Taylor <ian@cygnus.com>
4321
4322 * Makefile.in (install): Move subdir_do out of conditional. From
4323 Fred Fish <fnf@cygnus.com>.
4324
4325 Wed Dec 18 10:04:30 1996 Jeffrey A Law (law@cygnus.com)
4326
4327 * elf32-mn10200.c (enum reloc_type): Enable basic 8, 16, and
4328 32 bit relocs.
4329 (elf_mn10200_howto_table): Likewise.
4330 (mn10200_reloc_map): Likewise.
4331
4332 Tue Dec 17 11:09:36 1996 Ian Lance Taylor <ian@cygnus.com>
4333
4334 * elf32-mips.c (mips_elf_add_symbol_hook): Add 1 to the value of a
4335 mips16 symbol during the link.
4336 (mips_elf_finish_dynamic_symbol): Subtract 1 from the value of a
4337 mips16 symbol.
4338 (mips_elf_link_output_symbol_hook): New static function.
4339 (elf_backend_link_output_symbol_hook): Define.
4340
4341 * elf.c (bfd_elf_print_symbol): Print the st_other field if it is
4342 not zero.
4343
4344 Mon Dec 16 14:38:39 1996 Ian Lance Taylor <ian@cygnus.com>
4345
4346 * elf.c (bfd_section_from_shdr): Don't check for reloc sections
4347 against SEC_DEBUGGING sections here (revert patch of December 5).
4348 * elfcode.h (elf_object_p): Check for them here, instead.
4349
4350 Sun Dec 15 14:46:06 1996 Ian Lance Taylor <ian@cygnus.com>
4351
4352 * elfcode.h (elf_slurp_reloc_table): Add dynamic parameter.
4353 * elf.c (_bfd_elf_canonicalize_reloc): Pass new argument to
4354 slurp_reloc_table.
4355 (_bfd_elf_get_dynamic_reloc_upper_bound): New function.
4356 (_bfd_elf_canonicalize_dynamic_reloc): New function.
4357 * elf-bfd.h (struct elf_size_info): Update declaration of
4358 slurp_reloc_table.
4359 (_bfd_elf_get_dynamic_reloc_upper_bound): Declare.
4360 (_bfd_elf_canonicalize_dynamic_reloc): Declare.
4361 * elfxx-target.h: Use new dynamic reloc routines by default.
4362 * elf64-mips.c (mips_elf64_slurp_reloc_table): Add dynamic
4363 parameter.
4364
4365 Fri Dec 13 13:18:49 1996 Dan Wilder <dan@gasboy.com>
4366
4367 * coffcode.h (coff_set_flags): Use MC68KBCSMAGIC for bfd_arch_m68k
4368 if NAMES_HAVE_UNDERSCORE is defined.
4369
4370 Fri Dec 13 11:13:23 1996 Doug Evans <dje@canuck.cygnus.com>
4371
4372 * libaout.h (enum machine_type): Change M_SPARCLET from 142 to 131.
4373
4374 Thu Dec 12 15:07:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4375
4376 * elf32-ppc.c (ppc_elf_check_relocs): Move R_PPC_PLTREL24 into the
4377 supported relocs.
4378
4379 Thu Dec 12 14:55:41 1996 Ian Lance Taylor <ian@cygnus.com>
4380
4381 * elflink.h (elf_link_add_object_symbols): Only add a weak
4382 symbol if the real definition is in the dynamic symbol table.
4383 After finding the real definition, then, if it is dynamic, add the
4384 weak symbol to the dynamic symbol table.
4385
4386 * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Make static.
4387
4388 * ppcboot.c (ppcboot_set_arch_mach): Don't define; it's a
4389 function.
4390 (ppcboot_bfd_print_private_bfd_data): Don't take the address of an
4391 array.
4392
4393 Tue Dec 10 23:23:52 1996 Jeffrey A Law (law@cygnus.com)
4394
4395 * elf32-mn10300.c (reloc_type): Remove big endian mn10300 reloc
4396 variants.
4397 (elf32_mn10300_howto_table, mn10300_reloc_map): Likewise.
4398 (bfd_elf32_mn10300_reloc): Write data in little endian format.
4399 * reloc.c: Remove mn10300 big endian relocs.
4400 * bfd-in2.h, libbfd.h: Rebuilt.
4401
4402 * elf32-mn10200.c: Update from elf32-mn10300.c.
4403
4404 Fri Dec 6 15:18:05 1996 Jeffrey A Law (law@cygnus.com)
4405
4406 * elf32-mn10300.c (elf_symbol_leading_char): Define.
4407
4408 * elf32-mn10300.c: Add some comments.
4409
4410 Fri Dec 6 17:16:43 1996 Ian Lance Taylor <ian@cygnus.com>
4411
4412 * ihex.c (ihex_scan): Always initialize buf before jumping to
4413 error_return.
4414 (ihex_read_section): Likewise.
4415
4416 Thu Dec 5 22:29:18 1996 Jeffrey A Law (law@cygnus.com)
4417
4418 * elf32-mn10300.c (elf_mn10300_howto_table): Don't set partial-
4419 inplace for most relocs.
4420
4421 Thu Dec 5 13:24:46 1996 Ian Lance Taylor <ian@cygnus.com>
4422
4423 * elflink.h (elf_link_add_object_symbols): Calling check_relocs
4424 even if SEC_ALLOC is not set.
4425 * elf32-i386.c (elf_i386_check_relocs): Don't check SEC_ALLOC
4426 when deciding whether to copy a reloc into a shared object.
4427 (elf_i386_relocate_section): Likewise.
4428 * elf32-sparc.c (elf32_sparc_check_relocs): Likewise.
4429 (elf32_sparc_relocate_section): Likewise.
4430 * elf32-i386.c (elf_i386_check_relocs): Don't set SEC_ALLOC in a
4431 reloc section if it is not set in the source section.
4432 * elf32-sparc.c (elf32_sparc_check_relocs): Likewise.
4433 * elf.c (bfd_section_from_shdr): Mark a reloc section associated
4434 with a SEC_DEBUGGING section as SEC_DEBUGGING.
4435
4436 Wed Dec 4 14:18:13 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4437
4438 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): #if 0 code that
4439 expects a .got.plt until we actually create it.
4440
4441 Mon Dec 2 12:13:51 1996 Ian Lance Taylor <ian@cygnus.com>
4442
4443 * cofflink.c (_bfd_coff_generic_relocate_section): Print an error
4444 message for bfd_reloc_outofrange, rather than aborting. From
4445 Philippe De Muyter <phdm@info.ucl.ac.be>.
4446
4447 * cofflink.c (_bfd_coff_final_link): If there aren't any relocs in
4448 a relocateable link, don't try to process them. From Heinz Wrobel
4449 <wrobel@lpr.e-technik.tu-muenchen.de>.
4450
4451 Mon Dec 2 00:39:24 1996 Jeffrey A Law (law@cygnus.com)
4452
4453 * elf32-mn10300.c (mn10300_info_howto): Renamed from
4454 mn10300_info_howto_rel. Tweak reloc argument to be an
4455 Elf32_Internal_Rela.
4456 (USE_RELA): Define instead of USE_REL.
4457 (elf_info_to_howto, elf_info_howto_rel): Corresponding changes.
4458
4459 Sun Dec 1 00:18:59 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4460
4461 * configure.in, configure: Handle mips*-sgi-irix6*.
4462 * irix-core.c (irix_core_core_file_p): Accept CORE_MAGICN32
4463 core files.
4464
4465 Wed Nov 27 12:10:25 1996 Ian Lance Taylor <ian@cygnus.com>
4466
4467 * elf32-i386.c (elf_i386_relocate_section): Warn about a
4468 relocation against a symbol defined in a section with no output
4469 section.
4470
4471 Tue Nov 26 11:07:31 1996 Ian Lance Taylor <ian@cygnus.com>
4472
4473 * aclocal.m4 (BFD_CC_FOR_BUILD): Don't require AC_C_CROSS.
4474 * configure, config.in: Rebuild with autoconf 2.12.
4475
4476 * elf-bfd.h (struct elf_link_hash_entry): Add other field.
4477 * elf.c (_bfd_elf_link_hash_newfunc): Initialize other field.
4478 (swap_out_syms): Set st_other from existing st_other field.
4479 * elflink.h (elf_link_add_object_symbols): Store st_other in hash
4480 table other field.
4481 (elf_link_output_extsym): Set the other field from the global hash
4482 table entry.
4483 * elf32-mips.c (enum reloc_type): Add R_MIPS16_26.
4484 (elf_mips16_jump_howto): New static variable.
4485 (mips16_jump_reloc): New static function.
4486 (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_JMP.
4487 (mips_info_to_howto_rel): Handle R_MIPS16_26.
4488 (mips_elf_relocate_section): Handle R_MIPS16_26. Handle R_MIPS_26
4489 to a mips16 symbol.
4490 * reloc.c (BFD_RELOC_MIPS16_JMP): Add to list of relocs.
4491 * bfd-in2.h, libbfd.h: Rebuild.
4492 * cpu-mips.c (arch_info_struct): Add mips:16 entry.
4493
4494 Mon Nov 25 11:23:32 1996 Ian Lance Taylor <ian@cygnus.com>
4495
4496 * configure.host: Use long long for mips-sgi-irix6*.
4497
4498 * coffswap.h (coff_swap_scnhdr_out): Make line number overflow
4499 only a warning. From Philippe De Muyter <phdemuyt@ulb.ac.be>.
4500
4501 Mon Nov 25 08:52:29 1996 Jeffrey A Law (law@cygnus.com)
4502
4503 * elf32-mn10300.c (bfd_elf32_mn10300_reloc): New function.
4504 (enum reloc_type): Add more reloc types.
4505 (elf32_mn10300_howto_table): Update for new reloc types.
4506 (elf32_mn10300_reloc_map): Update for new reloc types.
4507 * reloc.c: Add some new relocs for the mn10300 series.
4508 * bfd-in2.h, libbfd.h: Rebuilt.
4509
4510 Sat Nov 23 13:26:18 1996 Jeffrey A Law (law@cygnus.com)
4511
4512 * som.c (setup_sections): Don't lose for a space which has
4513 no data, but some symbols.
4514
4515 Fri Nov 22 11:32:13 1996 Ian Lance Taylor <ian@cygnus.com>
4516
4517 * sunos.c (struct sunos_link_hash_table): Add got_needed field.
4518 (sunos_link_hash_table_create): Initialize got_needed.
4519 (sunos_create_dynamic_sections): Only set .got section size if it
4520 is not already set. Set got_needed.
4521 (bfd_sunos_size_dynamic_sections): Check got_needed. Only set
4522 sdynptr, and only handle dynamic sections, if dynamic sections are
4523 needed.
4524 (sunos_scan_std_relocs): Pass false to create_dynamic_sections.
4525 Initialize .got section.
4526 (sunos_scan_ext_relocs): Likewise.
4527 (sunos_write_dynamic_symbol): Set up PLT entry even if this is not
4528 a dynamic symbol.
4529 (sunos_finish_dynamic_link): Check got_needed. Only set up
4530 dynamic linking information if needed.
4531
4532 Thu Nov 21 10:31:31 1996 Rob Savoye (rob@cygnus.com)
4533
4534 * config.bfd: Added VersaDOS format to the Ericsson configuration.
4535
4536 Wed Nov 20 16:31:31 1996 Jeffrey A Law (law@cygnus.com)
4537
4538 * elf32-mn10300.c: Rough cut at relocs for the mn10300.
4539
4540 Wed Nov 13 08:12:38 1996 Jeffrey A Law (law@cygnus.com)
4541
4542 * Makefile.in (elf32-d10v.o): Don't depend on elf/d10v.h
4543 anymore.
4544
4545 Tue Nov 12 13:30:00 1996 Dawn Perchik <dawn@cygnus.com>
4546
4547 * filemode.c: Include sysdep.h.
4548 * ihex.c: Add casts to eliminate compiler warnings.
4549 * sunos.c: Add casts to eliminate compiler warnings.
4550
4551 Mon Nov 11 10:37:02 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4552
4553 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Create .got.plt
4554 section.
4555 (ppc_elf_check_relocs): Add support for R_PPC_LOCAL24PC. Make
4556 appropriate relocations in the .so file if shared.
4557 (ppc_elf_relocate_section): Ditto.
4558
4559 Tue Oct 29 15:03:02 1996 Doug Evans <dje@canuck.cygnus.com>
4560
4561 * elf32-m32r.c (elf_m32r_howto_table, R_M32R_24): Use
4562 complain_overflow_unsigned.
4563
4564 Tue Oct 29 12:53:46 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4565
4566 * elf32-d10v.c (elf_d10v_howto_table): Don't complain on
4567 overflows for R_D10V_16 and R_D10V_18.
4568
4569 Tue Oct 29 13:23:53 1996 Ian Lance Taylor <ian@cygnus.com>
4570
4571 * ieee.c (ieee_write_section_part): Use LMA rather than VMA.
4572 (do_with_relocs): Likewise.
4573 (do_as_repeat): Likewise.
4574 (copy_expression): Likewise.
4575
4576 Fri Oct 25 16:56:40 1996 Ian Lance Taylor <ian@cygnus.com>
4577
4578 * ieee.c (ieee_write_external_part): Correctly record whether
4579 there is an external part.
4580
4581 Thu Oct 24 14:32:52 1996 Jeffrey A Law (law@cygnus.com)
4582
4583 * elf32-v850.c (elf32_v850_bfd_final_link_relocate): Correctly
4584 handle tda offsets for sld.w and sst.w instructions.
4585 Fix alignment check in sld.w and sst.w tda reloc handling.
4586
4587 Thu Oct 24 09:08:47 1996 Stu Grossman (grossman@critters.cygnus.com)
4588
4589 * aclocal.m4, configure: Set USE_BINARY_FOPEN for *-*-windows.
4590
4591 Wed Oct 23 00:53:16 1996 Jeffrey A Law (law@cygnus.com)
4592
4593 * elf32-v850.c: Add comments about assumptions about
4594 char, short & long sizes.
4595 (elf32_v850_bfd_final_link_relocate): Fix sign extension
4596 problems for several relocs.
4597
4598 * elf32-v850.c (elf32_v850_howto_table): Fix typo in
4599 R_V850_SDA_OFFSET entry.
4600
4601 Wed Oct 23 00:20:34 1996 Ian Lance Taylor <ian@cygnus.com>
4602
4603 * xcofflink.c (bfd_xcoff_import_symbol): Don't allocate ldsym.
4604 Store import file index in ldindx.
4605 (xcoff_build_ldsyms): Assume that ldsym was not previously
4606 allocated. For an imported symbol, copy ldindx into l_ifile.
4607
4608 Tue Oct 22 19:20:38 1996 Jeffrey A Law (law@cygnus.com)
4609
4610 * elf32-v850.c (elf_v850_howto_table): Fix ordering of
4611 R_V850_ZDA_OFFSET and R_V850_TDA_OFFSET. Fix various
4612 fields in R_V850_TDA_OFFSET.
4613 (elf32_v850_bfd_final_link_relocate): Tweak pc-relative
4614 relocs to work more like other relocs. Handle R_V850_TDA_OFFSET
4615 relocations.
4616
4617 * elf32-v850.c: Include bfdlink.h.
4618 (bfd_elf32_v850_reloc): Return an error if we get a reloc
4619 we can't handle.
4620 (elf32_v850_bfd_final_link_relocate): New function.
4621 (v850_elf_relocation_section): Likewise.
4622 (elf_backend_relocate_section): Define.
4623
4624 Tue Oct 22 17:22:43 1996 Ian Lance Taylor <ian@cygnus.com>
4625
4626 * binary.c (binary_set_section_contents): Ignore sections which
4627 don't have SEC_LOAD and SEC_ALLOC set.
4628
4629 Mon Oct 21 12:13:05 1996 Jeffrey A Law (law@cygnus.com)
4630
4631 * linker.c (_bfd_generic_final_link): Avoid losing static
4632 symbols in the .bss section.
4633
4634 Mon Oct 21 10:54:58 1996 Ian Lance Taylor <ian@cygnus.com>
4635
4636 * elf32-mips.c (elf_mips_howto_table): Describe R_MIPS_64.
4637 (mips32_64bit_reloc): New static function.
4638 (mips_reloc_map): Add entry for BFD_RELOC_64.
4639 (mips_elf_relocate_section): Handle R_MIPS_64.
4640
4641 * linker.c (default_indirect_link_order): Print an error message
4642 when attempting to do a relocateable link with different object
4643 file formats, rather than calling abort.
4644
4645 Thu Oct 17 10:43:29 1996 Doug Evans <dje@canuck.cygnus.com>
4646
4647 * reloc.c (m32r relocs): Rename them.
4648 * bfd-in2.h, libbfd.h: Regenerated.
4649 * elf32-m32r.c: Update.
4650 (m32r_elf_10_pcrel_reloc): New function.
4651 (elf_m32r_howto_table, R_M32R_10_PCREL entry): Use it.
4652 (elf_m32r_howto_table, R_M32R_24 entry): Fix {src,dst}_masks.
4653
4654 Wed Oct 16 11:24:35 1996 Jeffrey A Law (law@cygnus.com)
4655
4656 * linker.c (_bfd_generic_final_link): Set "linker_mark" for
4657 all sections that will be included in the output file.
4658 (_bfd_generic_link_output_symbols): Discard symbols in sections
4659 which are being discarded.
4660 * elf32-v850.c (enum reloc_type): Add R_V850_SDA_OFFSET,
4661 R_V850_TDA_OFFSET and R_V850_ZDA_OFFSET.
4662 (elf_v850_howto_table): Corresponding changes.
4663 (elf_v850_reloc_map): Corresponding changes.
4664 * reloc.c: Add additional V850 relocations.
4665 * bfd-in2.h, libbfd.h: Rebuilt.
4666
4667 * elf32-v850.c (bfd_elf32_v850_reloc): Mask out bits we
4668 no longer want in pc-relative relocs.
4669
4670 Tue Oct 15 22:17:37 1996 Jeffrey A Law (law@cygnus.com)
4671
4672 * elf32-v850.c (bfd_elf32_v850_reloc): Don't silently
4673 accept a reloc against an undefined sybmol!
4674
4675 Tue Oct 15 16:17:28 1996 Stu Grossman (grossman@critters.cygnus.com)
4676
4677 * elf32-v850.c: Define elf_symbol_leading_char to be '_'.
4678
4679 Tue Oct 15 12:40:41 1996 Ian Lance Taylor <ian@cygnus.com>
4680
4681 * VERSION: Bump for new relocation.
4682
4683 * hosts/i386bsd.h: If NBPG is not defined, define it as
4684 PAGE_SIZE, for recent versions of FreeBSD.
4685
4686 Mon Oct 14 12:37:26 1996 Ian Lance Taylor <ian@cygnus.com>
4687
4688 * configure.host: Use `long long' as the 64 bit type on a Solaris
4689 host, since both gcc and the SunPRO compilers support it.
4690
4691 Mon Oct 14 11:17:24 1996 Richard Henderson <rth@tamu.edu>
4692
4693 * reloc.c: Create a new BFD_RELOC_ALPHA_ELF_LITERAL. It was a
4694 mistake to have reused the ECOFF LITERAL for ELF since they have
4695 different semantics.
4696 * elf64-alpha.c (elf_reloc_map): Map from ELF_LITERAL.
4697 * bfd-in2.h, libbfd.h: Rebuild.
4698
4699 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Trap .got
4700 section overflow.
4701
4702 * elf64-alpha.c (elf64_alpha_relocate_section): Do not emit a
4703 dynamic relocation for an undefweak symbol when we are building
4704 a static executable.
4705
4706 Thu Oct 10 11:15:06 1996 Stan Shebs <shebs@andros.cygnus.com>
4707
4708 * mpw-make.sed (config.bfd, targmatch.sed): Edit references to
4709 point explicitly to srcdir.
4710 (targmatch.h): Edit references to point explicitly to objdir.
4711
4712 Thu Oct 10 14:14:23 1996 Ian Lance Taylor <ian@cygnus.com>
4713
4714 * config.bfd: When setting targ_cpu, don't get confused by
4715 linux-gnu.
4716
4717 Tue Oct 8 08:51:19 1996 Stu Grossman (grossman@critters.cygnus.com)
4718
4719 * configure.host: Add support for windows host (a build done
4720 under the Microsoft build environment).
4721
4722 Tue Oct 8 11:40:16 1996 Ian Lance Taylor <ian@cygnus.com>
4723
4724 * elflink.h (elf_link_add_object_symbols): If a symbol is a weak
4725 definition in a dynamic object, add it to the dynamic symbol table
4726 if any dynamic object mentions it. Reverts part of last patch.
4727
4728 * sunos.c (struct sunos_link_hash_table): Add got_base field.
4729 (sunos_link_hash_table_create): Initialize got_base.
4730 (bfd_sunos_size_dynamic_sections): If the .got section is more
4731 than 0x1000 bytes, set __GLOBAL_OFFSET_TABLE_ and got_base to
4732 0x1000.
4733 (sunos_check_dynamic_reloc): Subtract got_base from a base
4734 relative relocation.
4735
4736 * elf32-mips.c (elf_mips_isa): New static function.
4737 (_bfd_mips_elf_merge_private_bfd_data): Don't warn about linking
4738 -mips1 and -mips2 code together, or -mips3 and -mips4 code.
4739
4740 Mon Oct 7 11:44:17 1996 Ian Lance Taylor <ian@cygnus.com>
4741
4742 * archive.c (do_slurp_coff_armap): Only treat archive as little
4743 endian for i960 COFF.
4744
4745 Fri Oct 4 13:49:01 1996 Ian Lance Taylor <ian@cygnus.com>
4746
4747 * coffcode.h (coff_compute_section_file_positions): Adjust sofar
4748 by the change in size of the section when EXEC_P is not set.
4749
4750 * coff-m68k.c (coff_rtype_to_howto): Define if not defined.
4751 (m68kcoff_rtype_to_howto): New static function.
4752 * cf-m68klynx.c (coff_m68k_lynx_rtype_to_howto): Add the section
4753 VMA to the addend for a PC relative reloc.
4754
4755 * dep-in.sed: Rework backslash loop a bit to avoid bug in sed on
4756 HP/UX 10.20.
4757 * Makefile.in: Rebuild dependencies.
4758
4759 * dep-in.sed: Remove ../bfd/sysdep.h, since it will appear when
4760 som.h is included.
4761
4762 Fri Oct 4 11:41:39 1996 Jeffrey A Law (law@cygnus.com)
4763
4764 * Makefile.in: Remove explicit dependencies for mn10200 and
4765 mn10300 files.
4766 (ALL_MACHINE_CFILES): Add cpu-mn10200.c and cpu-mn10300.c.
4767 (BFD32_BACKENDS_CFILES): Add elf32-mn10200.c and elf32-mn10300.c
4768 (dependencies): Rebuilt.
4769
4770 Thu Oct 3 16:57:51 1996 Ian Lance Taylor <ian@cygnus.com>
4771
4772 * cofflink.c (coff_link_add_symbols): Set obj_coff_keep_syms
4773 during this function.
4774
4775 * elflink.c (_bfd_elf_create_linker_section): Only use an existing
4776 section if the flags are compatible.
4777
4778 * configure.in: Add havevecs, and put it in tdefaults.
4779 * mpw-config.in: Likewise.
4780 * configure: Rebuild.
4781 * targmatch.sed: New file; a sed script to build targmatch.h from
4782 config.bfd.
4783 * config.bfd: Add #if, #endif, and comments for targmatch.h.
4784 * targets.c: Include "fnmatch.h".
4785 (struct targmatch): Define.
4786 (bfd_target_match): Define by including targmatch.h.
4787 (bfd_find_target): If the target is not found by name, search for
4788 it as a configuration triplet.
4789 * Makefile.in: Rebuild dependencies.
4790 (BFD32_BACKENDS): Add aout-arm.o, aout-sparcle.o, hp300bsd.o,
4791 i386dynix.o, m68k4knetbsd.o, and riscix.o.
4792 (BFD32_BACKENDS_CFILES): Add aout-arm.c, aout-sparcle.c,
4793 hp300bsd.c, i386dynix.c, m68k4knetbsd.c, and riscix.c.
4794 (HFILES): Add targmatch.h. Also, alphabetize and reindent.
4795 (CFILES): Remove i386dynix.c and hp300bsd.c.
4796 (targmatch.h): New target.
4797 (do_clean): Remove targmatch.h.
4798
4799 * configure.in: Add BFD_NEED_DECLARATION(getenv).
4800 * acconfig.h: Add NEED_DECLARATION_GETENV.
4801 * configure, config.in: Rebuild.
4802 * sysdep.h: If NEED_DECLARATION_GETENV, declare getenv.
4803 * aout-adobe.c (aout_adobe_object_p): Don't declare getenv.
4804
4805 Thu Oct 3 09:29:09 1996 Jeffrey A Law (law@cygnus.com)
4806
4807 * cpu-mn10x00.c, elf32-mn10x00: Removed.
4808 * cpu-mn10200.c, cpu-mn10300.c: New files.
4809 * elf32-mn10200.c, elf32-mn10300.c: New files.
4810 * Makefile.in: Break mn10x00 support into two separate
4811 configurations, mn10200 and mn10300.
4812 * archures.c, config.bfd, configure.in, elf.c, targets.c: Likewise.
4813 * bfd-in2.h, configure: Rebuilt.
4814
4815 Thu Oct 3 15:38:19 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
4816
4817 * Makefile.in (do_clean): Move config.log to do_distclean.
4818
4819 Wed Oct 2 21:40:55 1996 Jeffrey A Law (law@cygnus.com)
4820
4821 * cpu-mn10x00.c, elf32-mn10x00.c: New files.
4822 * Makefile.in (ALL_MACHINES): Add cpu-mn10x00.o.
4823 (BFD32_BACKENDS): Similarly for elf32-mn10x00.o.
4824 (elf32-mn10x00.o): Add dependencies.
4825 * archures.c (enum bfd_architecture): Add bfd_arch_mn10x00.
4826 (bfd_mn10x00_arch): Declare.
4827 (bfd_archures_list): Add bfd_mn10x00_arch.
4828 * config.bfd: Add mn10x00-*-*.
4829 * configure.in: Add bfd_elf32_mn10x00_vec.
4830 * elf.c (prep_headers): Handle bfd_arch_mn10x00.
4831 * targets.c (bfd_elf32_mn10x00_vec): Declare.
4832 (bfd_target_vector): Add bfd_elf32_mn10x00_vec.
4833 * bfd-in2.h, configure: Rebuilt.
4834
4835 Wed Oct 2 15:46:45 1996 Klaus Kaempf <kkaempf@progis.de>
4836
4837 openVMS/Alpha: Provide filename and case_hack flags via
4838 symbol table from gas.
4839 Add case_hack code for symbol output from vax/vms.
4840 * evax-alpha.c (evax_initialize): Remove filename handling,
4841 filename is provided via symbol table.
4842 (evax_get_symtab): Use local symbol count when setting up table.
4843 * evax-egsd.c (_bfd_evax_slurp_egsd): Print correct name when
4844 debugging.
4845 (_bfd_evax_write_egsd): Skip file name symbol.
4846 * evax-emh.c (get_vms_time_string): Local function now.
4847 (_bfd_evax_write_emh): Extract source filename and case_hack flags
4848 from symbol table.
4849 * evax_write_etir (_bfd_evax_write_etir): Pass all symbol names
4850 through _bfd_evax_case_hack_symbol.
4851 * evax-misc.c (hash_string, _bfd_evax_case_hack_symbol): New
4852 functions.
4853 (_bfd_evax_basename): Removed.
4854 (_bfd_get_vms_time_string): Moved to evax-emh.c.
4855 * evax.h (evax_private_data_struct): Remove filename.
4856 (flag_hash_long_names, flag_show_after_trunc,
4857 flag_no_hash_mixed_case, vms_name_mapping): New flags for
4858 vms_case_hack.
4859
4860 Wed Oct 2 12:02:02 1996 Ian Lance Taylor <ian@cygnus.com>
4861
4862 * freebsd.h (N_GET_MAGIC_NET): Don't use ntohl.
4863 (N_GETMID_NET, N_GETFLAG_NET): Likewise.
4864 (NO_SWAP_MAGIC): Don't define.
4865 (SWAP_MAGIC): Define.
4866
4867 * cofflink.c (_bfd_coff_link_input_bfd): Don't crash if there is
4868 no hash table entry for a global symbol.
4869
4870 Tue Oct 1 16:14:22 1996 Joel Sherrill <joel@oarcorp.com>
4871
4872 * config.bfd (mips*-*-rtems*): New target, like mips*-*-elf*.
4873
4874 Tue Oct 1 12:31:39 1996 Ian Lance Taylor <ian@cygnus.com>
4875
4876 * cofflink.c (coff_link_add_symbols): Don't override a meaningful
4877 symbol type with T_NULL. Warn if symbol type changes. Based on
4878 patch from Philippe De Muyter <phdm@info.ucl.ac.be>.
4879
4880 * elflink.h (elf_link_add_object_symbols): Only put a symbol from
4881 a dynamic object in the dynamic symbol table if it is referenced
4882 or defined by a regular object.
4883
4884 Fri Sep 27 18:41:07 1996 Stu Grossman (grossman@critters.cygnus.com)
4885
4886 * elf32-v850.c (bfd_elf32_v850_is_local_label): New function to
4887 remove dwarf local labels. Shrinks binaries by a factor of 3!
4888
4889 Mon Sep 23 13:33:00 1996 Ian Lance Taylor <ian@cygnus.com>
4890
4891 * elf32-ppc.c (ppc_elf_add_symbol_hook): Create the .sbss section
4892 by hand, rather than by calling bfd_make_section.
4893
4894 Mon Sep 23 09:23:41 1996 Doug Evans <dje@seba.cygnus.com>
4895
4896 * reloc.c: Rename m32r relocs.
4897 * bfd-in2.h, libbfd.h: Rebuilt.
4898 * elf32-m32r.c: Update.
4899
4900 Fri Sep 20 11:43:43 1996 Ian Lance Taylor <ian@cygnus.com>
4901
4902 * aoutx.h (aout_link_input_section_ext): When doing a relocateable
4903 link, adjust the symbol index of a base relative reloc. Don't
4904 change the addend of a PC relative reloc if pcrel_offset is set.
4905 * sunos.c (bfd_sunos_size_dynamic_sections): Don't do anything for
4906 a relocateable link.
4907
4908 * reloc.c (bfd_perform_relocation): Apply the relocation even if
4909 it is zero, in case src_mask matters.
4910 (bfd_install_relocation): Likewise.
4911
4912 Thu Sep 19 11:03:06 1996 Ian Lance Taylor <ian@cygnus.com>
4913
4914 * xcofflink.c (xcoff_link_add_symbols): Always initialize
4915 keep_syms.
4916 (_bfd_xcoff_bfd_final_link): Don't set target_index
4917 to an uninitialized value.
4918
4919 Tue Sep 17 14:18:31 1996 Ian Lance Taylor <ian@cygnus.com>
4920
4921 * coffcode.h (coff_slurp_line_table): Warn about illegal symbol
4922 indices, rather than crashing.
4923 (coff_slurp_reloc_table): Likewise. Check whether the howto field
4924 is NULL.
4925 * coff-sh.c (sh_relocate_section): Check for an illegal symbol
4926 index.
4927
4928 Mon Sep 16 12:39:36 1996 Ian Lance Taylor <ian@cygnus.com>
4929
4930 * coff-arm.c (aoutarm_std_reloc_howto): Change dst_mask for ARM26D
4931 reloc to 0.
4932 (coff_arm_adjust_symndx): New static function.
4933 (coff_adjust_symndx): Define.
4934
4935 * srec.c (srec_scan): Accept multiple symbols on a single line.
4936 From Pascal Martin <pmartin@alsys.com>.
4937
4938 * README: New file.
4939
4940 Fri Sep 13 14:32:42 1996 Doug Evans <dje@canuck.cygnus.com>
4941
4942 * aoutf1.h (MY_bfd_merge_private_bfd_data): Define.
4943 (sunos_merge_private_bfd_data): New function.
4944
4945 Fri Sep 13 15:50:57 1996 Ian Lance Taylor <ian@cygnus.com>
4946
4947 * bfd.c (bfd_copy_private_bfd_data): Switch on output BFD rather
4948 than input BFD.
4949 (bfd_merge_private_bfd_data): Likewise.
4950 * section.c (bfd_copy_private_section_data): Likewise.
4951 * syms.c (bfd_copy_private_symbol_data): Likewise.
4952 * bfd-in2.h: Rebuild.
4953 * aout-target.h (MY_bfd_copy_private_section_data): Check that
4954 both BFD's are the right flavour.
4955 * ecoff.c (_bfd_ecoff_bfd_copy_private_bfd_data): Likewise.
4956 * elf.c (_bfd_elf_copy_private_symbol_data): Likewise.
4957 * elf32-mips.c (_bfd_mips_elf_copy_private_bfd_data): Likewise.
4958 (_bfd_mips_elf_merge_private_bfd_data): Likewise.
4959 * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Likewise.
4960 (ppc_elf_merge_private_bfd_data): Likewise.
4961 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Likewise.
4962 * peicode.h (pe_bfd_copy_private_section_data): Likewise.
4963
4964 * elf32-hppa.c (elf_hppa_howto_table): Fill in some fields for
4965 R_PARISC_DIR32, so that _bfd_stab_section_find_nearest_line passes
4966 its sanity check.
4967
4968 Thu Sep 12 11:45:57 1996 Doug Evans <dje@seba.cygnus.com>
4969
4970 * reloc.c: Add m32r relocs.
4971 * bfd-in2.h, libbfd.h: Rebuilt.
4972 * cpu-m32r.c,elf32-m32r.c: New files.
4973
4974 Thu Sep 12 11:10:05 1996 Ian Lance Taylor <ian@cygnus.com>
4975
4976 * ieee.c (ieee_vec): Set symbol_leading_char field to '_'.
4977
4978 Wed Sep 11 11:57:56 1996 Ian Lance Taylor <ian@cygnus.com>
4979
4980 * tekhex.c (first_phase): Change type parameter from char to int.
4981 (out): Likewise.
4982 (pass_over): Change func to expect int, not char.
4983
4984 * elf.c (assign_file_positions_for_segments): Test SEC_ALLOC
4985 rather than SEC_LOAD when aligning the file offset for the first
4986 section in a segment.
4987
4988 Tue Sep 10 16:18:30 1996 Fred Fish <fnf@cygnus.com>
4989
4990 * syms.c (coff_section_type): Make arg const.
4991 * irix-core.c (irix_core_core_file_p): Remove extraneous extra arg
4992 to make_bfd_asection().
4993 * elf-bfd.h (bfd_section_from_phdr): Add prototype.
4994 * elfcode.h (bfd_section_from_phdr): Remove prototype.
4995 (_bfd_elf_stringtab_init): Remove prototype.
4996
4997 * netbsd-core.c (swap_abort): Add prototype.
4998 * aix386-core.c (swap_abort): Ditto & make static
4999 * hpux-core.c (swap_abort): Ditto & make static.
5000 * irix-core.c (swap_abort): Ditto & make static.
5001 * ptrace-core.c (swap_abort): Ditto & make static.
5002 * trad-core.c (swap_abort): Ditto & make static.
5003 * coffswap.h (coff_swap_reloc_in): Ditto.
5004 (coff_swap_reloc_out): Ditto.
5005 (coff_swap_filehdr_in): Ditto.
5006 (coff_swap_filehdr_out): Ditto.
5007 (coff_swap_sym_in): Ditto.
5008 (coff_swap_sym_out): Ditto.
5009 (coff_swap_aux_in): Ditto.
5010 (coff_swap_aux_out): Ditto.
5011 (coff_swap_lineno_in): Ditto.
5012 (coff_swap_lineno_out): Ditto.
5013 (coff_swap_aouthdr_in): Ditto.
5014 (coff_swap_aouthdr_out): Ditto.
5015 (coff_swap_scnhdr_in): Ditto.
5016 (coff_swap_scnhdr_out): Ditto.
5017 * ihex.c (ihex_sizeof_headers): Ditto.
5018 * tekhex.c (getsym): Ditto.
5019 (find_chunk): Ditto & make static.
5020 (insert_byte): Ditto.
5021 (first_phase): Ditto.
5022 (pass_over): Ditto.
5023 (tekhex_get_symtab): Ditto & make static.
5024 (tekhex_get_symtab_upper_bound): Ditto & make static.
5025 (tekhex_mkobject): Ditto.
5026 (tekhex_object_p): Ditto.
5027 (move_section_contents): Ditto.
5028 (tekhex_get_section_contents): Ditto.
5029 (tekhex_set_arch_mach): Ditto & make static.
5030 (tekhex_set_section_contents): Ditto.
5031 (writevalue): Ditto.
5032 (writesym): Ditto.
5033 (out): Ditto.
5034 (tekhex_write_object_contents): Ditto.
5035 (tekhex_sizeof_headers): Ditto.
5036 (tekhex_make_empty_symbol): Ditto.
5037 (tekhex_get_symbol_info): Ditto.
5038 (tekhex_print_symbol): Ditto.
5039 * irix-core.c (make_bfd_asection): Ditto.
5040 (irix_core_core_file_p): Ditto.
5041 (irix_core_core_file_failing_command): Ditto.
5042 (irix_core_core_file_failing_signal): Ditto.
5043 (irix_core_core_file_matches_executable_p): Ditto.
5044 (irix_core_make_empty_symbol): Ditto.
5045 * coff-mips.c (mips_bfd_reloc_type_lookup): Ditto.
5046 * srec.c (srec_new_symbol): Ditto.
5047 (srec_get_section_contents): Ditto.
5048 (srec_set_arch_mach): Ditto.
5049 (srec_set_section_contents): Ditto.
5050 (internal_srec_write_object_contents): Ditto.
5051 (srec_write_object_contents): Ditto.
5052 (symbolsrec_write_object_contents): Ditto.
5053 (srec_sizeof_headers): Ditto.
5054 (srec_make_empty_symbol): Ditto.
5055 (srec_get_symtab_upper_bound): Ditto.
5056 (srec_get_symtab): Ditto.
5057 (srec_print_symbol): Ditto and make static.
5058 * elf.c (elf_read): Ditto
5059 (assign_section_numbers): Ditto.
5060 (elf_fake_sections): Ditto.
5061 (sym_is_global): Ditto.
5062 (elf_map_symbols): Ditto.
5063 (get_program_header_size): Ditto.
5064 * coffgen.c (make_a_section_from_file): Ditto.
5065 (coff_real_object_p): Ditto.
5066 (fixup_symbol_value): Ditto.
5067 (build_debug_section): Ditto.
5068 (copy_name): Ditto.
5069 * syms.c (coff_section_type): Ditto.
5070
5071 Mon Sep 9 22:36:01 1996 Jeffrey A Law (law@cygnus.com)
5072
5073 * bfd-in2.h: Rebuilt after m32r changes.
5074
5075 Mon Sep 9 12:31:22 1996 Doug Evans <dje@canuck.cygnus.com>
5076
5077 * config.bfd,configure.in,configure: Add m32r support.
5078 * Makefile.in,archures.c,elf.c,targets.c: Likewise.
5079 * config.bfd: Keep target list alphabetically sorted.
5080
5081 Mon Sep 9 11:48:41 1996 Jeffrey A Law (law@cygnus.com)
5082
5083 * elf32-v850.c (bfd_elf32_v850_reloc, case R_V850_HI16): Don't forget
5084 to add in the constant part found in the instruction itself.
5085 (case R_V850_HI16_S): Likewise.
5086
5087 Fri Sep 6 17:04:39 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
5088
5089 * elf32-d10v.c (elf_d10v_howto_table): Modify the size of R_D10V_16
5090 and R_D10V_18 to be 1 (word).
5091
5092 Thu Sep 5 15:23:08 1996 Ian Lance Taylor <ian@cygnus.com>
5093
5094 * stabs.c (_bfd_link_section_stabs): If the output_section field
5095 of either section is bfd_abs_section, then the linker is
5096 discarding the section and we should not optimize it.
5097
5098 Tue Sep 3 12:16:20 1996 Doug Evans <dje@canuck.cygnus.com>
5099
5100 * Makefile.in (aout-sparcle.o): New target.
5101 * aoutf1.h (TARGET_IS_BIG_ENDIAN_P): Don't define if little endian.
5102 * config.bfd (sparclet-*-aout*): Add case.
5103 * configure.in (sparcle_aout_vec): Add case.
5104 * configure: Regenerated.
5105 * targets.c (sparcle_aout_vec): Declare.
5106 (bfd_target_vector): Add sparcle_aout_vec.
5107 * aout-sparcle.c: New file.
5108
5109 Tue Sep 3 00:57:02 1996 Jeffrey A Law (law@cygnus.com)
5110
5111 * elf32-v850.c (bfd_elf32_v850_reloc): Fix handling of
5112 low order sign bit propogation for R_V850_HI16_S.
5113
5114 * elf32-v850.c (bfd_elf32_v850_reloc): New function for
5115 handling V850 specific relocs.
5116 (elf_v850_howto_table): Use the new function for some
5117 relocations. Twiddle masks & shifts for some relocs.
5118 Set partial_inplace where needed.
5119
5120 Mon Sep 2 12:12:34 1996 Ian Lance Taylor <ian@cygnus.com>
5121
5122 * cpu-mips.c: Add an explicit mips:3000 entry, and change the
5123 default architecture to a machine number of 0.
5124 * elf32-mips.c (_bfd_mips_elf_object_p): Set the machine number
5125 for E_MIPS_ARCH_1.
5126 (_bfd_mips_elf_merge_private_bfd_data): If the machine number of
5127 the output BFD is the default, set it from the first input BFD.
5128
5129 Sun Sep 1 18:38:01 1996 Jeffrey A Law (law@cygnus.com)
5130
5131 * elf32-v850.c (elf_v850_howto_table): All the 16bit relocs
5132 insert at bitpos zero. The HI16 relocs are shifted right
5133 by 16 bits. Fix src_mask for all relocs.
5134 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Define. The V850 is
5135 little endian!
5136 (TARGET_BIG_SYM, TARGET_BIG_NAME): Remove. The V850 is little
5137 endian!
5138
5139 Sun Sep 1 15:41:08 1996 Ian Lance Taylor <ian@cygnus.com>
5140
5141 * rs6000-core.c (rs6000coff_core_file_matches_executable_p):
5142 Rewrite to use BFD file read routines and to avoid using a fixed
5143 length for the file name.
5144
5145 Sat Aug 31 10:22:25 1996 Jeffrey A Law (law@cygnus.com)
5146
5147 * elf32-v850.c (enum reloc_type): Add R_V850_{32,16,8}.
5148 (elf_v850_howto_table): Add support for R_V850_{32,16,8}.
5149 (v850_reloc_map): Add translation from BFD_RELOC_{32,16,8}
5150 to R_V850_{32,16,8}.
5151
5152 Fri Aug 30 18:06:04 1996 J.T. Conklin <jtc@hippo.cygnus.com>
5153
5154 * elf32-v850.c (reloc_type): Add R_V850_HI16_S.
5155 (elf_v850_howto_table): Add info for HI16_S reloc.
5156 (v850_reloc_map): Add HI_16_S reloc.
5157 * reloc.c: Define BFD_RELOC_V850_* relocs.
5158
5159 Fri Aug 30 11:49:19 1996 Ian Lance Taylor <ian@cygnus.com>
5160
5161 Add SH ELF support.
5162 * elf32-sh.c: New file.
5163 * elf.c (prep_headers): Handle bfd_arch_sh.
5164 * elfcode.h (write_relocs): Handle absolute symbol.
5165 * elf-bfd.h (_bfd_elf32_link_read_relocs): Declare.
5166 (_bfd_elf64_link_read_relocs): Declare.
5167 * elflink.h (NAME(_bfd_elf,link_read_relocs)): Rename from
5168 elf_link_read_relocs. Make globally visible. Change all
5169 callers.
5170 (elf_link_input_bfd): Get external symbols from cache in
5171 symtab_hdr->contents. Get contents from cache in
5172 elf_section_data.
5173 * elfxx-target.h (bfD_elfNN_bfd_relax_section): Only define if not
5174 already defined.
5175 * reloc.c: Define BFD_RELOC_SH_* relocs.
5176 * libbfd-in.h (_bfd_sh_align_load_span): Declare.
5177 * coff-sh.c (sh_insns_conflict): Fix a return value.
5178 (_bfd_sh_align_load_span): New globally visible function, broken
5179 out of sh_align_load.
5180 (sh_align_load): Call _bfd_sh_align_load_span.
5181 (sh_swap_insns): Change relocs parameter to PTR.
5182 * bfd-in2.h, libbfd.h: Rebuild.
5183 * targets.c (bfd_elf32_sh_vec): Declare.
5184 (bfd_elf32_shl_vec): Declare.
5185 * config.bfd (sh-*-elf*): New target.
5186 * configure.in (bfd_elf32_sh_vec): New target vector.
5187 (bfd_elf32_shl_vec): New target vector.
5188 * configure: Rebuild.
5189 * Makefile.in: Rebuild dependencies.
5190 (BFD32_BACKENDS): Add elf32-sh.o.
5191 (BFD32_BACKENDS_CFILES): Add elf32-sh.c.
5192
5193 * elf.c (map_sections_to_segments): Check that LMA does not skip a
5194 page before checking D_PAGED.
5195
5196 * ihex.c (ihex_scan): Removed unnecessary extbase variable.
5197 (ihex_write_object_contents): Remove extbase; always use segbase
5198 instead.
5199
5200 Thu Aug 29 16:52:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5201
5202 * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
5203 * configure.host (i[345]86-*-*): Ditto.
5204 * config.bfd (i[345]86-*-*): Ditto.
5205 * configure: Regenerate.
5206
5207 * config.bfd (i[3456]86-*-dgux*): Recognize as a synonym for x86
5208 elf.
5209
5210 Tue Aug 27 09:18:18 1996 Jeffrey A Law (law@cygnus.com)
5211
5212 * elf32-hppa.c (hppa_elf_gen_reloc_type): Add new argument.
5213 * elf32-hppa.h (hppa_elf_gen_reloc_type): Update prototype.
5214 * som.c (hppa_som_gen_reloc_type): Add new argument. If
5215 we encounter an R_DATA_ONE_SYMBOL reloc against a symbol that
5216 will have an ST_CODE type, change the symbol's type to ST_DATA.
5217 * som.c (hppa_som_gen_reloc_type): Update prototype.
5218
5219 Tue Aug 27 00:12:22 1996 Ian Lance Taylor <ian@cygnus.com>
5220
5221 * elf32-mips.c (mips_elf_check_relocs): Set dynobj if needed for
5222 R_MIPS_32 and R_MIPS_REL32. Set sgot and g as soon as possible.
5223 (mips_elf_size_dynamic_sections): Don't require .got to exist.
5224 (mips_elf_finish_dynamic_sections): Likewise.
5225
5226 Thu Aug 22 10:54:38 1996 Ian Lance Taylor <ian@cygnus.com>
5227
5228 * configure.host (HLDENV): New variable to set. Set it for
5229 *-*-sysv4*, since those linkers may not support -R but they always
5230 support LD_RUN_PATH.
5231
5232 * libieee.h (NSECTIONS): Don't define.
5233 (ieee_data_struct): Change section_table to asection **. Add
5234 section_table_size.
5235 * ieee.c (get_section_entry): If the table isn't big enough, make
5236 it bigger.
5237 (ieee_slurp_sections): Remove assertion about number of sections.
5238 (ieee_object_p): Adjust initialization of ieee to match changes to
5239 the structure.
5240
5241 * xcofflink.c (xcoff_mark): Don't copy relocs for undefined
5242 symbols merely because we are generating a shared library.
5243 (xcoff_build_ldsyms): Don't set up global linkage code for an
5244 undefined symbol merely because we are generating a shared
5245 library.
5246
5247 Tue Aug 20 15:06:05 1996 J.T. Conklin <jtc@hippo.cygnus.com>
5248
5249 * Makefile.in (ALL_MACHINES): Add cpu-v850.o.
5250 (BFD32_BACKENDS) Add elf32-v850.o.
5251 * archures.c: Add bfd_v850_arch.
5252 * bfd-in2.h: Add bfd_v850_arch.
5253 * config.bfd (v850-*-*): New target.
5254 * configure: (bfd_elf32_v850_vec) New vector.
5255 * configure.in: (bfd_elf32_v850_vec) New vector.
5256 * cpu-v850.c: New file.
5257 * elf.c (prep_headers): Added case bfd_arch_v850.
5258 * elf32-v850.c: New file.
5259 * targets.c (bfd_elf32_v850_vec): New vector.
5260
5261 Fri Aug 16 16:25:35 1996 Ian Lance Taylor <ian@cygnus.com>
5262
5263 * xcofflink.c (xcoff_link_add_dynamic_symbols): Create and define
5264 a function code symbol for an XMC_XO symbol.
5265
5266 Thu Aug 15 12:33:29 1996 Stan Shebs <shebs@andros.cygnus.com>
5267
5268 * mpw-config.in: Update editing of autoconf vars to reflect
5269 Jul 18 configure.in change.
5270 * mpw-make.sed: Update editing of include pathnames to be
5271 more general, add @DASH_C_FLAG@ to explicit compile rule edit.
5272
5273 Thu Aug 15 10:35:13 1996 Richard Henderson <rth@tamu.edu>
5274
5275 * elf64-alpha.c (elf64_alpha_output_extsym): The section from
5276 which to offset to get the .plt entry address is ".plt".
5277
5278 Thu Aug 15 16:40:30 1996 James G. Smith <jsmith@cygnus.co.uk>
5279
5280 * reloc.c: (BFD_RELOC_ARM_THUMB_ADD, BFD_RELOC_ARM_THUMB_IMM,
5281 BFD_RELOC_ARM_THUMB_SHIFT, BFD_RELOC_ARM_THUMB_OFFSET):
5282 Added, for internal use by the ARM gas.
5283 * libbfd.h: Rebuilt
5284 * bfd-in2.h: Rebuilt
5285
5286 Wed Aug 14 17:02:09 1996 Richard Henderson <rth@tamu.edu>
5287
5288 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Correct typo
5289 in section dynidx start.
5290
5291 Tue Aug 13 14:35:38 1996 Ian Lance Taylor <ian@cygnus.com>
5292
5293 * elf.c (_bfd_elf_make_section_from_shdr): Treat sections whose
5294 name begins with .gnu.linkonce as SEC_LINK_ONCE. This is an
5295 optimization for g++.
5296
5297 Tue Aug 13 17:04:40 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5298
5299 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): If one module has
5300 the -mrelocatable-lib bit set and the other doesn't, clear the
5301 -mrelocatable-lib bit in the header.
5302
5303 Sat Aug 10 22:59:17 1996 Ian Lance Taylor <ian@cygnus.com>
5304
5305 * elflink.h (elf_link_add_object_symbols): Do not resolve a common
5306 symbol against a STT_FUNC symbol in a shared library.
5307
5308 Fri Aug 9 12:44:57 1996 Ian Lance Taylor <ian@cygnus.com>
5309
5310 * xcofflink.c (xcoff_link_add_dynamic_symbols): If a descriptor
5311 symbol is found, automatically define the corresponding function
5312 code.
5313
5314 * cofflink.c (coff_link_add_symbols): Only set (*sym_hash)->numaux
5315 if sym.n_numaux is not zero.
5316 (_bfd_coff_link_input_bfd): Permit the symbol and the hash table
5317 entry to disagree about the number of aux entries if the symbol
5318 has zero.
5319
5320 * elf32-mips.c (mips_elf_check_relocs): Create the .rel.dyn
5321 section if it might be needed, not just if info->shared.
5322 (mips_elf_adjust_dynamic_symbol): Make room for a null element at
5323 the start of .rel.dyn if we are going to use it.
5324 (mips_elf_finish_dynamic_sections): Only clear the first element
5325 of .rel.dyn if the size is greater than zero.
5326
5327 Thu Aug 8 16:24:55 1996 Ian Lance Taylor <ian@cygnus.com>
5328
5329 * xcofflink.c (xcoff_link_input_bfd): If we already called the
5330 undefined_symbol callback for a symbol, then don't issue any more
5331 warnings about loader relocs.
5332 (_bfd_ppc_xcoff_relocate_section): Don't do any further processing
5333 after calling the undefined_symbol callback.
5334
5335 * xcofflink.c (XCOFF_MULTIPLY_DEFINED): Define.
5336 (xcoff_link_add_symbols): Permit multiple definitions of a symbol
5337 as the AIX linker seems to do.
5338
5339 Thu Aug 8 12:21:56 1996 Klaus Kaempf <kkaempf@progis.de>
5340
5341 * evax-alpha.c (evax_alpha_vec): Corrected flags, cleanup.
5342 (evax_initialize): Remove evax_reloc_table.
5343 (evax_close_and_cleanup): Ditto.
5344 (reloc_nil): Ditto.
5345 (alpha_howto_table): Remove ALPHA_R_SWREL32 and ALPHA_R_SWREL64
5346 entries.
5347 (evax_bfd_reloc_type_lookup): Ditto.
5348 * evax-egsd.c (_bfd_evax_slurp_egsd): Add a few casts; set
5349 cooked_size == raw_size.
5350 * evax-emh.c (_bfd_evax_register_filename): Remove.
5351 * evax-etir.c (etir_stc): Allow ETIR_S_C_STC_xx commands.
5352 * evax-misc.c (add_new_contents): Malloc section at full size.
5353 (_bfd_save_evax_section): Memcpy section contents directly.
5354 * evax.h (ALPHA_R_SWREL32, ALPHA_R_SWREL64): Remove.
5355 (evax_reloc_table): Remove.
5356
5357 * hosts/alphavms.h (O_ACCMODE): Define if needed.
5358
5359 * makefile.vms: Add better support for DEC C compilation
5360 Add evax.h dependencies
5361
5362 * reloc.c (bfd_get_reloc_size): Add case for 16 byte reloc.
5363 (BFD_RELOC_SWREL32,BFD_RELOC_SWREL64): Remove.
5364 (BFD_RELOC_ALPHA_BASEREG): Remove.
5365 * bfd-in2.h, libbfd.h: Rebuild.
5366
5367 Thu Aug 8 08:17:32 1996 Stu Grossman (grossman@critters.cygnus.com)
5368
5369 * archive.c (bsd_write_armap): Ifdef around calls to getuid and
5370 getgid if _WIN32 is defined.
5371 * opncls.c (bfd_fdopenr): Remove unnecessary WINGDB ifdef.
5372
5373 Wed Aug 7 23:19:00 1996 Stu Grossman (grossman@critters.cygnus.com)
5374
5375 * aoutx.h bfd-in.h bfd-in2.h opncls.c riscix.c som.c targets.c:
5376 Change NO_FLAGS to BFD_NO_FLAGS to avoid conflict with an HPUX
5377 include file.
5378 * libbfd.c: Create dummy getpagesize() macro if HAVE_GETPAGESIZE
5379 isn't defined.
5380
5381 Wed Aug 7 14:11:44 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
5382
5383 * configure.in: Call BFD_NEEDED_DECLARATION on strstr and
5384 realloc.
5385 * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
5386 (NEED_DECLARATION_REALLOC): New macro.
5387 * configure, config.in: Rebuild.
5388 * sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
5389 (realloc): Declare if NEED_DECLARATION_REALLOC.
5390
5391 * aclocal.m4 (BFD_NEED_DECLARATION): Include <string.h> or
5392 <strings.h> if they exist.
5393
5394 * ieee.c (ieee_set_section_contents): Cast bfd_alloc return.
5395
5396 Wed Aug 7 12:12:03 1996 Ian Lance Taylor <ian@cygnus.com>
5397
5398 * cpu-i386.c (i8086_arch): Architecture info for the i8086.
5399
5400 Based on patches from Eric Valette <valette@crf.canon.fr>:
5401 * elf32-i386.c (enum reloc_type): Add FIRST_INVALID_RELOC,
5402 LAST_INVALID_RELOC, R_386_16, R_386_PC16, R_386_8, R_386_PC8.
5403 (elf_howto_table): Add entries for new relocs.
5404 (elf_i386_reloc_type_lookup): Handle new relocs.
5405 (elf_i386_info_to_howto): Just call abort.
5406 (elf_i386_info_to_howto_rel): Check that the reloc type is valid.
5407 (elf_i386_relocate_section): Likewise.
5408
5409 Tue Aug 6 12:54:56 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
5410
5411 * elf32-d10v.c (elf_d10v_howto_table): Added R_D10V_32.
5412
5413 Mon Aug 5 13:42:41 1996 Ian Lance Taylor <ian@cygnus.com>
5414
5415 * elf.c (_bfd_elf_make_section_from_shdr): For a loadable section,
5416 only get the LMA from the phdr if they are in the same part of the
5417 file.
5418
5419 * elf.c (map_sections_to_segments): Rewrite tests for starting a
5420 new segment to make them more comprehensible. If the relationship
5421 between the LMA and the VMA changed, start a new segment. Don't
5422 check dynsec when deciding whether to start a new segment for a
5423 writeable section; -N will now handle this.
5424
5425 Thu Aug 1 22:43:08 1996 Jeffrey A Law (law@cygnus.com)
5426
5427 * libhppa.h: Remove "esel" changes. Not the right approach.
5428 * som.c: Corresponding changes.
5429 (som_bfd_derive_misc_symbol_info): Use ST_DATA for symbols
5430 which don't have a SOM symbol type associated with them.
5431 Reverses a 1994 change.
5432
5433 Wed Jul 31 15:50:55 1996 Ian Lance Taylor <ian@cygnus.com>
5434
5435 Make ld -N more reasonable for ELF:
5436 * elf.c (map_sections_to_segments): If D_PAGED is not set, set
5437 phdr_in_section to false, and always use a single load segment.
5438 (elf_sort_sections): Sort sections by LMA after VMA.
5439 (assign_file_positions_for_segments): If D_PAGED is not set, don't
5440 align to maxpagesize.
5441 (assign_file_positions_except_relocs): Likewise.
5442 * elfcode.h (elf_object_p): If a section is loaded but not page
5443 aligned, clear D_PAGED.
5444
5445 Wed Jul 31 15:00:12 1996 James G. Smith <jsmith@cygnus.co.uk>
5446
5447 * reloc.c: (BFD_RELOC_ARM_OFFSETIMM8, BFD_RELOC_ARM_HWLITERAL):
5448 Added, for internal use by the ARM gas.
5449 * libbfd.h: Rebuilt
5450 * bfd-in2.h: Rebuilt
5451
5452 Tue Jul 30 14:14:57 1996 Jeffrey A Law (law@cygnus.com)
5453
5454 * libhppa.h (R_HPPA_ESEL): New field selector.
5455 (e_esel): Similarly.
5456 * som.c (hppa_som_gen_reloc_type): If we encounter an e_esel,
5457 then generate R_COMP2 (PUSH_SYM), R_DATA_EXPR fixup stream.
5458 (som_write_fixups): Handle R_DATA_EXPR just like R_CODE_EXPR.
5459
5460 Tue Jul 30 13:31:27 1996 Ian Lance Taylor <ian@cygnus.com>
5461
5462 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Do the regular
5463 archive search before looking for stripped dynamic objects.
5464
5465 Fri Jul 26 17:51:39 1996 Ian Lance Taylor <ian@cygnus.com>
5466
5467 * xcofflink.c (xcoff_build_ldsyms): Make exporting an undefined
5468 symbol a warning rather than an error.
5469
5470 Wed Jul 24 12:02:53 1996 Ian Lance Taylor <ian@cygnus.com>
5471
5472 * elf.c (assign_file_positions_for_segments): Track the virtual
5473 memory position separately from the file position, and use it to
5474 compute the alignment adjustment.
5475
5476 Tue Jul 23 10:43:31 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
5477
5478 * elf32-d10v.c (elf_d10v_howto_table): Changed all relocs to "long"
5479 and fixed mask on R_D10V_10_PCREL_L.
5480
5481 Mon Jul 22 15:30:30 1996 Ian Lance Taylor <ian@cygnus.com>
5482
5483 * elf64-mips.c: Include "aout/ar.h".
5484 (mips_elf64_slurp_armap): New static function.
5485 (mips_elf64_write_armap): New static function.
5486 (bfd_elf64_archive_*): Define.
5487 * elfxx-target.h (bfd_elfNN_archive_p): Define if not defined.
5488 Use instead of bfd_generic_archive_p.
5489 (bfd_elfNN_write_archive_contents): Define if not defined. Use
5490 instead of _bfd_write_archive_contents.
5491 (bfd_elfNN_mkdarchive): Define if not defined. Use instead of
5492 _bfd_generic_mkarchive.
5493 (TARGET_BIG_SYM): If bfd_elfNN_archive_functions is defined, use
5494 bfd_elfNN_archive in BFD_JUMP_TABLE_ARCHIVE rather than
5495 _bfd_archive_coff.
5496 (TARGET_LITTLE_SYM): Likewise.
5497 * archive.c (bfd_slurp_armap): Check for and reject an archive map
5498 name of /SYM64/.
5499 * Makefile.in: Rebuild dependencies.
5500
5501 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Handle
5502 SHT_MIPS_LIBLIST, SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and
5503 SHT_MIPS_EVENTS sections.
5504 (_bfd_mips_elf_section_from_shdr): Handle SHT_MIPS_IFACE,
5505 SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and SHT_MIPS_EVENTS
5506 sections.
5507 (_bfd_mips_elf_fake_sections): Likewise.
5508
5509 * libecoff.h (ecoff_data_type): Add rdata_in_text field.
5510 * ecoff.c (ecoff_compute_section_file_positions): Copy
5511 rdata_in_text from backend info to tdata. Clear it if any data
5512 section comes before .rdata.
5513 (_bfd_ecoff_write_object_contents): Use rdata_in_text field in
5514 tdata rather than backend info.
5515
5516 Fri Jul 19 18:15:51 1996 Ian Lance Taylor <ian@cygnus.com>
5517
5518 * configure.in: Fix test for whether a compiler has a 64 bit
5519 type. From Jim Wilson <wilson@cygnus.com>.
5520
5521 Thu Jul 18 15:39:10 1996 Ian Lance Taylor <ian@cygnus.com>
5522
5523 * configure.host (mips-sgi-irix6*): New host.
5524
5525 * configure.in: Set and substitute VERSION, BFD_HOST_64BIT_LONG
5526 (replacing HOST_64BITLONG), BFD_HOST_64_BIT_DEFINED,
5527 BFD_HOST_64_BIT, and BFD_HOST_U_64_BIT. Add bfd-in2.h:bfd-in2.h
5528 to AC_OUTPUT call.
5529 * configure: Rebuild.
5530 * bfd-in.h (BFD_ARCH_SIZE): Define as @wordsize@, not @WORDSIZE@.
5531 (BFD_HOST_64_BIT): Define conditionally.
5532 (BFD_HOST_U_64_BIT): Define when BFD_HOST_64_BIT is defined.
5533 (bfd_vma): Typedef as BFD_HOST_U_64_BIT.
5534 (symvalue, bfd_size_type): Likewise.
5535 * bfd-in2.h: Rebuild.
5536 * Makefile.in (do_clean): Remove bfd-tmp.h.
5537 (do_distclean): Remove bfd-in3.h.
5538 (stmp-bfd.h): Just do copy-if-change bfd-in3.h bfd.h.
5539 (bfd-in3.h): New target.
5540
5541 * config.bfd (sparc-*-sysv4*): Don't build sunos_big_vec. From
5542 Andrew Gierth <ANDREWG@microlise.co.uk>.
5543
5544 * configure.host: Set INSTALL_SHLIB.
5545 * configure.in: Call AC_SUBST (INSTALL_SHLIB).
5546 * configure: Rebuild.
5547 * Makefile.in (install): Use @INSTALL_SHLIB@.
5548
5549 * config.bfd (mips*-*-irix6*): New target.
5550 * configure.host: Handle Irix 6 shared library like Irix 5.
5551
5552 * xcofflink.c (xcoff_link_add_symbols): Don't check an XMC_TD
5553 symbol for a magic name.
5554 (xcoff_link_input_bfd): Don't change the reloc symbol for an
5555 XMC_TD symbol.
5556 (_bfd_ppc_xcoff_relocate_section): Don't get the TOC offset for an
5557 XMC_TD symbol.
5558
5559 Thu Jul 18 11:36:31 1996 Stan Shebs <shebs@andros.cygnus.com>
5560
5561 * mpw-config.in: Add ELF support to mips config, create the
5562 elf32-target.h file in the object dir.
5563 * mpw-make.sed: Edit elfXX-target.h refs at beginnings of lines.
5564
5565 Wed Jul 17 18:02:32 1996 Kim Knuttila <krk@cygnus.com>
5566
5567 * coff-ppc.c: Redid debug scheme - numerous fprintf's gone.
5568 Also removed most abort calls, in favor of using bfd reporting.
5569
5570 Wed Jul 17 14:51:52 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
5571
5572 * Makefile.in (ALL_MACHINES): Add cpu-d10v.o.
5573 (BFD32_BACKENDS) Add elf32-d10v.o.
5574 * archures.c: Add bfd_d10v_arch.
5575 * bfd-in2.h: Add bfd_d10v_arch.
5576 * config.bfd (d10v-*-*): New target.
5577 * configure: (bfd_elf32_d10v_vec) New vector.
5578 * configure.in: (bfd_elf32_d10v_vec) New vector.
5579 * cpu-d10v.c: New file.
5580 * elf.c (prep_headers): Added case bfd_arch_d10v.
5581 * elf32-d10v.c: New file.
5582 * libbfd.h: Rebuild.
5583 * reloc.c (BFD_RELOC_D10V_10_PCREL_R, BFD_RELOC_D10V_10_PCREL_L,
5584 BFD_RELOC_D10V_18, BFD_RELOC_D10V_18_PCREL): Define.
5585 * targets.c (bfd_elf32_d10v_vec): New vector.
5586
5587 Wed Jul 17 10:58:55 1996 Kim Knuttila <krk@cygnus.com>
5588
5589 * coff-ppc.c (coff_ppc_relocate_section): Removed bogus fprintf
5590
5591 Tue Jul 16 23:49:02 1996 Stu Grossman (grossman@critters.cygnus.com)
5592
5593 * archures.c bfd-in2.h: Add bfd_mach_i386_i386 and
5594 bfd_mach_i386_i8086 machine types.
5595
5596 Wed Jul 10 12:42:56 1996 Ian Lance Taylor <ian@cygnus.com>
5597
5598 * ecoff.c (_bfd_ecoff_new_section_hook): Set SEC_CODE for _INIT
5599 and _FINI sections.
5600
5601 Wed Jul 10 11:18:21 1996 Richard Henderson <rth@tamu.edu>
5602
5603 * coffcode.h (coff_set_section_contents): A/UX does not require
5604 special handling of the _LIB section.
5605
5606 Tue Jul 9 15:52:20 1996 Jeffrey A Law (law@cygnus.com)
5607
5608 * coff-h8300.c (h8300_reloc16_extra_cases): Use the correct
5609 value for R_RELBYTE.
5610
5611 * reloc16.c (bfd_coff_reloc16_relax_section): Only "shrinks"
5612 array if one was allocated.
5613
5614 Tue Jul 9 12:21:54 1996 Ian Lance Taylor <ian@cygnus.com>
5615
5616 From Kazumoto Kojima <kkojima@kk.info.kanagawa-u.ac.jp>:
5617 * elf32-mips.c (struct mips_elf_link_hash_table): Add new fields
5618 use_rld_obj_head and rld_value.
5619 (mips_elf_link_hash_table_create): Initialize new fields.
5620 (mips_elf_add_symbol_hook): Mark __rld_obj_head symbol as
5621 dynamic.
5622 (mips_elf_create_dynamic_sections): Create .rld_map section. If
5623 __rld_obj_head symbol not seen, create an __rld_map symbol.
5624 (mips_elf_size_dynamic_sections): Make space in .rld_map section.
5625 Create a DT_MIPS_RLD_MAP entry rather than a DT_DEBUG entry.
5626 (mips_elf_finish_dynamic_symbol): Save value of __rld_map or
5627 __rld_obj_head symbol.
5628 (mips_elf_finish_dynamic_sections): Handle DT_MIPS_RLD_MAP.
5629
5630 Mon Jul 8 16:18:03 1996 Ian Lance Taylor <ian@cygnus.com>
5631
5632 * elf32-mips.c (mips_reloc_map): Remove BFD_RELOC_32_PCREL entry.
5633
5634 * elf32-ppc.c (ppc_elf_howto_raw): For R_PPC_ADDR16_HA, use
5635 ppc_elf_addr16_ha_reloc.
5636 (ppc_elf_addr16_ha_reloc): New static function.
5637
5638 * coff-mips.c (struct mips_hi): Define.
5639 (mips_refhi_list): New static variable.
5640 (mips_refhi_addr, mips_refhi_addend): Remove.
5641 (mips_refhi_reloc): Maintain a list of unmatched REFHI relocs.
5642 (mips_reflo_reloc): Process mips_refhi_list.
5643 (mips_relhi_list): New static variable.
5644 (mips_relhi_addr, mips_relhi_addend): Remove.
5645 (mips_relhi_reloc): Maintain a list of unmatched RELHI relocs.
5646 (mips_rello_reloc): Process mips_relhi_list.
5647 (mips_relocate_section): Permit an arbitrary number of REFHI or
5648 RELHI relocs before the associated REFLO or RELLO reloc.
5649
5650 Fri Jul 5 19:27:49 1996 Ian Lance Taylor <ian@cygnus.com>
5651
5652 * aout-target.h (MY(callback)): Set reloc_count fields.
5653
5654 Thu Jul 4 12:00:37 1996 Ian Lance Taylor <ian@cygnus.com>
5655
5656 * sunos.c (sunos_add_dynamic_symbols): Don't create dynamic
5657 sections unless this is a SunOS link.
5658
5659 * VERSION: Set to 2.7.1.
5660
5661 * Released binutils 2.7.
5662
5663 Wed Jul 3 14:59:47 1996 Ian Lance Taylor <ian@cygnus.com>
5664
5665 * i386aout.c: Include "aout/aout64.h".
5666 (i386aout_write_object_contents): New static function.
5667 (MY_write_object_contents): Define.
5668
5669 * netbsd.h (MY(write_object_contents)): Make sure that
5670 adjust_sizes_and_vmas is called before fiddling with the magic
5671 number.
5672
5673 Tue Jul 2 23:30:39 1996 Ian Lance Taylor <ian@cygnus.com>
5674
5675 * stabs.c (_bfd_link_section_stabs): Fix casts of psinfo.
5676
5677 Sun Jun 30 13:34:33 1996 Ian Lance Taylor <ian@cygnus.com>
5678
5679 * libbfd-in.h (itos, stoi): Don't define.
5680 * libbfd.h: Rebuild.
5681 * i386lynx.c (KEEPIT): Define as udata.i.
5682 (NAME(lynx,swap_std_reloc_out)): Don't use stoi.
5683 (NAME(lynx,swap_ext_reloc_out)): Likewise.
5684 * riscix.c (riscix_swap_std_reloc_out): Use udata.i rather than
5685 flags. Don't use stoi.
5686
5687 * elf32-mips.c (ELF_MAGPAGESIZE): Change definition to 0x1000.
5688
5689 * elf.c (map_sections_to_segments): Don't start a new segment for
5690 a writable section if it's on the same page as the previous
5691 segment. Reset the writable variable for a readonly section.
5692
5693 Sat Jun 29 16:18:51 1996 Kim Knuttila <krk@cygnus.com>
5694
5695 * peicode.h (coff_swap_aouthdr_in): Missing initializations of
5696 first_thunk_address, thunk_size, and import_table_size.
5697 * peicode.h: Improved some diagnostics regarding edata sections.
5698
5699 * coff-ppc.c (coff_ppc_relocate_section): Earlier error check
5700 on IMGLUE relocs.
5701 (coff_ppc_relocate_section): Improved diagnostic for large TOCDEFN's.
5702 (TARGET_LITTLE_SYM): Added missing D_PAGED.
5703
5704 Fri Jun 28 13:48:45 1996 Ian Lance Taylor <ian@cygnus.com>
5705
5706 * xcofflink.c (xcoff_link_check_ar_symbols): An undefined symbol
5707 with XCOFF_DEF_DYNAMIC set is really defined.
5708 (xcoff_link_check_dynamic_ar_symbols): Likewise.
5709 (xcoff_link_add_symbols): Only create special sections if using an
5710 XCOFF hash table.
5711
5712 * reloc.c (bfd_perform_relocation): Handle xcoff-powermac like
5713 aixcoff-rs6000.
5714 (bfd_install_relocation): Likewise.
5715
5716 Fri Jun 28 11:17:00 1996 Richard Henderson <rth@tamu.edu>
5717
5718 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add flags
5719 field.
5720 (ALPHA_ELF_LINK_HASH_LU_ADDR): Define.
5721 (ALPHA_ELF_LINK_HASH_LU_MEM): Define.
5722 (ALPHA_ELF_LINK_HASH_LU_FUNC): Define.
5723 (elf64_alpha_link_hash_newfunc): Initialize flags field.
5724 (elf64_alpha_check_relocs): Record types of LITUSE entries that
5725 are found for LITERAL relocs.
5726 (elf64_alpha_adjust_dynamic_symbol): If a symbol has its address
5727 taken, we cannot generate a .plt entry for the symbol.
5728
5729 Thu Jun 27 11:24:29 1996 Ian Lance Taylor <ian@cygnus.com>
5730
5731 * configure.in: Add AC_ISC_POSIX, and check for setitimer and
5732 sysconf functions (for gprof).
5733 * configure, config.in: Rebuild.
5734
5735 Wed Jun 26 16:29:02 1996 Ian Lance Taylor <ian@cygnus.com>
5736
5737 * ecoff.c (_bfd_ecoff_archive_p): Check the first object file in
5738 an archive if it has a map. If the object file has the wrong
5739 xvec, reject it.
5740
5741 * coff-alpha.c (alpha_adjust_reloc_in): Set the addend for a
5742 BRADDR, SREL16, SREL32, or SREL64 reloc against an external
5743 symbol.
5744 (alpha_relocate_section): Likewise.
5745
5746 * coffswap.h (coff_swap_reloc_out): Use RELSZ, not sizeof.
5747 (coff_swap_filehdr_out): Use FILHSZ, not sizeof.
5748 (coff_swap_sym_out): Use SYMESZ, not sizeof.
5749 (coff_swap_aux_out): Use AUXESZ, not sizeof.
5750 (coff_swap_lineno_out): Use LINESZ, not sizeof.
5751 (coff_swap_aouthdr_out): Use AOUTSZ, not sizeof.
5752 (coff_swap_scnhdr_out): Use SCNHSZ, not sizeof.
5753 * peicode.h: Corresponding changes.
5754
5755 Tue Jun 25 15:28:34 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5756
5757 * elflink.h (elf_create_pointer_linker_section): Comment out code
5758 dealing with making GOT pointers negative of the GOT symbol for
5759 now.
5760
5761 Tue Jun 25 11:41:24 1996 Richard Henderson <rth@tamu.edu>
5762
5763 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't
5764 increment the .rela.plt size until after we're done creating the
5765 .plt entry.
5766 (elf64_alpha_finish_dynamic_symbol): Change .plt entry to load the
5767 .rela.plt offset directly rather than calculating it.
5768
5769 Mon Jun 24 17:15:10 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
5770
5771 * Makefile.in, (bindir, libdir, datadir, mandir, infodir, includedir):
5772 Use autoconf-set values.
5773 * doc/Makefile.in (bindir, libdir, datadir, mandir, infodir,
5774 includedir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set
5775 values.
5776 (docdir): Deleted.
5777 * configure.in (AC_PREREQ): autoconf v2.5 or higher.
5778 * configure: Rebuilt.
5779
5780 Mon Jun 24 22:50:35 1996 Jeffrey A Law (law@cygnus.com)
5781
5782 * som.c (som_write_fixups): Fix typo in R_END_TRY for exception
5783 handling code > 1k away.
5784
5785 Mon Jun 24 18:41:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5786
5787 * elflink.h (elf_create_pointer_linker_section): If DEBUG is
5788 defined, output whenever the symbol is updated.
5789
5790 Mon Jun 24 17:58:12 1996 Jouke Numan <jnuman@bazis.nl>
5791
5792 * elf.c (elf_fake_sections): Don't set sh_addr of a non SEC_ALLOC
5793 section to 0 if user_set_vma is set.
5794 * elflink.h (elf_bfd_final_link): Likewise.
5795
5796 Sun Jun 23 20:42:51 1996 Doug Evans <dje@canuck.cygnus.com>
5797
5798 Partially undo patch of Jun 20.
5799 * coffcode.h (coff_set_alignment_hook): Use COFF_IMAGE_WITH_PE.
5800 (coff_compute_section_file_positions): Likewise.
5801 (coff_write_object_contents): Likewise. Re-add deleted code, but
5802 use #ifdef COFF_WITH_PE, not COFF_OBJ_WITH_PE.
5803 * peicode.h (pe_bfd_copy_private_bfd_data): Re-add #ifdef.
5804
5805 Fri Jun 21 17:38:15 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
5806
5807 * config.bfd: Add support for *-*-rtems* configurations.
5808
5809 Fri Jun 21 15:19:59 1996 Ian Lance Taylor <ian@cygnus.com>
5810
5811 * elf.c (prep_headers): Add bfd_arch_alpha case.
5812
5813 Fri Jun 21 12:35:27 1996 Richard Henderson <rth@tamu.edu>
5814
5815 * elf64-alpha.c: New file.
5816 * config.bfd (alpha-*-linuxecoff*): New target.
5817 (alpha-*-linux*, alpha-*-elf*): New targets.
5818 * configure.in (bfd_elf64_alpha_vec): New vector.
5819 * configure: Rebuild.
5820 * targets.c (bfd_elf64_alpha_vec): Declare.
5821 (bfd_target_vector): Add bfd_elf64_alpha_vec if BFD64.
5822 * reloc.c (BFD_RELOC_ALPHA_GPDISP): Define.
5823 * bfd-in2.h, libbfd.h: Rebuild.
5824 * Makefile.in: Rebuild dependencies.
5825 (BFD64_BACKENDS): Add elf64-alpha.o.
5826 (BFD64_BACKENDS_CFILES): Add elf64-alpha.c.
5827
5828 Thu Jun 20 18:14:25 1996 Ian Lance Taylor <ian@cygnus.com>
5829
5830 * ecoff.c (ecoff_armap_hash): If hlog is 0, just return 0, rather
5831 than relying on a right shift of 32.
5832
5833 Thu Jun 20 11:00:57 1996 Doug Evans <dje@canuck.cygnus.com>
5834
5835 * coffcode.h (coff_set_alignment_hook): Change COFF_IMAGE_WITH_PE
5836 ifdef to COFF_WITH_PE.
5837 (coff_compute_section_file_positions): Likewise.
5838 (coff_write_object_contents): Likewise. Delete COFF_OBJ_WITH_PE.
5839 * pe-{arm,i386,ppc}.c (COFF_OBJ_WITH_PE): Delete.
5840 * peicode.h (pe_bfd_copy_private_bfd_data): Delete ifdef
5841 COFF_IMAGE_WITH_PE, always include.
5842
5843 * peicode.h (coff_swap_scnhdr_out): ".drectve" doesn't have trailing 0.
5844
5845 Wed Jun 19 11:37:52 1996 Ian Lance Taylor <ian@cygnus.com>
5846
5847 * elf.c (map_sections_to_segments): Fix up the test for -Ttext to
5848 approximate the correct answer if SIZEOF_HEADERS was not used.
5849
5850 * binary.c (binary_set_section_contents): Set section file
5851 position based on LMA rather than VMA.
5852
5853 Wed Jun 19 11:19:25 1996 Manfred Hollstein KS/EIC5 60/3/142 #40283 <manfred@lts.sel.alcatel.de>
5854
5855 * linker.c (_bfd_generic_link_output_symbols): Don't output any
5856 symbols if info->strip == strip_all.
5857
5858 Tue Jun 18 15:17:36 1996 Jeffrey A. Law <law@rtl.cygnus.com>
5859
5860 * coff-h8300.c: Remove #if 0 code.
5861 (compatable): Don't allow mixing/matching of different architectures.
5862
5863 * archures.c (bfd_mach_h8300s): Add.
5864 * bfd-in2.h: Rebuilt.
5865 * coff-h8300.c (funcvec_hash_newfunc): Handle H8/S too.
5866 (BADMAG): Likewise.
5867 (h8300_reloc16_estimate): Likewise.
5868 (h8300_reloc16_extra_cases): Likewise.
5869 (h8300_bfd_link_add_symbols): Likewise.
5870 * coffcode.h (coff_set_arch_mach_hook): Likewise.
5871 (coff_set_flags): Likewise.
5872 * cpu-h8300.c (h8300_scan): Likewise.
5873 Add H8/S to bfd_h8300_arch list.
5874
5875 Tue Jun 18 14:42:58 1996 Klaus Kaempf <kkaempf@progis.de>
5876
5877 Added support for Alpha OpenVMS:
5878 * evax.h, evax-alpha.c, evax-egsd.c, evax-emh.c: New files.
5879 * evax-etir.c, evax-misc.c, hosts/alphavms.h: New files.
5880 * config.h-vms, makefile.vms: New files.
5881 * config.bfd (alpha-*-*vms*): New target.
5882 * configure.in (evax_alpha_vec): New target vector.
5883 * configure: Rebuild.
5884 * reloc.c (BFD_RELOC_SWREL32, BFD_RELOC_SWREL64): Define.
5885 (BFD_RELOC_ALPHA_LINKAGE, BFD_RELOC_ALPHA_BASEREG): Define.
5886 * targets.c (bfd_target_evax_flavour): Define.
5887 (evax_alpha_vec): Declare.
5888 (bfd_target_vector): Add ecoffalpha_little_vec and evax_alpha_vec
5889 if BFD64 is defined.
5890 * bfd-in2.h, libbfd.h: Rebuild.
5891 * Makefile.in: Rebuild dependencies.
5892 (BFD64_BACKENDS): Add evax-alpha.o, evax-egsd.o, evax-etir.o,
5893 evax-emh.o, and evax-misc.o.
5894 (BFD64_BACKENDS_CFILES): Add evax-alpha.c, evax-egsd.c,
5895 evax-etir.c, evax-emh.c, and evax-misc.c.
5896 (HFILES): Add evax.h.
5897
5898 Tue Jun 18 13:54:18 1996 Ian Lance Taylor <ian@cygnus.com>
5899
5900 * coff-h8300.c (h8300_reloc16_extra_cases): Make name a const
5901 pointer.
5902 (h8300_bfd_link_add_symbols): Likewise.
5903
5904 Mon Jun 17 10:06:50 1996 Jeffrey A. Law <law@rtl.cygnus.com>
5905
5906 * som.h (R_HPPA_BEGIN_TRY, R_HPPA_END_TRY): Define.
5907 * som.c (som_write_fixups): Handle R_BEGIN_TRY and R_END_TRY.
5908
5909 Mon Jun 17 12:49:11 1996 Ian Lance Taylor <ian@cygnus.com>
5910
5911 * elf32-mips.c (mips_elf_relocate_section): Don't create a reloc
5912 for R_MIPS_REL32 and R_MIPS_32 relocs if no dynamic sections were
5913 created.
5914 (mips_elf_check_relocs): Only create .rel.dyn for R_MIPS_REL32 and
5915 R_MIPS_32 relocs if creating a shared library.
5916
5917 Thu Jun 13 20:14:51 1996 Doug Evans <dje@canuck.cygnus.com>
5918
5919 * peicode.h (add_data_entry): Use pei_section_data rather than
5920 _cooked_size. Corresponds to May 13 change in coffcode.h.
5921
5922 Thu Jun 13 10:23:40 1996 Ian Lance Taylor <ian@cygnus.com>
5923
5924 * cofflink.c (_bfd_coff_final_link): Handle long section names.
5925 * coffcode.h (coff_write_object_contents): If there are long
5926 section names, always set the f_symptr field, even if there are no
5927 symbols.
5928 * peicode.h (coff_swap_filehdr_in): Don't clear the f_symptr field
5929 if there are no symbols.
5930
5931 * coffgen.c (make_a_section_from_file): Check return value of
5932 _bfd_coff_read_string_table.
5933 (coff_real_object_p): Check return value of
5934 make_a_section_from_file.
5935 (_bfd_coff_read_string_table): Check that there are some symbols
5936 before trying to read the string table size.
5937
5938 Wed Jun 12 11:16:37 1996 Ian Lance Taylor <ian@cygnus.com>
5939
5940 * xcofflink.c (xcoff_link_add_symbols): When considering whether
5941 to replace a symbol in a dynamic object with a symbol from another
5942 dynamic object, do the replacement if the existing symbol is
5943 global linkage code.
5944
5945 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Check explicitly
5946 for _ptrgl, and treat it as global linkage code.
5947
5948 * aoutx.h (NAME(aout,find_nearest_line)): Notice if we find a
5949 filename or N_SO symbol past the offset, and use it to indicate
5950 that there is no line number or function when appropriate.
5951
5952 Tue Jun 11 15:24:48 1996 Ian Lance Taylor <ian@cygnus.com>
5953
5954 * xcofflink.c (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR for a
5955 common symbol defined by the linker. Don't export function code
5956 even if export_defineds is set.
5957
5958 Mon Jun 10 11:57:27 1996 Jeffrey A Law (law@cygnus.com)
5959
5960 * coff-h8300.c (howto_table): Add new entries for R_BCC_INV
5961 and R_JMP_DEL.
5962 (rtype2howto): Handle R_BCC_INV and R_JMP_DEL.
5963 (h8300_symbol_address_p): New function.
5964 (h8300_reloc16_estimate): Eliminate jumps made unnecessary by
5965 relaxing.
5966
5967 Sun Jun 9 16:30:20 1996 Jeffrey A Law (law@cygnus.com)
5968
5969 * coff-h8300.c (h8300_reloc16_estimate): Fix many minor spacing
5970 problems.
5971 (h8300_reloc16_estimate, cases R_JMP1, R_JMP2): Adjust "dot"
5972 correctly for the two variants. Allow relaxing if the target
5973 is 128 bytes away since after relaxation it'll be 126 bytes away.
5974 (h8300_reloc16_estimate, case R_PCRWORD): Correctly adjust
5975 "dot" and "value". Allow relaxing if the target is 128 bytes
5976 away since after relaxation it'll be 126 bytes away.
5977 * reloc16.c (bfd_coff_reloc16_relax_section): Keep relaxing
5978 the given section until nothing changes.
5979
5980 Thu Jun 6 15:24:45 1996 Richard Henderson <rth@tamu.edu>
5981
5982 * ecoff.c (_bfd_ecoff_new_section_hook): Remove the _PDATA
5983 alignment hack--we can get the lnnoptr info another way without
5984 suddenly increasing the alignment requirements. Set the flags for
5985 the _PDATA section.
5986 (ecoff_compute_section_file_positions): Do so.
5987
5988 Thu Jun 6 11:24:37 1996 Ian Lance Taylor <ian@cygnus.com>
5989
5990 * ieee.c (ieee_write_object_contents): Put a timestamp in the file
5991 to keep the HP emulator database happy.
5992
5993 * config.bfd: Recognize powerpc-*-linux* and powerpcle-*-linux*.
5994 From Kevin Buettner <kev@primenet.com>.
5995
5996 Wed Jun 5 15:16:04 1996 Ian Lance Taylor <ian@cygnus.com>
5997
5998 * aoutx.h (translate_to_native_sym_flags): Don't try to print the
5999 name of a NULL section.
6000
6001 Tue Jun 4 18:53:58 1996 Ian Lance Taylor <ian@cygnus.com>
6002
6003 * linker.c (_bfd_generic_link_add_one_symbol): If notice_all is
6004 set, always call the notice callback.
6005
6006 * VERSION: Increment for bfdlink.h change.
6007
6008 Mon Jun 3 11:01:53 1996 Ian Lance Taylor <ian@cygnus.com>
6009
6010 * coff-sh.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set to 4.
6011 (sh_relax_delete_bytes): Correct handling of differently sized
6012 trailing alignment reloc.
6013
6014 * bfd-in.h: Use #error if BFD_HOST_64_BIT can not be defined.
6015 * bfd-in2.h: Rebuild.
6016 * configure.in: Warn if there is no known 64 bit type.
6017 * configure: Rebuild.
6018
6019 * Makefile.in: Rebuild dependencies.
6020 (BFD32_BACKENDS): Add ppcboot.o.
6021 (BFD32_BACKENDS_CFILES): Add ppcboot.c.
6022
6023 * elf32-mips.c (mips_elf_size_dynamic_sections): Initialize c.
6024 From Per Fogelstrom <per.fogelstrom@mailbox200.swipnet.se>.
6025
6026 Sat Jun 1 21:49:58 1996 Ian Lance Taylor <ian@cygnus.com>
6027
6028 * elf64-mips.c (bfd_mips_elf64_swap_reginfo_in)
6029 (bfd_mips_elf64_swap_reginfo_out): Move from here...
6030 * elf32-mips.c (bfd_mips_elf64_swap_reginfo_in)
6031 (bfd_mips_elf64_swap_reginfo_out): ...to here.
6032
6033 Fri May 31 13:51:28 1996 Ian Lance Taylor <ian@cygnus.com>
6034
6035 * elf64-mips.c: Improve reloc special_functions and handling of
6036 SHT_MIPS_OPTIONS section.
6037 * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Rename from
6038 mips_elf_hi16_reloc and make globally visible.
6039 (_bfd_mips_elf_lo16_reloc): Rename from mips_elf_lo16_reloc and
6040 make globally visible.
6041 (_bfd_mips_elf_got16_reloc): Rename from mips_elf_got16_reloc and
6042 make globally visible.
6043 (_bfd_mips_elf_gprel16_reloc): Rename from mips_elf_gprel16_reloc
6044 and make globally visible.
6045 (gprel16_with_gp): Check howto->src_mask before using value in
6046 insn.
6047 (_bfd_mips_elf_gprel32_reloc): Rename from mips_elf_gprel32_reloc
6048 and make globally visible.
6049 (gprel32_with_gp): Check howto->src_mask before fetching value.
6050 (bfd_mips_elf_swap_options_in): New function.
6051 (bfd_mips_elf_swap_options_out): New function.
6052 (_bfd_mips_elf_set_private_flags): Rename from
6053 mips_elf_set_private_flags and make globally visible.
6054 (_bfd_mips_elf_copy_private_bfd_data): Rename from
6055 mips_elf_copy_private_bfd_data and make globally visible.
6056 (_bfd_mips_elf_merge_private_bfd_data): Rename from
6057 mips_elf_merge_private_bfd_data and make globally visible.
6058 (_bfd_mips_elf_section_from_shdr): Accept .MIPS.options as a name
6059 for a SHT_MIPS_OPTIONS section.
6060 (mips_elf32_section_from_shdr): Handle SHT_MIPS_OPTIONS section.
6061 (_bfd_mips_elf_fake_sections): Consider .MIPS.options to be the
6062 name of a SHT_MIPS_OPTIONS section.
6063 (_bfd_mips_elf_set_section_contents): New function.
6064 (mips_elf32_section_processing): Set the GP value in a
6065 SHT_MIPS_OPTIONS section.
6066 (_bfd_mips_elf_find_nearest_line): Rename from
6067 mips_elf_find_nearest_line and make globally visible.
6068 (bfd_elf32_set_section_contents): Define.
6069 * elf-bfd.h (_bfd_mips_elf_hi16_reloc): Declare.
6070 (_bfd_mips_elf_lo16_reloc): Declare.
6071 (_bfd_mips_elf_gprel16_reloc): Declare.
6072 (_bfd_mips_elf_got16_reloc): Declare.
6073 (_bfd_mips_elf_gprel32_reloc): Declare.
6074 (_bfd_mips_elf_set_private_flags): Declare.
6075 (_bfd_mips_elf_copy_private_bfd_data): Declare.
6076 (_bfd_mips_elf_merge_private_bfd_data): Declare.
6077 (_bfd_mips_elf_find_nearest_line): Declare.
6078 (_bfd_mips_elf_set_section_contents): Declare.
6079
6080 * elf32-hppa.c (elf32_hppa_info_to_howto): Rename from
6081 elf_info_to_howto.
6082 (elf_info_to_howto): Define.
6083 * elf32-sparc.c (elf32_sparc_info_to_howto): Rename from
6084 elf_info_to_howto.
6085 (elf_info_to_howto): Define.
6086 * elf64-sparc.c (sparc64_elf_info_to_howto): Rename from
6087 elf_info_to_howto.
6088 (elf_info_to_howto): Define.
6089
6090 * coff-w65.c (h8300_reloc16_estimate): Rename R_MOVB[12] to
6091 R_MOV16B[12], to match change in coff/internal.h.
6092
6093 Thu May 30 12:38:49 1996 Ian Lance Taylor <ian@cygnus.com>
6094
6095 * elf64-mips.c: Extensive additions to provide better support for
6096 writing files and for gas.
6097 * elf32-mips.c (_bfd_mips_elf_object_p): New function, broken out
6098 of mips_elf_object_p.
6099 (mips_elf32_object_p): Rename from mips_elf_object_p; call
6100 _bfd_mips_elf_object_p.
6101 (_bfd_mips_elf_final_write_processing): Rename from
6102 mips_elf_final_write_processing and make globally visible.
6103 (_bfd_mips_elf_fake_sections): Rename from
6104 mips_elf_fake_sections and make globally visible.
6105 (_bfd_mips_elf_section_from_bfd_section): Rename from
6106 mips_elf_section_from_bfd_section and make globally visible.
6107 (_bfd_mips_elf_section_processing): New function, broken out of
6108 mips_elf_section_processing.
6109 (mips_elf32_section_processing): Rename from
6110 mips_elf_section_processing; call
6111 _bfd_mips_elf_section_processing.
6112 (_bfd_mips_elf_symbol_processing): Rename from
6113 mips_elf_symbol_processing and make globally visible.
6114 (_bfd_mips_elf_read_ecoff_info): Rename from
6115 mips_elf_read_ecoff_info and make globally visible.
6116 (mips_elf32_ecoff_debug_swap): Rename from
6117 mips_elf_ecoff_debug_swap.
6118 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Use asymbol rather than
6119 struct symbol_cache_entry.
6120 (_bfd_elf_validate_reloc): New function, moved in from
6121 elfcode.h:validate_reloc.
6122 * elfcode.h (validate_reloc): Remove; moved into elf.c and renamed
6123 to _bfd_elf_validate_reloc. Change all callers.
6124 * elf-bfd.h (bfd_section_from_shdr): Declare.
6125 (_bfd_elf_symbol_from_bfd_symbol): Declare.
6126 (_bfd_elf_validate_reloc): Declare.
6127 (_bfd_mips_elf_object_p): Declare.
6128 (_bfd_mips_elf_fake_sections): Declare.
6129 (_bfd_mips_elf_section_from_bfd_section): Declare.
6130 (_bfd_mips_elf_section_processing): Declare.
6131 (_bfd_mips_elf_symbol_processing): Declare.
6132 (_bfd_mips_elf_read_ecoff_info): Declare.
6133 (_bfd_mips_elf_final_write_processing): Declare.
6134 * elfxx-target.h (bfd_elfNN_get_reloc_upper_bound): Don't define
6135 if already defined.
6136
6137 * elf32-mips.c (mips_elf_object_p): Handle E_MIPS_ARCH_4.
6138 (mips_elf_final_write_processing): Likewise.
6139
6140 Wed May 29 16:15:29 1996 Ian Lance Taylor <ian@cygnus.com>
6141
6142 64-bit MIPS ELF ABI objdump support:
6143 * elf64-mips.c: New file.
6144 * Makefile.in: Rebuild dependencies.
6145 (BFD64_BACKENDS): Add elf64-mips.o.
6146 (BFD64_BACKENDS_CFILES): Add elf64-mips.c.
6147 * config.bfd (mips*el-*-elf*) Add bfd_elf64_bigmips_vec and
6148 bfd_elf64_littlemips_vec to targ_selvecs.
6149 (mips*-*-elf*): Likewise.
6150 * confingure.in: Add bfd_elf64_bigmips_vec and
6151 bfd_elf64_littlemips_vec to vector switch.
6152 * configure: Rebuild.
6153 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): New function,
6154 broken out of mips_elf_section_from_shdr.
6155 (mips_elf32_section_from_shdr): Rename from
6156 mips_elf_section_from_shdr. Call new function.
6157 (elf_backend_section_from_shdr): Update name of renamed function.
6158 * elf-bfd.h (struct elf_size_info): Change second parameter of
6159 write_out_phdrs to be const. Likewise for second parameter of
6160 swap_symbol_out.
6161 (struct bfd_elf_section_data): Add rel_hdr2 field.
6162 (bfd_elf32_swap_symbol_in): Change second parameter to be const.
6163 (bfd_elf32_swap_symbol_out): Likewise.
6164 (bfd_elf32_swap_reloc_in): Likewise.
6165 (bfd_elf32_swap_reloc_out): Likewise.
6166 (bfd_elf32_swap_reloca_in): Likewise.
6167 (bfd_elf32_swap_reloca_out): Likewise.
6168 (bfd_elf32_swap_phdr_in): Likewise.
6169 (bfd_elf32_swap_phdr_out): Likewise.
6170 (bfd_elf32_swap_dyn_in): Likewise.
6171 (bfd_elf32_swap_dyn_out): Likewise.
6172 (bfd_elf32_slurp_symbol_table): Declare.
6173 (bfd_elf32_write_shdrs_and_ehdr): Declare.
6174 (bfd_elf32_write_out_phdrs): Declare.
6175 (bfd_elf64_swap_symbol_in): Change second parameter to be const.
6176 (bfd_elf64_swap_symbol_out): Likewise.
6177 (bfd_elf64_swap_reloc_in): Likewise.
6178 (bfd_elf64_swap_reloc_out): Likewise.
6179 (bfd_elf64_swap_reloca_in): Likewise.
6180 (bfd_elf64_swap_reloca_out): Likewise.
6181 (bfd_elf64_swap_phdr_in): Likewise.
6182 (bfd_elf64_swap_phdr_out): Likewise.
6183 (bfd_elf64_swap_dyn_in): Likewise.
6184 (bfd_elf64_swap_dyn_out): Likewise.
6185 (bfd_elf64_slurp_symbol_table): Declare.
6186 (bfd_elf64_write_shdrs_and_ehdr): Declare.
6187 (bfd_elf64_write_out_phdrs): Declare.
6188 (_bfd_mips_elf_section_from_shdr): Declare.
6189 * elf.c (bfd_section_from_shdr): Remove assertion requiring
6190 SHT_REL/SHT_RELA to match use_rela_p. If there is already a reloc
6191 section for the section, add the new one to rel_hdr2. Increment
6192 reloc_count rather than setting it.
6193 * elfcode.h (elf_slurp_symbol_table): Define name as macro.
6194 Remove static declaration.
6195 (elf_write_shdrs_and_ehdr): Define name as macro.
6196 (elf_write_out_phdrs): Likewise.
6197 (elf_swap_ehdr_in, elf_swap_ehdr_out): Declare.
6198 (elf_swap_shdr_in, elf_swap_shdr_out): Declare.
6199 (elf_swap_symbol_in): Change second parameter to be const.
6200 (elf_swap_symbol_out): Likewise.
6201 (elf_swap_ehdr_in, elf_swap_ehdr_out): Likewise.
6202 (elf_swap_shdr_in, elf_swap_shdr_out): Likewise.
6203 (elf_swap_phdr_in, elf_swap_phdr_out): Likewise.
6204 (elf_swap_reloc_in, elf_swap_reloc_out): Likewise.
6205 (elf_swap_reloca_in, elf_swap_reloca_out): Likewise.
6206 (elf_write_out_phdrs): Rename from write_out_phdrs. Change second
6207 parameter to be const. Make non-static.
6208 (elf_write_shdrs_and_ehdr): Rename from write_shdrs_and_ehdr.
6209 Make non-static.
6210 (elf_slurp_symbol_table): Make non-static.
6211 (NAME(_bfd_elf,size_info)): Update names of renamed functions.
6212 * elfxx-target.h (elf_info_to_howto): Define if not defined.
6213 (elf_backend_size_info): Likewise.
6214 (elfNN_bed): Use elf_backend_size_info.
6215 * targets.c (bfd_elf64_bigmips_vec): Declare.
6216 (bfd_elf64_littlemips_vec): Declare.
6217 (bfd_target_vector): Add bfd_elf64_bigmips_vec and
6218 bfd_elf64_littlemips_vec if BFD64 is defined.
6219
6220 * libbfd.c (bfd_get_file_window): Add cast to fprintf argument.
6221
6222 Tue May 28 11:42:08 1996 Ian Lance Taylor <ian@cygnus.com>
6223
6224 * coff-sh.c (sh_relax_delete_bytes): Insert nop instructions, not
6225 zeroes, in alignment holes.
6226
6227 * configure: Rebuild with autoconf 2.10.
6228
6229 * aoutx.h (NAME(aout,find_nearest_line)): Make room for the
6230 potential leading underscore in the allocated buffer.
6231
6232 Fri May 24 14:28:38 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6233
6234 * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not put small common
6235 symbols into .sbss if this is a relocatable link.
6236
6237 Thu May 23 12:26:24 1996 Ian Lance Taylor <ian@cygnus.com>
6238
6239 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Warn about
6240 undefined symbols when creating a shared library.
6241
6242 Fri May 17 13:54:15 1996 Ian Lance Taylor <ian@cygnus.com>
6243
6244 * coff-sh.c: Add a bunch of new code and static const arrays to
6245 support aligning loads and stores on four byte memory boundaries.
6246 Also:
6247 (sh_coff_howtos): Add entries for R_SH_CODE, R_SH_DATA and
6248 R_SH_LABEL.
6249 (sh_relax_section): Look for R_SH_CODE relocs. If we find one,
6250 call sh_align_loads.
6251 (sh_relax_delete_bytes): Don't mark R_SH_CODE or R_SH_DATA relocs
6252 as unused.
6253
6254 Thu May 16 16:34:13 1996 Ian Lance Taylor <ian@cygnus.com>
6255
6256 * cache.c (bfd_open_file): Unlink the file before opening it for
6257 write. From Marty Leisner <leisner@sdsp.mc.xerox.com>.
6258
6259 * opncls.c (bfd_fdopenr): Set opened_once.
6260
6261 Tue May 14 12:35:32 1996 Ian Lance Taylor <ian@cygnus.com>
6262
6263 * som.c (som_slurp_reloc_table): Clear external_relocs cache after
6264 freeing it.
6265
6266 * libbfd.c: Remove #ifdef FILE_OFFSET_IS_CHAR_INDEX, and compile
6267 the code unconditionally.
6268
6269 Mon May 13 19:51:37 1996 Ian Lance Taylor <ian@cygnus.com>
6270
6271 * libcoff-in.h (struct pei_section_tdata): Define structure.
6272 (pei_section_data): Define macro.
6273 * libcoff.h: Rebuild.
6274 * coffcode.h (coff_set_alignment_hook): If COFF_IMAGE_WITH_PE,
6275 store s_paddr field in pei_section_data.
6276 (coff_compute_section_file_positions): Use pei_section_data rather
6277 than _cooked_size, and don't overwrite an existing value.
6278 (coff_write_object_contents): If COFF_OBJ_WITH_PE, set s_paddr to
6279 0. If COFF_IMAGE_WITH_PE, set s_paddr to pei_section_data.
6280 * peicode.h (coff_bfd_copy_private_section_data): Define if
6281 COFF_IMAGE_WITH_PE.
6282 (pe_bfd_copy_private_section_data): New static function if
6283 COFF_IMAGE_WITH_PE.
6284
6285 Wed May 8 16:10:38 1996 Ian Lance Taylor <ian@cygnus.com>
6286
6287 * srec.c (srec_set_arch_mach): Write as a function rather than a
6288 macro definition.
6289
6290 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): If an archive has
6291 no map, just check each member in turn to see whether it is
6292 required.
6293
6294 Wed May 8 09:17:34 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6295
6296 * ppcboot.c (ppcboot_object_p): Check for type 0x41 in partition
6297 table. Call BFD_ASSERT to validate header size, instead of
6298 calling fatal.
6299 (ppcboot_bfd_print_private_bfd_data): Put quotes around partition
6300 name.
6301
6302 Tue May 7 16:10:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6303
6304 * ppcboot.c: New target for looking at PPCbug boot records.
6305
6306 * config{ure.in,.bfd}: Add support for ppcboot target.
6307 * targets.c: Ditto.
6308 * configure: Regenerate.
6309
6310 Tue May 7 11:15:19 1996 Jeffrey A Law (law@cygnus.com)
6311
6312 * coff-h8300.c (howto_table): Update names to match recent
6313 changes to include/coff/internal.h. Fix minor errors in the
6314 existing relocs. Add R_MOVL1 and R_MOVL2.
6315 (rtype2howto): Similarly.
6316 (h8300_reloc16_estimate): Rewrite to simplify, fix bugs in the
6317 existing relaxing code and peform more relaxing.
6318 (h8300_reloc16_extra_cases): Likewise.
6319
6320 Mon May 6 18:24:09 1996 Jeffrey A Law (law@cygnus.com)
6321
6322 * reloc16.c (bfd_coff_reloc16_get_value): Handle common
6323 symbols correctly.
6324
6325 Sat May 4 05:08:45 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
6326
6327 * elfcode.h (elf_object_p): Reject generic ELF target if
6328 e_machine matches an alternate machine code in a specific backend.
6329
6330 * netbsd-core.c (netbsd_core_vec): Remove initializer for
6331 obsolete align_power_min field.
6332
6333 Fri May 3 13:07:35 1996 Jeffrey A Law (law@cygnus.com)
6334
6335 * coff-h8300.c (reloc_howto_type): Add howto entry for
6336 R_PCRWORD_B.
6337 (rtype2howto): Handle R_PCRWORD_B.
6338 (h8300_reloc16_extra_cases): Handle R_PCRWORD_B.
6339 (h8300_reloc_16_estimate): Likewise. Try to turn a 16bit
6340 pc-relative branch (R_PCRWORD) into an 8bit pc-relative
6341 branch (R_PCWORD_B).
6342
6343 Fri May 3 10:47:41 1996 Ian Lance Taylor <ian@cygnus.com>
6344
6345 * aoutx.h (translate_from_native_sym_flags): Set the section for
6346 BSF_CONSTRUCTOR symbols.
6347
6348 * cofflink.c (_bfd_coff_link_input_bfd): Correct setting of
6349 last_bf_index.
6350
6351 Wed May 1 18:39:32 1996 Doug Evans <dje@canuck.cygnus.com>
6352
6353 * coffcode.h (coff_write_object_contents): In comdat section lookup,
6354 stop looking when section is found.
6355
6356 Wed May 1 14:17:57 1996 Ian Lance Taylor <ian@cygnus.com>
6357
6358 * coffcode.h (STRING_SIZE_SIZE): Define.
6359 (styp_to_sec_flags): Handle long symbol names when looking for the
6360 section symbol.
6361 (bfd_coff_backend_data): Add _bfd_coff_long_section_names field.
6362 (bfd_coff_long_section_names): Define.
6363 (coff_write_object_contents): Handle long section names.
6364 (bfd_coff_std_swap_table): Initialize new field.
6365 * libcoff.h: Rebuild.
6366 * coffgen.c (make_a_section_from_file): Handle long section
6367 names.
6368 (coff_write_symbols): Handle long section names.
6369 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
6370 * coff-mips.c (mips_ecoff_backend_data): Likewise.
6371 * pe-arm.c (COFF_LONG_SECTION_NAMES): Define.
6372 * pei-arm.c (COFF_LONG_SECTION_NAMES): Define.
6373 * pe-i386.c (COFF_LONG_SECTION_NAMES): Define.
6374 * pei-i386.c (COFF_LONG_SECTION_NAMES): Define.
6375 * pe-ppc.c (COFF_LONG_SECTION_NAMES): Define.
6376 * pei-ppc.c (COFF_LONG_SECTION_NAMES): Define.
6377
6378 * bout.c (b_out_callback): Set lma of sections.
6379 (b_out_bfd_get_relocated_section_contents): Rename in_abfd
6380 parameter to output_bfd. Used input_bfd instead of output_bfd in
6381 several places.
6382
6383 Tue Apr 30 17:56:39 1996 Ian Lance Taylor <ian@cygnus.com>
6384
6385 * aoutx.h (translate_from_native_sym_flags): Don't create
6386 SEC_CONSTRUCTOR sections.
6387 * ecoff.c (ecoff_set_symbol_info): Likewise.
6388
6389 * elf32-mips.c (mips_elf_copy_private_bfd_data): Copy elf_gp.
6390 From Don Bowman <bowman@waterloo.hp.com>.
6391
6392 Tue Apr 30 17:06:32 1996 Doug Evans <dje@canuck.cygnus.com>
6393
6394 * coff-arm.c (armcoff_little_vec): If COFF_WITH_PE is defined, add
6395 SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags.
6396
6397 Mon Apr 29 13:15:17 1996 Ian Lance Taylor <ian@cygnus.com>
6398
6399 * elf32-mips.c (struct mips_elf_link_hash_entry): Add
6400 mips_32_relocs field.
6401 (mips_elf_link_hash_newfunc): Initialize mips_32_relocs field.
6402 (mips_elf_relocate_section): Copy R_MIPS_REL32 and R_MIPS_32
6403 relocs against a global symbol which is not defined in a regular
6404 file.
6405 (mips_elf_check_relocs): For a R_MIPS_REL32 or R_MIPS_32 reloc
6406 against a global symbol, increment mips_32_relocs.
6407 (mips_elf_adjust_dynamic_symbol): If mips_32_relocs is set, and
6408 the symbol is not defined in a regular file, make room in the
6409 .rel.dyn section.
6410
6411 Fri Apr 26 18:00:37 1996 Ian Lance Taylor <ian@cygnus.com>
6412
6413 * ecoff.c (ecoff_compute_section_file_positions): Track the real
6414 file position and the virtual file position separately. Set
6415 filepos information bsaed on the real file position.
6416 (_bfd_ecoff_set_section_contents): Handle .lib sections like the
6417 Jan 23 change to coffcode.h.
6418
6419 * som.c (som_slurp_symbol_table): Set the symbol count to the
6420 number of BFD symbols created.
6421
6422 Fri Apr 26 12:34:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6423
6424 * elf32-ppc.c (ppc_elf_check_relocs): Forward relocations to the
6425 output file if linking shared objects. Loop to check all relocs,
6426 rather than returning false on first error.
6427
6428 Thu Apr 25 13:25:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6429
6430 * elf32-ppc.c (ppc_elf_create_linker_section): Add PLT case.
6431 (ppc_elf_additional_program_headers): If .interp section, bump #
6432 of program headers by 1.
6433 (ppc_elf_adjust_dynamic_symbol): Flesh out support.
6434 (ppc_elf_size_dynamic_sections): Add support for .plt section.
6435 (ppc_elf_check_relocs): Print out filename in debug code. Enable
6436 PLT support.
6437 (ppc_elf_finish_dynamic_symbol): Add support for PLT's, beef up
6438 debug output.
6439 (ppc_elf_relocate_section): If the output section isn't defined,
6440 don't abort, just give an error message.
6441
6442 * elflink.c (_bfd_elf_create_dynamic_sections): If the section
6443 being created is .sdata or .sdata2, don't make the symbol dynamic.
6444
6445 Wed Apr 24 14:04:07 1996 Ian Lance Taylor <ian@cygnus.com>
6446
6447 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through the
6448 members of an archive for dynamic objects with no symbols, and
6449 pass them directly to check_archive_element.
6450 (xcoff_link_check_ar_symbols): Pass dynamic objects to
6451 xcoff_link_check_dynamic_ar_symbols.
6452 (xcoff_link_check_dynamic_ar_symbols): New static function.
6453
6454 * coff-rs6000.c (rs6000coff_vec): Change BFD_JUMP_TABLE_DYNAMIC
6455 from _bfd_nodynamic to _bfd_xcoff.
6456 * libcoff-in.h (_bfd_xcoff_get_dynamic_symtab_upper_bound):
6457 Declare.
6458 (_bfd_xcoff_canonicalize_dynamic_symtab): Declare.
6459 (_bfd_xcoff_get_dynamic_reloc_upper_bound): Declare.
6460 (_bfd_xcoff_canonicalize_dynamic_reloc): Declare.
6461 * libcoff.h: Rebuild.
6462 * xcofflink.c (xcoff_swap_ldrel_in): New static function.
6463 (xcoff_get_section_contents): New static function.
6464 (_bfd_xcoff_get_dynamic_symtab_upper_bound): New function.
6465 (_bfd_xcoff_canonicalize_dynamic_symtab): New function.
6466 (_bfd_xcoff_get_dynamic_reloc_upper_bound): New function.
6467 (xcoff_dynamic_reloc): New static variable.
6468 (_bfd_xcoff_canonicalize_dynamic_reloc): New function.
6469 (xcoff_link_add_dynamic_symbols): Use xcoff_get_section_contents.
6470
6471 Tue Apr 23 12:48:42 1996 Ian Lance Taylor <ian@cygnus.com>
6472
6473 * coff-sparc.c (bfd_coff_generic_reloc): Return bfd_reloc_ok even
6474 if reloc_entry->addend is not 0.
6475 (CALC_ADDEND): Just set the addend to reloc.r_offset.
6476
6477 Mon Apr 22 18:29:01 1996 Doug Evans <dje@canuck.cygnus.com>
6478
6479 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Fix spelling of
6480 R_SPARC_GLOB_JMP.
6481 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
6482 Add entries for R_SPARC_[56].
6483 (sparc_reloc_map): Add entries for R_SPARC_[56].
6484
6485 Mon Apr 22 15:07:24 1996 Ian Lance Taylor <ian@cygnus.com>
6486
6487 Optimize linking of stabs in sections as used in ELF and COFF.
6488 * stabs.c: New file.
6489 * libbfd-in.h (_bfd_link_section_stabs): Declare.
6490 (_bfd_write_section_stabs): Declare.
6491 (_bfd_write_stab_strings): Declare.
6492 * libbfd.h: Rebuild.
6493 * libcoff-in.h (struct coff_section_tdata): Add stab_info field.
6494 (struct coff_link_hash_table): Add stab_info field.
6495 * libcoff.h: Rebuild.
6496 * cofflink.c (_bfd_coff_link_hash_table_init): Initialize
6497 stab_info field.
6498 (coff_link_add_symbols): Call _bfd_link_section_stabs if
6499 appropriate.
6500 (_bfd_coff_final_link): Write out stab strings hash table.
6501 (_bfd_coff_link_input_bfd): Handle optimized stabs sections.
6502 * coff-ppc.c (ppc_bfd_coff_final_link): Write out stab strings
6503 hash table.
6504 * elf-bfd.h (struct elf_link_hash_table): Add stab_info field.
6505 (struct bfd_elf_section_data): Add stab_info field.
6506 * elf.c (_bfd_elf_link_hash_table_init): Initialize stab_info
6507 field.
6508 * elflink.h (elf_link_add_object_symbols): If appropriate, call
6509 _bfd_link_section_stabs.
6510 (elf_bfd_final_link): Write out stab strings hash table.
6511 (elf_link_input_bfd): Handle optimized stabs sections.
6512 * reloc.c (_bfd_final_link_relocate): Check address against
6513 _raw_size rather than _cooked_size.
6514 * Makefile.in: Rebuild dependencies.
6515 (BFD_LIBS): Add stabs.o
6516 (BFD_LIBS_CFILES): Add stabs.c.
6517
6518 * VERSION: Increment for bfdlink.h change.
6519
6520 * coffgen.c (coff_renumber_symbols): Correct handling of
6521 BSF_NOT_AT_END common symbols.
6522
6523 Fri Apr 19 19:21:56 1996 Ian Lance Taylor <ian@cygnus.com>
6524
6525 * coff-ppc.c (record_toc): Add cast to avoid warning.
6526 (ppc_allocate_toc_section): Likewise.
6527 (coff_ppc_relocate_section): Remove ANSI C string concatenation.
6528 (ppc_coff_reloc_type_lookup): Remove unreached code.
6529 * coffcode.h (coff_write_object_contents): Don't take the address
6530 of an array.
6531 * peicode.h (pe_print_idata): Add casts to avoid warning.
6532 (pe_print_edata): Likewise.
6533 (pe_print_reloc): Remove ANSI C string concatenation.
6534
6535 Thu Apr 18 18:51:18 1996 Ian Lance Taylor <ian@cygnus.com>
6536
6537 * libcoff-in.h (struct coff_final_link_info): Add last_bf_index
6538 and last_bf fields.
6539 * libcoff.h: Rebuild.
6540 * coffswap.h (coff_swap_aux_in): Swap endndx field for C_FCN
6541 symbols.
6542 (coff_swap_aux_out): Likewise.
6543 * peicode.h (coff_swap_aux_in): Likewise.
6544 (coff_swap_aux_out): Likewise.
6545 * coffgen.c (coff_pointerize_aux): Check endndx field for C_FCN
6546 symbols.
6547 * cofflink.c (_bfd_coff_final_link): Initialize last_bf_index
6548 field.
6549 (_bfd_coff_link_input_bfd): Check endndx field for C_FCN symbols.
6550 Fix up .bf endndx link fields.
6551 * coff-ppc.c (ppc_bfd_coff_final_link): Initialize last_bf_index
6552 field.
6553 * xcofflink.c (xcoff_link_input_bfd): Check endndx field for C_FCN
6554 symbols.
6555
6556 Wed Apr 17 12:08:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6557
6558 * pe{,i}-ppc.c (PPC_PE): Define instead of PPC, so that compiling
6559 on Solaris PowerPC systems doesn't get confused.
6560
6561 * ccffcode.h (coff_write_object_contents): Use #ifdef PPC_PE, not
6562 #ifdef PPC.
6563
6564 * elfcore.h (bfd_prstatus, bfd_fpregset): Add thread argument.
6565 (elf_corefile_note): If HAVE_SYS_PROCFS_H is not defined, don't
6566 update did_reg and did_reg2.
6567
6568 Wed Apr 17 13:07:37 1996 Ian Lance Taylor <ian@cygnus.com>
6569
6570 * xcofflink.c (xcoff_link_input_bfd): Check for TOC overflow.
6571
6572 * linker.c (_bfd_generic_link_add_one_symbol): When calling the
6573 callback routines, pass h->root.string rather than name, in case
6574 copy is true and name is transient.
6575
6576 Tue Apr 16 16:36:38 1996 Stu Grossman (grossman@lisa.cygnus.com)
6577
6578 * elfcore.h: Add support for core files with multiple threads.
6579 (Primarily for Solaris.)
6580
6581 Tue Apr 16 13:44:08 1996 Ian Lance Taylor <ian@cygnus.com>
6582
6583 * aoutx.h (NAME(aout,squirt_out_relocs)): Don't do anything if
6584 section->orelocation is NULL.
6585
6586 * coffgen.c (bfd_coff_get_syment): New function.
6587 (bfd_coff_get_auxent): New function.
6588 * bfd-in.h (bfd_coff_get_syment): Declare.
6589 (bfd_coff_get_auxent): Declare.
6590 * bfd-in2.h: Rebuild.
6591
6592 Mon Apr 15 19:06:59 1996 Ian Lance Taylor <ian@cygnus.com>
6593
6594 * elf32-mips.c (struct mips_hi16): Define.
6595 (mips_hi16_addr, mips_hi16_addend): Remove.
6596 (mips_hi16_list): New static variable.
6597 (mips_elf_hi16_reloc): Maintain a list of unmatched HI16 relocs.
6598 (mips_elf_lo16_reloc): Process mips_hi16_list.
6599 (mips_elf_relocate_section): Permit an arbitrary number of HI16
6600 relocs before the associated LO16 reloc.
6601
6602 Wed Apr 10 00:23:53 1996 Ian Lance Taylor <ian@cygnus.com>
6603
6604 * versados.c (versados_scan): Check bfd_alloc return value.
6605 (versados_object_p): Check all bfd_read return values. Require
6606 that lang field be less than 10, to avoid confusion with Intel Hex
6607 files.
6608
6609 * libaout.h (WRITE_HEADERS): Write out the relocs even if there
6610 aren't any symbols.
6611 * aoutx.h (NAME(aout,swap_std_reloc_out)): Set r_index to N_ABS,
6612 not 0, for an absolute symbol.
6613 (NAME(aout,swap_ext_reloc_out)): Likewise.
6614
6615 * ihex.c (ihex_scan): Accept a length of 4 for record type 5.
6616 (ihex_write_object_contents): For a large start address, output
6617 the full 32 bit address in record type 5.
6618
6619 * ieee.c (ieee_write_byte): Change second parameter from bfd_byte
6620 to int to avoid promotion problems in prototype.
6621
6622 Tue Apr 9 11:44:21 1996 Ian Lance Taylor <ian@cygnus.com>
6623
6624 * configure.host: Use ${srcdir} when looking for picfrag.
6625
6626 * configure.host: Switch on ${libdir}, not $(libdir). From
6627 alan@spri.levels.unisa.edu.au (Alan Modra).
6628
6629 * aoutx.h (aout_link_add_symbols): Always call add_dynamic_symbols
6630 entry point, not just for DYNAMIC objects.
6631 * sunos.c (sunos_add_dynamic_symbols): Always call
6632 sunos_create_dynamic_sections. If called with a non DYNAMIC
6633 object, don't do anything else.
6634 (sunos_add_one_symbol): Don't call sunos_create_dynamic_sections.
6635
6636 Mon Apr 8 12:09:36 1996 Ian Lance Taylor <ian@cygnus.com>
6637
6638 * configure.in: Permit --enable-shared to specify a list of
6639 directories.
6640 * configure: Rebuild.
6641
6642 * configure.host: Set HLDFLAGS and SHLIB_CFLAGS for *-dec-osf*
6643 host when configuring with --enable-shard.
6644
6645 Fri Apr 5 12:24:13 1996 Ian Lance Taylor <ian@cygnus.com>
6646
6647 * config.bfd: Add i[345]86-*-freebsdelf* target; from John Polstra
6648 <jdp@polstra.com>.
6649
6650 * linker.c (link_action): For WARN_ROW/warn, use MWARN, not CYCLE,
6651 to avoid crashing in bfd_hash_replace.
6652
6653 * sysdep.h: Use #ifdef, not #if.
6654
6655 Thu Apr 4 23:32:23 1996 Ian Lance Taylor <ian@cygnus.com>
6656
6657 * config.in: Rebuild.
6658
6659 Thu Apr 4 18:49:09 1996 Fred Fish <fnf@cygnus.com>
6660
6661 * configure.in (mips-sony-bsd*): Fix typo in AC_DEFINE.
6662 (AC_CHECK_HEADERS): Check for sys/time.h
6663 (AC_HEADER_TIME): Add macro.
6664 * configure: Rebuild.
6665 * sysdep.h: Use TIME_WITH_SYS_TIME and HAVE_SYS_TIME_H
6666 to control what combination of <time> and <sys/time.h>
6667 get included.
6668
6669 Tue Apr 2 13:11:53 1996 Doug Evans <dje@canuck.cygnus.com>
6670
6671 * aoutf1.h (sunos_32_set_arch_mach): Handle M_SPARCLET.
6672 (aout_32_sunos4_write_object_contents): Likewise.
6673 * aoutx.h (NAME(aout,machine_type)): Handle
6674 bfd_mach_sparc_{sparclet,sparclite}.
6675 * archures.c (bfd_mach_sparc_{sparclet,sparclite}): Define.
6676 (bfd_mach_sparc_v9_p): Update.
6677 * cpu-sparc.c (arch_info_struct): Add entries for sparclet,sparclite.
6678 * libaout.h (enum machine_type): Add M_SPARCLET.
6679 * sunos.c (MACHTYPE_OK): Define.
6680 * bfd-in2.h: Regenerated.
6681
6682 Tue Apr 2 00:33:18 1996 Ian Lance Taylor <ian@cygnus.com>
6683
6684 * elf-bfd.h (struct elf_link_hash_table): Add hgot field.
6685 * elf.c (_bfd_elf_link_hash_table_init): Initialize hgot field.
6686 * elflink.c (_bfd_elf_create_got_section): Store the
6687 _GLOBAL_OFFSET_TABLE_ hash table entry in the hgot field.
6688 * elf32-sparc.c (elf32_sparc_check_relocs): If the size of the
6689 global offset table goes over 0x1000, set the value of
6690 _GLOBAL_OFFSET_TABLE_ to 0x1000 into the section.
6691 (elf32_sparc_relocate_section): Subtract the offset of
6692 _GLOBAL_OFFSET_TABLE_ when handling GOT relocations.
6693
6694 * elfcode.h: Don't include <string.h>.
6695
6696 Mon Apr 1 10:39:24 1996 Jeffrey A Law (law@cygnus.com)
6697
6698 * linker.c (_bfd_generic_link_hash_newfunc): Renamed from
6699 generic_link_hash_newfunc. All references changed.
6700 * genlink.h (_bfd_generic_link_hash_newfunc): Declaration
6701 moved here from libbfd-in.h.
6702 * libbfd-in.h: Corresponding changes.
6703 * libbfd.h: Regenerated.
6704
6705 Mon Apr 1 12:35:36 1996 Ian Lance Taylor <ian@cygnus.com>
6706
6707 * aoutx.h (aout_link_input_section_std): When reporting an
6708 overflow error, use the name of the symbol in the hash table if
6709 available.
6710 (aout_link_input_section_ext): Likewise.
6711
6712 * elflink.h (elf_adjust_dynamic_symbol): If a common symbol got
6713 defined in a regular file, set ELF_LINK_HASH_DEF_REGULAR.
6714
6715 Sun Mar 31 01:58:41 1996 steve chamberlain <sac@slash.cygnus.com>
6716
6717 * peicode.h (coff_swap_aouthdr_out): Delete test for .junk.
6718 * coffcode.h (coff_compute_section_file_positions): Likewise.
6719 (coff_write_object_contents): Likewise.
6720
6721 Fri Mar 29 12:44:36 1996 Ian Lance Taylor <ian@cygnus.com>
6722
6723 * section.c (SEC_LINK_ONCE): Define.
6724 (SEC_LINK_DUPLICATES): Define.
6725 (SEC_LINK_DUPLICATES_DISCARD): Define.
6726 (SEC_LINK_DUPLICATES_ONE_ONLY): Define.
6727 (SEC_LINK_DUPLICATES_SAME_SIZE): Define.
6728 (SEC_LINK_DUPLICATES_SAME_CONTENTS): Define.
6729 * bfd-in2.h: Rebuild.
6730 * coffcode.h (sec_to_styp_flags): If COFF_WITH_PE, turn
6731 SEC_LINK_ONCE into IMAGE_SCN_LNK_COMDAT.
6732 (styp_to_sec_flags): If COFF_WITH_PE, turn IMAGE_SCN_LNK_REMOVE
6733 into SEC_EXCLUDE. If IMAGE_SCN_LNK_COMDAT is set, set
6734 SEC_LINK_ONCE, and look through the symbol table for the setting
6735 for SEC_LINK_DUPLICATES.
6736 (coff_write_object_contents): If COFF_WITH_PE, if SEC_LINK_ONCE is
6737 set for a section, find the section symbol in the symbol table,
6738 and set the aux entry based on SEC_LINK_DUPLICATES.
6739 * coffgen.c (coff_print_symbol): Add a space before "checksum".
6740 * coff-arm.c (armcoff_big_vec): If COFF_WITH_PE is defined, add
6741 SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags.
6742 * coff-i386.c (i386coff_vec): Likewise.
6743 * coff-ppc.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Likewise.
6744
6745 * VERSION: Bump to 2.6.1.
6746 * Makefile.in (stamp-h): Depend upon VERSION.
6747
6748 Thu Mar 28 23:48:49 1996 Jeffrey A Law (law@cygnus.com)
6749
6750 * libbfd-in.h (generic_link_hash_newfunc): Add declaration.
6751 * libbfd.h: Rebuilt.
6752 * linker.c (generic_link_hash_newfunc): No longer static.
6753 * coffcode.h (coff_bfd_link_hash_create): Allow specific targets
6754 to override.
6755 * coff-h8300.c: Add two derived hash tables and their associated
6756 funtions and #defines for use by the h8300 linker.
6757 (h8300_reloc16_extra_cases, case R_MEM_INDIRECT): Create entries in
6758 the function vector as needed. Place the address of the function
6759 vector entry in the location specified by the R_MEM_INDIRECT reloc.
6760 Rewrite the vectors section contents as necessary.
6761 (h8300_bfd_link_add_symbols): New function for the h8300 linker.
6762 (coff_bfd_link_add_symbols): Define to use h8300 specific version.
6763 (coff_bfd_link_hash_table_create): Likewise.
6764
6765 Thu Mar 28 17:44:08 1996 Ian Lance Taylor <ian@cygnus.com>
6766
6767 * libhppa.h: If gcc 2.7 or higher, declare all the functions with
6768 __attribute__ ((__unused__)) so that -Wall doesn't warn about
6769 them.
6770 (hppa_rebuild_insn): Pass pointer to correct type to
6771 low_sign_unext and dis_assemble_21.
6772
6773 Thu Mar 28 11:00:36 1996 Doug Evans <dje@canuck.cygnus.com>
6774
6775 * config.bfd (sparc64-{sysv4*,solaris2*}): Delete.
6776 Stick with sparc-*-{sysv4*,solaris2*}.
6777
6778 Wed Mar 27 10:43:34 1996 Ian Lance Taylor <ian@cygnus.com>
6779
6780 * peicode.h (coff_swap_aux_in): Swap in extra PE x_scn fields.
6781 (coff_swap_aux_out): Swap out extra PE x_scn fields.
6782 * coffswap.h (coff_swap_aux_in): Zero out extra PE x_scn fields.
6783 * coffgen.c (coff_print_symbol): If any of the extra PE x_scn
6784 fields is non-zero, print them.
6785
6786 * coff-ppc.c (ppc_record_toc_entry): Put inside COFF_IMAGE_WITH_PE
6787 ifdef. Remove unused variables.
6788 (ppc_record_data_in_toc_entry): Ifdef out. Removed unused
6789 variables.
6790 (ppc_mark_symbol_as_glue): Put inside COFF_IMAGE_WITH_PE ifdef.
6791 (get_symbol_value): Ifdef out.
6792 (pe_ppc_reloc): Ifdef out. Remove unused variables.
6793 (coff_ppc_relocate_section): Remove unused variables. Make
6794 fprintf strings and argument types correspond. Put before_addr in
6795 DEBUG_RELOC ifdef.
6796 (dump_toc): Make fprintf strings and argument types correspond.
6797 (ppc_process_before_allocation): Remove unused variables. Always
6798 return a value.
6799 (ppc_reflo_reloc): Ifdef out.
6800 (ppc_addr32nb_reloc): Ifdef out.
6801 (ppc_coff_rtype2howto): Make fprintf strings and argument types
6802 correspond.
6803 (coff_ppc_rtype_to_howto): Likewise.
6804 (ppc_coff_swap_sym_in_hook): Remove unused variables.
6805
6806 * peicode.h (pe_print_idata): Move otherwise unused variables into
6807 the #ifdef where they are used. Always return a value.
6808 (pe_print_edata): Make fprintf strings and argument types
6809 correspond. Always return a value.
6810 (pe_print_pdata): Removed unused variable addr_value. Always
6811 return a value.
6812 (pe_print_reloc): Remove unused variable onaline. Make fprintf
6813 strings and argument types correspond. Always return a value.
6814
6815 * elf32-ppc.c (ppc_elf_fake_sections): Return true.
6816 (ppc_elf_finish_dynamic_symbol): Move definition of unused
6817 variable rela inside #if 0 section where it is used.
6818
6819 * ns32k.h: New file.
6820 * cpu-ns32k.h: Include ns32k.h. Rename externally visible
6821 functions to start with _bfd_.
6822 * aout-ns32k.c: Include ns32k.h. Change references to renamed
6823 functions in cpu-ns32k.h.
6824 * Makefile.in: Rebuild dependencies.
6825 (HFILES): Add ns32k.h.
6826
6827 * section.c (struct sec): Add linker_mark field. Change
6828 user_set_vma and reloc_done to be single bit fields.
6829 (STD_SECTION): Update accordingly.
6830 * bfd-in2.h: Rebuild.
6831 * aoutx.h (NAME(aout,final_link)): Mark sections included in the
6832 link.
6833 (aout_link_input_bfd): Don't link unmarked sections.
6834 * cofflink.c (_bfd_coff_final_link): Mark sections included in the
6835 link.
6836 (_bfd_coff_link_input_bfd): Don't link unmarked sections.
6837 * coff-ppc.c (ppc_bfd_coff_final_link): Mark sections included in
6838 the link.
6839 * elflink.h (elf_bfd_final_link): Mark sections included in the
6840 link.
6841 (elf_link_input_bfd): Don't link unmarked sections.
6842 * xcofflink.c (_bfd_xcoff_bfd_final_link): Mark sections included
6843 in the link.
6844 (xcoff_link_input_bfd): Don't link unmarked sections.
6845
6846 * coffswap.h (coff_swap_scnhdr_out): Include section name in
6847 overflow error messages.
6848
6849 Tue Mar 26 15:46:18 1996 Ian Lance Taylor <ian@cygnus.com>
6850
6851 * bfd.c (_bfd_default_error_handler): If _bfd_error_program_name
6852 is not set, print "BFD: " before the error message.
6853
6854 * configure.in: Use AC_CHECK_TOOL to find ar and ranlib. From
6855 Miles Bader <miles@gnu.ai.mit.edu>.
6856 * configure: Rebuild.
6857
6858 Fri Mar 22 12:17:00 1996 Ian Lance Taylor <ian@cygnus.com>
6859
6860 * xcofflink.c (xcoff_link_input_bfd): Fix scan for C_BINCL/C_EINCL
6861 symbols.
6862
6863 * config.bfd: Add ieee_vec to targ_selvecs for i960 targets and
6864 m68k-aout, m68k-coff, and m68k-elf targets.
6865
6866 Fri Mar 22 11:33:44 1996 Martin Anantharaman <martin@goofy.imech.uni-duisburg.de>
6867
6868 * ieee.c: Changed #ifdef KEEPMINUSPCININST to #if KEEPMINUSPCININST.
6869 (ieee_generic_stat_arch_elt): Restructured to prevent
6870 ieee_object_p from being called repeatedly.
6871
6872 Thu Mar 21 11:00:47 1996 steve chamberlain <sac@slash.cygnus.com>
6873
6874 * coffcode.h (coff_write_object_contents): Allocate
6875 buffers large enough for any FILEHDR or AOUTHDR.
6876
6877 Thu Mar 21 16:28:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
6878
6879 * ecofflink.c (lookup_line): New static function, renamed and
6880 slighly changed from old _bfd_ecoff_locate_line.
6881 (_bfd_ecoff_locate_line): Cache line number information. Use
6882 lookup_line for actual lookup.
6883
6884 Thu Mar 21 14:59:11 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6885
6886 * peicode.h (pe_print_pdata): Warn if the .pdata section is not a
6887 multiple of 20 bytes.
6888
6889 Thu Mar 21 13:54:40 1996 Ian Lance Taylor <ian@cygnus.com>
6890
6891 * ecoff.c (_bfd_ecoff_find_nearest_line): Use bfd_zalloc to
6892 allocate ecoff_find_line, and don't initialize by hand.
6893 * elf32-mips.c (mips_elf_find_nearest_line): Use bfd_zalloc for
6894 mips_elf_find_line, and don't call memset.
6895
6896 * coffcode.h (coff_compute_section_file_positions): If not
6897 producing a final executable, don't consider sofar when aligning
6898 the section to the correct size.
6899
6900 Wed Mar 20 16:53:12 1996 Ian Lance Taylor <ian@cygnus.com>
6901
6902 * coffcode.h (coff_add_missing_symbols): Ifdef out.
6903 (coff_write_object_contents): Don't call coff_add_missing_symbols.
6904 * coffgen.c (coff_section_symbol): Ifdef out.
6905
6906 Mon Mar 18 12:54:41 1996 Ian Lance Taylor <ian@cygnus.com>
6907
6908 * elf32-mips.c (mips_elf_gprel32_reloc): Initialize gp if
6909 output_bfd is not NULL.
6910
6911 Thu Mar 14 17:12:06 1996 Doug Evans <dje@charmed.cygnus.com>
6912
6913 * coffgen.c (coff_get_normalized_symtab): Call bfd_zalloc instead
6914 of bfd_alloc (fixes fix_line not being initialized).
6915 Delete zeroing of fix_{value,tag,end,scnlen} fields.
6916
6917 Thu Mar 14 16:06:06 1996 Jeffrey A Law (law@cygnus.com)
6918
6919 * coffcode.h: Allow specific backends to override the
6920 bfd_link_add_symbols routine.
6921
6922 * coff-h8300.c: Include genlink.h.
6923 (howto_table): Add R_MEM_INDIRECT.
6924 (rtype2howto): Support R_MEM_INDIRECT.
6925 (h8300_reloc16_extra_cases): Handle R_MEM_INDIRECT like R_RELBYTE
6926 for now.
6927
6928 Tue Mar 12 12:41:17 1996 David Mosberger-Tang <davidm@koala.azstarnet.com>
6929
6930 * coff-alpha.c (alpha_relocate_section): Use
6931 info->callbacks_warning, rather than _bfd_error_handler, for
6932 "multiple gp" warning.
6933
6934 Tue Mar 12 12:10:55 1996 Ian Lance Taylor <ian@cygnus.com>
6935
6936 * linker.c (bfd_wrapped_link_hash_lookup): New function.
6937 (_bfd_generic_link_add_one_symbol): Remove BFD_ASSERT on hash
6938 table string. Use bfd_wrapped_link_hash_lookup.
6939 (_bfd_generic_link_write_global_symbol): Remove BFD_ASSERT on hash
6940 table string.
6941 * aoutx.h (aout_link_write_symbols): Use the name from the hash
6942 table, if any, when writing out symbols.
6943 (aout_link_input_section_std): Use the name from the hash table,
6944 if any, when reporting undefined symbols.
6945 (aout_link_input_section_ext): Likewise.
6946 (aout_link_reloc_link_order): Use bfd_wrapped_link_hash_lookup.
6947 * bout.c (get_value): Likewise.
6948 * cofflink.c (_bfd_coff_reloc_link_order): Likewise.
6949 * ecoff.c (ecoff_reloc_link_order): Likewise.
6950 * elflink.h (elf_link_add_object_symbols): Likewise.
6951 (elf_reloc_link_order): Likewise.
6952 * linker.c (_bfd_generic_link_output_symbols): Likewise.
6953 (_bfd_generic_reloc_link_order): Likewise.
6954 (default_indirect_link_order): Likewise.
6955 * reloc16.c (bfd_coff_reloc16_get_value): Likewise.
6956 * sunos.c (sunos_add_one_symbol): Likewise.
6957 * xcofflink.c (xcoff_link_add_symbols): Likewise.
6958 (bfd_xcoff_link_count_reloc): Likewise.
6959 (xcoff_reloc_link_order): Likewise.
6960
6961 * ecoffswap.h (ecoff_swap_fdr_in): If ECOFF_64, turn 0xffffffff
6962 into -1 for intern->rss.
6963
6964 * configure: Rebuild with autoconf 2.8.
6965
6966 Mon Mar 11 12:28:31 1996 Ian Lance Taylor <ian@cygnus.com>
6967
6968 * stab-syms.c (__define_stab_duplicate): Define.
6969 (bfd_get_stab_name): Rename from aout_stab_name. Rewrite to use a
6970 switch.
6971 * bfd-in.h (bfd_get_stab_name): Declare.
6972 * bfd-in2.h: Rebuild.
6973 * Makefile.in: Rebuild dependencies.
6974 (BFD_LIBS): Add stab-syms.o.
6975 (BFD_LIBS_CFILES): Add stab-syms.c.
6976 (BFD32_BACKENDS): Remove stab-syms.o.
6977 (BFD32_BACKENDS_CFILES): Remove stab-syms.c.
6978 * configure.in: Don't list stab-syms.o in bfd_backends.
6979 * configure: Rebuild.
6980 * libaout.h (aout_stab_name): Don't declare.
6981 * aoutx.h (NAME(aout,get_symbol_info)): Call bfd_get_stab_name,
6982 not aout_stab_name.
6983
6984 Fri Mar 8 11:26:20 1996 Ian Lance Taylor <ian@cygnus.com>
6985
6986 * elf.c (assign_file_positions_for_segments): Adjust file offset
6987 for section alignment even if SEC_LOAD is not set.
6988
6989 Tue Mar 5 12:02:23 1996 Ian Lance Taylor <ian@cygnus.com>
6990
6991 * configure.in: Don't set SHLIB or SHLINK to an empty string,
6992 since they appear as targets in Makefile.in.
6993 * configure: Rebuild.
6994
6995 * sunos.c (sunos_scan_ext_relocs): If not making a shared library,
6996 don't fiddle with a symbol which is not defined anywhere.
6997
6998 Mon Mar 4 12:49:16 1996 Ian Lance Taylor <ian@cygnus.com>
6999
7000 * xcofflink.c (xcoff_mark): Treat undefined imported symbols as
7001 though they are defined in a shared library.
7002 (xcoff_build_ldsyms): Likewise.
7003
7004 * coffgen.c (coff_find_nearest_line): Don't look at the line
7005 numbers for the section if section->lineno is NULL.
7006
7007 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Print a useful error
7008 message rather than calling BFD_ASSERT.
7009 * elfcode.h (write_relocs): Check return value of
7010 _bfd_elf_symbol_from_bfd_symbol.
7011
7012 Fri Mar 1 09:42:59 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7013
7014 * elf32-ppc.c (ppc_elf_add_symbol_hook): Don't set SEC_LOAD flag
7015 for .sbss section.
7016
7017 Wed Feb 28 11:25:47 1996 Jeffrey A Law (law@cygnus.com)
7018
7019 * libhppa.h (hppa_reloc_field_selector_type): Add R_HPPA_NLSEL
7020 and R_HPPA_NLRSEL.
7021 (e_nsel, e_nlsel, e_nlrsel): Undefine. Add to
7022 hppa_reloc_field_selector_type_alt.
7023 (hppa_field_adjust): Handle e_nlsel, e_nlrsel. Fix e_nsel handling.
7024 * som.c (hppa_som_gen_reloc_type): Handle N', NL' NLR' field
7025 selectors.
7026 (som_write_fixups): Finish handling of R_N0SEL and R_N1SEL.
7027
7028 Wed Feb 28 11:00:24 1996 Ian Lance Taylor <ian@cygnus.com>
7029
7030 * elf.c (assign_file_positions_for_segments): Adjust the segment
7031 memory size for the alignment of a SEC_ALLOC section, not just a
7032 SEC_LOAD section.
7033
7034 Tue Feb 27 14:17:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7035
7036 * m68klinux.c: New file.
7037 * hosts/m68klinux.h: New file.
7038 * config.bfd (m68*-*-linuxaout*, m68*-*-linux*): New targets.
7039 * configure.in (m68*-*-linux*): New native host.
7040 (m68klinux_vec): New vector.
7041 * configure: Rebuild.
7042 * targets.c (m68klinux_vec): Declare.
7043 * i386linux.c (bfd_i386linux_size_dynamic_sections): Renamed from
7044 bfd_linux_size_dynmic_sections to avoid clash with m68klinux.c.
7045 * bfd-in.h (bfd_i386linux_size_dynamic_sections): Rename
7046 declaration from bfd_linux_size_dynamic_sections.
7047 (bfd_m68klinux_size_dynamic_sections): Declare.
7048 * bfd-in2.h: Rebuild.
7049 * Makefile.in: Rebuild dependencies.
7050 (BFD32_BACKENDS): Add m68klinux.o.
7051 (BFD32_BACKENDS_CFILES): Add m68klinux.c.
7052
7053 Tue Feb 27 11:31:34 1996 Jeffrey A Law (law@cygnus.com)
7054
7055 * libhppa.h (pa_arch): Add pa20.
7056 (hppa_reloc_field_selector_type): Add R_HPPA_NSEL.
7057 (e_nsel): Undefine. Add to hppa_reloc_field_selector_type_alt.
7058 (hppa_field_adjust): Handle e_nsel.
7059 * som.c: Provide default definitions for many new relocs found only
7060 in hpux10 include files.
7061 (som_fixup_formats): Add several new relocs from hpux10.
7062 (som_hppa_howto_table): Add hpux10 relocs.
7063 (som_write_fixups): Handle R_N0SEL and R_N1SEL hpux10 relocs.
7064
7065 Mon Feb 26 12:52:48 1996 Stan Shebs <shebs@andros.cygnus.com>
7066
7067 * mpw-make.sed: Edit out recent shared library support, and
7068 rules to rebuild .h files using doc/chew.
7069
7070 Mon Feb 26 14:48:39 1996 David Mosberger-Tang <davidm@AZStarNet.com>
7071
7072 * ecoff.c (ecoff_compute_section_file_positions): Adjust the file
7073 size even of sections with no contents.
7074
7075 Mon Feb 26 14:01:13 1996 Ian Lance Taylor <ian@cygnus.com>
7076
7077 * cofflink.c (_bfd_coff_link_input_bfd): When merging, skip names
7078 starting with '$' the way we skip names starting with '.'. When
7079 updating x_endndx, don't be fooled by an index which has been
7080 merged.
7081
7082 * cofflink.c (_bfd_coff_link_input_bfd): Don't try to optimize a
7083 struct/union/enum type with no elements.
7084
7085 Sat Feb 24 11:38:58 1996 Ian Lance Taylor <ian@cygnus.com>
7086
7087 * bfd.c (bfd_errmsg): Handle a NULL return from strerror.
7088
7089 * archive.c (bfd_generic_archive_p): If the first file in the
7090 archive can not be recognized as an object, don't assume that this
7091 is the wrong format.
7092
7093 * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
7094 format is not bfd_object.
7095 (bfd_elf_get_dt_soname): Likewise.
7096
7097 Wed Feb 21 13:58:04 1996 Ian Lance Taylor <ian@cygnus.com>
7098
7099 * coff-sh.c (sh_relax_delete_bytes): Correct range of R_SH_USES
7100 reloc.
7101
7102 Tue Feb 20 16:22:44 1996 J.T. Conklin <jtc@rtl.cygnus.com>
7103
7104 * bfd.c (tdata): Add netbsd_core_data.
7105 * bfd-in2.h: Regenerated.
7106
7107 Tue Feb 20 16:50:02 1996 Ian Lance Taylor <ian@cygnus.com>
7108
7109 * sunos.c (SUNOS_CONSTRUCTOR): Define.
7110 (sunos_add_one_symbol): Don't let a symbol from a dynamic object
7111 override a constructor symbol. Set SUNOS_CONSTRUCTOR when
7112 appropriate.
7113
7114 * bout.c (b_out_squirt_out_relocs): Use udata.i rather than flags
7115 to get the symbol index, matching 14 Jul 95 change.
7116
7117 Tue Feb 20 08:26:27 1996 Fred Fish <fnf@phydeaux.cygnus.com>
7118
7119 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
7120 Remove duplicate definition of gp.
7121
7122 Mon Feb 19 12:37:41 1996 Ian Lance Taylor <ian@cygnus.com>
7123
7124 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Don't
7125 assume that we can set the GP value and then get the same value,
7126 since it won't be true if the output file is neither ELF nor
7127 ECOFF.
7128 * coff-mips.c (mips_adjust_reloc_in): Don't bother to use
7129 _bfd_get_gp_value here.
7130 (mips_gprel_reloc): Don't assume we can set and get the GP value.
7131 * elf32-mips.c (mips_elf_hi16_reloc): Get gp value from
7132 mips_elf_final_gp.
7133 (mips_elf_lo16_reloc): Likewise.
7134 (mips_elf_final_gp): Add pgp parameter. Set it to the GP value.
7135 Don't require that the BFD be ELF.
7136 (mips_elf_gprel16_reloc): Get gp value from mips_elf_final_gp.
7137 (mips_elf_gprel32_reloc): Likewise.
7138 (mips_elf_relocate_section): Don't assume we can set and get the
7139 GP value.
7140 (mips_elf_finish_dynamic_symbol): Don't bother to use
7141 _bfd_get_gp_value here.
7142
7143 * elf32-mips.c (mips_elf_create_procedure_table): Initialize sv.
7144 Don't change epdr between malloc and free. Be careful not to free
7145 NULL pointers. Zero out the first RPDR.
7146
7147 * configure.host: On Linux, only pass -rpath option if $(libdir)
7148 is neither /lib nor /usr/lib. From Alan Modra
7149 <alan@mullet.Levels.UniSA.Edu.Au>.
7150
7151 * elf-bfd.h (struct elf_obj_tdata): Rename dt_needed_name to
7152 dt_name.
7153 (elf_dt_name): Rename from elf_dt_needed_name.
7154 * elf.c (bfd_elf_set_dt_needed_name): Use elf_dt_name, not
7155 elf_dt_needed_name.
7156 (bfd_elf_get_dt_soname): New function.
7157 * elflink.h (elf_link_add_object_symbols): Use elf_dt_name, not
7158 elf_dt_needed_name. Save the SONAME back in elf_dt_name.
7159 * bfd-in.h (bfd_elf_get_dt_soname): Declare.
7160 * bfd-in2.h: Rebuild.
7161
7162 Mon Feb 19 02:50:23 1996 Doug Evans <dje@charmed.cygnus.com>
7163
7164 * elf32-sparc.c (elf32_sparc_reloc_type_lookup): Renamed from
7165 _bfd_sparc_elf_reloc_type_lookup.
7166 (bfd_elf32_bfd_reloc_type_lookup): Update.
7167 * elf64-sparc.c (SPARC64_OLD_RELOCS): Define.
7168 (sparc64_elf_howto_table): Define.
7169 (sparc_reloc_map): Define.
7170 (sparc64_elf_reloc_type_lookup): New function.
7171 (sparc_elf_wdisp16_reloc): New function.
7172 (elf_info_to_howto): Use sparc64_elf_howto_table.
7173 (sparc64_elf_relocate_section): Likewise.
7174 (bfd_elf64_bfd_reloc_type_lookup): Update.
7175
7176 Sun Feb 18 15:02:25 1996 Ian Lance Taylor <ian@cygnus.com>
7177
7178 * configure.host: Check for 'do not mix' from native linker before
7179 trying to use -rpath.
7180
7181 Fri Feb 16 12:46:18 1996 Ian Lance Taylor <ian@cygnus.com>
7182
7183 * bfd.c (_bfd_get_gp_value): New function.
7184 (_bfd_set_gp_value): New function.
7185 * libbfd-in.h (_bfd_get_gp_value): Declare.
7186 (_bfd_set_gp_value): Declare.
7187 * libbfd.h: Rebuild.
7188 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
7189 _bfd_get_gp_value and _bfd_set_gp_value rather than referring
7190 directly to the fields in the tdata information.
7191 (alpha_relocate_section): Likewise.
7192 * coff-mips.c (mips_adjust_reloc_in): Likewise.
7193 (mips_gprel_reloc): Likewise.
7194 (mips_relocate_section): Likewise.
7195 * elf32-mips.c (mips_elf_hi16_reloc): Likewise.
7196 (mips_elf_lo16_reloc): Likewise.
7197 (mips_elf_final_gp): Likewise.
7198 (mips_elf_gprel16_reloc): Likewise.
7199 (mips_elf_gprel32_reloc): Likewise.
7200 (mips_elf_relocate_section): Likewise.
7201 (mips_elf_finish_dynamic_symbol): Likewise.
7202
7203 * bout.c (b_out_set_arch_mach): Recognize bfd_mach_i960_jx.
7204
7205 Thu Feb 15 11:29:13 1996 Ian Lance Taylor <ian@cygnus.com>
7206
7207 * configure.in: Call AC_PROG_CC before configure.host.
7208 * configure: Rebuild.
7209 * configure.host: Don't set information which autoconf should
7210 figure out, namely CC, CFLAGS, LDFLAGS, AR, and RANLIB.
7211
7212 * configure.host: Remove go32 and win32 host information, since it
7213 should no longer be needed.
7214
7215 * elf.c (map_sections_to_segments): If we have a .dynamic section,
7216 then start a new segment rather than put a writable section in a
7217 readonly segment.
7218
7219 * configure.host: Set RPATH_ENVVAR.
7220
7221 * Makefile.in: Rebuild dependencies.
7222
7223 * elflink.c (_bfd_elf_create_linker_section): Remove unused
7224 zero_section variable.
7225
7226 Thu Feb 15 10:39:17 1996 H.J. Lu <hjl@zoom.com>
7227
7228 * Makefile.in ($(srcdir)/bfd-in2.h): Rename target from bfd-in2.h.
7229 ($(srcdir)/libbfd.h): Rename from libbfd.h.
7230 ($(srcdir)/libcoff.h): Rename from libcoff.h.
7231
7232 Wed Feb 14 16:29:07 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
7233
7234 * ieee.c (ieee_write_expression): Only use an R variable for a
7235 local symbol. Don't output a zero offset. Handle a zero address.
7236 (SRC_MASK, PCREL_OFFSET): Define based on KEEPMINUSPCININST.
7237 (rel32_howto, rel16_howto, rel8_howto): Use SRC_MASK and
7238 PCREL_OFFSET.
7239 (parse_expression): Don't try to handle multiple occurrences of a
7240 P variable. Handle I variables differently from X variables. Fix
7241 the order of minus expressions.
7242 (ieee_slurp_external_symbols): Generate an I variable for an NN
7243 record. Fix handling of ATI and ATX records.
7244 (ieee_slurp_sections): Only set minimal section attributes.
7245 Adjust them later, based on the section contents.
7246 (ieee_object_p): Read in the file until just after the ME record.
7247 Call ieee_slurp_section_data to set the section flags.
7248 (do_one): Add iterations parameter. Only repeat the first load
7249 item. Set the section and file reloc flags.
7250 (ieee_slurp_section_data): Set section flags. Pass iterations to
7251 do_one.
7252 (ieee_canonicalize_reloc): Handle I variables.
7253 (do_with_relocs): Only emit relocation size when necessary.
7254 Increase MAXRUN to 127. Change ov to be assigned, and take
7255 src_mask and pcrel_offset into account.
7256 (ieee_write_data_part): Skip sections that are not loaded.
7257 (ieee_write_external_part): Don't output optional last entry of WX
7258 records.
7259 (ieee_write_me_part): Make setting of me_record neater.
7260 (ieee_generic_stat_arch_elt): Get the size of an archive element.
7261
7262 * syms.c (stt): Add entries for zerovars, vars, and code.
7263
7264 * elfcode.h (validate_reloc): New static function.
7265 (write_relocs): Call validate_reloc for non ELF relocs.
7266
7267 * elfxx-target.h (elf_symbol_leading_char): Define if not defined.
7268 (TARGET_BIG_SYM): Use elf_symbol_leading_char.
7269 (TARGET_LITTLE_SYM): Likewise.
7270
7271 * config.bfd (m68*-*-psos*): New target.
7272
7273 Tue Feb 13 15:56:22 1996 Bryan Ford <baford@snake.cs.utah.edu>
7274
7275 * i386msdos.c: Remove some #if 0 code.
7276 (msdos_write_object_contents): Don't include empty sections in the
7277 size computation, regardless of their address.
7278
7279 Tue Feb 13 15:36:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7280
7281 * elf32-ppc.c (ppc_elf_relocate_section): Don't segfault if dynboj
7282 is NULL, ie, the -r switch is used.
7283
7284 Tue Feb 13 14:35:15 1996 Ian Lance Taylor <ian@cygnus.com>
7285
7286 * reloc.c (BFD_RELOC_MIPS_GOT_HI16): Define.
7287 (BFD_RELOC_MIPS_GOT_LO16): Define.
7288 (BFD_RELOC_MIPS_CALL_HI16, BFD_RELOC_MIPS_CALL_LO16): Define.
7289 * bfd-in2.h, libbfd.h: Rebuild.
7290 * elf32-mips.c (mips_reloc_map): Map new relocs.
7291
7292 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
7293
7294 * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not
7295 $(SHLINK).
7296
7297 * ieee.c (get_symbol): Set the section to bfd_abs_section.
7298 (do_with_relocs): If EXEC_P is set and there are no relocs, use a
7299 simple number for the section address, rather than an expression.
7300 Limit the number of bytes between relocs to MAXRUN.
7301 (ieee_write_me_part): Set me_record to the file offset after the
7302 start address.
7303 (ieee_write_processor): New static function.
7304 (ieee_write_object_contents): Use ieee_write_processor.
7305
7306 Fri Feb 9 10:53:00 1996 Ian Lance Taylor <ian@cygnus.com>
7307
7308 * configure.host: Use ${CC-gcc} when testing for -rpath on SunOS.
7309
7310 * coff-aux.c: Change include of aux.h to aux-coff.h.
7311
7312 Thu Feb 8 14:01:03 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7313
7314 * elf32-m68k.c (elf_m68k_relocate_section): For a R_68K_RELATIVE
7315 relocation put the addend both in the reloc entry and the data.
7316 (elf_m68k_finish_dynamic_symbol): Likewise. Mask out marker in
7317 GOT offset value.
7318
7319 * elf32-m68k.c (elf_m68k_relocate_section): If -Bsymbolic, resolve
7320 a R_68K_PCxx reloc against a defined global symbol directly.
7321 (elf_m68k_check_relocs): Don't count such a reloc.
7322
7323 * elf32-m68k.c (elf_m68k_check_relocs): Don't record a symbol with
7324 a PLTxx reloc as dynamic. Disallow PLTxxO reloc against a local
7325 symbol for now, otherwise always record the symbol as dynamic.
7326 (elf_m68k_adjust_dynamic_symbol): If a symbol with a PLTxx reloc
7327 is not referenced by a dynamic object, and we are not making a
7328 shared object, then don't make a PLT entry. If we do make a PLT
7329 entry, make sure the symbol has been recorded as dynamic.
7330
7331 Wed Feb 7 13:56:06 1996 Ian Lance Taylor <ian@cygnus.com>
7332
7333 * configure.host: When making a shared library, set HLDFLAGS to
7334 pass an appropriate -rpath option. Use the make variable SONAME
7335 as the shared library soname, rather than computing it here. On
7336 SunOS, build stamp-tshlink in place of $(SHLINK).
7337 * Makefile.in (SONAME): New variable.
7338 ($(SHLINK)): Make a link to the transformed name, as well.
7339 (stamp-tshlink): New target.
7340 (install): Skip stamp-tshlink during install.
7341
7342 Wed Feb 7 13:37:39 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7343
7344 * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not assume that the
7345 linker sections have been set up yet.
7346
7347 * elf.c (make_mapping): Add an additional argument to suppress
7348 making the first section include the program headers.
7349 (map_sections_to_segments): If the user used -Ttext such that the
7350 program headers are on a different page, do not set the flags
7351 saying that this section includes the program headers.
7352
7353 Tue Feb 6 14:04:49 1996 J.T. Conklin <jtc@rtl.cygnus.com>
7354
7355 * configure.in (*-*-netbsd*): Set COREFILE to netbsd-core.c.
7356 don't define TRAD_HEADER.
7357 * configure: Rebuild.
7358
7359 * netbsd-core.c: New file, support for NetBSD core files.
7360 * hosts/*nbsd.h: Removed.
7361
7362 Tue Feb 6 11:47:49 1996 Doug Evans <dje@charmed.cygnus.com>
7363
7364 * reloc.c (BFD_RELOC_SPARC_[567]): New reloc types.
7365 (BFD_RELOC_SPARC_LO7 reloc type): Deleted.
7366 * libbfd.h, bfd-in2.h: Regenerated.
7367 * elf32-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Renamed from
7368 bfd_elf32_bfd_reloc_type_lookup.
7369 (reloc_type{,_names}): Deleted.
7370 (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
7371 Add sparc64 relocs.
7372 (sparc_reloc_map): Add sparc64 relocs.
7373 (sparc_elf_notsupported_reloc): New static function.
7374 (sparc_elf_wdisp16_reloc): New static function.
7375 (elf32_sparc_check_relocs): Handle R_SPARC_WDISP{16,19}.
7376 (elf32_sparc_relocate_section): Likewise.
7377 (bfd_elf32_bfd_reloc_type_lookup): Define.
7378 * elf64-sparc.c (sparc64_elf_wdisp16_reloc): Deleted.
7379 (reloc_type{,_names}): Deleted.
7380 (elf_sparc_howto_table): Deleted.
7381 (sparc_reloc_map): Deleted.
7382 (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
7383 (bfd_elf64_bfd_reloc_type_lookup): Change from function to #define.
7384
7385 Tue Feb 6 12:12:22 1996 Ian Lance Taylor <ian@cygnus.com>
7386
7387 * configure.host: Make SHLIB_CFLAGS include $(PICFLAG) on a
7388 *-*-hpux* host.
7389
7390 * Makefile.in (program_transform_name): New variable.
7391 (install): Transform library name before installing it.
7392
7393 Mon Feb 5 10:38:27 1996 Ian Lance Taylor <ian@cygnus.com>
7394
7395 * archures.c (bfd_mach_i960_hx): Define.
7396 * bfd-in2.h: Rebuild.
7397 * cpu-i960.c (scan_960_mach): Accept machine "hx".
7398 (MATRIX): Expand entries for HX.
7399 (arch_info_struct): Add i960:hx entry.
7400 * bout.c (b_out_set_arch_mach): Handle bfd_mach_i960_hx.
7401 * coffcode.h (coff_set_arch_mach_hook): Handle F_I960HX.
7402 (coff_set_flags): Handle bfd_mach_i960_hx.
7403
7404 Support for building as a shared library, based on patches from
7405 Alan Modra <alan@spri.levels.unisa.edu.au>:
7406 * configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib.
7407 New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC,
7408 SHLIB_CFLAGS, COMMON_SHLIB, PICLIST, SHLINK.
7409 * configure: Rebuild.
7410 * configure.host: If --enable-shared, adjust shared library stuff
7411 based on the host. If the host is SunOS, and the linker supports
7412 -rpath, set HLDFLAGS to use it.
7413 * Makefile.in (ALLLIBS): New variable.
7414 (PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables.
7415 (COMMON_SHLIB, SHLINK): New variables.
7416 (.c.o): If PICFLAG is set, compile twice, once PIC, once normal.
7417 (STAGESTUFF): Remove variable.
7418 (all): Depend upon $(ALLLIBS) and @PICLIST@ rather than
7419 $(TARGETLIB).
7420 (stamp-ofiles): New target, like old ofiles target, but build
7421 using a temporary file and move-if-change, and touch stamp-ofiles
7422 when done.
7423 (ofiles): Just depend upon stamp-ofiles.
7424 (stamp-piclist, piclist): New targets.
7425 ($(SHLIB), $(SHLINK)): New targets.
7426 (targets.o, archures.o): Build twice if PICFLAG is set.
7427 (do_mostlyclean): Remove pic/*.o.
7428 (do_clean): Remove stamp-ofiles, $(SHLIB), $(SHLINK), piclist, and
7429 stamp-piclist.
7430 (do_distclean): Remove pic and stamp-picdir.
7431 (install): Install shared libraries.
7432 ($(OFILES)): Depend upon stamp-picdir.
7433 (stamp-picdir): New target.
7434
7435 * libcoff-in.h: Add comment reminding people that libcoff.h is a
7436 generated file.
7437 * libcoff.h: Rebuild.
7438
7439 * elflink.h (elf_adjust_dynamic_symbol): Don't try to get the
7440 flavour of a section with no owner.
7441
7442 * elf32-mips.c (mips_elf_create_dynamic_sections): Clear
7443 ELF_LINK_NON_ELF flag.
7444 (mips_elf_create_got_section): Likewise.
7445
7446 * elf.c: Revert last change, since it breaks dynamic linking.
7447 * elf-bfd.h (struct elf_backend_data): Remove want_hdr_in_seg
7448 field.
7449 * elf32-mips.c (elf_backend_want_hdr_in_seg): Don't define.
7450 * elfxx-target.h (elf_backend_want_hdr_in_seg): Don't define.
7451 (elfNN_bed): Don't initialize want_hdr_in_seg field.
7452
7453 Sun Feb 4 20:45:13 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7454
7455 * elf.c (assign_file_positions_for_segments): If the backend does
7456 not want the elf header or the program headers in the address
7457 space, do not include them in the calculations.
7458
7459 * elf32-ppc.c (ppc_elf_additional_program_headers): New hook
7460 function to determine if we need additional program headers.
7461 (ppc_elf_modify_segment_map): Define as a NOP function for now.
7462 (ppc_elf_create_linker_section): .sdata2 is a read-only section.
7463
7464 Sat Feb 3 23:00:03 1996 Ian Lance Taylor <ian@cygnus.com>
7465
7466 * coffcode.h: Move today's libcoff.h change into coffcode.h.
7467
7468 Sat Feb 3 15:43:44 1996 Fred Fish <fnf@cygnus.com>
7469
7470 * libcoff.h (bfd_coff_link_add_one_symbol): Combine macro args
7471 back into one line. Some compilers (sunos 4.1.3 for example)
7472 won't accept args split across more than one line.
7473
7474 Fri Feb 2 11:42:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
7475
7476 * aclocal.m4 (BFD_BINARY_FOPEN): Understand cygwin32.
7477 * configure: Regenerate.
7478
7479 Fri Feb 2 12:12:16 1996 Jeffrey A Law (law@cygnus.com)
7480
7481 * elf32-hppa.c (elf32_hppa_backend_symbol_table_processing): Don't
7482 try to do arithmetic on a void *, cast it to a unsigned char * first.
7483
7484 Thu Feb 1 16:04:06 1996 Ian Lance Taylor <ian@cygnus.com>
7485
7486 * elf-bfd.h (ELF_LINK_NON_ELF): Define.
7487 * elf.c (_bfd_elf_link_hash_newfunc): Set elf_link_hash_flags to
7488 ELF_LINK_NON_ELF.
7489 * elflink.h (elf_link_add_object_symbols): Reset ELF_LINK_NON_ELF
7490 flag for a newly defined symbol.
7491 (NAME(bfd_elf,record_link_assignment)): Likewise.
7492 (elf_adjust_dynamic_symbol): If ELF_LINK_NON_ELF is set, try to
7493 set the DEF or REF_REGULAR flags correctly.
7494
7495 * Makefile.in (bfd-in2.h): Make bfd.h, not protos, in docdir.
7496 (libbfd.h, libcoff.h): Corresponding change.
7497
7498 * elf32-i386.c (elf_i386_check_relocs): Don't record a symbol with
7499 a PLT32 reloc as dynamic.
7500 (elf_i386_adjust_dynamic_symbol): If a symbol with a PLT32 reloc
7501 is not referenced by a dynamic object, and we are not making a
7502 shared object, then don't make a PLT entry. If we do make a PLT
7503 entry, make sure the symbol has been recorded as dynamic.
7504
7505 Wed Jan 31 17:23:32 1996 Steve Chamberlain <sac@slash.cygnus.com>
7506
7507 * coff-i386.c (coff_i386_reloc_type_lookup): Add BFD_RELOC_32_PCREL.
7508 * config.bfd (i[345]86-*-win32): Becomes i[345]86-*-cygwin32.
7509 (powerpcle-*-cygwin32): New.
7510 * peicode.h (add_data_entry): Get address from vma.
7511
7512 Wed Jan 31 16:23:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7513
7514 * elflink.c (_bfd_elf_create_linker_section): If the symbol
7515 attached to the section has already been created as an undefined
7516 symbol, treat it as if it hasn't been created yet.
7517
7518 Wed Jan 31 16:16:53 1996 Ian Lance Taylor <ian@cygnus.com>
7519
7520 * elflink.h (elf_bfd_final_link): Don't output initial dummy
7521 symbol or section symbols if stripping all symbols and this is not
7522 a relocateable link. Don't output the symbol string table if
7523 there are no symbols.
7524 (elf_link_flush_output_syms): Don't do anything if there are no
7525 symbols to flush.
7526
7527 Wed Jan 31 12:55:49 1996 Richard Henderson <rth@tamu.edu>
7528
7529 * coff-aux.c: New file.
7530 * hosts/m68kaux.h: New file.
7531 * config.bfd (m68*-apple-aux*): New target.
7532 * configure.in (m68*-apple-aux*): New native host.
7533 (m68kaux_coff_vec): New vector.
7534 * configure: Rebuild.
7535 * targets.c (m68kaux_coff_vec): Declare.
7536 * coffcode.h (bfd_coff_backend_data): Add field
7537 _bfd_coff_link_add_one_symbol.
7538 (bfd_coff_link_add_one_symbol): Define.
7539 (compare_arelent_ptr): New static function if TARG_AUX.
7540 (coff_write_relocs): If TARG_AUX, sort the relocs.
7541 (coff_write_object_contents): Set A/UX aouthdr magic number.
7542 (coff_link_add_one_symbol): Define if not defined.
7543 (bfd_coff_std_swap_table): Initialize new field.
7544 * libcoff.h: Rebuild.
7545 * cofflink.c (coff_link_add_symbols): Call
7546 bfd_coff_link_add_one_symbol rather than
7547 _bfd_generic_link_add_one_symbol.
7548 * coff-m68k.c (COFF_PAGE_SIZE): Don't define if already defined.
7549 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
7550 * coff-mips.c (mips_ecoff_backend_data): Likewise.
7551 * Makefile.in: Rebuild dependencies.
7552 (BFD32_BACKENDS): Add coff-aux.o.
7553 (BFD32_BACKENDS_CFILES): Add coff-aux.c.
7554
7555 Wed Jan 31 11:37:46 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7556
7557 * elf32-m68k.c (elf_m68k_relocate_section): Fix R_68K_GOT*
7558 relocation; ignore addend with R_68K_{GOT,PLT}*O relocation.
7559
7560 Tue Jan 30 12:09:04 1996 Ian Lance Taylor <ian@cygnus.com>
7561
7562 * Makefile.in (do_maintainer_clean): Remove $(srcdir)/bfd-in2.h,
7563 $(srcdir)/libbfd.h and $(srcdir)/libcoff.h.
7564 (maintainer-clean): Warn about deleting special files.
7565 (bfd-in2.h, libbfd.h, libcoff.h): New targets.
7566
7567 * elf32-hppa.c (elf32_hppa_relocate_section): Handle indirect and
7568 warning symbols correctly.
7569 * elf32-i386.c (elf_i386_relocate_section): Likewise.
7570 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
7571 * elf32-mips.c (mips_elf_relocate_section): Likewise.
7572 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
7573 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7574 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7575
7576 * syms.c (_bfd_stab_section_find_nearest_line): Add casts to avoid
7577 warnings.
7578
7579 Mon Jan 29 14:27:24 1996 Kim Knuttila <krk@cygnus.com>
7580
7581 * libcoff-in.h: aligned newly exported names with bfd naming
7582 conventions. Removed an erroneous define of POWERPC_LE_PE.
7583 * libcoff.h: Rebuild.
7584 * cofflink.c, coff-ppc.c: the above function name changes
7585
7586 Mon Jan 29 13:06:28 1996 Ian Lance Taylor <ian@cygnus.com>
7587
7588 From Basim Kadhim <kadhim@spock.cs.colorado.edu>:
7589 * ecoff.c (struct extsym_info): Define.
7590 (_bfd_ecoff_bfd_final_link): Pass a pointer to struct extsym_info
7591 to ecoff_link_write_external.
7592 (ecoff_link_write_external): Accept a struct extsym_info pointer.
7593 Strip symbols when appropriate.
7594
7595 Based on patches from Ronald F. Guilmette <rfg@monkeys.com>:
7596 * syms.c (BSF_OBJECT): Define.
7597 (bfd_print_symbol_vandf): Print 'O' for BSF_OBJECT.
7598 * bfd-in2.h: Rebuild.
7599 * elfcode.h (elf_slurp_symbol_table): Set BSF_OBJECT for an
7600 STT_OBJECT symbol.
7601 * elf.c (swap_out_syms): Only set type to STT_OBJECT if BSF_OBJECT
7602 is set.
7603
7604 * elf32-i386.c (elf_i386_relocate_section): If -Bsymbolic, when
7605 copying relocs into a shared object, treat a defined global symbol
7606 as a local symbol.
7607 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
7608 * elf32-mips.c (mips_elf_relocate_section): Likewise.
7609 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7610
7611 * elflink.h (elf_link_add_object_symbols): Only set weakdef to a
7612 real defined symbol, not to a weak defined symbol.
7613
7614 Mon Jan 29 11:34:36 1996 Kim Knuttila <krk@cygnus.com>
7615
7616 * cofflink.c: removed the POWERPC_LE_PE hack, promoted some types
7617 and made a few static functions externs.
7618
7619 * coff-ppc.c (ppc_bfd_coff_final_link): new function, replaces the
7620 POWERPC_LE_PE hack in cofflink.
7621
7622 * libcoff-in.h: promoted the following from cofflink.c to allow
7623 _bfd_coff_final_link to be overridden - STRING_SIZE_SIZE,
7624 coff_debug_merge_element, struct coff_debug_merge_type,
7625 coff_debug_merge_hash_entry, coff_debug_merge_hash_table,
7626 coff_debug_merge_hash_table_init, coff_debug_merge_hash_table_free,
7627 coff_debug_merge_hash_lookup, coff_link_section_info,
7628 coff_final_link_info, coff_debug_merge_hash_newfunc,
7629 coff_write_global_sym, coff_link_input_bfd, coff_reloc_link_order.
7630
7631 * libcoff.h: re-gen'd
7632
7633 Fri Jan 26 18:33:35 1996 Ian Lance Taylor <ian@cygnus.com>
7634
7635 * syms.c: Include "bfdlink.h".
7636 (struct stab_find_info): Define.
7637 (_bfd_stab_section_find_nearest_line): New function.
7638 * libbfd-in.h (_bfd_stab_section_find_nearest_line): Declare.
7639 * libbfd.h: Rebuild.
7640 * elf-bfd.h (struct elf_obj_tdata): Add line_info field.
7641 * elf.c (_bfd_elf_find_nearest_line): Try calling
7642 _bfd_stab_section_find_nearest_line before searching the ELF
7643 symbol table. Find the closest STT_FUNC symbol, not the last one.
7644 * libcoff-in.h (coff_data_type): Add line_info field.
7645 * libcoff.h: Rebuild.
7646 * coffgen.c (coff_find_nearest_line): Try calling
7647 _bfd_stab_section_find_nearest_line before searching the COFF
7648 symbol table.
7649 * Makefile.in: Rebuild dependencies.
7650
7651 Fri Jan 26 16:11:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7652
7653 * elf32-ppc.c (R_PPC_EMB_SDA21 relocations): Make relocation size
7654 4 bytes, so we get the correct value when updating the register
7655 field in little endian mode.
7656
7657 Thu Jan 25 12:14:16 1996 Ian Lance Taylor <ian@cygnus.com>
7658
7659 * libcoff-in.h (struct xcoff_tdata): Remove toc_section and
7660 entry_section fields. Add sntoc and snentry fields.
7661 * libcoff.h: Rebuild.
7662 * coffcode.h (coff_mkobject_hook): Initialize sntoc and snentry,
7663 not toc_section and entry_section (the COFF file does not have any
7664 sections at this point).
7665 (coff_write_object_contents): Set o_snentry and o_sntoc from
7666 snentry and sntoc rather than entry_section and toc_section.
7667 * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy sntoc and
7668 snentry, not toc_section and entry_section.
7669 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't set
7670 entry_section from hentry.
7671 (xcoff_link_input_bfd): If a defined symbol has XCOFF_ENTRY set,
7672 set snenty.
7673 (xcoff_link_input_bfd): Set sntoc, not toc_section.
7674 (xcoff_write_global_symbol): Get toc_section from sntoc, rather
7675 than using toc_section directly.
7676
7677 * archures.c: Add missing `.' in enum bfd_architecture.
7678 * bfd-in2.h: Rebuild.
7679
7680 * config.bfd (i[345]86-*-sco*elf*): Use bfd_elf32_i386_vec. From
7681 Robert Lipe <robertl@arnet.com>.
7682
7683 Thu Jan 25 12:08:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7684
7685 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Add .rela.sdata{,2}
7686 to sections we allocate. Use bfd_zalloc to allocate initialial
7687 sections, not bfd_alloc.
7688 (ppc_elf_check_relocs): Remove BFD_ASSERTs for !shared from
7689 SDA{,2}I16 relocations.
7690 (ppc_elf_add_symbol_hook): Use the value of -G nn to determine
7691 whether to put something in .sbss or not.
7692 (ppc_elf_relocate_section): Add support for more relocations. Add
7693 in sec->output_offset where appropriate. Make error messages
7694 include the symbol name.
7695
7696 * elflink.c (_bfd_elf_create_linker_section): Lookup symbol before
7697 trying to add it to the symbol table, so _GLOBAL_OFFSET_TABLE_
7698 doesn't get redefined messages if -shared.
7699
7700 * elflink.h (elf_create_pointer_linker_section) Only bump RELA
7701 section if the rel_section field has been set up.
7702
7703 Wed Jan 24 20:40:26 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7704
7705 * elf32-ppc.c (ppc_elf_relocate_section): Fix typo in eabi
7706 relocations.
7707
7708 Wed Jan 24 10:38:34 1996 Doug Evans <dje@charmed.cygnus.com>
7709
7710 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Delete checking
7711 of flags, only flags used are controlled by mach number. Bump up
7712 output file mach number to highest of input file mach numbers.
7713 (elf32_sparc_object_p): Watch for EF_SPARC_SUN_US1.
7714 (elf32_sparc_final_write_processing): Set EF_SPARC_SUN_US1 if v8plusa.
7715
7716 * config.bfd (sparc64-*-{sysv4*,solaris2*}): Comment out
7717 bfd_elf64_sparc_vec support.
7718
7719 Tue Jan 23 14:33:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7720
7721 * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Don't complain if
7722 the embedded bit is set on some objects and not on others. Just
7723 or it together.
7724 (ppc_elf_relocate_section): Implement R_PPC_EMB_{SDA21,RELSDA}
7725 relocations.
7726
7727 Tue Jan 23 14:22:45 1996 Ian Lance Taylor <ian@cygnus.com>
7728
7729 * coffcode.h (coff_new_section_hook): Don't try to align the
7730 .stabstr section.
7731
7732 * coffcode.h (coff_set_section_contents): Fix the handling of the
7733 .lib section to work even if the entire section contents are
7734 written at once. From Gvran Uddeborg <gvran@uddeborg.pp.se> and
7735 Robert Lipe <robertl@arnet.com>.
7736
7737 Mon Jan 22 18:45:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7738
7739 * elflink.h (elf_finish_pointer_linker_section): Don't allocate
7740 memory here for contents.
7741
7742 * elf32-ppc.c (ppc_elf_relocate_section): Bump up _SDA_BASE_ and
7743 _SDA2_BASE_ by 32768.
7744 (ppc_elf_size_dynamic_sections): #if out PLT code which we haven't
7745 started using. Allocate contents for .sdata and .sdata2 sections
7746 also.
7747 (ppc_elf_check_relocs): Use bfd_get_section_name in debug message,
7748 rather than _name.
7749 (ppc_elf_finish_dynamic_symbol): Remove code that attempted to
7750 size _SDA{,2}_BASE_.
7751 (ppc_elf_relocate_section): Change how sdata{,2} relocations are
7752 done.
7753
7754 Mon Jan 22 08:52:04 1996 Doug Evans <dje@charmed.cygnus.com>
7755
7756 * elflink.h (elf_finish_pointer_linker_section): Fix typo.
7757
7758 * archures.c (bfd_mach_sparc_v9): Renamed from bfd_mach_sparc64.
7759 (bfd_mach_sparc_{v8plus,v8plusa}): Define.
7760 (bfd_mach_sparc_v9a): Define.
7761 (bfd_mach_sparc_v9_p): Define.
7762 * bfd-in2.h: Regenerated.
7763 * aoutx.h (aout,machine_type): bfd_mach_sparc64 renamed to
7764 bfd_mach_sparc_v9.
7765 * elf64-sparc.c (sparc64_elf_object_p): Likewise.
7766 * config.bfd (sparc64-*-sysv4*,sparc64-*-solaris2*): Set targ_defvec
7767 to bfd_elf32_sparc_vec.
7768 * cpu-sparc.c (arch_info_struct): Renamed from sparc_arch_info.
7769 Add v8plus{,a} support.
7770 Add v9a support.
7771 (sparc_compatible): New function.
7772 * elf32-sparc.h: #include "elf/sparc.h".
7773 (elf32_sparc_merge_private_bfd_data, elf32_sparc_object_p,
7774 elf32_sparc_final_write_processing): New functions.
7775 (bfd_elf32_bfd_merge_private_bfd_data, elf_backend_object_p,
7776 elf_backend_final_write_processing): Define.
7777
7778 Mon Jan 22 11:21:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7779
7780 * elf-bfd.h (struct elf_link_hash_entry): Add
7781 linker_section_pointer field.
7782 (enum elf_linker_section_enum): Enumeration for new way of
7783 creating linker dynamic sections and symbols.
7784 (elf_linker_section{,_pointers}): New structures for creating
7785 dynamic sections and symbols.
7786 (elf_obj_tdata): Add linker_section_pointers and linker_section
7787 fields.
7788 (elf_local_ptr_offsets,elf_linker_section): New accessor macros.
7789 (_bfd_elf_create_linker_section): New declarations.
7790 (_bfd_elf_find_pointer_linker_section): Ditto.
7791 (bfd_elf{32,64}_{create,finish}_pointer_linker_section): Ditto.
7792 (_bfd_elf_make_linker_section_rela): Ditto.
7793
7794 * elf.c (_bfd_elf_link_hash_newfunc): Initialize new fields.
7795
7796 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Delete.
7797 (ppc_elf_create_linker_section): New function to create the
7798 sections .got, .sdata, and .sdata2.
7799 (ppc_elf_size_dynamic_sections): Zap .rela.{sdata,sdata2} if
7800 needed.
7801 (ppc_elf_check_relocs): Support more of the eabi relocations.
7802 (ppc_elf_relocate_section): Ditto.
7803 (ppc_elf_finish_dynamic_symbols): Adjust _SDA{,2}_BASE_ by 32768
7804 if the .sdata{,2} + .sbss{,2} section size is > 32k.
7805
7806 * elflink.h (elf_create_pointer_linker_section): New function to
7807 create initialized pointers in dynamic linker sections.
7808 (elf_finish_pointer_linker_section): Actually intialize the
7809 pointers created above.
7810
7811 * elfcode.h (bfd_elf{32,64}_create_pointer_linker_section): New
7812 macros to provide both 32 and 64 bit versions of
7813 elf_create_pointer_linker_section.
7814 (bfd_elf{32,64}_finish_pointer_linker_section): New macros to
7815 provide both 32 and 64 bit versions of
7816 elf_finish_pointer_linker_section.
7817
7818 * elflink.c (_bfd_elf_create_linker_section): New function to
7819 create a linker section.
7820 (_bfd_elf_find_pointer_linker_section): Find a unique pointer to a
7821 given address in the linker pointer offsets created for a given
7822 symbol.
7823 (_bfd_elf_make_linker_section_rela): Make a RELA section
7824 corresponding to the generated linker section.
7825
7826 Sat Jan 20 08:36:10 1996 Doug Evans <dje@canuck.cygnus.com>
7827
7828 * elf32-sparc.c (ELF_MACHINE_ALT1): Define.
7829
7830 Thu Jan 18 18:25:34 1996 Kim Knuttila <krk@cygnus.com>
7831
7832 * coff-ppc.c (coff_ppc_relocate_section): changed TOCDEFN relocs.
7833 (coff_ppc_relocate_section): Handle special values for gcc built dlls.
7834 (dump_toc): fix diagnosing code to identify out-of-toc-bounds entries.
7835 Also begin the toc at 4 as an eye catcher ('31313131' marks the first
7836 toc entry in an objdump) for now.
7837 (ppc_do_last, ppc_get_last): New function - needed to save processing
7838 the toc owner to the end.
7839 (ppc_coff_swap_sym_in_hook): Removed an incorrect hack for doing the
7840 toc owner last.
7841
7842 * cofflink.c (_bfd_coff_final_link): Added a new hack to keep the
7843 toc owner from being done till last. Must define POWERPC_LE_PC
7844 to enable it.
7845
7846 * coffcode.h (coff_set_alignment_hook): alignment setting for .stab
7847
7848 * peicode.h (coff_swap_scnhdr_out): set section flags for stab/str
7849 to INFO.
7850 (coff_swap_aouthdr_out): Removed a non-working hack for computing the
7851 SizeOfImage for PowerPC. Ignore the size of the .junk section.
7852
7853 Thu Jan 18 17:42:12 1996 Ian Lance Taylor <ian@cygnus.com>
7854
7855 * elfcore.h: Include <signal.h> before <sys/procfs.h>.
7856
7857 Wed Jan 17 12:40:14 1996 Ian Lance Taylor <ian@cygnus.com>
7858
7859 * cpu-powerpc.c (arch_info_struct): Change last entry to not point
7860 back to first.
7861 (bfd_powerpc_arch): Point at first entry in arch_info_struct.
7862
7863 Tue Jan 16 15:10:49 1996 Ian Lance Taylor <ian@cygnus.com>
7864
7865 * elf.c (assign_file_positions_for_segments): Don't increment file
7866 offset for a segment which contains no loadable sections.
7867
7868 Mon Jan 15 17:46:27 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7869
7870 * reloc.c: Add new PowerPC relocations.
7871 * {bfd-in2,libbfd}.h: Regenerate.
7872
7873 * elf32-ppc.c (ppc_elf_howto_raw): Add more PPC relocations.
7874 (ppc_elf_reloc_type_lookup): Lookup new relocations.
7875
7876 Mon Jan 15 14:29:44 1996 Ian Lance Taylor <ian@cygnus.com>
7877
7878 * aoutx.h (howto_table_ext): Fix RELOC_BASE10 and RELOC_BASE22
7879 entries.
7880
7881 * sunos.c (sunos_scan_ext_relocs): Don't fail assert if
7882 info->shared.
7883
7884 * coffgen.c (coff_find_nearest_line): Don't try to cache
7885 information in sections that are not owned by a BFD. From Richard
7886 Henderson <richard@atheist.tamu.edu>.
7887
7888 * elf32-mips.c: Numerous changes to dynamic linking code, mostly
7889 from Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>.
7890 * elflink.h (elf_link_output_extsym): Remove special check for
7891 _rld_new_interface.
7892
7893 * ecoffswap.h: Add prototypes for static functions.
7894
7895 Sun Jan 14 21:36:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7896
7897 * elf32-ppc.c (ppc_elf_{unsupported,std}_reloc): Remove functions.
7898 (ppc_elf_howto_raw): Remove ppc_elf_{unsupported,std}_reloc
7899 references.
7900 (ppc_elf_relocate_section): No longer allow .sdata/.sbss sections
7901 to satisfy a TOC16 relocation. Rewrite unsupported relocation
7902 support. Begin support for R_PPC_SDA{2,}REL.
7903
7904 Sat Jan 13 09:36:52 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7905
7906 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New function to
7907 create the .got and .got.neg sections.
7908 (ppc_elf_size_dynamic_sections): Call it.
7909 (ppc_elf_check_relocs): Call it.
7910 (ppc_elf_size_dynamic_sections): Support .got.neg, just like .got.
7911 (ppc_elf_check_relocs): Add error messages for relocations we
7912 don't yet support. Do not include R_PPC_SDAREL16 like a GOT
7913 relocation.
7914
7915 Fri Jan 12 15:27:59 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7916
7917 * elf32-ppc.c (ppc_elf_fake_sections): Define, and handle the new
7918 section flags for V.4 and eabi.
7919
7920 Fri Jan 12 13:59:16 1996 Ian Lance Taylor <ian@cygnus.com>
7921
7922 * elf.c (assign_file_positions_for_segments): If a segment
7923 contains no sections, don't mark it as readable.
7924
7925 * elf-bfd.h (_bfd_elf_section_from_bfd_section): Declare.
7926 * elfcode.h (_bfd_elf_section_from_bfd_section): Don't declare.
7927
7928 * elf.c (_bfd_elf_print_private_bfd_data): Dump contents of
7929 dynamic section, if there is one.
7930 * elf-bfd.h (struct elf_size_info): Add swap_dyn_in field.
7931 (bfd_elf32_swap_dyn_in): Change type of second parameter to PTR.
7932 (bfd_elf64_swap_dyn_in): Likewise.
7933 * elfcode.h (elf_swap_dyn_in): Change type of second parameter to
7934 PTR.
7935 (NAME(_bfd_elf,size_info)): Initialize swap_dyn_in field.
7936
7937 * elf32-i386.c (elf_i386_size_dynamic_sections): Don't create a
7938 DT_TEXTREL entry because of .rel.plt. From Martin Pirker
7939 <pirker@eiunix.tuwien.ac.at>.
7940
7941 Thu Jan 11 17:06:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7942
7943 * section.c (SEC_{EXCLUDE,SORT_ENTRIES}): New section flags for
7944 PowerPC V.4 and eabi.
7945 * bfd-in2.h: Regenerate.
7946 * libfd.h: Regenerate.
7947
7948 * elfxx-target.h (TARGET_{BIG,LITTLE}_SYM): Add new flags.
7949
7950 * elf32-ppc.c (ppc_elf_section_from_shdr): Support SHT_ORDERED
7951 section type and SHF_EXCLUDE section flag, turning them into the
7952 appropriate bfd section flag.
7953
7954 Thu Jan 11 11:23:30 1996 Ian Lance Taylor <ian@cygnus.com>
7955
7956 * xcofflink.c (xcoff_link_add_symbols): Create the special
7957 sections if we see a DYNAMIC object, in case that is the only
7958 XCOFF input object we see.
7959
7960 * elf32-mips.c: Extensive changes for a start at dynamic linking
7961 support, from Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>.
7962
7963 * elf-bfd.h (struct elf_backend_data): Add type_change_ok field.
7964 (struct elf_backend_data): Remove
7965 elf_backend_create_program_headers field. Add
7966 elf_backend_additional_program_headers and
7967 elf_backend_modify_segment_map fields.
7968 * elfxx-target.h (elf_backend_type_change_ok): Define if not
7969 defined.
7970 (elf_backend_additional_program_headers): Likewise.
7971 (elf_backend_modify_segment_map): Likewise.
7972 (elf_backend_create_program_headers): Don't define.
7973 (elfNN_bed): Change to account for field changes.
7974 * elf.c (assign_file_positions_for_segments): Call new
7975 modify_segment_map backend function. Don't call old
7976 create_program_headers backend function.
7977 (get_program_header_size): Call additional_program_headers rather
7978 than create_program_headers.
7979 * elflink.h (elf_link_add_object_symbols): Initialize
7980 type_change_ok from new backend field.
7981 (elf_link_output_extsym): Don't warn if _rld_new_interface is
7982 defined.
7983 (elf_reloc_link_order): Treat a reloc against a defined symbol as
7984 a reloc against the appropriate section.
7985
7986 * elf-bfd.h (struct bfd_elf_section_data): Add tdata field.
7987 (struct elf_obj_tdata): Rename ppc_flags_init field to flags_init.
7988 (elf_flags_init): Rename from elf_ppc_flags_init.
7989 * elf32-ppc.c (ppc_elf_set_private_flags): Use elf_flags_init, not
7990 elf_ppc_flags_init.
7991 (ppc_elf_copy_private_bfd_data): Likewise.
7992 (ppc_elf_merge_private_bfd_data): Likewise.
7993
7994 * elf32-m68k.c (howto_table): Change src_mask to 0 for all
7995 relocation entries.
7996
7997 Tue Jan 9 15:22:53 1996 David Mosberger-Tang <davidm@azstarnet.com>
7998
7999 * coff-alpha.c (alpha_relocate_section): During final link, allow
8000 output .lita section to be bigger than 64k by adjusting gp value
8001 on a per-input section basis.
8002 * libecoff.h (struct ecoff_tdata): Add issued_multiple_gp_warning
8003 field.
8004 (struct ecoff_section_tdata): Add gp field.
8005
8006 Tue Jan 9 12:00:36 1996 Ian Lance Taylor <ian@cygnus.com>
8007
8008 Handle Alpha ECOFF changes in OSF/1 3.2.
8009 * libecoff.h (struct ecoff_backend_data): Add get_elt_at_filepos
8010 field.
8011 * coff-alpha.c: Include "aout/ar.h".
8012 (alpha_ecoff_get_relocated_section_contents): Don't require an
8013 ALPHA_R_IGNORE reloc after an ALPHA_R_GPDISP reloc, since OSF/1
8014 3.2 doesn't generate one.
8015 (alpha_relocate_section): Likewise.
8016 (alpha_ecoff_slurp_armap): Define.
8017 (alpha_ecoff_slurp_extended_name_table): Define.
8018 (alpha_ecoff_construct_extended_name_table): Define.
8019 (alpha_ecoff_truncate_arname): Define.
8020 (alpha_ecoff_write_armap): Define.
8021 (alpha_ecoff_generic_stat_arch_elt): Define.
8022 (alpha_ecoff_update_armap_timestamp): Define.
8023 (ARFZMAG): Define.
8024 (alpha_ecoff_read_ar_hdr): New static function.
8025 (alpha_ecoff_get_elt_at_filepos): New static function.
8026 (alpha_ecoff_openr_next_archived_file): New static function.
8027 (alpha_ecoff_get_elt_at_index): New static function.
8028 (alpha_ecoff_backend_data): Initialize get_elt_at_filepos field.
8029 (ecoffalpha_little_vec): Change BFD_JUMP_TABLE_ARCHIVE from
8030 _bfd_ecoff to alpha_ecoff.
8031 * ecoff.c (ecoff_link_add_archive_symbols): Use get_elt_at_filepos
8032 field from backend structure, rather than always calling
8033 _bfd_get_elt_at_filepos.
8034 * coff-mips.c (mips_ecoff_backend_data): Initialize
8035 get_elt_at_filepos field.
8036 * archive.c (_bfd_generic_read_ar_hdr_mag): New function, copied
8037 from _bfd_generic_read_ar_hdr with minor changes.
8038 (_bfd_generic_read_ar_hdr): Use _bfd_generic_read_ar_hdr_mag.
8039 * libbfd-in.h (_bfd_generic_read_ar_hdr_mag): Declare.
8040 * libbfd.h: Rebuild.
8041
8042 * bfd-in.h (BFD_IN_MEMORY): Define.
8043 * libbfd-in.h (struct bfd_in_memory): Define.
8044 * libbfd.c (bfd_read): Handle BFD_IN_MEMORY flag.
8045 (bfd_get_file_window): Don't try to map a BFD_IN_MEMORY file.
8046 (bfd_write, bfd_stat): Abort if BFD_IN_MEMORY is set.
8047 (bfd_tell, bfd_flush, bfd_seek): Handle BFD_IN_MEMORY flag.
8048 * bfd.c (struct _bfd): Change iostream field from char * to PTR.
8049 (bfd_get_size): Handle BFD_IN_MEMORY flag.
8050 * cache.c (bfd_cache_close): Ignore BFD_IN_MEMORY files.
8051 (bfd_open_file): Cast to PTR, not char *, when setting iostream.
8052 (bfd_cache_lookup_worker): Abort if BFD_IN_MEMORY is set.
8053 * opncls.c (bfd_fdopenr): Cast to PTR, not char *, when setting
8054 iostream.
8055 (bfd_openstreamr): Likewise.
8056 * aoutx.h (NAME(aout,some_aout_object_p)): Only fstat iostream if
8057 BFD_IN_MEMORY is not set.
8058 * riscix.c (riscix_some_aout_object_p): Likewise.
8059 * bfd-in2.h, libbfd.h: Rebuild.
8060
8061 * targets.c (bfd_target): Add _bfd_get_elt_at_index field.
8062 (BFD_JUMP_TABLE_ARCHIVE): Add _get_elt_at_index.
8063 (bfd_get_elt_at_index): Define.
8064 * archive.c (_bfd_generic_get_elt_at_index): Rename from
8065 bfd_get_elt_at_index. Change index parameter from int to
8066 symindex.
8067 * libbfd-in.h (_bfd_generic_get_elt_at_index): Declare.
8068 (_bfd_noarchive_get_elt_at_index): Define.
8069 (_bfd_archive_bsd_get_elt_at_index): Define.
8070 (_bfd_archive_coff_get_elt_at_index): Define.
8071 * bfd-in2.h, libbfd.h: Rebuild.
8072 * aout-target.h (MY_get_elt_at_index): Define if not defined.
8073 * coff-rs6000.c (xcoff_get_elt_at_index): Define.
8074 * ieee.c (ieee_get_elt_at_index): Define.
8075 * libecoff.h (_bfd_ecoff_get_elt_at_index): Define.
8076 * oasys.c (oasys_get_elt_at_index): Define.
8077 * som.c (som_get_elt_at_index): Define.
8078
8079 * ecoff.c (_bfd_ecoff_find_nearest_line): Don't restrict line
8080 numbers to the .text section.
8081
8082 Mon Jan 8 17:00:57 1996 Ian Lance Taylor <ian@cygnus.com>
8083
8084 * ieee.c (ieee_write_debug_part): Change return type to boolean.
8085 If there is a SEC_DEBUGGING section, get the contents of the debug
8086 information part from it.
8087 (ieee_set_section_contents): Store the contents of a SEC_DEBUGGING
8088 section in memory.
8089 (ieee_write_object_contents): Check ieee_write_debug_part return.
8090
8091 Thu Jan 4 17:12:37 1996 Fred Fish <fnf@cygnus.com>
8092
8093 * config.bfd (i[345]86-*-freebsd*): Add target.
8094 * configure.in (i386freebsd_vec): Add vec.
8095 * configure: Regenerate.
8096 * Makefile.in (BFD32_BACKENDS): Add i386freebsd.o.
8097 (BFD32_BACKENDS_CFILES): Add i386freebsd.c.
8098 Rebuild dependencies..
8099 * freebsd.h: New file.
8100 * i386freebsd.c: New file.
8101 * targets.c (i386freebsd_vec): Declare.
8102 (bfd_target_vector): Add i386freebsd_vec.
8103 * i386linux.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
8104 * i386netbsd.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
8105
8106 Thu Jan 4 16:27:46 1996 Ian Lance Taylor <ian@cygnus.com>
8107
8108 * ieee.c (ieee_slurp_debug): New static function.
8109 (ieee_object_p): Call it.
8110 (ieee_slurp_section_data): Skip debugging sections.
8111 (ieee_get_reloc_upper_bound): Likewise.
8112 (ieee_get_section_contents): Likewise.
8113 (ieee_canonicalize_reloc): Likewise.
8114 (ieee_write_section_part): Likewise.
8115 (ieee_write_debug_part): Likewise.
8116 (ieee_write_data_part): Likewise.
8117 (init_for_output): Likewise.
8118
8119 Wed Jan 3 19:42:47 1996 Michael Meissner <meissner@wogglebug.tiac.net>
8120
8121 * elf32-ppc.c (ppc_elf_relocate_section): Make @GOT relocations
8122 work.
8123 (ppc_elf_howto_raw): Just use bfd_elf_generic_reloc for all howto
8124 relocs, since ppc_elf_relocate_section handles the linker case.
8125 (ppc_elf_{addr16_ha,got16,toc16,brtaken}_reloc): Delete, no longer
8126 used.
8127 (ppc_elf_{addr16_ha,got16,toc16,brtaken}_inner): Merge these into
8128 ppc_elf_relocate_section since that is now the only caller.
8129 (ppc_elf_relocate_section): Ditto.
8130
8131 Wed Jan 3 15:11:30 1996 Ian Lance Taylor <ian@cygnus.com>
8132
8133 * coffcode.h (coff_write_object_contents): If we don't know the
8134 section of the entry point for an XCOFF executable, always set the
8135 entry address to -1.
8136
8137 Tue Jan 2 14:17:15 1996 Michael Meissner <meissner@tiktok.cygnus.com>
8138
8139 * elf.c (bfd_section_from_shdr): Add support for note sections.
8140
8141 Tue Jan 2 13:10:25 1996 Ian Lance Taylor <ian@cygnus.com>
8142
8143 * bfd-in.h (struct _symbol_info): Add stab_type field.
8144 * bfd-in2.h: Rebuild.
8145 * aoutx.h (NAME(aout,get_symbol_info)): Set stab_type.
8146
8147 * elf32-ppc.c: Remove trailing newline from calls to
8148 _bfd_error_handler.
8149 (ppc_elf_merge_private_bfd_data): Only warn about endianness
8150 difference if target endianness is known.
8151
8152 Thu Dec 21 12:43:49 1995 Michael Meissner <meissner@tiktok.cygnus.com>
8153
8154 * elf32-ppc.c (ppc_elf_howto_raw): Add a phony reloc to handle the
8155 old style TOC16 references without using R_PPC_GOT.
8156 (ppc_reloc_type): Ditto.
8157 (ppc_elf_reloc_type_lookup): Add support for TOC16.
8158 (ppc_elf_toc16_inner): Renamed from ppc_elf_got16_inner.
8159 (ppc_elf_toc16_reloc): Renamed from ppc_elf_toc16_reloc.
8160 (ppc_elf_got16_{inner,reloc}): Stubs for real GOT support.
8161 (ppc_elf_check_relocs): New function for GOT/PLT support that is
8162 work in progress.
8163 (ppc_elf_adjust_dynamic_symbol): Ditto.
8164 (ppc_elf_adjust_dynindx): Ditto.
8165 (ppc_elf_size_dynamic_sections): Ditto.
8166 (ppc_elf_finish_dynamic_symbol): Ditto.
8167 (ppc_elf_finish_dynamic_sections): Ditto.
8168 (ELF_DYNAMIC_INTERPRETER): Define.
8169
8170 Wed Dec 20 19:14:18 1995 Ken Raeburn <raeburn@cygnus.com>
8171
8172 * elf.c (copy_private_bfd_data): When attaching sections to
8173 segments ignore sections that won't be allocated. Patch from
8174 Andreas Schwab.
8175
8176 Tue Dec 19 20:01:43 1995 Ken Raeburn <raeburn@cygnus.com>
8177
8178 * config.bfd: Match on m68k-cbm-* only if OS doesn't match
8179 anything else.
8180
8181 Tue Dec 19 16:38:59 1995 Ian Lance Taylor <ian@cygnus.com>
8182
8183 * coff-i960.c (CALC_ADDEND): Define.
8184 (coff_i960_relocate_section): Add the input section VMA to the
8185 addend for PC relative relocs.
8186
8187 Sun Dec 17 20:11:55 1995 Kim Knuttila <krk@cygnus.com>
8188
8189 * peicode.h (pe_print_pdata): Must test the entire entry for zero
8190 to correctly terminate.
8191
8192 Fri Dec 15 12:05:57 1995 Ian Lance Taylor <ian@cygnus.com>
8193
8194 * targets.c (enum bfd_endian): Define.
8195 (bfd_target): Rename byteorder_big_p to byteorder, and change it
8196 from boolean to enum bfd_endian. Change header_byteorder_big_p
8197 correspondingly.
8198 * bfd-in.h (bfd_big_endian, bfd_little_endian): New macros.
8199 (bfd_header_big_endian, bfd_header_little_endian): New macros.
8200 * bfd-in2.h: Rebuild.
8201 * All targets: Change initialization of byteorder and
8202 header_byteorder to use enum bfd_endian values rather than
8203 booleans.
8204 * All files: Change all references to byteorder_big_p and
8205 header_byteorder_big_p to use new bfd_*_endian macros.
8206
8207 * coffgen.c (make_a_section_from_file): Set lma to s_paddr, not
8208 s_vaddr.
8209 * coffcode.h (coff_write_object_contents): Set s_paddr to lma, not
8210 vma.
8211 * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
8212
8213 Fri Dec 15 07:32:09 1995 steve chamberlain <sac@slash.cygnus.com>
8214
8215 * pe[i]-i386.c (TARGET_UNDERSCORE): Define to '_'.
8216
8217 Thu Dec 14 13:45:37 1995 Ian Lance Taylor <ian@cygnus.com>
8218
8219 * ieee.c: Lots of minor cleanups. Make many functions return
8220 errors rather than calling abort. Also:
8221 (ieee_write_twobyte): Remove; change callers to call existing
8222 ieee_write_2bytes function.
8223 (ieee_write_expression): Don't output the section twice when
8224 outputting a local symbol. Don't emit an extraneous zero if there
8225 is only one term.
8226 (ieee_slurp_sections): Set the lma as well as the vma.
8227 (ieee_archive_p): Use bfd_alloc_grow rather than an obstack.
8228
8229 * ihex.c (ihex_set_arch_mach): Don't accept any architecture, just
8230 a recognized one or bfd_arch_unknown.
8231 (ihex_get_symtab_upper_bound): Define as bfd_0l, to permit objcopy
8232 to succeed.
8233 (ihex_get_symtab): Likewise.
8234
8235 Wed Dec 13 15:44:06 1995 Ian Lance Taylor <ian@cygnus.com>
8236
8237 * aoutx.h: Include <ctype.h>.
8238 (struct aout_link_includes_table): Define.
8239 (struct aout_link_includes_totals): Define.
8240 (struct aout_link_includes_entry): Define.
8241 (aout_link_includes_lookup): Define macro.
8242 (struct aout_final_link_info): Add includes field.
8243 (aout_link_includes_newfunc): New static function.
8244 (NAME(aout,final_link)): Initialize includes hash table.
8245 (aout_link_write_symbols): Eliminate duplicate N_BINCL entries.
8246
8247 Wed Dec 13 10:52:14 1995 Stan Shebs <shebs@andros.cygnus.com>
8248
8249 * mpw-config.in: Match on mips-*-* instead of mips-idt-ecoff.
8250
8251 Wed Dec 13 11:07:45 1995 Kim Knuttila <krk@cygnus.com>
8252
8253 * coff-ppc.c (coff_ppc_relocate_section): removed debugging code.
8254
8255 Tue Dec 12 17:42:06 1995 Kim Knuttila <krk@cygnus.com>
8256
8257 * peicode.h (pe_print_reloc): New function to dump the .reloc section.
8258 (pe_print_private_bfd_data): call pe_print_reloc.
8259 * coffcode.h (coff_set_alignment_hook): .reloc section alignment.
8260 * coff-ppc.c (in_reloc_p): Added missing non-eligible relocs. Spiffed
8261 up some debugging as well.
8262
8263 Tue Dec 12 11:34:23 1995 Ian Lance Taylor <ian@cygnus.com>
8264
8265 * config.bfd: Handle sparc-*-elf*. From Ronald F. Guilmette
8266 <rfg@monkeys.com>.
8267
8268 Fri Dec 8 17:47:07 1995 Ian Lance Taylor <ian@cygnus.com>
8269
8270 * elflink.h (elf_link_add_object_symbols): Set section_count to 0
8271 when setting sections to NULL.
8272
8273 Wed Dec 6 17:05:37 1995 Ian Lance Taylor <ian@cygnus.com>
8274
8275 * xcofflink.c (struct xcoff_loader_info): Add export_defineds
8276 field.
8277 (bfd_xcoff_size_dynamic_sections): Add export_defineds parameter.
8278 (xcoff_build_ldsyms): If export_defineds is set, set XCOFF_EXPORT
8279 for all symbols.
8280 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
8281 * bfd-in2.h: Rebuild.
8282
8283 Mon Dec 4 16:40:47 1995 Kim Knuttila <krk@cygnus.com>
8284
8285 * coffcode.h (coff_set_alignment_hook): Removed some debugging printf's
8286
8287 Mon Dec 4 11:25:39 1995 Ian Lance Taylor <ian@cygnus.com>
8288
8289 * ihex.c (ihex_scan): Handle record types 4 and 5.
8290 (ihex_object_p): Permit types 4 and 5.
8291 (ihex_set_section_contents): Remove check for out of range
8292 addresses.
8293 (ihex_write_object_contents): Generate types 4 and 5.
8294
8295 * elflink.h (elf_link_output_extsym): Just ignore warning and
8296 indirect references to symbols which don't really exist.
8297
8298 Sun Dec 3 19:00:27 1995 Kim Knuttila <krk@cygnus.com>
8299
8300 * peicode.h (pe_print_idata): Minor format fixes
8301 (pe_print_edata): New function. Under private printing, this formats
8302 the edata section of a PE file.
8303 (pe_print_private_bfd_data): Added call to pe_print_edata.
8304
8305 Sun Dec 3 16:46:54 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
8306
8307 * aout-arm.c (MY_swap_std_reloc_out): Use KEEPIT to get the symbol
8308 index, don't call stoi.
8309
8310 Fri Dec 1 14:46:51 1995 Ian Lance Taylor <ian@cygnus.com>
8311
8312 * srec.c (srec_scan): Set lma as well as vma.
8313
8314 * ihex.c: New file; support for Intel Hex format.
8315 * targets.c (enum bfd_flavour): Add bfd_target_ihex_flavour.
8316 (ihex_vec): Declare.
8317 (bfd_target_vector): Always include ihex_vec.
8318 * bfd.c (struct _bfd): Add ihex_data field to tdata union.
8319 * Makefile.in: Rebuild dependencies.
8320 (BFD_LIBS): Add ihex.o
8321 (BFD_LIBS_CFILES): Add ihex.c.
8322 * bfd-in2.h: Rebuild.
8323
8324 * elf.c (assign_file_positions_for_segments): Sort the sections in
8325 each segment.
8326 (get_program_header_size): Return the right size if segment_map is
8327 not NULL.
8328 (copy_private_bfd_data): Don't bother to sort the sections.
8329
8330 * bfd.c (bfd_record_phdr): New function.
8331 * bfd-in.h (bfd_record_phdr): Declare.
8332 * bfd_in2.h: Rebuild.
8333
8334 * elf32-sparc.c (elf32_sparc_relocate_section): Remove bogus
8335 BFD_ASSERT.
8336
8337 * libbfd.c (bfd_malloc, bfd_realloc): New functions.
8338 (bfd_zmalloc): Return PTR, not char *. Take size_t, not
8339 bfd_size_type.
8340 * libbfd-in.h (bfd_malloc, bfd_realloc): Declare.
8341 (bfd_zmalloc): Change declaration.
8342 * libbfd.h: Rebuild.
8343 * Many files: Use bfd_malloc and bfd_realloc rather than malloc
8344 and realloc. Don't set bfd_error_no_memory if they fail.
8345
8346 Thu Nov 30 19:32:26 1995 Kim Knuttila <krk@cygnus.com>
8347
8348 * coff-ppc.c: Added macros to tidy up toc cell treatment. Numerous
8349 uses as well. Added a new howto to deal with TOCREL16 relocs that
8350 are TOCDEFN as well.
8351 (coff_ppc_relocate_section): Expanded treatment of ADDR32NB relocs
8352 to handle RVA relocs from dlltool.
8353 (ppc_coff_rtype2howto): TOCDEFN reloc addition.
8354 (coff_ppc_rtype_to_howto): TOCDEFN reloc addition.
8355 (ppc_coff_reloc_type_lookup): TOCDEFN reloc addition.
8356
8357 * coffcode.h (coff_set_alignment_hook): check idata$X sections
8358 to get the right section alignment.
8359
8360 Thu Nov 30 16:48:18 1995 Ian Lance Taylor <ian@cygnus.com>
8361
8362 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
8363 p_paddr if p_paddr is zero.
8364 (make_mapping): Set includes_filehdr and includes_phdrs for first
8365 PT_LOAD segment.
8366 (map_sections_to_segments): Set includes_phdrs for PT_PHDR
8367 segment.
8368 (assign_file_positions_for_segments): Handle includes_filehdr and
8369 includes_phdrs. Remove special handling of PT_PHDR and first
8370 PT_LOAD segments.
8371 (copy_private_bfd_data): Set includes_filehdr and includes_phdr
8372 when appropriate. Remove special handling of PT_PHDR segment.
8373 Use a more complex condition for when a section is included in a
8374 segment to handle Solaris linker oddities.
8375
8376 Thu Nov 30 11:17:33 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
8377
8378 * coff-m88k.c (howto_table): Reformatted for easier reading;
8379 special_function now points to new function m88k_special_reloc.
8380 (howto_hvrt16): Function previously used for handling HVRT16 relocs
8381 removed.
8382 (rtype2howto): Do not add reloc's r_offset to the addend, this will
8383 be done correctly by m88k_special_reloc.
8384 (reloc_processing): New function to be used by RELOC_PROCESSING.
8385 (RELOC_PROCESSING): Define to call reloc_processing.
8386
8387 Wed Nov 29 12:42:36 1995 Ian Lance Taylor <ian@cygnus.com>
8388
8389 * peicode.h (pe_print_idata): Call malloc rather than xmalloc.
8390 (pe_print_pdata): Likewise.
8391
8392 * opncls.c (bfd_alloc_by_size_t): Set bfd_error_no_memory if
8393 obstack_alloc fails.
8394 (bfd_alloc_finish): Set bfd_error_no_memory if obstack_finish
8395 fails.
8396 * libbfd.c (bfd_zmalloc): Set bfd_error_no_memory if malloc fails.
8397 * Many files: don't set bfd_error_no_memory if one of the above
8398 routines fails.
8399
8400 * elf.c (assign_file_positions_for_segments): Don't adjust p_paddr
8401 if p_paddr_valid is set.
8402 (copy_private_bfd_data): New static function.
8403 (_bfd_elf_copy_private_section_data): Call copy_private_bfd_data.
8404
8405 * elf.c (assign_file_positions_for_segments): Fix case where extra
8406 program headers were allocated.
8407
8408 * elf.c (_bfd_elf_print_private_bfd_data): New function.
8409 * elf-bfd.h (_bfd_elf_print_private_bfd_data): Declare.
8410 * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define to
8411 _bfd_elf_print_private_bfd_data.
8412
8413 * coff-alpha.c (alpha_ecoff_swap_reloc_in): Don't abort if
8414 r_symndx is RELOC_SECTION_NONE for an ALPHA_R_IGNORE reloc.
8415 Change a RELOC_SECTION_LITA symndx to RELOC_SECTION_ABS.
8416 (alpha_ecoff_swap_reloc_out): Change RELOC_SECTION_ABS to
8417 RELOC_SECTION_LITA for ALPHA_R_IGNORE.
8418 (alpha_adjust_reloc_out): For ALPHA_R_IGNORE, don't change
8419 RELOC_SECTION_ABS to RELOC_SECTION_NONE.
8420
8421 Tue Nov 28 16:59:50 1995 Ian Lance Taylor <ian@cygnus.com>
8422
8423 * elf-bfd.h (struct elf_obj_tdata): Add segment_map field.
8424 * elf.c (make_mapping): New static function.
8425 (map_sections_to_segments): New static function.
8426 (elf_sort_sections): New static function.
8427 (assign_file_positions_for_segments): New static function.
8428 (map_program_segments): Remove.
8429 (get_program_header_size): Remove sorted_hdrs, count, and
8430 maxpagesize parameters. Simplify.
8431 (assign_file_positions_except_relocs): When generating an
8432 executable, use assign_file_positions_for_segments.
8433 (elf_sort_hdrs): Remove.
8434 (_bfd_elf_sizeof_headers): Remove eliminated parameters from call
8435 to get_program_header_size.
8436
8437 Mon Nov 27 12:27:46 1995 Ian Lance Taylor <ian@cygnus.com>
8438
8439 * hp300hpux.c (MY(callback)): Set lma as well as vma.
8440
8441 * configure, config.in: Regenerate with autoconf 2.7.
8442
8443 * elf32-i386.c (elf_backend_plt_readonly): Set correctly, to 1.
8444 * elf32-sparc.c (elf_backend_plt_readonly): Set correctly, to 0.
8445
8446 Wed Nov 22 12:02:09 1995 Ian Lance Taylor <ian@cygnus.com>
8447
8448 * ecoff.c (_bfd_ecoff_new_section_hook): Handle .rconst section.
8449 (ecoff_sec_to_styp_flags): Likewise.
8450 (_bfd_ecoff_styp_to_sec_flags): Handle STYP_RCONST.
8451 (ecoff_set_symbol_info): Handle scRConst.
8452 (ecoff_slurp_reloc_table): Handle RELOC_SECTION_RCONST.
8453 (ecoff_compute_section_file_positions): Handle .rconst section.
8454 (_bfd_ecoff_write_object_contents): Likewise.
8455 (ecoff_link_check_archive_element): Handle scRConst.
8456 (ecoff_link_add_externals): Likewise.
8457 (ecoff_link_write_external): Handle .rconst section.
8458 (ecoff_reloc_link_order): Likewise.
8459 * ecofflink.c (bfd_ecoff_debug_accumulate): Handle scRConst.
8460 * coff-alpha.c (alpha_convert_external_reloc): Handle .rconst
8461 section.
8462 (alpha_relocate_section): Handle RELOC_SECTION_RCONST.
8463
8464 * sunos.c (sunos_scan_dynamic_symbol): Only set written if the
8465 DEF_DYNAMIC flag is set.
8466
8467 Tue Nov 21 13:25:29 1995 Ken Raeburn <raeburn@cygnus.com>
8468
8469 * host-aout.c: If TRAD_HEADER is defined, include it.
8470
8471 Tue Nov 21 13:03:57 1995 Ian Lance Taylor <ian@cygnus.com>
8472
8473 * aclocal.m4 (AC_PROG_CC): Remove local definition.
8474 (BFD_BINARY_FOPEN): Require AC_CANONICAL_SYSTEM.
8475 (BFD_NEED_DECLARATION): New function.
8476 * configure.in: Use BFD_NEED_DECLARATION.
8477 * acconfig.h: Put NEED_DECLARATION_* in @TOP@ section.
8478 * configure, config.in: Rebuild with autoconf 2.6.
8479
8480 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Clear
8481 special_sections before returning when called with a non XCOFF
8482 BFD.
8483
8484 * coffgen.c (coff_renumber_symbols): Sort common symbols with
8485 global symbols.
8486
8487 * coffcode.h (coff_compute_section_file_positions): Only pad the
8488 previous section to force file alignment when creating an
8489 executable.
8490
8491 Mon Nov 20 14:54:09 1995 Ian Lance Taylor <ian@cygnus.com>
8492
8493 * coffcode.h (coff_compute_section_file_positions): If
8494 RS6000COFF_C, set up the .debug section.
8495
8496 * xcofflink.c (xcoff_link_input_bfd): Adjust the TOC anchor value
8497 if it is not large enough to accomodate the entire TOC area with
8498 signed 16 bit offsets.
8499 (xcoff_write_global_symbol): Handle negative TOC offsets in global
8500 linkage code.
8501 (_bfd_ppc_xcoff_relocate_section): Adjust relocations against a
8502 TOC anchor to use the TOC value used in the output file.
8503
8504 Sat Nov 18 18:01:41 1995 Ian Lance Taylor <ian@cygnus.com>
8505
8506 * coffgen.c (_bfd_coff_get_external_symbols): Cast malloc return.
8507 (_bfd_coff_read_string_table): Likewise.
8508
8509 Sat Nov 18 19:43:04 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
8510
8511 * pe-arm.c: Fix typos.
8512 * coff-arm.c: Likewise.
8513
8514 Fri Nov 17 16:22:04 1995 Kim Knuttila <krk@cygnus.com>
8515
8516 * coff-ppc.c (list_ele): Added "cat"egory member.
8517 (record_toc): New category parameter (priv or pub).
8518 (ppc_record_toc_entry): Check to see if toc bounds exceeded.
8519 (ppc_process_before_allocation): Removed embrionic data-in-toc from
8520 the mainline. It addes extra toc cells in error.
8521 (ppc_coff_swap_sym_in_hook): Added some documentation.
8522 (dump_toc): Can now diagnose "virtual toc" chicanery.
8523
8524 Fri Nov 17 10:41:25 1995 Philippe De Muyter <phdm@info.ucl.ac.be>
8525
8526 * elf-bfd.h (struct elf_link_hash_table): Change type of
8527 dynsymcount and bucketcount fields from size_t to bfd_size_type.
8528
8529 Fri Nov 17 10:02:58 1995 Ian Lance Taylor <ian@cygnus.com>
8530
8531 * coffcode.h (coff_pointerize_aux_hook): I960 version: don't
8532 pointerize C_LEAFSTAT or C_LEAFEXT entries.
8533
8534 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Only create
8535 DT_INIT and DT_FINI entries if the _init or _fini symbol is
8536 defined or mentioned in a regular file.
8537
8538 Thu Nov 16 15:16:42 1995 Kim Knuttila <krk@cygnus.com>
8539
8540 * coff-ppc.c (ppc_record_data_in_toc_entry): new function
8541 (coff_ppc_relocate_section): Handle TOCDEFN attribute
8542 (coff_ppc_relocate_section): Correct REL24 handling
8543 (ppc_process_before_allocation): Correct TOCDEFN handling
8544
8545 * peicode.h (dir_names): Added name descriptions
8546
8547 Thu Nov 16 03:38:03 1995 Ken Raeburn <raeburn@cygnus.com>
8548
8549 * VERSION: Updated to cygnus-2.6.
8550
8551 Wed Nov 15 19:30:07 1995 Ken Raeburn <raeburn@cygnus.com>
8552
8553 * targets.c (m68k4knetbsd_vec): Declare.
8554
8555 Wed Nov 15 18:05:52 1995 Ian Lance Taylor <ian@cygnus.com>
8556
8557 * targets.c (bfd_target): Change type of second argument to
8558 _bfd_print_private_bfd_data from void * to PTR.
8559 * libbfd-in.h (_bfd_generic_bfd_print_private_bfd_data): Cast
8560 using PTR rather than void *.
8561 * bfd-in2, libbfd.h: Rebuild.
8562 * peicode.h (pe_print_private_bfd_data): Change vfile from void *
8563 to PTR.
8564 * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define as
8565 _bfd_generic_bfd_print_private_bfd_data rather than casting
8566 bfd_true.
8567
8568 Wed Nov 15 04:09:14 1995 Ken Raeburn <raeburn@cygnus.com>
8569
8570 * Makefile.in (.dep1): Fix stupid typo in last change. Remove any
8571 "DO NOT DELETE" lines or blank lines that mkdep writes on some
8572 systems.
8573 (BFD_LIBS_CFILES, ALL_MACHINES_CFILES, BFD32_BACKENDS_CFILES,
8574 BFD64_BACKENDS_CFILES): New variables.
8575 (CFILES): Use them.
8576
8577 Tue Nov 14 11:52:23 1995 Ian Lance Taylor <ian@cygnus.com>
8578
8579 * peicode.h (coff_swap_aouthdr_out): For PPC PE, start isize at 0,
8580 not at the file position of the first section.
8581 * coffcode.h (coff_compute_section_file_positions): Avoid using
8582 unportable #elif.
8583 (coff_write_object_contents): When generating a PPC PE executable
8584 with no symbols, round up the file size to a COFF_PAGE_SIZE
8585 boundary.
8586 * cofflink.c (_bfd_coff_final_link): If there are no symbols,
8587 don't write out a string table.
8588
8589 * elf.c (bfd_section_from_shdr): When using a different section
8590 header, pass the new one to _bfd_elf_make_section_from_shdr.
8591 (elf_fake_sections): Don't set sh_info and sh_entsize fields.
8592 (elf_map_symbols): Add section VMA to symbol value when comparing
8593 against 0.
8594 (_bfd_elf_compute_section_file_positions): Only build symbol table
8595 if there are some symbols. Set file offset of symtab and strtab
8596 sections.
8597 (assign_file_positions_except_relocs): Remove dosyms parameter.
8598 Change all callers. Never set file offset of symtab and strtab
8599 sections.
8600 (_bfd_elf_copy_private_section_data): New function.
8601 (MAP_ONESYMTAB, MAP_DYNSYMTAB, MAP_STRTAB, MAP_SHSTRTAB): Define.
8602 (_bfd_elf_copy_private_symbol_data): New function.
8603 (swap_out_syms): Check for special mapping of st_shndx created by
8604 copy_private_symbol_data.
8605 * elfxx-target.h: Use new copy routines.
8606 * elf-bfd.h (_bfd_elf_copy_private_symbol_data): Declare.
8607 (_bfd_elf_copy_private_section_data): Declare.
8608
8609 * config.bfd (sh-*-*): Set targ_defvec to shcoff_vec.
8610
8611 * coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE, handle
8612 C_NT_WEAK.
8613
8614 * coff-sh.c (shlcoff_vec): Use _bfd_generic_archive_p, not
8615 _bfd_dummy_target, matching the recent change to archive
8616 recognition.
8617
8618 Mon Nov 13 13:24:38 1995 Ian Lance Taylor <ian@cygnus.com>
8619
8620 * libbfd.c (bfd_get_file_window): Use casts to avoid doing
8621 arithmetic on PTR types.
8622
8623 * aout-target.h (MY(callback)): Set the lma of the sections.
8624
8625 * ecoff.c (ecoff_reloc_link_order): Turn a reloc against a defined
8626 symbol into a reloc against the section.
8627
8628 Mon Nov 13 07:31:35 1995 Kim Knuttila <krk@cygnus.com>
8629
8630 * coff-ppc.c (ppc_coff_link_hash_entry): added support for inline
8631 glue for the relocs: IMGLUE and IFGLUE.
8632 (record_toc): new function - tracks toc contents
8633 (ppc_mark_symbol_as_glue): new function - supports the IMGLUE reloc
8634 (coff_ppc_relocate_section): Added support and fixes for IMGLUE/IFGLUE
8635 (ppc_coff_rtype2howto): removed invalid IMGLUE hack
8636 (coff_ppc_rtype_to_howto): removed invalid IMGLUE hack
8637 (ppc_record_toc_entry): Removed a debug define (duh)
8638
8639 * peicode.h (coff_swap_scnhdr_out): Fixed invalid strcmp for ".reldata"
8640 (pe_print_idata): New function - formats the idata section data
8641 (pe_print_pdata): New function - formats the pdata section data
8642 (pe_print_private_bfd_data): calls to above
8643
8644 Sun Nov 12 12:23:24 1995 Stan Shebs <shebs@andros.cygnus.com>
8645
8646 * Makefile.in (bfd_libs_here, etc): Provide empty definitions.
8647 * coff-rs6000.c (rs6000coff_vec): Add conditional defines
8648 TARGET_SYM and TARGET_NAME for vector and BFD name.
8649 * coff-pmac.c (pmac_xcoff_vec): Remove.
8650 (TARGET_SYM, TARGET_NAME): Define.
8651 * coffcode.h (coff_set_arch_mach_hook) [POWERMAC]: Set the
8652 machine to 0, not all PowerMacs are 601s.
8653
8654 Fri Nov 10 12:10:14 1995 Ian Lance Taylor <ian@cygnus.com>
8655
8656 * elfcode.h (elf_object_p): Read in any program headers.
8657 * elf.c (_bfd_elf_make_section_from_shdr): Adjust section lma
8658 based on the program headers, if any.
8659 (elf_fake_sections): Set sh_addr from the vma, not the lma.
8660 (map_program_segments): Set p_paddr of program headers based on
8661 the lma.
8662
8663 Thu Nov 9 13:01:31 1995 Ian Lance Taylor <ian@cygnus.com>
8664
8665 * archive.c (bfd_generic_archive_p): Preserve tdata in case of
8666 failure.
8667
8668 * aoutx.h (NAME(aout,final_link)): Report a reasonable error when
8669 trying to do a relocateable link with a non-a.out object file.
8670
8671 * archive.c (bfd_generic_archive_p): Check the first object file
8672 in an archive even if target_defaulted is set. If the object file
8673 has the wrong xvec, reject it.
8674
8675 * aoutx.h (NAME(aout,set_section_contents)): If a section can not
8676 be represented, report the name via _bfd_error_handler.
8677 (translate_to_native_sym_flags): Likewise.
8678 * elf32-mips.c (mips_elf_final_link): Likewise.
8679 * oasys.c (oasys_write_sections): Likewise.
8680
8681 * coffcode.h (coff_set_alignment_hook): Write RS6000COFF_C version
8682 which checks for STYP_OVRFLO sections.
8683 (coff_compute_section_file_positions): If RS6000COFF_C, handle
8684 reloc and lineno count overflows.
8685 (coff_write_object_contents): Call coff_count_linenumbers before
8686 coff_compute_section_file_positions. If RS6000COFF_C, handle
8687 reloc and lineno count overflows.
8688 * xcofflink.c (_bfd_xcoff_bfd_final_link): Count line numbers and
8689 relocs before dealing with .pad sections. Count overflow section
8690 headers when handling .pad sections.
8691
8692 * coffcode.h (coff_write_object_contents): Set a.out vstamp to 1
8693 if RS6000COFF_C.
8694
8695 * xcofflink.c (XCOFF_DESCRIPTOR): Define.
8696 (struct xcoff_link_hash_table): Add descriptor_section and
8697 special_sections fields.
8698 (_bfd_xcoff_bfd_link_hash_table_create): Initialize new fields.
8699 (xcoff_link_add_symbols): Set linkage section alignment. Create
8700 descriptor section. Check for magic symbol names (_text, etc.),
8701 and record them in special_sections if found. Set
8702 XCOFF_DESCRIPTOR flag for a function descriptor, and set its
8703 descriptor field to point back to the function code symbol.
8704 (xcoff_sweep): Always mark the special descriptor_section.
8705 (bfd_xcoff_export_symbol): Check whether the symbol might be a
8706 function descriptor, and mark it if it is.
8707 (bfd_xcoff_size_dynamic_sections): Add new special_sections
8708 parameter, and fill it in. Allocate space for the descriptor
8709 section.
8710 (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR flag when defining
8711 global linkage code. If an undefined function descriptor is
8712 exported, arrange to define it. Warn about any other undefined
8713 exported symbol.
8714 (_bfd_xcoff_bfd_final_link): Write out the descriptor section.
8715 (xcoff_write_global_symbol): Create a function descriptor when
8716 necessary.
8717 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
8718 * bfd-in2.h: Rebuild.
8719
8720 Thu Nov 9 08:40:23 1995 Kim Knuttila <krk@cygnus.com>
8721
8722 * coff-ppc.c (ppc_coff_link_hash_entry): new types for hashing
8723 (ppc_coff_link_hash_table): new types for hashing
8724 (ppc_coff_link_hash_newfunc): hash entry constructor
8725 (ppc_coff_link_hash_table_init): hash table initializer
8726 (ppc_coff_link_hash_table_create): hash table constructor
8727 (ppc_record_toc_entry): changed references to hash table
8728 (coff_ppc_relocate_section): changed references to hash table
8729
8730 * libcoff-in.h (coff_link_hash_entry): removed toc_offset
8731 * libcoff.h: Rebuild
8732
8733 * cofflink.c (_bfd_coff_link_hash_newfunc): removed toc_offset init
8734 (coff_link_add_symbols): removed toc_offset init
8735
8736 Thu Nov 9 04:00:38 1995 Ken Raeburn <raeburn@cygnus.com>
8737
8738 * Makefile.in (.dep1): Make sure the file mkdep is to write exists
8739 first.
8740
8741 * configure.in: Added new option --with[out]-mmap. Set USE_MMAP
8742 if it is given and mmep is available.
8743 * acconfig.h: Undef USE_MMAP.
8744 * configure, config.in: Regenerated.
8745 * aoutx.h: If USE_MMAP is not defined, do all symbol and string
8746 table handling the old way.
8747 (aout_get_external_symbols): Don't complain if last byte of string
8748 table is nonzero.
8749 * libbfd.c [HAVE_MADVISE]: Include sys/types.h and sys/mman.h.
8750 (bfd_free_window) [! USE_MMAP]: Don't define.
8751 (bfd_get_file_window,
8752 _bfd_generic_get_section_contents_in_window) [! USE_MMAP]: Abort.
8753
8754 Wed Nov 8 20:03:44 1995 Eric Freudenthal <freudenthal@nyu.edu>
8755
8756 * coff-a29k.c (SIGN_EXTEND_HWORD): Use ~0xffff rather than
8757 0xffff0000.
8758
8759 Wed Nov 8 11:31:11 1995 Ian Lance Taylor <ian@cygnus.com>
8760
8761 * coff-a29k.c (a29k_reloc): Change handling of R_IREL reloc to be
8762 compatible with AMD generated COFF files. Try to support both AMD
8763 and GNU formats simultaneously.
8764 (coff_a29k_relocate_section): Likewise.
8765
8766 * libbfd.c (bfd_get_file_window): Change writable parameter from
8767 int to boolean; update all callers. Pass MAP_SHARED if not
8768 writable--it's required on Solaris. Cast fprintf argument to
8769 avoid warning.
8770 * bfd-in.h (bfd_get_file_window): Update declaration.
8771 * bfd-in2.h: Rebuild.
8772 * aoutx.h: Update calls to bfd_get_file_window.
8773
8774 * xcofflink.c (XCOFF_DEF_DYNAMIC): Rename from XCOFF_REF_DYNAMIC.
8775 Change all uses.
8776 (xcoff_swap_ldhdr_in): New static function.
8777 (xcoff_swap_ldsym_in): New static function.
8778 (xcoff_find_reloc): Handle the case of a single reloc correctly.
8779 (xcoff_link_add_symbols): If we just created a descriptor, pass it
8780 to _bfd_generic_link_add_one_symbol, to save a hash lookup.
8781 Handle XTY_ER/XMC_XO symbols correctly.
8782 (xcoff_link_add_dynamic_symbols): Rewrite to read .loader symbols
8783 rather than normal symbol table.
8784 (bfd_xcoff_import_symbol): It's not an error if the symbol is
8785 already defined with the same absolute value.
8786 (xcoff_mark): When considering called symbols, check whether the
8787 descriptor is from a dynamic object, rather than the symbol
8788 itself.
8789 (xcoff_build_ldsyms): Likewise.
8790
8791 * libbfd.c (bfd_get_file_window): Change return type to boolean.
8792 Cast realloc and malloc return values. If malloc or realloc fail,
8793 set bfd_error_no_memory.
8794 * bfd-in.h (bfd_get_file_window): Change type to boolean.
8795 * bfd-in2.h: Rebuild.
8796
8797 Tue Nov 7 11:53:48 1995 Kim Knuttila <krk@cygnus.com>
8798
8799 * coff-ppc.c (ppc_record_toc_entry): new function.
8800 (in_reloc_p): changed return value.
8801 (coff_ppc_relocate_section): much rework.
8802 (ppc_allocate_toc_section): new function.
8803 (ppc_process_before_allocation): new function.
8804 (ppc_coff_swap_sym_in_hook): new function.
8805
8806 * cofflink.c (_bfd_coff_link_hash_newfunc): initialize toc_offset.
8807 (coff_link_add_symbols): initialize toc_offset.
8808
8809 * peicode.h (coff_swap_sym_in): Added coff_swap_sym_in_hook
8810 (coff_swap_aouthdr_out): Added more sections to the data
8811 dictionary for the pe file header. Also changed linker version
8812 number on the ppc side.
8813 (dir_names): small improvements to the dictionary printing.
8814 (pe_mkobject_hook): save the file level flags.
8815
8816 * libcoff-in.h (coff_link_hash_entry): added toc_offset field
8817 (pe_tdata): added real_flags field
8818 (coff_tdata): added local_toc_sym_map and access macro
8819
8820 * libcoff.h (coff_link_hash_entry): added toc_offset field
8821 (pe_tdata): added real_flags field
8822 (coff_tdata): added local_toc_sym_map and access macro
8823
8824 * coffcode.h (coff_set_alignment_hook): added hook for PE.
8825 (coff_mkobject): init for local_toc_sym_map
8826 (coff_write_object_contents): set the internal_a.magic to
8827 IMAGE_NT_OPTIONAL_HDR_MAGIC which appears to be what other
8828 ppc compilers use.
8829
8830 Tue Nov 7 13:48:58 1995 Ian Lance Taylor <ian@cygnus.com>
8831
8832 * ecofflink.c (_bfd_ecoff_locate_line): Keep looking through stabs
8833 entries until both the line number address and the function name
8834 address are too large.
8835
8836 * configure.in: Call AC_CHECK_PROG to find and cache AR.
8837 * configure: Rebuilt.
8838
8839 * aclocal.m4 (BFD_CC_FOR_BUILD): Don't define CC_FOR_BUILD if it
8840 is defined in the environment.
8841
8842 Tue Nov 7 10:57:24 1995 Jeffrey A Law (law@cygnus.com)
8843
8844 * som.c (som_get_section_contents_in_window): Define to use
8845 generic version.
8846
8847 Mon Nov 6 17:13:15 1995 Harry Dolan <dolan@ssd.intel.com>
8848
8849 * coff-i860.c: New file, based on coff-i386.c.
8850 * cpu-i860.c: New file, based on cpu-i386.c.
8851 * hosts/i860mach3.h: New file, based on hosts/i386mach3.h.
8852 * config.bfd (i860-*-mach3*, i860-*-osf1*, i860-*-coff*): New
8853 targets, using i860coff_vec.
8854 * configure.in (i860-*-mach3*, i860-*-osf1*): New hosts, using
8855 trad-core.o and hosts/i860mach3.h.
8856 (i860coff_vec): Use coff-i860.o and cofflink.o.
8857 * configure: Rebuild.
8858 * Makefile.in: Rebuild dependencies.
8859 (ALL_MACHINES): Add cpu-i860.o.
8860 (BFD32_BACKENDS): Add coff-i860.o.
8861 (CFILES): Add cpu-i860.c and coff-i860.c.
8862 * targets.c (i860coff_vec): Declare.
8863 (bfd_target_vector): Add &i860coff_vec.
8864 * archures.c (bfd_i860_arch): Declare.
8865 (bfd_archures_list): Add &bfd_i860_arch.
8866 * coffcode.h (coff_set_arch_mach_hook): Handle I860 magic number.
8867 (coff_set_flags): Handle bfd_arch_i860.
8868 (coff_write_object_contents): Handle I860 a.out magic number.
8869
8870 Mon Nov 6 14:34:07 1995 Ian Lance Taylor <ian@cygnus.com>
8871
8872 * xcofflink.c (xcoff_link_add_symbols): Set the alignment power of
8873 the created .tc section to 2.
8874 (xcoff_mark): Don't keep a .loader reloc for a call to an
8875 undefined symbol when creating a shared library.
8876 (xcoff_build_ldsyms): When creating a shared library, generate
8877 global linkage code for a call to an undefined symbol.
8878
8879 Sun Nov 5 21:44:13 1995 Ken Raeburn <raeburn@cygnus.com>
8880
8881 * Makefile.in (CFILES): Rebuild list from BFD_LIBS, ALL_MACHINES,
8882 BFD32_BACKENDS, BFD64_BACKENDS.
8883 (.dep1): Put mkdep output in a separate file.
8884 Rebuilt dependencies.
8885
8886 * ecoff.c (_bfd_ecoff_slurp_armap): Cast _bfd_read_ar_hdr return
8887 value.
8888
8889 Permit use of mmap when available:
8890
8891 * configure.in: Check for mmap, madvise, mprotect.
8892 * config.in, configure: Regenerated.
8893
8894 * libbfd.c (struct _bfd_window_internal): Define type.
8895 (bfd_init_window, bfd_free_window, bfd_get_file_window): New
8896 functions.
8897 (ok_to_map): New static variable for debugging.
8898 (_bfd_generic_get_section_contents_in_window): New function.
8899 * bfd-in.h (bfd_window_internal): Declare type.
8900 (bfd_window): Define type.
8901 (bfd_init_window, bfd_free_window, bfd_get_file_window): Declare.
8902 * libbfd-in.h (_bfd_generic_get_section_contents_in_window):
8903 Declare.
8904
8905 * libaout.h (struct aoutdata): Add two window fields.
8906 (obj_aout_sym_window, obj_aout_string_window): New macros.
8907 * aoutx.h (some_aout_object_p): Initialize windows.
8908 (aout_get_external_symbols): Get symbol data and strings in
8909 windows instead of explicitly allocated buffers.
8910 (slurp_symbol_table): Free window instead of memory.
8911 (bfd_free_cached_info): Release windows instead of freeing storage
8912 directly.
8913 (aout_link_free_symbols): Ditto.
8914
8915 * targets.c (bfd_target): Add new field for
8916 get_section_contents_in_window.
8917 (BFD_JUMP_TABLE_GENERIC): Updated.
8918 * aout-adobe.c, aout-target.h, binary.c, bout.c, coff-alpha.c,
8919 coff-mips.c, elfxx-target.h, i386msdos.c, i386os9k.c, ieee.c,
8920 libcoff-in.h, oasys.c, srec.c, tekhex.c, versados.c: Added new
8921 macros for get_section_contents_in_window field.
8922
8923 Sat Nov 4 12:23:26 1995 Fred Fish <fnf@cygnus.com>
8924
8925 * core.c: Renamed to corefile.c
8926 * makefile.dos (OBJS): Change core.o to corefile.o
8927 * Makefile.in (CFILES, BFD_LIBS): Use corefile.c instead of core.c
8928
8929 Fri Nov 3 15:54:59 1995 Ian Lance Taylor <ian@cygnus.com>
8930
8931 * xcofflink.c (xcoff_link_add_symbols): Rename local variable sub
8932 to o. Clobber and restore the list of new csects around the call
8933 to _bfd_generic_link_add_one_symbol, in case it wants to report a
8934 linker error and the linker wants to read the symbol table. Reset
8935 the line number count of a real section even if it has no relocs.
8936 (_bfd_xcoff_bfd_final_link): If shared, set the DYNAMIC flag.
8937
8938 * coffgen.c (_bfd_coff_read_string_table): Warn if the string size
8939 is too small.
8940
8941 Thu Nov 2 23:16:39 1995 Ian Lance Taylor <ian@cygnus.com>
8942
8943 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Don't warn about
8944 an undefined symbol in a shared link.
8945
8946 * linker.c (_bfd_generic_link_add_one_symbol): Correct type of
8947 oldtype from bfd_link_order_type to bfd_link_hash_type. From
8948 phdm@info.ucl.ac.be (Philippe De Muyter).
8949
8950 Wed Nov 1 14:26:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
8951
8952 * coff-m88k.c (rtype2howto): New static function.
8953 (RTYPE2HOWTO): Use it rather than a macro definition.
8954
8955 * coffcode.h (coff_write_object_contents): set internal_a.magic
8956 to PAGEMAGICPEXECPAGED #if defined (M68) && !defined (LYNXOS).
8957
8958 * configure.in: m68*-motorola-sysv* does not use ptrace-core.o;
8959 define TRAD_HEADER to new file hosts/delta68.h.
8960 m88*-motorola-sysv*, however, does use ptrace-core.o.
8961 * hosts/delta68.h: New file.
8962
8963 * ptrace-core.c (ptrace_unix_core_file_p): change bfd_zmalloc to
8964 bfd_zalloc; provide proper parm abfd to calls to bfd_zalloc.
8965
8966 Wed Nov 1 13:51:54 1995 Ken Raeburn <raeburn@cygnus.com>
8967
8968 * i386linux.c (MY(vec)): Declare before use.
8969
8970 Wed Nov 1 11:45:07 1995 Ian Lance Taylor <ian@cygnus.com>
8971
8972 * reloc16.c (bfd_coff_reloc16_get_relocated_section_contents):
8973 Pass input_bfd, not in_bfd, to bfd_coff_reloc16_extra_cases.
8974
8975 * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
8976 BFD is not of the right type.
8977 (bfd_elf_get_needed_list): Likewise.
8978 * i386linux.c (bfd_linux_size_dynamic_sections): Likewise.
8979 * sunos.c (bfd_sunos_get_needed_list): Likewise.
8980 * xcofflink.c (XCOFF_XVECP): Define.
8981 (bfd_xcoff_link_record_set): Don't do anything if the BFD is not
8982 of the right type.
8983 (bfd_xcoff_import_symbol): Likewise.
8984 (bfd_xcoff_export_symbol): Likewise.
8985 (bfd_xcoff_link_count_reloc): Likewise.
8986 (bfd_xcoff_record_link_assignment): Likewise.
8987 (bfd_xcoff_size_dynamic_sections): Likewise.
8988
8989 * sunos.c (sunos_scan_ext_relocs): Only check the reloc symbol
8990 table index against the number of symbols for a base relative
8991 reloc.
8992
8993 * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Change from macro to
8994 static function.
8995 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Set
8996 full_aouthdr flag here...
8997 (_bfd_xcoff_bfd_final_link): ...not here.
8998
8999 Tue Oct 31 12:52:02 1995 Fred Fish <fnf@cygnus.com>
9000
9001 * libelf.h: Rename to elf-bfd.h to avoid conflict with
9002 systems that have a system <libelf.h>.
9003 * Makefile.in: Globally replace libelf.h with elf-bfd.h.
9004 * bfd.c, elf.c, elf32-arc.c, elf32-gen.c, elf32-hppa.c,
9005 elf32-hppa.h, elf32-i386.c, elf32-i860.c, elf32-m68k.c,
9006 elf32-m88k.c, elf32-mips.c, elf32-ppc.c, elf32-sparc.c,
9007 elf64-gen.c, elf64-sparc.c, elfcode.h, elflink.c,
9008 elfxx-target.h: Include elf-bfd.h rather than libelf.h.
9009 * elfxx-target.h: Change libelf.h reference to elf-bfd.h.
9010
9011 Tue Oct 31 15:30:07 1995 David Mosberger-Tang <davidm@azstarnet.com>
9012
9013 * ecoff.c (ecoff_set_symbol_info): Add new parameter weak. If
9014 set, set BSF_WEAK in symbol. Change all callers.
9015 (ecoff_get_extr): Set weakext based on BSF_WEAK.
9016 (ecoff_link_add_externals): If weakext is set, pass BSF_WEAK to
9017 _bfd_generic_link_add_one_symbol.
9018 (ecoff_indirect_link_order): Check that the section tdata relocs
9019 are not NULL before using them.
9020
9021 * configure.in (alpha*-*-linux*): Set COREFILE to trad-core.o and
9022 define TRAD_HEADER as hosts/alphalinux.h.
9023 * configure: Rebuild.
9024 * hosts/alphalinux.h: New file.
9025 * trad-core.c (trad_unix_core_file_p): Cast u.u_ar0 to bfd_vma,
9026 not int.
9027
9028 Tue Oct 31 12:34:11 1995 Ian Lance Taylor <ian@cygnus.com>
9029
9030 * coffcode.h (coff_slurp_symbol_table): Accept C_BCOMM and
9031 C_ECOMM storage classes.
9032
9033 * xcofflink.c (xcoff_mark_symbol): New static function, broken out
9034 of xcoff_mark.
9035 (xcoff_mark): Call xcoff_mark_symbol.
9036 (bfd_xcoff_export_symbol): Call xcoff_mark_symbol.
9037 (bfd_xcoff_link_count_reloc): Call xcoff_mark_symbol rather than
9038 doing it by hand.
9039 (xcoff_build_ldsyms): Build a .loader symbol for an export symbol.
9040
9041 Mon Oct 30 14:53:48 1995 Ian Lance Taylor <ian@cygnus.com>
9042
9043 * xcofflink.c (struct xcoff_final_link_info): Add new line_filepos
9044 field.
9045 (xcoff_find_reloc): New static function.
9046 (xcoff_link_add_symbols): Use it.
9047 (_bfd_xcoff_bfd_final_link): Set finfo.line_filepos.
9048 (xcoff_link_input_bfd): Handle C_BINCL and C_EINCL. Don't
9049 relocate the value of C_DECL.
9050
9051 * elf.c (elf_fake_sections): Remove bogus BFD_ASSERT.
9052
9053 Sat Oct 28 01:25:34 1995 steve chamberlain <sac@slash.cygnus.com>
9054
9055 * cofflink.c (_bfd_coff_generic_relocate_section): Make
9056 callback decide what goes in .relocs.
9057 * pe[i]-i386.c (TARGET_UNDERSCORE): Define.
9058 * peicode.h (pe_mkobject_hook): Only copy aouthdr if
9059 there is one.
9060
9061 Sat Oct 28 01:51:02 1995 Ian Lance Taylor <ian@cygnus.com>
9062
9063 * xcofflink.c (xcoff_link_add_symbols): Handle csects in the
9064 absolute section.
9065
9066 Fri Oct 27 18:14:39 1995 Ian Lance Taylor <ian@cygnus.com>
9067
9068 * xcofflink.c: More improvements, mostly to fix handling of
9069 constructors and a few other special cases.
9070 * coff-rs6000.c (rs6000coff_vec): Set symbol_leading_char back to
9071 zero, reverting yesterday's change.
9072 * bfd-in.h (bfd_xcoff_link_record_set): Declare.
9073 (bfd_xcoff_link_count_reloc): Declare.
9074 (bfd_xcoff_record_link_assignment): Declare.
9075 * bfd-in2.h: Rebuild.
9076
9077 Fri Oct 27 14:42:15 1995 Niklas Hallqvist <niklas@appli.se>
9078
9079 * PORTING, aout-arm.c, aout-encap.c, aout-target.h,
9080 aoutx.h, gen-aout.c, host-aout.c, hp300bsd.c, i386aout.c
9081 i386bsd.c, i386dynix.c, i386linux.c, i386lynx.c, i386mach3.c,
9082 i386netbsd.c, m68klynx.c, m88kmach3.c, mipsbsd.c, newsos3.c,
9083 ns32knetbsd.c, pc532-mach.c, riscix.c, sparclynx.c, sparcnetbsd.c:
9084 Change PAGE_SIZE to TARGET_PAGE_SIZE.
9085
9086 * m68knetbsd.c: Ditto as well as add support for the m68k4k object
9087 format.
9088
9089 * netbsd.h: Double ditto (incl. m68k4k support). NetBSD's text
9090 segments includes the a.out header. See to that the magic number
9091 *always* is big-endian.
9092
9093 * config.bfd: Add m68*-hp*-netbsd* case. Cross-pollinate m68k and
9094 m68k4k NetBSD configurations.
9095
9096 * configure.in, configure: Separate i386 & mips NetBSD
9097 configurations from other BSD ones. Don't assume DEC is the only
9098 thing NetBSD/mips run on. Add {m68k,ns32k,sparc}-*-netbsd*
9099 configurations. Add support for m68k4k NetBSD object format.
9100
9101 * libaout.h: Added M_68K4K_NETBSD magic.
9102
9103 * m68k4knetbsd.c: New file.
9104
9105 * hosts/{m68k,sparc}nbsd.h: Don't define HOST_BIG_ENDIAN_P.
9106
9107 * hosts/nbsd.h: Define HOST_BIG_ENDIAN_P according to
9108 <machine/endian.h>.
9109
9110 * hosts/mipsnbsd.h: New file.
9111
9112 Thu Oct 26 14:16:47 1995 Ian Lance Taylor <ian@cygnus.com>
9113
9114 * xcofflink.c: Numerous changes to get closer to a working XCOFF
9115 linker.
9116 * libcoff-in.h (struct xcoff_tdata): Add full_aouthdr,
9117 toc_section, and entry_section fields.
9118 (struct xcoff_section_tdata): Remove ldrel_count field.
9119 * libcoff.h: Rebuild.
9120 * coffcode.h (coff_mkobject_hook): Initialize new xcoff_data
9121 fields.
9122 (coff_compute_section_file_positions): If RS6000COFF_C, generate
9123 full a.out header if full_aouthdr is set in xcoff_data.
9124 (coff_write_object_contents): Likewise. Set o_snentry and o_sntoc
9125 based on sections stored in xcoff_data.
9126 * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy new xcoff_data
9127 fields.
9128 (xcoff_reloc_type_lookup): Handle BFD_RELOC_CTOR.
9129 (rs6000coff_vec): Set symbol_leading_char to '.'.
9130 * coffgen.c (coff_get_symbol_info): If fix_value is set, fix the
9131 value stored in ret rather than returning a pointer value.
9132
9133 Wed Oct 25 23:10:39 1995 Michael Meissner <meissner@tiktok.cygnus.com>
9134
9135 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Remove MAC
9136 format for now.
9137
9138 Wed Oct 25 16:19:27 1995 Jeffrey A Law (law@cygnus.com)
9139
9140 * som.c (som_slurp_string_table): Allocate the strings with malloc
9141 since they're free'd by free_cached_info.
9142 (som_slurp_symbol_table): Similarly for the symbol table.
9143
9144 Wed Oct 25 14:59:22 1995 Per Bothner <bothner@kalessin.cygnus.com>
9145
9146 * Makefile.in (diststuff): Don't make headers.
9147
9148 Wed Oct 25 11:32:54 1995 Ian Lance Taylor <ian@cygnus.com>
9149
9150 * Makefile.in: Rebuild dependencies.
9151
9152 * sunos.c (bfd_sunos_record_link_assignment): Don't do anything if
9153 output_bfd is not SunOS.
9154 (bfd_sunos_size_dynamic_sections): Likewise. Don't scan relocs of
9155 non-SunOS input files.
9156
9157 * xcofflink.c: Extensive changes to support linking shared objects
9158 and generating a .loader section.
9159 * libcoff-in.h (struct xcoff_tdata): Add import_file_id field.
9160 (struct xcoff_section_tdata): Add lineno_count, first_symndx,
9161 last_symndx, and ldrel_count fields.
9162 * libcoff.h: Rebuild.
9163 * coff-rs6000.c (xcoff_howto_table): Correct reloc names.
9164 * coffcode.h (styp_to_sec_flags): Don't set any flags if STYP_PAD
9165 is set.
9166 * bfd-in.h (bfd_xcoff_import_symbol): Declare.
9167 (bfd_xcoff_export_symbol): Declare.
9168 (bfd_xcoff_size_dynamic_sections): Declare.
9169 * bfd-in2.h: Rebuild.
9170
9171 Tue Oct 24 17:44:20 1995 Stan Shebs <shebs@andros.cygnus.com>
9172
9173 * configure.in: Add xcofflink.o to pmac_xcoff_vec.
9174 * configure: Rebuild.
9175 * mpw-config.in: Add xcofflink.c.o to powerpc-apple-macos.
9176 * coff-pmac.c: Include coff-rs6000.c instead of duplicating its
9177 contents.
9178 (pmac_xcoff_vec): Update to use new xcoff support.
9179 * coff-rs6000.c (xcoff_generic_stat_arch_elt): Make static.
9180 (xcoff_write_armap): Declare buf as unsigned char.
9181 * xcofflink.c (xcoff_link_add_symbols): Declare a local as PTR.
9182
9183 * mpw-make.sed: Generalize subdir_do edit.
9184
9185 Tue Oct 24 10:25:01 1995 Jeffrey A Law (law@cygnus.com)
9186
9187 * hppabsd-core.c (make_bfd_asection): Initialize asect->filepos
9188 correctly. Don't initialize asect->vma.
9189
9190 Fri Oct 20 13:23:48 1995 Ken Raeburn <raeburn@cygnus.com>
9191
9192 * opncls.c (_bfd_new_bfd): If _bfd_chunksize wasn't preset, use
9193 something a little less than the page size.
9194
9195 Thu Oct 19 13:06:09 1995 Ian Lance Taylor <ian@cygnus.com>
9196
9197 * coff-i960.c (coff_i960_adjust_symndx): Clear *adjustedp.
9198
9199 Wed Oct 18 16:20:08 1995 steve chamberlain <sac@slash.cygnus.com>
9200
9201 * coff-i386.c (coff_i386_reloc_type_lookup): New.
9202 * coffcode.h (coff_write_object_contents): If .bss is before
9203 .data us that as data_start.
9204 * cofflink.c (_bfd_coff_generic_relocate_section): Get reloc
9205 calc correct.
9206 * peicode.h (add_data_entry): Use _cooked_size of data directory.
9207 (coff_swap_outhdr_out): Hardwire in version number.
9208
9209 Wed Oct 18 16:50:54 1995 Ken Raeburn <raeburn@cygnus.com>
9210
9211 * sunos.c (sunos_add_dynamic_symbols): Rename local variables
9212 major and minor to *_vno, since the former are also macros in
9213 SunOS header files. Cast result of bfd_alloc to appropriate
9214 type.
9215
9216 * coffgen.c (coff_find_nearest_line): Cast used_by_bfd value
9217 before assigning to sec_data.
9218
9219 Wed Oct 18 13:25:17 1995 Ian Lance Taylor <ian@cygnus.com>
9220
9221 * ecoff.c (_bfd_ecoff_find_nearest_line): The offset argument is
9222 now relative to the section, not absolute.
9223 * ecofflink.c (_bfd_ecoff_locate_line): Use the right symbol to
9224 get the file name when there is a N_SO directory name. When
9225 handling stabs, remember that section->vma was added to the
9226 offset.
9227
9228 Tue Oct 17 18:24:54 1995 Ian Lance Taylor <ian@cygnus.com>
9229
9230 * sunos.c (struct sunos_link_hash_table): Add needed field.
9231 (sunos_link_hash_table_create): Call bfd_release, not free.
9232 (sunos_link_hash_table_create): Initialize needed field.
9233 (sunos_add_dynamic_symbols): Record needed objects.
9234 (bfd_sunos_get_needed_list): New function.
9235 * bfd-in.h (bfd_sunos_get_needed_list): Declare.
9236 * bfd-in2.h: Rebuild.
9237
9238 Mon Oct 16 14:43:59 1995 steve chamberlain <sac@slash.cygnus.com>
9239
9240 * libcoff-in.h (pe_data_type.in_reloc_p): New.
9241
9242 Mon Oct 16 10:52:50 1995 Ian Lance Taylor <ian@cygnus.com>
9243
9244 * bfd-in.h (struct bfd_link_needed_list): Rename from
9245 bfd_elf_link_needed_list.
9246 * bfd-in2.h: Rebuild.
9247 * elf.c, elflink.h, libelf.h: Corresponding changes.
9248
9249 Add start at AIX linker support; no shared libraries yet.
9250 * xcofflink.c: New file.
9251 * configure.in (rs600coff_vec): Use xcofflink.o.
9252 * configure: Rebuild.
9253 * libcoff-in.h (struct xcoff_tdata): Add csects and debug_indices
9254 fields.
9255 (struct xcoff_section_tdata): Define.
9256 (xcoff_section_data): Define macro.
9257 (_bfd_xcoff_bfd_link_hash_table_create): Declare.
9258 (_bfd_xcoff_bfd_link_add_symbols): Declare.
9259 (_bfd_xcoff_bfd_final_link): Declare.
9260 (_bfd_ppc_xcoff_relocate_section): Declare.
9261 * libcoff.h: Rebuild.
9262 * coff-rs6000.c: Clean up a bit.
9263 (xcoff_mkobject): Default modtype to 1L, not RE. Initialize
9264 cputype, csects, and debug_indices.
9265 (xcoff_copy_private_bfd_data): Copy cputype.
9266 (xcoff_howto_table): Rename from rs6000coff_howto_table.
9267 (xcoff_rtype2howto): Rename from rs6000coff_rtype2howto.
9268 (xcoff_reloc_type_lookup): Rename from
9269 rs6000coff_reloc_type_lookup.
9270 (coff_relocate_section): Define.
9271 (_bfd_xcoff_sizeof_headers): Define.
9272 (_bfd_xcoff_bfd_get_relocated_section_contents): Define.
9273 (_bfd_xcoff_bfd_relax_section): Define.
9274 (_bfd_xcoff_bfd_link_split_section): Define.
9275 (rs6000coff_vec): For BFD_JUMP_TABLE_LINK, use _bfd_xcoff, not
9276 coff.
9277 * coffcode.h (coff_compute_section_file_positions): If AIX,
9278 increment sofar by SMALL_AOUTSZ if not executable.
9279 (coff_write_object_contents): If AIX, always output an a.out
9280 header; if not executable, header size of SMALL_AOUTSZ.
9281 * hash.c (struct bfd_strtab_hash): Add xcoff field.
9282 (_bfd_stringtab_init): Initialize xcoff field.
9283 (_bfd_xcoff_stringtab_init): New function.
9284 (_bfd_stringtab_add): In XCOFF mode, leave two bytes for length.
9285 (_bfd_stringtab_emit): In XCOFF mode, write out length.
9286 * libbfd-in.h (_bfd_xcoff_stringtab_init): Declare.
9287 * libbfd.h: Rebuild.
9288 * Makefile.in: Rebuild dependencies.
9289 (BFD32_BACKENDS): Add xcofflink.o.
9290 (CFILES): Add xcofflink.c.
9291
9292 * elf32-mips.c (mips_elf_symbol_processing): Set SEC_ALLOC, not
9293 SEC_NO_FLAGS, for .acommon section. From Peter Schauer
9294 <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>.
9295
9296 Sat Oct 14 21:36:02 1995 Michael Meissner <meissner@tiktok.cygnus.com>
9297
9298 * coff-ppc.c (in_reloc_p): Add, clone from coff-i386.c.
9299
9300 Fri Oct 13 17:48:43 1995 Ken Raeburn <raeburn@cygnus.com>
9301
9302 * acconfig.h (HAVE_SYS_PROCFS_H): Undef, with comment.
9303 * config.in: Regenerated.
9304
9305 * opncls.c (getpagesize) [!HAVE_GETPAGESIZE]: Define as 2048.
9306 (_bfd_chunksize): New variable.
9307 (_bfd_new_bfd): Set it to getpagesize() if negative, and use it
9308 for obstack chunk size.
9309 * configure.in: Check for getpagesize.
9310 * configure: Regenerated.
9311
9312 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
9313
9314 * trad-core.c (rawptr): Make it a local variable of
9315 ptrace_unix_core_file_p.
9316
9317 Fri Oct 13 11:22:01 1995 steve chamberlain <sac@slash.cygnus.com>
9318
9319 * coff-arm.c (in_reloc_p): New.
9320 * coff-i386.c (in_reloc_p): New.
9321 * coffcode.h: Allways include peicode.h if COFF_WITH_PE.
9322 (coff_write_object_contents): Only set has_reloc_section
9323 if PE_IMAGE.
9324 * cofflink.c (_bfd_coff_generic_relocate_section): Call
9325 in_reloc_p to decide if reloc should be emitted.
9326 * libcoff.h (pe_data_type.in_reloc_p): New.
9327 * peicode.h (pe_mkobject): Initialize in_reloc_p.
9328
9329 Wed Oct 11 00:49:29 1995 Ian Lance Taylor <ian@cygnus.com>
9330
9331 * cofflink.c (_bfd_coff_internal_syment_name): Move to coffgen.c.
9332 (_bfd_coff_read_internal_relocs): Likewise.
9333 * coffgen.c (_bfd_coff_internal_syment_name): Copy from coffgen.c.
9334 (_bfd_coff_read_internal_relocs): Likewise.
9335
9336 * elflink.h (elf_link_add_object_symbols): Correct conditions
9337 under which type and size change warnings are issued.
9338
9339 Tue Oct 10 18:32:46 1995 Ian Lance Taylor <ian@cygnus.com>
9340
9341 * coffgen.c (coff_count_linenumbers): Don't count line numbers for
9342 a symbol which is not in a real section.
9343 (coff_write_native_symbol): Corresponding change.
9344
9345 * cofflink.c (_bfd_coff_link_hash_newfunc): Rename from
9346 coff_link_hash_newfunc and make non-static.
9347 (_bfd_coff_link_hash_table_init): New function, broken out of
9348 _bfd_coff_link_hash_table_create.
9349 (_bfd_coff_link_hash_table_create): Use it.
9350 (process_embedded_commands): Make static.
9351 * libcoff-in.h ((_bfd_coff_link_hash_newfunc): Declare.
9352 (_bfd_coff_link_hash_table_init): Declare.
9353 * libcoff.h: Rebuild.
9354
9355 * coffcode.h (coff_mkobject_hook): If RS6000COFF_C, set cputype
9356 field in XCOFF tdata.
9357 (coff_set_arch_mach_hook): Check ifdef RS6000COFF_C, not ifdef
9358 U802ROMAGIC, for clarity. Try to set arch and machine correctly
9359 based on cputype stored in a.out header, or in n_type of initial
9360 .file symbol.
9361 (coff_write_object_contents): Set cputype correctly in a.out
9362 header.
9363 (coff_slurp_symbol_table): Add casts to file_ptr to avoid
9364 warnings.
9365 * coffswap.h (coff_swap_aouthdr_in): Swap in cputype field.
9366 (coff_swap_aouthdr_out): Swap out cputype field. Don't clear
9367 old resv1 field.
9368 * libcoff-in.h (struct xcoff_tdata): Add cputype field.
9369 * libcoff.h: Rebuild.
9370
9371 * cpu-rs6000.c (rs6000_compatible): New static function.
9372 (bfd_rs6000_arch): Use it.
9373 * cpu-powerpc.c (powerpc_compatible): New static function.
9374 (arch_info_struct): Define various flavours of PowerPC.
9375 (bfd_powerpc_arch): Use powerpc_compatible. Point at
9376 arch_info_struct.
9377
9378 Tue Oct 10 10:50:46 1995 Fred Fish <fnf@cygnus.com>
9379
9380 * Makefile.in (FLAGS_TO_PASS): Remove BISON.
9381
9382 Tue Oct 10 01:28:29 1995 Ian Lance Taylor <ian@cygnus.com>
9383
9384 * elflink.h (elf_link_add_object_symbols): Don't warn about
9385 changing the size or type if the old definition was weak.
9386
9387 Mon Oct 9 11:24:08 1995 Ian Lance Taylor <ian@cygnus.com>
9388
9389 * coffcode.h (combined_entry_type): Add fix_line field.
9390 (coff_slurp_line_table): Warn if we try to set the lineno field of
9391 a symbol twice.
9392 (coff_slurp_symbol_table): If RS6000COFF_C, handle C_BINCL and
9393 C_EINCL by setting fix_line. Fix C_BSTAT symbol value.
9394 * coffgen.c (coff_mangle_symbols): Handle fix_line.
9395 (coff_write_symbol): Only use N_DEBUG if the symbol is in the
9396 absolute section.
9397 (coff_print_symbol): Print fix_value symbols in a useful fashion.
9398 * libcoff.h: Rebuild.
9399
9400 * libcoff-in.h (struct xcoff_tdata): Define.
9401 (xcoff_data): Define.
9402 * bfd.c (struct _bfd): Add xcoff_obj_data field to tdata union.
9403 * bfd-in2.h, libcoff.h: Rebuild.
9404 * coff-rs6000.c (xcoff_mkobject): New static function.
9405 (coff_mkobject): Define.
9406 (xcoff_copy_private_bfd_data): New static function.
9407 (coff_bfd_copy_private_bfd_data): Define.
9408 (rs6000coff_howto_table): Change R_TOC complain_on_overflow from
9409 signed to bitfield.
9410 (rs6000coff_vec): Add DYNAMIC to object_flags.
9411 * coffcode.h (sec_to_styp_flags): If RS6000COFF_C, handle .pad and
9412 .loader sections specially.
9413 (coff_new_section_hook): If RS6000COFF_C, get the .text and .data
9414 section alignment from the XCOFF tdata information.
9415 (coff_mkobject_hook): If RS6000COFF_C, set DYNAMIC based on
9416 F_SHROBJ, and copy the extra a.out header information into the
9417 XCOFF tdata structure.
9418 (coff_write_object_contents): If RS6000COFF_C, set F_SHROBJ,
9419 F_DYNLOAD and the extra a.out header information.
9420 (coff_slurp_symbol_table): Set BSF_NOT_AT_END for a C_EXT or
9421 C_HIDEXT symbol with attached csect information.
9422 * coffswap.h (coff_swap_aouthdr_in): If RS6000COFF_C, swap
9423 in the o_maxdata field.
9424 (coff_swap_aouthdr_out): If RS6000COFF_C, swap extra XCOFF fields.
9425 * coffgen.c (coff_renumber_symbols): Don't move any symbol to the
9426 end if BSF_NOT_AT_END is set.
9427
9428 * targets.c (bfd_target): Rename _bfd_read_ar_hdr field to
9429 _bfd_read_ar_hdr_fn.
9430 * libbfd-in.h (_bfd_read_ar_hdr): Update accordingly.
9431 * bfd-in2.h, libbfd.h: Rebuild.
9432 * archive.c (_bfd_get_elt_at_filepos): Cast _bfd_read_ar_hdr
9433 return value.
9434 (do_slurp_bsd_armap, do_slurp_coff_armap): Likewise.
9435 (bfd_slurp_bsd_armap_f2): Likewise.
9436 (_bfd_slurp_extended_name_table): Likewise.
9437
9438 Fri Oct 6 16:18:35 1995 Ken Raeburn <raeburn@cygnus.com>
9439
9440 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
9441
9442 * archive.c (bfd_get_next_mapent): Return BFD_NO_MORE_SYMBOLS
9443 when the symbol table is empty.
9444
9445 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Don't reserve
9446 space for section symbols, since we don't output them either.
9447 (elf_m68k_adjust_dynindx): Removed.
9448
9449 * ptrace-core.c (rawptr): Make it a local variable of
9450 ptrace_unix_core_file_p.
9451
9452 Fri Oct 6 12:24:47 1995 Michael Meissner <meissner@tiktok.cygnus.com>
9453
9454 * coff-rs6000.c (xcoff_write_archive_contents): Return false, not
9455 NULL.
9456
9457 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Add NT, and
9458 Mac object file formats.
9459
9460 Fri Oct 6 12:04:02 1995 Ian Lance Taylor <ian@cygnus.com>
9461
9462 * coffgen.c (coff_fix_symbol_name): Don't try to set up file
9463 auxent if there isn't one.
9464 (coff_write_symbols): If there is no file auxent, use SYMNMLEN
9465 rather than FILNMLEN as the maximum name length.
9466
9467 * coffcode.h (bfd_coff_backend_data): Add new field
9468 _bfd_coff_print_aux.
9469 (bfd_coff_print_aux): New static function.
9470 (coff_pointerize_aux_hook (RS6000COFF_C version)): Pointerize the
9471 scnlen field of an XTY_LD csect aux entry.
9472 (coff_print_aux): New static function.
9473 (coff_slurp_symbol_table): Don't pointerize scnlen field; now done
9474 in coff_pointerize_aux_hook.
9475 (bfd_coff_std_swap_table): Initialize new field.
9476 * coffgen.c (coff_print_symbol): Call bfd_coff_print_aux.
9477 * libcoff.h: Rebuild.
9478 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
9479 * coff-mips.c (mips_ecoff_backend_data): Likewise.
9480
9481 * coffcode.h (coff_write_object_contents): On AIX, clear F_RELFLG
9482 if there are symbols, for native AIX ld compatibility.
9483
9484 * coffcode.h (bfd_coff_backend_data): Add new field
9485 _bfd_coff_pointerize_aux_hook.
9486 (coff_pointerize_aux_hook): Define as a function if RS6000COFF_C
9487 or I960, and as 0 otherwise.
9488 (bfd_coff_std_swap_table): Initialize new field.
9489 * libcoff.h: Rebuild.
9490 * coffgen.c (coff_pointerize_aux): Change parameters to take
9491 symbol pointer instead of type and class, and to take aux index.
9492 Call _bfd_coff_pointerize_aux_hook if it is defined.
9493 (coff_get_normalized_symtab): Always call coff_pointerize_aux.
9494 * coff-alpha.c (alpha_ecoff_backend_data): Initialize all fields.
9495 * coff-mips.c (mips_ecoff_backend_data): Likewise.
9496
9497 * coff-rs6000.c: Add full support for AIX archives. Rewrite old
9498 read-only/host-only support.
9499
9500 * coffcode.h (coff_slurp_symbol_table): Set C_HIDEXT symbols to be
9501 BSF_LOCAL.
9502 (OTHER_GLOBAL_CLASS): Do not define to be C_HIDEXT if
9503 RS6000COFF_C.
9504
9505 * targets.c (bfd_target): Add _bfd_read_ar_hdr field. Modify
9506 BFD_JUMP_TABLE_ARCHIVE accordingly.
9507 * libbfd-in.h (_bfd_snarf_ar_hdr): Don't declare.
9508 (_bfd_compute_and_write_armap): Declare.
9509 (_bfd_generic_read_ar_hdr): Declare.
9510 (_bfd_read_ar_hdr): Define.
9511 (_bfd_noarchive_read_ar_hdr): Define.
9512 (_bfd_archive_bsd_read_ar_hdr): Define.
9513 (_bfd_archive_coff_read_ar_hdr): Define.
9514 * archive.c: Change all callers of _bfd_snarf_ar_hdr to call
9515 _bfd_read_ar_hdr instead.
9516 (_bfd_generic_read_ar_hdr): Rename from _bfd_snarf_ar_hdr.
9517 (_bfd_compute_and_write_armap): Rename from
9518 compute_and_write_armap. Make non-static. Change all callers.
9519 * ecoff.c (_bfd_ecoff_slurp_armap): Call _bfd_read_ar_hdr rather
9520 than _bfd_snarf_ar_hdr.
9521 * aout-target.h (MY_read_ar_hdr): Define if not defined.
9522 * ieee.c (ieee_read_ar_hdr): Define.
9523 * libecoff.h (_bfd_ecoff_read_ar_hdr): Define.
9524 * oasys.c (oasys_read_ar_hdr): Define.
9525 * som.c (som_read_ar_hdr): Define.
9526 * bfd-in2.h, libbfd.h: Rebuild.
9527
9528 Thu Oct 5 14:04:07 1995 steve chamberlain <sac@slash.cygnus.com>
9529
9530 * peicode.c (coff_swap_filehdr_in): If symptr is
9531 zero, there aren't any symbols, even if nsyms is set.
9532
9533 Thu Oct 5 11:45:02 1995 Ian Lance Taylor <ian@cygnus.com>
9534
9535 * libecoff.h (struct ecoff_backend_data): Add adjust_headers
9536 field.
9537 * ecoff.c (ecoff_sec_to_styp_flags): Check for various Alpha
9538 sections, and set styp correctly for them: .got, .hash, .dynamic,
9539 .liblist, .rel.dyn, .conflic, .dynstr, .dynsym, .comment.
9540 (_bfd_ecoff_styp_to_sec_flags): Check for various Alpha section
9541 types.
9542 (ecoff_sort_hdrs): New static function.
9543 (ecoff_compute_section_file_positions): Return boolean, not void.
9544 Sort the sections by VMA before looking through them. Put the
9545 first non SEC_ALLOC section on a new page. Put every SEC_ALLOC
9546 section on an appropriate boundary within the page.
9547 (ecoff_compute_reloc_file_positions): Check return value of
9548 ecoff_compute_section_file_positions.
9549 (_bfd_ecoff_set_section_contents): Likewise.
9550 (_bfd_ecoff_write_object_contents): Check for various Alpha
9551 section types when incrementing text_size and data_size. Call
9552 adjust_headers backend function if it exists.
9553 * coff-alpha.c (alpha_adjust_headers): New static function.
9554 (alpha_ecoff_backend_data): Initialize adjust_headers field.
9555 * coff-mips.c (mips_ecoff_backend_data): Likewise.
9556
9557 * hosts/i386bsd.h: Restore file incorrectly deleted on Sep 6.
9558
9559 Wed Oct 4 18:15:02 1995 Jeff Law (law@hurl.cygnus.com)
9560
9561 * rs6000-core.c (CORE_VERSION_1): Use CORE_VERSION_1 instead
9562 of ALTERNATE_AIX_CORE_FORMAT.
9563 * configure.in (aix4): No longer need CORE_FLAGS.
9564 * configure: Updated.
9565
9566 Wed Oct 4 15:36:36 1995 Ken Raeburn <raeburn@cygnus.com>
9567
9568 NS32k changes from Ian Dall:
9569 * aoutx.h (MY_final_link_relocate, MY_relocate_contents): New
9570 macros.
9571 (aout_link_input_section_std, aout_link_input_section_ext,
9572 aout_link_reloc_link_order): Call them instead of _bfd_*
9573 versions.
9574 * aout-target.h (MY_exec_header_not_counted): New macro, defaults
9575 to zero.
9576 (backend_data): Use it instead of hardcoded zero.
9577
9578 * aout-ns32k.c (CTOR_TABLE_RELOC_HOWTO): New macro.
9579 (MY_swap_std_reloc_out): Use udata.i for KEEPIT, don't call stoi.
9580
9581 * ns32knetbsd.c: Include bfd.h.
9582 (MY_text_includes_header, MY_bfd_reloc_type_lookup): New macros.
9583 (MY_bfd_reloc_type_lookup): Declare function too.
9584 * pc532-mach.c (set_sizes): Don't declare.
9585 (MY_text_includes_header, MY_exec_header_not_counted): Define.
9586 (backend_data, MY_backend_data): Don't define.
9587
9588 * config.bfd: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
9589 ns32k-*-lites* like ns32k-*-netbsd*.
9590
9591 * hosts/nbsd.h: Swap order of sys/vmparam.h and sys/param.h, to
9592 compile on lites.
9593
9594 Wed Oct 4 14:15:52 1995 Ian Lance Taylor <ian@cygnus.com>
9595
9596 * coffcode.h (coff_write_object_contents): Restore setting
9597 f_timdat to 0, deleted on August 22.
9598
9599 Tue Oct 3 16:28:32 1995 steve chamberlain <sac@slash.cygnus.com>
9600
9601 * coffcode.h (coff_bfd_copy_private_symbol_data,
9602 coff_bfd_copy_private_section_data,
9603 coff_bfd_copy_private_bfd_data): ifdef to allow overrides.
9604 * peicode.h (coff_bfd_copy_private_bfd_data): New
9605 (pe_bfd_copy_private_bfd_data): New.
9606 (coff_swap_scnhdr_in): Swap bss size into the right place.
9607 (pe_print_private_bfd_data): Add some newlines.
9608
9609 Tue Oct 3 11:53:04 1995 Jeff Law (law@hurl.cygnus.com)
9610
9611 * som.c (setup_sections): Don't die if a space has no subspaces.
9612
9613 Mon Oct 2 14:08:55 1995 Ian Lance Taylor <ian@cygnus.com>
9614
9615 * elflink.h (elf_link_add_object_symbols): Don't let a weak
9616 dynamic symbol override a common symbol. Don't change the size or
9617 type if they have been set and the new symbol is not a definition.
9618 Warn if the size or type changes.
9619
9620 Sun Oct 1 01:34:41 1995 Jeff Law (law@hurl.cygnus.com)
9621
9622 * som.c (som_begin_writing): Don't write the symbol table or
9623 symbol strings.
9624 (som_finish_writing): Write them here. Place them after the
9625 subspace data, but before the relocs.
9626
9627 Fri Sep 29 11:01:55 1995 Ian Lance Taylor <ian@cygnus.com>
9628
9629 * sunos.c (sunos_add_one_symbol): Just pass false, not
9630 info->shared_library, to sunos_create_dynamic_sections.
9631 (sunos_scan_ext_relocs): Don't warn about a reloc in the .text
9632 section.
9633 (sunos_check_dynamic_reloc): Remove .text section assertion.
9634
9635 Thu Sep 28 18:48:47 1995 Stan Shebs <shebs@andros.cygnus.com>
9636
9637 * config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*.
9638 * configure, configure.in: Add pmac_xcoff_vec case.
9639 * Makefile.in (BFD32_BACKENDS): Add coff-pmac.o.
9640 * coff-pmac.c: New file, PowerMac XCOFF support.
9641 * coffcode.h (coff_set_arch_mach_hook): Add PowerMac case.
9642 * targets.c (pmac_xcoff_vec): Declare.
9643
9644 * mpw-config.in: Various changes to be compatible with the
9645 autoconf-based configury.
9646 * mpw-make.sed: New file, sed commands to translate Unix
9647 makefile into MPW syntax.
9648 * mpw-make.in: Remove.
9649 * hosts/mpw.h: Remove.
9650 * bfd-in.h, bfd-in2.h: If MPW, include the file that defines
9651 true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED.
9652
9653 Thu Sep 28 17:06:23 1995 steve chamberlain <sac@slash.cygnus.com>
9654
9655 * binary.c (binary_get_symtab): Return an empty string on error.
9656 * opncls.c (bfd_fdpenr): Change WIN32 restriction to WINGDB.
9657
9658 Thu Sep 28 15:30:44 1995 Kim Knuttila <krk@nellie>
9659
9660 * coff-ppc.c: Reformatted according to gnu conventions
9661 Removed irrelevant "if 0" code
9662
9663 Thu Sep 28 11:19:53 1995 Ian Lance Taylor <ian@cygnus.com>
9664
9665 * hp300hpux.c (convert_sym_type): Treat secondary symbols as weak
9666 symbols rather than as indirect symbols.
9667 (MY(slurp_symbol_table)): Don't do anything special about
9668 secondary symbols.
9669
9670 * coffcode.h (coff_new_section_hook): Make sure that the alignment
9671 of .ctors and .dtors sections is no larger than 2.
9672
9673 * sunos.c (sunos_add_one_symbol): Don't change
9674 bfd_link_hash_common to bfd_link_hash_new, since it may be on the
9675 undef list.
9676 (bfd_sunos_record_link_assignment): Don't put __DYNAMIC in the
9677 dynamic symbols when creating a shared library.
9678 (sunos_scan_ext_relocs): Handle relocs correctly when creating a
9679 shared library.
9680 (sunos_scan_dynamic_symbol): Don't mark the __DYNAMIC symbol as
9681 written even if it is not defined in a regular object.
9682 (sunos_write_dynamic_symbol): Use plt_offset for the address of
9683 the jump table reloc. Add an assertion. Use RELOC_JMP_SLOT
9684 rather than the constant 22.
9685 (sunos_check_dynamic_reloc): Handle creating a shared library.
9686 (sunos_finish_dynamic_link): Set the first entry in the GOT to
9687 zero when creating a shared library.
9688 * aoutx.h (NAME(aout,final_link)): If there is a symbol __DYNAMIC,
9689 write it out at the start of the symbol table.
9690
9691 * Makefile.in (BFD32_BACKENDS): Add coff-arm.o.
9692
9693 Thu Sep 28 00:58:05 1995 Doug Evans <dje@deneb.cygnus.com>
9694
9695 * config.bfd: Add arm-*-coff.
9696 * configure.in, configure: Add armcoff_{little,big}_vec.
9697 * targets.c (armcoff_{little,big}_vec): Declare.
9698 (bfd_target_vector): Add armcoff_{little,big}_vec.
9699 * coff-arm.c (armcoff_{little,big}_vec): Always define.
9700
9701 Wed Sep 27 10:37:14 1995 Ian Lance Taylor <ian@cygnus.com>
9702
9703 * targets.c (bfd_find_target): Remove debugging code.
9704
9705 Wed Sep 27 07:23:39 1995 Kim Knuttila <krk@nellie>
9706
9707 * coff-ppc.c, pe-ppc.c, pei-ppc.c: Initial bfd for coff/PE
9708 support on powerpc.
9709 * Makefile.in: added *-ppc files
9710 * coffcode.h: ppc MAGIC, and use peicode.h rather than coffswap.h to
9711 allow pe based .o's to be shared with other tools on ppc/NT
9712 * config.bfd: added powerpc[le]-[pe|winnt] config support
9713 * configure, configure.in: added bfd_powerpc[le]_pe[i]_vec
9714 * peicode.h: Added more section flags for PE on ppc
9715 Added coff_swap_filehdr_out to allow peicode.h to be
9716 used for non-image PE files on ppc.
9717 Check for image, or not, before copying pe_opthdr
9718 * targets.c: Added new bfd's
9719 * targets.c: Removed two inactive bfds that shouldn't have made it this
9720 far.
9721
9722 Tue Sep 26 14:06:41 1995 Michael Meissner <meissner@tiktok.cygnus.com>
9723
9724 * elf32-ppc.c (ppc_reloc_type): Rename from reloc_type, and use
9725 explicit values to initialize all relocs. Change all users.
9726 (ppc_elf_brtaken_inner): New function to handle branch predicition
9727 relocs.
9728 (ppc_elf_brtaken_reloc): Ditto.
9729 (ppc_elf_howto_raw): Use new functions. Make sure all unsupported
9730 relocs use ppc_elf_unsupported_reloc.
9731 (ppc_elf_merge_private_bfd_data): Keep track of whether an error
9732 needs to be reported.
9733 (ppc_elf_relocate_section): Support branch prediction relocs.
9734
9735 Tue Sep 26 12:48:05 1995 Ian Lance Taylor <ian@cygnus.com>
9736
9737 * bfd.c (bfd_assert): Remove \n from string passed to
9738 _bfd_error_handler.
9739
9740 * coff-i386.c: (TWO_DATA_SECS): Don't define.
9741 * coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook.
9742 (bfd_coff_make_section_hook): Don't define.
9743 (coff_make_section_hook): Remove.
9744 (sec_to_styp_flags): Remove TWO_DATA_SECS case.
9745 (styp_to_sec_flags): Likewise.
9746 (coff_write_object_contents): Likewise.
9747 (bfd_coff_std_swap_table): Don't initialize make_section_hook
9748 field.
9749 * libcoff.h: Rebuild.
9750 * coffgen.c (make_a_section_from_file): Just call
9751 bfd_make_section_anyway, not bfd_make_section or
9752 bfd_coff_make_section_hook.
9753 * ecoff.c (_bfd_ecoff_make_section_hook): Remove.
9754 * libecoff.h (_bfd_ecoff_make_section_hook): Don't declare.
9755 * coff-alpha.c (alpha_ecoff_backend_data): Don't initialize
9756 make_section_hook field.
9757 * coff-mips.c (mips_ecoff_backend_data): Likewise.
9758
9759 * aoutx.h (translate_from_native_sym_flags): Don't try to stuff
9760 pointers into value field for warning and indirect symbols; just
9761 leave the value field alone.
9762 * linker.c (generic_link_add_symbol_list): Use next symbol for
9763 warning and indirect symbols, rather than looking in symbol value.
9764 * ecoff.c (ecoff_set_symbol_info): Remove indirect_ptr_ptr
9765 parameter. Change all callers. Remove support for indirect
9766 symbols; it didn't work anyhow.
9767 (_bfd_ecoff_slurp_symbol_table): Remove indirect_ptr variable.
9768 * syms.c: Change comments about BSF_WARNING and BSF_INDIRECT.
9769 * bfd-in2.h: Rebuild.
9770
9771 Mon Sep 25 16:04:09 1995 Michael Meissner <meissner@tiktok.cygnus.com>
9772
9773 * elf32-ppc.c (ppc_elf_howto_raw): For all 14-bit branch relocs,
9774 go back to telling the tools this reloc operates on 32 bits.
9775
9776 Mon Sep 25 11:48:02 1995 Ian Lance Taylor <ian@cygnus.com>
9777
9778 * aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler
9779 rather than a direct fprintf.
9780 * archive.c (_bfd_write_archive_contents): Likewise.
9781 * coffcode.h (coff_slurp_symbol_table): Likewise.
9782 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Likewise.
9783 (ppc_elf_unsupported_reloc): Likewise.
9784 (ppc_elf_relocate_section): Likewise.
9785 * i386linux.c (linux_tally_symbols): Likewise.
9786 (linux_finish_dynamic_link): Likewise.
9787 * osf-core.c (osf_core_core_file_p): Likewise.
9788 * rs6000-core.c (rs6000coff_get_section_contents): Likewise.
9789 * som.c (som_sizeof_headers): Likewise.
9790 * srec.c (srec_bad_byte): Likewise.
9791 * bfd.c (bfd_assert): Likewise. Also change file to be const.
9792 * libbfd-in.h (bfd_assert): Declare first parameter const.
9793 * libbfd.h: Rebuild.
9794 * coff-a29k.c (a29k_reloc): Don't bother to fprintf; returning
9795 bfd_reloc_overflow is enough.
9796 * coff-h8300.c (rtype2howto): Don't bother to fprintf; just abort.
9797 * coff-h8500.c (rtype2howto): Likewise.
9798 * coff-z8k.c (rtype2howto): Likewise.
9799 * coffcode.h (dummy_reloc16_extra_cases): Likewise.
9800 * elf.c (_bfd_elf_get_lineno): Likewise.
9801 (_bfd_elf_no_info_to_howto): Likewise.
9802 (_bfd_elf_no_info_to_howto_rel): Likewise.
9803 * hp300hpux.c (convert_sym_type): Likewise.
9804 (MY(swap_std_reloc_in)): Likewise.
9805 * elf.c (bfd_section_from_shdr): Remove #if 0 sections.
9806
9807 * libaout.h (struct aoutdata): Add line_buf field.
9808 * aoutx.h (NAME(aout,find_nearest_line)): Remove statics buffer
9809 and filename_buffer. Instead, use a malloc buffer stored in the
9810 new line_buf field. Remove length restrictions.
9811
9812 * coffgen.c (string_size): Remove static variable.
9813 (debug_string_size, debug_string_section): Likewise.
9814 (coff_fix_symbol_name): Add string_size_p, debug_string_section_p,
9815 and debug_string_size_p parameters. Use them instead of the
9816 global variables. Change all callers.
9817 (coff_write_symbol): Likewise.
9818 (coff_write_alien_symbol, coff_write_native_symbol): Likewise.
9819 (coff_write_symbols): Add local variables to replace removed
9820 global variables.
9821
9822 * libcoff-in.h (struct coff_section_tdata): Add offset, i,
9823 function, and line_base fields.
9824 * libcoff.h: Rebuild.
9825 * coffgen.c (coff_find_nearest_line): Use section tdata to cache
9826 information, rather than using static variables.
9827
9828 * sunos.c (sunos_read_dynamic_info): Adjust offsets in an NMAGIC
9829 file. From Peter DeWolf <pld@amt.tay1.dec.com>.
9830
9831 * init.c (initialized): Remove static variable.
9832 (bfd_init): Don't bother setting initialized.
9833 (bfd_check_init): Remove.
9834 * opncls.c (_bfd_new_bfd): Don't call bfd_check_init.
9835 * libbfd.h: Rebuild.
9836
9837 Sat Sep 23 01:22:23 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
9838
9839 * rs6000-core.c (rs6000coff_core_p): Don't check the core file
9840 size for full core dumps. Copy core file header to private data.
9841 (rs6000coff_core_file_failing_command,
9842 rs6000coff_core_file_failing_signal): New functions to extract
9843 the file name and terminating signal from the core file.
9844 * coff-rs6000.c: Use them.
9845
9846 Fri Sep 22 17:44:47 1995 Ian Lance Taylor <ian@cygnus.com>
9847
9848 Change arch info to be const, initialized at compile time.
9849 * archures.c: Reindent many functions. Change CONST to const.
9850 (bfd_arch_info_type): Make arch_name const. Remove disassemble;
9851 nothing set it anyhow. Make next const.
9852 (bfd_arch_info_list): Remove.
9853 (bfd_archures_list): Rename from archures_init_table. Change from
9854 a table of function pointers to a table of bfd_arch_info_type
9855 structure addresses.
9856 (bfd_scan_arch): Rewrite accordingly. Return a const pointer.
9857 (bfd_lookup_arch): Likewise.
9858 (bfd_set_arch_info): Rewrite accordingly. Change argument to be a
9859 const pointer.
9860 (bfd_default_arch_struct): Make const.
9861 (bfd_arch_init, bfd_arch_linkin): Remove.
9862 (bfd_get_arch_info): Return a const pointer.
9863 * init.c (bfd_init): Don't call bfd_arch_init.
9864 * bfd.c (struct _bfd): Make arch_info const.
9865 * bfd-in2.h: Rebuild.
9866 * libbfd.h: Rebuild.
9867 * configure.in: Put & before everything in $selarchs.
9868 * configure: Rebuild.
9869 * cpu-*.c: Change bfd_*_arch from a function which calls
9870 bfd_arch_linkin to a const structure.
9871 * ieee.c (ieee_object_p): Make arch const.
9872
9873 Fri Sep 22 16:23:18 1995 Michael Meissner <meissner@tiktok.cygnus.com>
9874
9875 * reloc.c (bfd_reloc_code_type): Add relocations to support all of
9876 PowerPC V.4.
9877 * bfd-in2.h: Regenerate.
9878 * libbfd.h: Regenerate.
9879
9880 * elf32-ppc.c (reloc_type): Update names to match current draft.
9881 (ppc_elf_howto_raw): Mark 14 bit relocs as short sized and PC
9882 relative. Update names to current V.4 draft.
9883 (ppc_elf_reloc_type_lookup): Add support for more relocations.
9884 (ppc_elf_relocate_section): Rename relocations to match draft.
9885
9886 Thu Sep 21 21:53:18 1995 Michael Meissner <meissner@cygnus.com>
9887
9888 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Allow modules
9889 compiled with -mrelocatable-lib to be linked with either normal
9890 modules or -mrelocatable modules.
9891
9892 Wed Sep 20 12:03:26 1995 Ian Lance Taylor <ian@cygnus.com>
9893
9894 * coffcode.h (coff_write_object_contents): Clear the vstamp field
9895 in the a.out header.
9896
9897 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for
9898 a reloc against a local symbol, even if it's not a section.
9899
9900 Tue Sep 19 17:02:26 1995 Ian Lance Taylor <ian@cygnus.com>
9901
9902 * targets.c (bfd_target): Remove unused align_power_min field.
9903 * bfd-in2.h: Rebuild.
9904 * All backends: Remove initialization of align_power_min.
9905
9906 Tue Sep 19 14:02:21 1995 steve chamberlain <sac@slash.cygnus.com>
9907
9908 * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right.
9909
9910 Mon Sep 18 14:35:01 1995 Arne H. Juul <arnej@pvv.unit.no>
9911
9912 * config.bfd (mips-dec-netbsd*): New target.
9913 * configure.host (mips-dec-netbsd*): New host.
9914 * configure.in (mips-dec-netbsd*): New native.
9915 * configure: Rebuild.
9916
9917 Fri Sep 15 10:24:36 1995 Ian Lance Taylor <ian@cygnus.com>
9918
9919 Make the COFF backend linker merge common types:
9920 * cofflink.c (struct coff_debug_merge_element): Define.
9921 (struct coff_debug_merge_type): Define.
9922 (struct coff_debug_merge_hash_entry): Define.
9923 (struct coff_debug_merge_hash_table): Define.
9924 (coff_debug_merge_hash_table_init): Define.
9925 (coff_debug_merge_hash_table_free): Define.
9926 (coff_debug_merge_hash_lookup): Define.
9927 (struct coff_final_link_info): Add debug_merge field.
9928 (coff_debug_merge_hash_newfunc): New static function.
9929 (_bfd_coff_final_link): Allocate and free debug_merge table.
9930 (coff_link_input_bfd): Merge identical enum, struct and union
9931 types.
9932
9933 Thu Sep 14 14:53:58 1995 Ian Lance Taylor <ian@cygnus.com>
9934
9935 Convert i960 COFF to use COFF backend linker.
9936 * coff-i960.c (coff_i960_relocate): Use a coff_section_data
9937 structure to store the symbol being used.
9938 (coff_i960_start_final_link): New static function.
9939 (coff_i960_relocate_section): New static function.
9940 (coff_i960_adjust_symndx): New static function.
9941 (coff_start_final_link): Define.
9942 (coff_relocate_section): Define.
9943 (coff_adjust_symndx): Define.
9944 * coffcode.h (bfd_coff_backend_data): Add new callback function
9945 _bfd_coff_start_final_link.
9946 (bfd_coff_start_final_link): Define.
9947 (coff_start_final_link): Define if not defined.
9948 (bfd_coff_std_swap_table): Add coff_start_final_link.
9949 * cofflink.c (_bfd_coff_internal_syment_name): Make globally
9950 visible.
9951 (_bfd_coff_final_link): Call bfd_coff_start_final_link if the
9952 function callback is not NULL.
9953 * libcoff-in.h (struct coff_section_tdata): Add tdata field.
9954 (_bfd_coff_internal_syment_name): Declare.
9955 * libcoff.h: Rebuild.
9956 * configure.in (icoff_big_vec): Add cofflink.o.
9957 (icoff_little_vec): Likewise.
9958 * configure: Rebuild.
9959
9960 Wed Sep 13 17:38:23 1995 Fred Fish <fnf@rtl.cygnus.com>
9961
9962 * Makefile.in (clean-info): Remove extraneous tab from line
9963 following action.
9964
9965 Wed Sep 13 13:27:53 1995 Ian Lance Taylor <ian@cygnus.com>
9966
9967 * cofflink.c (coff_link_input_bfd): Fail if a section with no
9968 contents has relocs.
9969
9970 Thu Sep 12 12:45:34 1995 steve chamberlain <sac@slash.cygnus.com>
9971
9972 * coffcode.h (coff_compute_section_file_positions): Keep the
9973 raw size safe.
9974 (coff_write_object_contents): Remember if it's a relocatable
9975 file.
9976 * libcoff-in.h (pe_data_type): New member 'has_reloc_section'
9977 * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag
9978 if relocatable file. Swap out saved raw size.
9979
9980 Tue Sep 12 12:14:33 1995 Ian Lance Taylor <ian@cygnus.com>
9981
9982 * Makefile.in (do_maintainer_clean): Rename from do_realclean.
9983 (maintainer-clean): Rename from realclean, passing
9984 maintainer-clean down to subdirectories, but leave realclean as a
9985 synonym.
9986
9987 * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
9988 warning callback.
9989
9990 * dep-in.sed: Remove config.h from generated dependencies.
9991
9992 * sunos.c (sunos_slurp_dynamic_symtab): New static function,
9993 broken out of sunos_canonicalize_dynamic_symtab.
9994 (sunos_canonicalize_dynamic_symtab): Call new function
9995 sunos_slurp_dynamic_symtab.
9996 (sunos_add_dynamic_symbols): Add three new parameters. Return the
9997 dynamic symbol table to the caller.
9998 * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols
9999 callback to override the symbols being read.
10000 * libaout.h (struct aout_backend_data): Add three new parameters
10001 to add_dynamic_symbols callback.
10002
10003 Extensive minor changes to avoid various gcc warnings. Also:
10004 * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
10005 * archures.c (bfd_arch_info_type): Change mach field from long to
10006 unsigned long.
10007 (bfd_lookup_arch): Change machine parameter from long to unsigned
10008 long.
10009
10010 Mon Sep 11 10:55:47 1995 Ian Lance Taylor <ian@cygnus.com>
10011
10012 * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
10013 a symbol with a non-zero plt_offset.
10014
10015 Fri Sep 8 11:47:24 1995 Ian Lance Taylor <ian@cygnus.com>
10016
10017 * elfcode.h (align_file_position): Remove; not used.
10018
10019 * configure.in: Only check for <sys/procfs.h> on a native system,
10020 and make sure it defines prstatus_t.
10021 * configure: Rebuild.
10022
10023 Thu Sep 7 12:48:01 1995 Ian Lance Taylor <ian@cygnus.com>
10024
10025 * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.
10026
10027 * config.in: Rename from config.h.in.
10028 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
10029 Check for config.h:config.in when creating stamp-h.
10030 * configure: Rebuild.
10031 * Makefile.in (stamp-h): Depend upon config.in rather than
10032 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
10033 calling config.status.
10034
10035 * Makefile.in (do_distclean): Remove config.h and stamp-h.
10036 (Makefile): Just rebuild Makefile.
10037 (config.h, stamp-h): New targets.
10038 * configure.in: Create stamp-h when rebuilding config.h.
10039 * configure: Rebuild.
10040
10041 Wed Sep 6 15:00:33 1995 Ian Lance Taylor <ian@cygnus.com>
10042
10043 * configure.in: Call AC_CONFIG_HEADER. Substitute
10044 HOST_64BIT_LONG. Check that various header files exist. Check
10045 that fcntl exists. Call BFD_BINARY_FOPEN. Check whether malloc
10046 and/or free need to be declared. Don't make a link to sysdep.h.
10047 Define TRAD_HEADER for various hosts.
10048 * configure: Rebuild.
10049 * configure.host: Don't set my_host. Add definitions taken from
10050 host header files for various entries. Remove entries which now
10051 do nothing.
10052 * acconfig.h: New file.
10053 * config.h.in: New file, built by autoheader.
10054 * sysdep.h: New file.
10055 * Makefile.in (do_distclean): Don't remove sysdep.h.
10056 (RECONFIG): Remove.
10057 (LOCAL_H_DEPS): New variable.
10058 ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
10059 $(RECONFIG).
10060 ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise.
10061 ($(OPTIONAL_BACKENDS)): Likewise.
10062 (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than
10063 looking through sysdep.h.
10064 * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile.
10065 (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG.
10066 (fprintf_vma, sprintf_vma): Likewise.
10067 (int64_type, uint64_type): Don't define.
10068 * bfd-in2.h: Rebuild.
10069 * archures.c, bfd.c, srec.c: Include <ctype.h>.
10070 * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS.
10071 * lynx-core.c: Include stuff from old hosts/lynx.h.
10072 * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL),
10073 rather than NO_FCNTL.
10074 * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__
10075 rather than NATIVE_HPPAHPUX_COMPILER.
10076 * trad-core.c: Don't include <errno.h>. Include TRAD_HEADER if it
10077 is defined.
10078 * hosts/*.h: Remove all header files which merely include,
10079 declare, and define things. Leave header files which define
10080 information needed by trad-core.c.
10081
10082 * aclocal.m4 (BFD_BINARY_FOPEN): Define.
10083 (BFD_CC_FOR_BUILD): Define.
10084 * configure.in: Use BFD_CC_FOR_BUILD.
10085 * configure: Rebuild.
10086
10087 Tue Sep 5 19:35:28 1995 Ian Lance Taylor <ian@cygnus.com>
10088
10089 * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
10090 * configure: Rebuild.
10091
10092 * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
10093 a global symbol.
10094
10095 Tue Sep 5 12:48:26 1995 Jason Molenda (crash@phydeaux.cygnus.com)
10096
10097 * config.bfd: i386pe_ve -> i386pe_vec.
10098
10099 Mon Sep 4 14:02:43 1995 Ian Lance Taylor <ian@cygnus.com>
10100
10101 * configure.host: Incorporate host Makefile fragments by setting
10102 shell variables.
10103 * configure.in: Call AC_PROG_CC. Substitute CFLAGS, HDEFINES and
10104 AR. Call AC_PROG_INSTALL. Substitute CC_FOR_BUILD, choosing a
10105 value based on whether the code is being compiled by a cross
10106 compiler. Don't substitute host_makefile_frag or frags.
10107 * aclocal.m4: New file to define local AC_PROG_CC.
10108 * configure: Rebuild.
10109 * Makefile.in (INSTALL): Set to @INSTALL@.
10110 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
10111 (INSTALL_DATA): Set to @INSTALL_DATA@.
10112 (AR): Set to @AR@.
10113 (CC): Define as @CC@.
10114 (CFLAGS): Set to @CFLAGS@.
10115 (CC_FOR_BUILD): Set to @CC_FOR_BUILD@.
10116 (@host_makefile_frag@): Remove.
10117 (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@. Move $(CFLAGS)
10118 after other options.
10119 (config.status): Remove dependency upon @frags@.
10120 * config/*.mh, config/README: Remove.
10121
10122 * config.bfd: Rewrite to incorporate the contents of the Makefile
10123 fragments by setting shell variables, rather than merely returning
10124 the name of a Makefile fragment.
10125 * configure.in: Use shell variables set by config.bfd rather than
10126 looking at the target Makefile fragment files. Don't substitute
10127 target_makefile_frag. Do substitute TDEFINES.
10128 * configure: Rebuild.
10129 * Makefile.in (@target_makefile_frag@): Remove.
10130 (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@.
10131 * config/*.mt: Remove.
10132
10133 Mon Sep 4 03:13:28 1995 Ken Raeburn <raeburn@cygnus.com>
10134
10135 * configure.in: Put changequote lines around "i[345]86" patterns
10136 section of core file support.
10137
10138 Sun Sep 3 11:31:58 1995 Jeff Law (law@snake.cs.utah.edu)
10139
10140 * som.c (som_bfd_print_private_bfd_data): Define to use the
10141 generic version.
10142
10143 Fri Sep 1 17:08:40 1995 steve chamberlain <sac@slash.cygnus.com>
10144
10145 * peicode.h (coff_swap_aouthdr_in): Add ImageBase to
10146 entry, text_start and data_start.
10147
10148 Fri Sep 1 18:06:28 1995 Ian Lance Taylor <ian@cygnus.com>
10149
10150 * Makefile.in (OFILES): Remove $(TDEPFILES).
10151 * config/apollo.mt (TDEPFILES): Remove.
10152 * config/README: Update.
10153
10154 * configure.in: For a native configuration, set COREFILE and
10155 COREFLAG based on the canonical host name.
10156 * configure: Rebuild.
10157 * Makefile.in: Rebuild dependencies.
10158 (ALL_CFLAGS): Add @COREFLAG@.
10159 (OFILES): Replace $(HDEPFILES) with @COREFILE@.
10160 * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file
10161 support routines. Check LYNX_CORE rather than HOST_LYNX.
10162 * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX.
10163 * i386lynx.c: Likewise.
10164 * m68klynx.c: Likewise.
10165 * sparclynx.c: Likewise.
10166 * rs6000-core.c: Check AIX_CORE rather than HOST_AIX.
10167 * *-core.c: Comment changes.
10168 * config/decstation.mh (HDEPFILES): Remove.
10169 (HDEFINES): Remove -DTRAD_CORE.
10170 * config/irix3.mh (RANLIB): Remove.
10171 * config/irix4.mh (HDEPFILES, RANLIB): Remove.
10172 (HDEFINES): Remove -DIRIX_CORE.
10173 * config/riscos.mh (RANLIB, HDEPFILES): Remove.
10174 (HDEFINES): Remove -DTRAD_CORE.
10175 * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove.
10176 * config/ultra3.mh (RANLIB): Remove.
10177 * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove.
10178 * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove.
10179 * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove.
10180 * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove.
10181 * config/hppahpux.mh, config/hppaosf.mh: Remove.
10182 * config/i386aix.mh, config/i386bsd.mh: Remove.
10183 * config/i386linux.mh, config/i386mach3.mh: Remove.
10184 * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove.
10185 * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove.
10186 * config/mipsmach3.mh, config/news-mips.mh: Remove.
10187 * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove.
10188 * config/rs600.mh, config/rs6000lynx.mh: Remove.
10189 * config/solaris2.mh, config/stratus.mh: Remove.
10190 * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove.
10191 * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove.
10192
10193 Fri Sep 1 15:18:50 1995 Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>
10194
10195 * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or
10196 DT_FINI entry if the appropriate symbol is not in the hash table.
10197
10198 * libelf.h (struct elf_backend_data): Add create_program_headers
10199 and want_hdr_in_seg fields.
10200 * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not
10201 defined.
10202 (elf_backend_create_program_headers): Likewise.
10203 (elfNN_bed): Initialize create_program_headers and
10204 want_hdr_in_seg.
10205 * elf.c (get_program_header_size): Call create_program_headers
10206 backend routine.
10207 (map_program_segments): Check want_hdr_in_seg backend field. Call
10208 create_program_headers backend routine.
10209
10210 * elf.c (assign_file_positions_except_relocs): Align non allocated
10211 sections when creating an executable.
10212
10213 * elfcode.h (elf_swap_phdr_in): Make non static.
10214 (elf_swap_phdr_out): Make non static.
10215 * libelf.h (bfd_elf32_swap_phdr_in): Declare.
10216 (bfd_elf32_swap_phdr_out): Declare.
10217 (bfd_elf64_swap_phdr_in): Declare.
10218 (bfd_elf64_swap_phdr_out): Declare.
10219
10220 * ecofflink.c (ecoff_collect_shuffle): New static function.
10221 (_bfd_ecoff_get_accumulated_pdr): New function.
10222 (_bfd_ecoff_get_accumulated_sym): New function.
10223 (_bfd_ecoff_get_accumulated_ss): New function.
10224 * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare.
10225 (_bfd_ecoff_get_accumulated_sym): Declare.
10226 (_bfd_ecoff_get_accumulated_ss): Declare.
10227 * libbfd.h: Rebuild.
10228
10229 Fri Sep 1 13:20:25 1995 Ian Lance Taylor <ian@cygnus.com>
10230
10231 * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo.
10232
10233 * elflink.h (elf_link_add_object_symbols): Handle indirect and
10234 warning symbols. If any section is named .gnu.warning.XXX, treat
10235 the contents as a warning to be issued if the symbol XXX is
10236 referenced.
10237 (elf_link_output_extsym): For an indirect or warning symbol, just
10238 output the symbol it points to.
10239
10240 * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error
10241 if bfd_hash_allocate fails, since it will already be set.
10242 (generic_link_hash_newfunc): Likewise.
10243 (archive_hash_newfunc): Likewise.
10244 (hash_entry_bfd): New static function.
10245 (_bfd_generic_link_add_one_symbol): Pass new arguments to warning
10246 callback. Allocate a new warning using the hash table newfunc.
10247 Use bfd_hash_replace to update the entry in the hash table, rather
10248 than assuming we can copy the fields with structure assignment.
10249
10250 * hash.c (bfd_hash_replace): New function.
10251 * bfd-in.h (bfd_hash_replace): Declare.
10252 * bfd-in2.h: Rebuild.
10253
10254 Fri Sep 1 08:12:50 1995 James G. Smith <jsmith@beauty.cygnus.com>
10255
10256 * config.bfd: Add mips*vr4300-*-elf* target.
10257 * config/mipsbvr4300.mt: Added.
10258
10259 See file ChangeLog.2
10260
10261 \f
10262 Local Variables:
10263 mode: change-log
10264 left-margin: 8
10265 fill-column: 74
10266 version-control: never
10267 End: