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