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