1 Wed Jun 3 12:18:24 1998 Stan Cox <scox@equinox.cygnus.com>
3 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Give an
4 error if previous object endianness doesn't match current object.
6 Tue Jun 2 17:50:59 1998 Nick Clifton <nickc@cygnus.com>
8 * elf32-v850.c (v850_elf_print_private_bfd_data): Call
9 _bfd_elf_print_private)bfd_data ().
11 Tue Jun 2 15:29:35 1998 Ian Lance Taylor <ian@cygnus.com>
13 * elflink.h (elf_merge_symbol): Don't always set type_change_ok
15 (elf_link_add_object_symbols): Set type_change_ok and
16 size_change_ok before calling elf_merge_symbol.
18 * elf32-mips.c (mips_elf_relocate_section): If we issue an
19 undefined symbol error, don't also issue an overflow error.
21 Tue Jun 2 13:51:00 1998 Geoff Keating <geoffk@ozemail.com.au>
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.
27 Mon Jun 1 18:23:12 1998 Yuli Barcohen <yuli.barcohen@telrad.co.il>
29 * archures.c (bfd_mach_cpu32): Define.
30 (bfd_default_scan): Add case for 68060. Fix 68332 case to use
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.
38 Mon Jun 1 11:12:02 1998 Nick Clifton <nickc@cygnus.com>
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
44 Mon Jun 1 12:14:28 1998 Ian Lance Taylor <ian@cygnus.com>
46 * peicode.h (coff_swap_sym_in): Check for C_SECTION rather than
47 0x68. Reindent. Add some comments.
50 Sun May 31 16:11:22 1998 Doug Evans <devans@canuck.cygnus.com>
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
56 (_bfd_mips_elf_fake_sections): Ditto.
59 Fri May 29 09:58:08 1998 Nick Clifton <nickc@cygnus.com>
61 * elf.c (copy_private_bfd_data): Adjust physical address of
62 segment in output BFD to contain LMAs of its sections.
64 Tue May 26 19:37:47 1998 Stan Cox <scox@equinox.cygnus.com>
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.
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.
79 Thu May 21 16:59:28 1998 Nick Clifton <nickc@cygnus.com>
81 * peicode.h (add_data_entry): Fix precedence of operators in if ()
84 Tue May 19 18:41:19 1998 Ian Lance Taylor <ian@cygnus.com>
86 * bfd-in.h: Move over patch to bfd-in2.h.
88 * reloc.c (bfd_check_overflow): Add casts before shifts which may
90 (_bfd_relocate_contents): Likewise.
92 Mon May 18 14:44:15 1998 Nick Clifton <nickc@cygnus.com>
94 * peicode.h (add_data_entry): If the section has no private data
95 then do not create a Data Dictionary entry for it.
97 Mon May 18 00:09:28 1998 Richard Henderson <rth@cygnus.com>
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.
104 Thu May 14 14:22:58 1998 Nick Clifton <nickc@cygnus.com>
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.
114 Sun May 10 22:33:59 1998 Jeffrey A Law (law@cygnus.com)
116 * po/Make-in (install-info): New target.
118 Thu May 7 17:40:56 1998 Ian Lance Taylor <ian@cygnus.com>
120 * filemode.c: Remove; not used.
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
125 * aoutx.h: Don't include <string.h>. Use "sysdep.h" rather than
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
135 * hpux-core.c: Likewise.
136 * netbsd-core.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>.
145 Thu May 7 13:12:50 1998 Klaus Kaempf <kkaempf@progis.de>
147 * configure.com: If the version number can not be found in
148 configure.in, set it to "unknown" rather than "2.8.1".
150 Wed May 6 09:46:05 1998 Gavin Koch <gavin@cygnus.com>
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.
160 Tue May 5 21:01:53 1998 Richard Henderson <rth@cygnus.com>
162 * syms.c (bfd_is_local_label): Revert last change.
163 * srec.c (srec_write_symbols): Discard debugging symbols.
165 Tue May 5 23:36:06 1998 Ian Lance Taylor <ian@cygnus.com>
167 * som.c: Include <ctype.h>.
168 * som.h: Don't include sysdep.h.
170 Tue May 5 18:29:24 1998 Tom Tromey <tromey@cygnus.com>
173 * libbfd-in.h: Removed gettext includes and defines.
174 * sysdep.h: Moved gettext-related includes and defines here.
176 Tue May 5 16:47:54 1998 Richard Henderson <rth@cygnus.com>
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.
182 Mon May 4 16:10:33 1998 Ian Lance Taylor <ian@cygnus.com>
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.
189 Mon May 4 10:08:18 1998 Tom Tromey <tromey@cygnus.com>
192 * libbfd-in.h (_): Define as dgettext.
194 Mon May 4 11:02:23 1998 Ian Lance Taylor <ian@cygnus.com>
196 * coff-arm.c (coff_arm_relocate_section): Cast to bfd_signed_vma,
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.
202 Wed Apr 29 15:35:03 1998 Ian Lance Taylor <ian@cygnus.com>
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.
215 Tue Apr 28 20:05:52 1998 Ian Lance Taylor <ian@cygnus.com>
217 * configure.in (WIN32LIBADD): Add -lintl on cygwin32.
218 * configure: Rebuild.
220 Tue Apr 28 12:16:57 1998 Jason Molenda (crash@bugshack.cygnus.com)
222 * config.bfd: Update OSR5/Unixware patterns.
224 Mon Apr 27 18:02:24 1998 Richard Henderson <rth@cygnus.com>
226 * elf.c (assign_file_positions_for_segments): Allow for holes
227 between sections added by a link script.
229 Mon Apr 27 11:49:55 1998 Ian Lance Taylor <ian@cygnus.com>
231 * configure.in: Change version number to 2.9.4
232 * configure: Rebuild.
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.
239 Sat Apr 25 20:07:53 1998 Richard Henderson <rth@cygnus.com>
241 * elf64-alpha.c (struct alpha_relax_info): Replace elfsym with other.
244 Sat Apr 25 18:29:07 1998 Richard Henderson <rth@cygnus.com>
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.
253 Sat Apr 25 14:07:29 1998 Richard Henderson <rth@cygnus.com>
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.
260 Fri Apr 24 09:16:00 1998 Nick Clifton <nickc@cygnus.com>
262 * elf32-v850.c (v850_elf_print_private_bfd_data): Add
263 internationalisation of printed information.
265 * coff-arm.c (coff_arm_print_private_bfd_data): Add
266 internationalisation of printed information.
268 Fri Apr 24 12:09:18 1998 Ian Lance Taylor <ian@cygnus.com>
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 *.
274 Thu Apr 23 08:13:04 1998 Nick Clifton <nickc@cygnus.com>
276 * peicode.h (dir_names): Add missing N_() macros to dir_names array.
278 Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
280 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
282 Wed Apr 22 17:48:48 1998 Ian Lance Taylor <ian@cygnus.com>
284 * Makefile.am (install-data-local): Make $(includedir).
285 * Makefile.in: Rebuild.
287 Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
289 * libbfd-in.h: Use `gettext' and not `dgettext' for now.
291 Wed Apr 22 12:53:40 1998 Ian Lance Taylor <ian@cygnus.com>
293 * Makefile.am (INCLUDES): Add -I$(srcdir)/../intl -I../intl.
294 * Makefile.in: Rebuild.
296 * bfd-in2.h: Rebuild for Nick's changes.
298 Tue Apr 21 23:11:51 1998 Richard Henderson <rth@cygnus.com>
300 * archive.c (_bfd_generic_read_ar_hdr_mag): Fix lossage in last
301 change wrt length == max_namelen.
303 Tue Apr 21 21:19:36 1998 Tom Tromey <tromey@scribbles.cygnus.com>
305 * Many files: Added gettext invocations around user-visible
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
312 * Makefile.am (SUBDIRS): Added po.
313 (POTFILES): New macro.
314 (po/POTFILES.in): New target.
315 (SOURCE_HFILES): New macro.
317 * po/Make-in, po/POTFILES.in, po/bfd.pot: New files.
319 Tue Apr 21 13:38:18 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
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.
325 Tue Apr 21 10:00:12 1998 Nick Clifton <nickc@cygnus.com>
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
333 * peicode.h: ARM specific code reorganised to conform to BFD
335 * coffcode.h: ARM specific code reorganised to conform to BFD
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.
343 Tue Apr 21 00:11:51 1998 Richard Henderson <rth@cygnus.com>
345 * archive.c (_bfd_generic_read_ar_hdr_mag): Simplify end-of-name test.
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.
352 Sat Apr 18 01:21:04 1998 Stan Cox <scox@cygnus.com>
354 * config.bfd: Added sparc86x support.
356 Fri Apr 17 22:29:04 1998 Ian Lance Taylor <ian@cygnus.com>
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.
361 Thu Apr 16 13:49:00 1998 Richard Henderson <rth@cygnus.com>
363 * elf64-alpha.c (elf64_alpha_do_reloc_gpdisp): Do all gpdisp
366 Thu Apr 16 11:43:33 1998 Ian Lance Taylor <ian@cygnus.com>
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.
372 * targets.c (bfd_target_vector) [SELECT_VECS not defined]: Add
373 bfd_elf32_powerpcle_vec.
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.
378 Wed Apr 15 22:15:16 1998 Richard Henderson <rth@cygnus.com>
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.
399 Wed Apr 15 16:08:46 1998 Richard Henderson <rth@cygnus.com>
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.
405 Wed Apr 15 11:34:33 1998 Ian Lance Taylor <ian@cygnus.com>
407 * configure.in: Add -lkernel32 to WIN32LIBADD on cygwin32.
408 * configure: Rebuild.
410 Mon Apr 13 16:46:27 1998 Ian Lance Taylor <ian@cygnus.com>
412 * Makefile.am (libbfd_la_LIBADD): Add @WIN32LIBADD@.
413 (libbfd_la_LDFLAGS): Add @WIN32LDFLAGS@.
414 * configure.in: Define and substitute WIN32LDFLAGS and
416 * aclocal.m4: Rebuild with new libtool.
417 * configure, Makefile.in: Rebuild.
419 Fri Apr 10 13:44:27 1998 Ian Lance Taylor <ian@cygnus.com>
421 * coffcode.h (coff_write_object_contents): Move a PE COMDAT symbol
422 before any other symbols in the same section.
424 Wed Apr 8 14:50:23 1998 Michael Meissner <meissner@cygnus.com>
426 * config.bfd (powerpc*-*-*): Remove PowerPC NT support from ELF
429 Tue Apr 7 16:25:31 1998 Gavin Romig-Koch <gavin@cygnus.com>
431 * dwarf2.c (comp_unit): Move it earlier in the source. Add
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
444 Tue Apr 7 15:44:47 1998 Gavin Romig-Koch <gavin@cygnus.com>
446 * dwarf2.c (parse_comp_unit): Drop use of unit->name when it is null.
448 Tue Apr 7 12:35:18 1998 Ian Lance Taylor <ian@cygnus.com>
450 * archures.c (bfd_default_scan): Add m68k cases back to default
451 switch, reverting patch of March 25, since IEEE support depends
454 Mon Apr 6 14:06:40 1998 Ian Lance Taylor <ian@cygnus.com>
456 * Makefile.am (diststuff): New target.
457 * Makefile.in: Rebuild.
459 Sun Apr 5 16:21:44 1998 Jeffrey A Law (law@cygnus.com)
461 * som.c (som_bfd_ar_write_symbol_stuff): Fix computation of
462 som_offset when we have an extended name table.
464 Sun Apr 5 16:04:39 1998 H.J. Lu <hjl@gnu.org>
466 * Makefile.am (stamp-lib): Check that .libs/libbfd.a exists before
468 * Makefile.in: Rebuild.
470 Fri Apr 3 11:09:42 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
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
477 (elf_m68k_relocate_section): Change abort to BFD_ASSERT.
479 Wed Apr 1 16:04:02 1998 Nick Clifton <nickc@cygnus.com>
481 * coff-arm.c (in_reloc_p): Use ARM_RVA32 in place of constant
484 Wed Apr 1 13:36:58 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
486 * elf32-m68k.c (elf_m68k_relocate_section, case R_68K_PLT*O): Fix
489 Tue Mar 31 00:12:12 1998 Jeffrey A Law (law@cygnus.com)
491 * elf-m10300.c (mn10300_elf_relax_section): Correctly handle
494 Mon Mar 30 12:46:15 1998 Ian Lance Taylor <ian@cygnus.com>
496 * configure.in: Set version to 2.9.1.
497 * configure: Rebuild.
499 * Branched binutils 2.9.
501 Mon Mar 30 12:20:50 1998 Brent Baccala <baccala@freesoft.org>
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
511 (_bfd_stab_section_find_nearest_line): Rewrite to build a sorted
512 index table and search it.
514 Mon Mar 30 10:39:34 1998 Ian Lance Taylor <ian@cygnus.com>
516 * elf.c (_bfd_elf_copy_private_section_data): Call
517 copy_private_bfd_data once we've seen the last SEC_ALLOC section.
519 * cpu-mips.c: Remove trailing comma at end of enumeration list.
521 Sat Mar 28 16:33:02 1998 Ian Lance Taylor <ian@cygnus.com>
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
527 * configure: Rebuild.
529 Fri Mar 27 16:06:02 1998 Ian Lance Taylor <ian@cygnus.com>
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
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.
562 (coff_arm_bfd_set_private_flags): Change flag variable to type
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
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.
587 * elf32-d30v.c (bfd_elf_d30v_reloc): Initialize tmp_addr. Fully
588 parenthesize expression.
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
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
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
609 (pe_print_edata): Change num_functions and num_names in struct
610 EDT_type to unsigned long. Remove cast. Change fprintf format
612 * ppcboot.c (ppcboot_object_p): Change i to size_t.
613 * reloc.c (bfd_get_reloc_size): Change return type to unsigned
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.
619 Fri Mar 27 10:10:46 1998 Catherine Moore <clm@cygnus.com>
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
627 (v850_elf_final_link_relocate): Now calls
628 v850_elf_perform_relocation.
629 (v850_elf_relocate_section): Remove code to generate REL
632 Thu Mar 26 13:32:17 1998 Ian Lance Taylor <ian@cygnus.com>
634 * coffcode.h (coff_new_section_hook): Set the type and storage
635 class in the native symbol information allocated for a new section
638 Thu Mar 26 10:13:41 1998 Nick Clifton <nickc@cygnus.com>
640 * peicode.h: Chain together calls to
641 coff_bfd_copy_private_bfd_data and
642 coff_bfd_print_private_bfd_data.
644 * coff-arm.c: Add prototypes for
645 coff_arm_bfd_print_private_bfd_data and
646 coff_arm_bfd_copy_private_bfd_data.
648 Wed Mar 25 15:45:55 1998 Nick Clifton <nickc@cygnus.com>
650 * coffcode.h (coff_mkobject_hook): Set private falgs even for a PE
653 * peicode.h: Call arm-coff private data functions after handling
656 * coff-arm.c: Turn statics into globals so that they can be shared
657 both pe and pei backends.
659 Wed Mar 25 15:19:38 1998 Ian Lance Taylor <ian@cygnus.com>
661 * aoutf1.h (sunos_set_arch_mach): Use bfd_mach_m68* rather than
663 (sunos_write_object_contents): Likewise.
664 * aoutx.h (NAME(aout,machine_type)): Likewise.
665 * coffcode.h (coff_set_arch_mach_hook): Likewise.
667 Wed Mar 25 13:59:24 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
669 * archures.c (bfd_mach_m68*): Add definitions for various m68k
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
675 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
676 * cpu-m68k.c (arch_info_struct): Likewise. Add entry for
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.
682 * aout-tic30.c (NAME): Define this to avoid multiple definitions
684 (MY_get_section_contents): Define as aout_32_get_section_contents
685 rather than NAME(aout,get_section_contents).
687 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Fix cast.
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.
692 Wed Mar 25 10:41:35 1998 Richard Henderson <rth@cygnus.com>
694 * bout.c (BALX): Include return register g14 as part of the insn.
696 (calljx_callback): Use it.
698 Wed Mar 25 11:19:28 1998 Ian Lance Taylor <ian@cygnus.com>
700 * libbfd-in.h (BFD_ALIGN): Cast this parameter to bfd_vma.
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.
708 * evax-alpha.c (evax_close_and_cleanup): Remove unused local
709 variables er and er1.
711 * cpu-v850.c: Include <ctype.h>.
712 (scan): Case isdigit argument to unsigned char.
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
718 (ihex_write_object_contents): When writing out an extended linear
719 address record, zero out any previous extended address.
721 Tue Mar 24 16:09:43 1998 Manfred Hollstein <manfred@s-direktnet.de>
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.
727 Mon Mar 23 18:51:47 1998 Joel Sherrill <joel@OARcorp.com>
729 * config.bfd: (sh*-*-rtems*): Switched from ELF to COFF.
731 Mon Mar 23 14:23:36 1998 Nick Clifton <nickc@cygnus.com>
733 * coff-arm.c: Add interworking functions to pe backends.
736 Sun Mar 22 13:05:08 1998 Jeffrey A Law (law@cygnus.com)
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.
745 Fri Mar 20 18:47:20 1998 Ian Lance Taylor <ian@cygnus.com>
747 * configure.in: Use AM_DISABLE_SHARED.
748 * aclocal.m4, configure: Rebuild with libtool 1.2.
750 Fri Mar 20 11:25:41 1998 Nick Clifton <nickc@cygnus.com>
752 * coff-arm.c (coff_arm_relocate_section): Better error messages
753 when interowrking conflucts occur. Courtesy of Jonathan Walton
755 (aoutarm_std_reloc_howto): Fixed bitsize fields of rightshifted
756 relocations. Patch courtesy of Jonathan Walton and Tony
759 Fri Mar 20 02:26:43 1998 Richard Henderson <rth@cygnus.com>
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.
765 Wed Mar 18 09:26:25 1998 Nick Clifton <nickc@cygnus.com>
767 * config.bfd (targ_cpu): Add thumb-pe target.
769 * coffcode.h (OTHER_GLOBAL_CLASS): Support thumb external
770 functions in PE build.
772 Sun Mar 8 23:37:26 1998 Stan Cox <scox@equinox.cygnus.com>
774 * config.bfd (sparclite-*-elf*): Added.
776 start-sanitize-vr4320
777 Tue Mar 3 11:24:05 1998 Gavin Koch <gavin@cygnus.com>
779 * mips-cpu.c: Reorganize sanitization.
781 * archures.c, bfd-in2.h, mips-cpu.c : Added bfd_mach_mips4320.
784 Mon Feb 23 19:31:19 1998 Ian Lance Taylor <ian@cygnus.com>
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.
793 1998-02-23 15:53 Richard Henderson <rth@cygnus.com>
795 * elf32-i386.c (elf_i386_relocate_section): A pc-relative
796 relocation against a now-local symbol should not have a dynamic
799 Mon Feb 23 16:17:08 1998 Ian Lance Taylor <ian@cygnus.com>
801 * peicode.h (coff_swap_filehdr_in): Don't set BFD flag HAS_SYMS in
803 (pe_print_private_bfd_data): Print PE flags. From Mikey
804 <jeffdb@netzone.com>.
806 Sun Feb 22 20:39:00 1998 Richard Henderson <rth@cygnus.com>
808 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Don't create
809 a plt entry when we can determine that we authoritatively define
812 Sun Feb 22 20:33:05 1998 Richard Henderson <rth@cygnus.com>
814 * configure.in (COREFILE selection): Remove sparc-*-linux*. They
815 don't actually use trad-core, but a SunOS-style core file handled
817 * hosts/sparclinux.h: Remove.
820 Thu Feb 19 02:38:52 1998 Doug Evans <devans@charmed.cygnus.com>
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.
831 Wed Feb 18 15:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
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.
840 Tue Feb 17 20:00:26 1998 Doug Evans <devans@canuck.cygnus.com>
842 * config.bfd (targ_archs): If mips64r5900-sky-elf, add bfd_dvp_arch.
845 Tue Feb 17 12:58:34 1998 Ian Lance Taylor <ian@cygnus.com>
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.
851 Fri Feb 13 13:11:33 1998 Ian Lance Taylor <ian@cygnus.com>
853 * Makefile.am (AUTOMAKE_OPTIONS): Define.
854 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
856 From H.J. Lu <hjl@gnu.org>:
857 * Makefile.am (libbfd_la_LDFLAGS): Define.
858 * Makefile.in: Rebuild.
860 Thu Feb 12 17:31:11 1998 Ian Lance Taylor <ian@cygnus.com>
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,
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.
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.
896 * configure.host: Remove the old shared library build stuff. We
897 now use libtool instead.
899 Wed Feb 11 17:13:09 1998 Richard Henderson <rth@cygnus.com>
901 * tekhex.c (tekhex_write_object_contents): Call tekhex_init.
903 Tue Feb 10 19:23:28 1998 H.J. Lu <hjl@gnu.org>
905 * configure.in: Take stab-syms.lo out of sparclinux_vec list.
906 * configure: Rebuild.
908 Tue Feb 10 15:16:38 1998 Nick Clifton <nickc@cygnus.com>
910 * elf32-m32r.c (m32r_elf_merge_private_bfd_data): Do not complain
911 when merging m32r BFDs into m32rx BFDs.
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.
919 Tue Feb 10 13:25:14 1998 Doug Evans <devans@canuck.cygnus.com>
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
925 * bfd-in2.h: Regenerate.
928 Tue Feb 10 15:01:39 1998 Ian Lance Taylor <ian@cygnus.com>
930 * configure.in: Change -linux* to -linux-gnu*.
931 * config.bfd, configure.host: Likewise.
932 * configure: Rebuild.
934 Mon Feb 9 19:40:59 1998 Nick Clifton <nickc@cygnus.com>
936 * elf32-v850.c (v850_elf_store_addend_in_insn): Fix another
937 LO16/HI16S bug and improve comments about what is going on.
939 Sat Feb 7 15:27:03 1998 Ian Lance Taylor <ian@cygnus.com>
941 * configure, aclocal.m4: Rebuild with new libtool.
944 Fri Feb 6 14:48:20 1998 Nick Clifton <nickc@cygnus.com>
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.
950 Fri Feb 6 11:50:22 1998 Jeffrey A Law (law@cygnus.com)
953 * cpu-mips.c (arch_info_struct): Make r5900 pointer size 32bits.
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
959 Thu Feb 5 14:21:34 1998 Michael Meissner <meissner@cygnus.com>
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.
965 Thu Feb 5 11:51:05 1998 Ian Lance Taylor <ian@cygnus.com>
967 * coff-i386.c (coff_pe_i386_relocate_section): New static function
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.
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>.
978 Wed Feb 4 19:11:28 1998 Ian Lance Taylor <ian@cygnus.com>
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
985 Wed Feb 4 16:10:21 1998 Brent Baccala <baccala@freesoft.org>
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
994 Wed Feb 4 13:34:22 1998 Ian Lance Taylor <ian@cygnus.com>
996 * peicode.h (pe_print_idata): Check for import of ordinal rather
998 (pe_print_edata): If there is no .edata section, look for the
999 export data in some other section.
1001 Mon Feb 2 20:05:42 1998 Jason Molenda (crash@bugshack.cygnus.com)
1003 * configure.in: Change version to 2.8.4.
1004 * configure: Regenerated.
1006 Mon Feb 2 17:39:39 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
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
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.
1029 Mon Feb 2 12:25:12 1998 Nick Clifton <nickc@cygnus.com>
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.
1034 Mon Feb 2 14:09:46 1998 Ian Lance Taylor <ian@cygnus.com>
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.
1040 * elf64-alpha.c (ELF_MAXPAGESIZE): Change to 0x10000 from
1044 Fri Jan 30 17:48:17 1998 Doug Evans <devans@canuck.cygnus.com>
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.
1051 Fri Jan 30 19:07:07 1998 Geoff Keating <geoffk@ozemail.com.au>
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.
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.
1073 Thu Jan 29 17:44:53 1998 Doug Evans <devans@canuck.cygnus.com>
1075 * elf32-mips.c: Add dvp support.
1078 Thu Jan 29 15:55:35 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
1080 * config.bfd (i[3456]-*-mingw32*): New target.
1081 * acinclude.m4 (BFD_BINARY_OPEN): Check for mingw32.
1082 * aclocal.m4, configure: Rebuild.
1085 Wed Jan 28 15:14:28 1997 Doug Evans <devans@canuck.cygnus.com>
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.
1094 Wed Jan 28 13:41:26 1998 Ian Lance Taylor <ian@cygnus.com>
1096 * elf.c (_bfd_elf_close_and_cleanup): Only check the strtab if we
1099 Tue Jan 27 21:43:55 1998 Richard Henderson <rth@cygnus.com>
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
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.
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
1128 Tue Jan 27 21:45:15 1998 Jeffrey A Law (law@cygnus.com)
1130 * archures.c (bfd_mach_mips*): Add definitions for various MIPS
1132 * cpu-mips.c (arch_info_struct): Add mips variants.
1133 * bfd-in2.h: Rebuilt.
1135 Tue Jan 27 15:06:04 1998 Nick Clifton <nickc@cygnus.com>
1137 * coff-arm.c (coff_arm_relocate_section): Preserve the contents of
1140 Tue Jan 27 12:47:27 1998 Robert Lipe <robertl@dgii.com>
1142 * config.bfd (i[3456]86-sco3.2v5*): ELF now the default.
1143 (i[3456]86sco3.2v5*coff): New target.
1145 Mon Jan 26 15:41:30 1998 Ian Lance Taylor <ian@cygnus.com>
1147 * bfd-in2.h: Rebuild with changes to chew--tab expansion.
1149 Thu Jan 22 21:26:48 1998 Richard Henderson <rth@cygnus.com>
1151 * bfd.c (bfd_get_error_handler): Add orthogonal function.
1152 * bfd-in2.h: Regenerate.
1154 Thu Jan 22 21:13:39 1998 Richard Henderson <rth@cygnus.com>
1156 * tekhex.c (tekhex_write_object_contents): Check for no symbols.
1158 Wed Jan 21 21:19:03 1998 Ian Lance Taylor <ian@cygnus.com>
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
1166 * dwarf2.c: Include sysdep.h, not stdio.h and stdlib.h.
1168 Wed Jan 21 21:16:06 1998 Manfred Hollstein <manfred@s-direktnet.de>
1170 * coff-m88k.c (GET_SCNDHR_NRELOC): Fix typo in macro name.
1171 (GET_SCNDHR_NLNNO): Likewise.
1173 Mon Jan 19 12:49:52 1998 Ian Lance Taylor <ian@cygnus.com>
1175 * cpu-sh.c (arch_info_struct): Correct next field of sh3e.
1177 Wed Jan 14 17:23:27 1998 Nick Clifton <nickc@cygnus.com>
1179 * elf32-m32r.c: Add macros to handle NOP insertion.
1181 Wed Jan 14 16:15:22 1998 Richard Henderson <rth@cygnus.com>
1183 * xcofflink.c (xcoff_mark_symbol): Don't mark the absolute section.
1184 (xcoff_mark): Likewise.
1185 (xcoff_build_ldsyms): Mark absolute symbols.
1187 Wed Jan 14 16:03:11 1998 Richard Henderson <rth@cygnus.com>
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.
1193 Tue Dec 30 12:45:18 1997 Ian Lance Taylor <ian@cygnus.com>
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
1202 Mon Dec 29 18:02:28 1997 Ian Lance Taylor <ian@cygnus.com>
1204 From Jonathan Stone <jonathan@DSG.Stanford.EDU>:
1205 * config.bfd (mips-dec-netbsd*): Add ECOFF vectors to
1207 (mips*el-*-netbsd*): Like mips-dec-netbsd*.
1208 (mips*-*-netbsd*): New target.
1210 Mon Dec 29 17:13:28 1997 H.J. Lu (hjl@gnu.org)
1212 * elflink.h (elf_link_assign_sym_version): Change error message
1213 from "undefined version name" to "undefined versioned symbol
1216 Mon Dec 29 11:41:16 1997 Nick Clifton <nickc@cygnus.com>
1218 * coff-arm.c (coff_arm_relocate_section): Fix typo from previous
1221 Tue Dec 23 17:01:10 1997 Ian Lance Taylor <ian@cygnus.com>
1223 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Declare.
1224 * libbfd.h: Rebuild.
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.
1230 Mon Dec 22 13:20:57 1997 Ian Lance Taylor <ian@cygnus.com>
1232 * Makefile.am: Rebuild dependencies.
1233 (ALL_MACHINES_CFILES): Add dwarf2.lo.
1234 (ALL_MACHINES_CFILES): Add dwarf2.c.
1235 * Makefile.in: Rebuild.
1237 * coff-arm.c: Don't include obstack.h.
1239 Mon Dec 22 13:04:33 1997 Joel Sherrill <joel@oarcorp.com>
1241 * config.bfd (i[3456]86*-go32-rtems*): Fix to be the same as
1244 Thu Dec 18 16:01:25 1997 Doug Evans <devans@canuck.cygnus.com>
1246 * configure: Regenerate to get @SHELL@ substituted.
1248 Wed Dec 17 09:45:09 1997 Nick Clifton <nickc@cygnus.com>
1250 * coff-arm.c (coff_arm_relocate_section): Only look at section
1251 owner if there is one.
1253 * elf.c (assign_file_positions_for_segments): Fail if there is not
1254 enough room for the program headers.
1256 Tue Dec 16 08:09:56 1997 Gavin Koch <gavin@cygnus.com>
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.
1263 Mon Dec 15 16:08:52 1997 Nick Clifton <nickc@cygnus.com>
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.
1269 * archures.c: Add bfd_mach_m32rx.
1271 * archures.c: Add bfd_mach_m32r.
1273 Mon Dec 15 16:11:22 1997 Fred Fish <fnf@cygnus.com>
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.
1282 Mon Dec 15 15:01:15 1997 Nick Clifton <nickc@cygnus.com>
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.
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.
1308 * bfd-in2.h (bfd_mach_m32r): Add identifier for M32R architecture
1311 Fri Dec 12 11:30:28 1997 Brendan Kehoe <brendan@canuck.cygnus.com>
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
1320 Thu Dec 11 17:48:11 1997 Richard Henderson <rth@cygnus.com>
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.
1326 Thu Dec 11 01:02:18 1997 Ian Lance Taylor <ian@cygnus.com>
1328 * coff-sh.c (bfd_coff_small_swap_table): Initialize new fields.
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
1335 * coffcode.h (_coff_link_output_has_begun): Make static.
1336 (_coff_final_link_postscript): Likewise.
1338 Wed Dec 10 23:37:11 1997 Ian Lance Taylor <ian@cygnus.com>
1340 * elflink.h (elf_link_input_bfd): Handle a relocateable link in
1341 which a relocation refers to an indirect or warning symbol.
1343 Wed Dec 10 11:15:55 1997 Nick Clifton <nickc@cygnus.com>
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.
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().
1355 * cofflink.c (_bfd_coff_final_link): Insert calls to
1356 bfd_coff_link_output_has_begun() and
1357 bfd_coff_final_link_postscript().
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.
1365 * elf32-v850.c: Update with patches from the branch to fix
1366 HI16_S/LO16 reloc pairs.
1369 Wed Dec 10 14:06:48 1997 Michael Meissner <meissner@cygnus.com>
1371 * elf32-d30v.c (d30v_info_to_howto_rela): New function to support
1373 (USE_REL): Don't define any more, switch to using RELA
1375 (elf_info_to_howto): Define as d30v_info_to_howto_rela.
1378 Tue Dec 9 11:37:53 1997 Andrew Cagney <cagney@b1.cygnus.com>
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
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.
1391 Fri Dec 5 11:13:46 1997 Nick Clifton <nickc@cygnus.com>
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.
1402 Tue Dec 2 10:26:16 1997 Nick Clifton <nickc@cygnus.com>
1404 * coff-arm.c (TARGET_UNDERSCORE): Revert back to '_'
1405 (USER_LABEL_PREFIX): Revert back to '_'
1407 * config.bfd (targ_cpu): Add support for Thumb target.
1409 Mon Dec 1 20:24:18 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
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.
1415 Wed Nov 26 14:13:34 1997 Nick Clifton <nickc@cygnus.com>
1417 * coff-arm.c (TARGET_UNDERSCORE): Changed to match definition in
1418 gcc/config/arm/semi.h
1420 * coffcode.h (coff_slurp_symbol_table): Add ARM and Thumb symbol
1423 Sun Nov 23 16:02:58 1997 Andrew Cagney <cagney@b1.cygnus.com>
1425 * freebsd.h (SWAP_MAGIC): Read magic number little and not big
1428 Wed Nov 26 09:30:37 1997 Nick Clifton <nickc@cygnus.com>
1430 * coffcode.h (coff_mkobject_hook): Only set private flags for non
1433 Tue Nov 25 15:33:23 1997 Richard Henderson <rth@cygnus.com>
1435 * binary.c (binary_set_section_contents): Also ignore NEVER_LOAD
1438 Tue Nov 25 10:55:36 1997 Nick Clifton <nickc@cygnus.com>
1440 * coff-arm.c (coff_arm_bfd_merge_private_bfd_data): Do not
1441 complain if inout and output formats differ.
1443 Tue Nov 25 11:26:27 1997 Ian Lance Taylor <ian@cygnus.com>
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.
1451 * coff-arm.c (arm_allocate_interworking_sections): Fix typo
1452 (COFF_WITH_PR to COFF_WITH_PE).
1454 Mon Nov 24 15:47:49 1997 Nick Clifton <nickc@cygnus.com>
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.
1460 Sat Nov 22 15:16:00 1997 Nick Clifton <nickc@cygnus.com>
1462 * coff-arm.c: Add support for PIC and APCS-FLOAT type binaries.
1464 * coffcode.h: Add support for PIC and APCS-FLOAT type binaries.
1466 Sat Nov 22 16:06:56 1997 Klaus Kaempf <kkaempf@progis.de>
1468 * evax-emh.c (_bfd_evax_write_emh): Use alloca instead of strdup.
1470 Sat Nov 22 12:29:30 1997 Ian Lance Taylor <ian@cygnus.com>
1472 * sunos.c (sunos_add_one_symbol): When overriding a defined
1473 symbol, set it to undefined, not new.
1475 * elf32-sh.c (sh_elf_relax_delete_bytes): Don't kill LABEL
1478 Fri Nov 21 14:14:22 1997 Richard Henderson <rth@cygnus.com>
1480 * coff-sh.c (sh_relax_section): Force sign extention of USES r_offset.
1481 (sh_relax_delete_bytes): Don't kill LABEL relocs.
1483 Mon Nov 17 15:08:38 1997 Jeffrey A Law (law@cygnus.com)
1485 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Fix typo.
1486 (mn10300_elf_relax_section): Likewise.
1488 Sat Nov 15 15:36:07 1997 Fred Fish <fnf@cygnus.com>
1490 * peicode.h (coff_swap_aouthdr_in): Cast second arg of
1491 bfd_h_get_* calls to "bfd_byte *".
1493 Tue Nov 11 10:37:23 1997 Jeffrey A Law (law@cygnus.com)
1495 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add new field
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.
1503 Mon Nov 10 14:32:40 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1505 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't crash if
1506 a version dependency could not be found.
1508 Tue Nov 4 12:05:56 1997 Klaus K"ampf <kkaempf@progis.de>
1510 * configure.com: Get version info from configure.in
1512 Fri Oct 24 11:15:58 1997 Jakub Jelinek <jj@sunsite.mff.cuni.cz>
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.
1519 Thu Oct 23 14:09:33 1997 Richard Henderson <rth@cygnus.com>
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.
1526 Thu Oct 23 00:53:14 1997 Richard Henderson <rth@dot.cygnus.com>
1528 * configure.in (sparc*-*-linux*): Use trad-core and ...
1529 * hosts/sparclinux.h: New file.
1531 Thu Oct 23 00:25:29 1997 Richard Henderson <rth@dot.cygnus.com>
1533 * config.bfd (sparc64-*-linux*): New target.
1535 * elf-bfd.h (struct elf_backend_data): Add plt_alignment member.
1536 * elflink.c (_bfd_elf_create_got_section): Set .got alignment based
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.
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.
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.
1558 Wed Oct 22 16:08:45 1997 Ian Lance Taylor <ian@cygnus.com>
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
1571 * config.bfd (sh-*-elf*): Add shcoff_small_vec and
1572 shlcoff_small_vec to targ_selvecs.
1574 * configure.in: Add shcoff_small_vec and shlcoff_small_vec cases.
1575 * configure: Rebuild.
1577 Mon Oct 20 15:01:27 1997 Klaus K"ampf <kkaempf@progis.de>
1579 * evax-egsd.c: Weak symbols are global.
1581 * evax-emh.c: Use proper casts.
1583 * evax-egsd.c (_bfd_evax_write_egsd): Remove unneeded uname.
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
1591 * evax.h (EOBJ_S_C_SECSIZ): Define.
1593 * evax-alpha.c: Remove duplicate test.
1595 * evax-emh.c: SYS$ functions are upper-case.
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.
1601 * configure.com: Use 64bit integers with DEC C.
1603 * evax-egsd.c: Make section flags dec c compatible.
1605 Mon Oct 20 09:38:31 1997 Jeffrey A Law (law@cygnus.com)
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.
1612 Sun Oct 19 23:36:21 1997 Jim Wilson <wilson@cygnus.com>
1614 * peicode.h (coff_swap_scnhdr_out): Use |= not = to set
1615 IMAGE_SCN_MEM_READ for an unrecognized section.
1617 Sun Oct 19 21:04:56 1997 Jeffrey A Law (law@cygnus.com)
1619 * som.c (som_bfd_ar_write_symbol_stuff): Account for trailing
1620 '/' in the extended name table.
1622 Fri Oct 17 00:04:13 1997 Richard Henderson <rth@cygnus.com>
1624 * elflink.h (elf_link_assign_sym_version): For explicitly versioned
1625 symbols, check globals list before matching on locals.
1627 Thu Oct 16 08:17:06 1997 Michael Meissner <meissner@cygnus.com>
1629 * peicode.h (coff_swap_scnhdr_out,pe_print_idata): Fix mangled
1632 Wed Oct 15 13:45:10 1997 Ian Lance Taylor <ian@cygnus.com>
1634 * peicode.h (pe_mkobject_hook): Set DLL flag.
1635 (pe_bfd_copy_private_bfd_data): Copy DLL flag.
1637 * peicode.h (coff_swap_scnhdr_out): Set IMAGE_SCN_MEM_DISCARDABLE
1638 for .stab* sections. Replace strlen of constant strings with
1641 Tue Oct 14 15:42:45 1997 Richard Henderson <rth@cygnus.com>
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.
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.
1653 Mon Oct 13 23:10:08 1997 Richard Henderson <rth@cygnus.com>
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.
1659 Mon Oct 13 21:24:04 1997 Richard Henderson <rth@cygnus.com>
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
1666 Mon Oct 13 17:37:37 1997 Nick Clifton <nickc@cygnus.com>
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.
1671 Fri Oct 10 16:01:30 1997 Nick Clifton <nickc@cygnus.com>
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.
1678 Thu Oct 9 16:43:39 1997 Doug Evans <dje@canuck.cygnus.com>
1680 * elf64-sparc.c (sparc_elf_{hix22,lox10}_reloc): New functions.
1681 (sparc64_elf_howto_table): Use them for HIX22,LOX10 relocs.
1683 Wed Oct 8 11:38:45 1997 Richard Henderson <rth@cygnus.com>
1685 * elfcore.h (bfd_prstatus): Pedanticly, alignment_power should
1688 Wed Oct 8 11:36:00 1997 Richard Henderson <rth@cygnus.com>
1690 * config.bfd: Missed one alpha* change.
1692 Tue Oct 7 13:00:17 1997 Doug Evans <dje@canuck.cygnus.com>
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.
1705 Tue Oct 7 11:40:37 1997 Ian Lance Taylor <ian@cygnus.com>
1707 * som.c (som_construct_extended_name_table): Remove static
1708 function, and define as macro instead.
1710 Fri Oct 3 14:02:17 1997 Richard Henderson <rth@cygnus.com>
1712 * config.bfd: Change alpha-*-* to alpha*-*-*; config.guess now
1713 recognizes alphaev5 etc.
1714 * configure.host: Likewise.
1716 Fri Oct 3 11:23:47 1997 Ian Lance Taylor <ian@cygnus.com>
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
1729 * configure.in: Don't include elf.lo again for ELF targets; it's
1730 always in the library anyhow.
1731 * configure: Rebuild.
1733 * bfd-in2.h: Rebuild.
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.
1740 Thu Oct 2 16:15:50 1997 Doug Evans <dje@canuck.cygnus.com>
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.
1749 Thu Oct 2 13:17:18 1997 Ian Lance Taylor <ian@cygnus.com>
1751 * peicode.h (coff_swap_scnhdr_out): Set IMAGE_SCN_MEM_READ for an
1752 unrecognized section. From Jon Thackray <jont@harlequin.co.uk>.
1754 Wed Oct 1 14:03:44 1997 Ian Lance Taylor <ian@cygnus.com>
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.
1769 * configure.in: Use a diversion to set enable_shared before the
1770 arguments are parsed.
1771 * configure: Rebuild.
1773 Tue Sep 30 14:18:32 1997 Doug Evans <dje@canuck.cygnus.com>
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.
1785 Thu Sep 25 12:15:02 1997 Ian Lance Taylor <ian@cygnus.com>
1787 * elflink.h (elf_merge_symbol): Don't check the hash creator until
1788 after we have set *sym_hash.
1790 Wed Sep 24 16:52:28 1997 Joel Sherrill <joel@oarcorp.com>
1792 * config.bfd (sh*-*-rtems*): New target, like sh-*-*elf*.
1794 Wed Sep 24 11:27:23 1997 Ian Lance Taylor <ian@cygnus.com>
1796 * Makefile.am (libbfd_a_SOURCES): Define.
1797 * Makefile.in: Rebuild.
1799 * configure.in: Call AC_CHECK_TOOL before AM_PROG_LIBTOOL.
1800 * aclocal.m4: Rebuild with new libtool.
1801 * configure: Rebuild.
1803 Tue Sep 23 19:03:13 1997 Ian Lance Taylor <ian@cygnus.com>
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.
1810 start-sanitize-v850e
1811 Sun Sep 21 11:03:24 1997 Nick Clifton <nickc@cygnus.com>
1813 * elf32-v850.c (v850_elf_final_link_relocate): Add return code
1814 indicating that __ctbp could not be found.
1817 Thu Sep 18 15:04:57 1997 Nick Clifton <nickc@cygnus.com>
1819 * elf32-v850.c (v850_elf_check_relocs): Improve error message.
1821 Wed Sep 17 09:54:51 1997 Nick Clifton <nickc@cygnus.com>
1822 start-sanitize-v850e
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.
1828 * reloc.c (COMMENT): Add BFD_RELOC_V850_CALLT_6_7_OFFSET and
1829 BFD_RELOC_V850_CALLT_16_16_OFFSET.
1832 * elf32-v850.c (v850_elf_final_link_relocate): Add checks to catch
1833 relocations against non-existant symbols.
1835 Tue Sep 16 14:20:27 1997 Nick Clifton <nickc@cygnus.com>
1837 * reloc.c: Add BFR_RELOC_V850_TDA_16_16_OFFSET.
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.
1844 Mon Sep 15 11:27:36 1997 Ken Raeburn <raeburn@cygnus.com>
1846 Merged changes from Martin Hunt:
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
1852 * reloc.c, elf32-d30v.c (BFD_RELOC_D30V_9_PCREL,
1853 BFD_RELOC_D30V_9_PCREL_R): New relocs.
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):
1860 * elf32-d30v.c (bfd_elf_d30v_reloc): Addend needs to be
1861 added to the relocation, not or'd.
1864 Wed Sep 10 15:17:25 1997 Nick Clifton <nickc@cygnus.com>
1866 * elf32-v850.c (v850_elf_reloc): Remove spurious error message.
1868 Wed Sep 10 11:17:50 1997 Andrew Cagney <cagney@b1.cygnus.com>
1870 * archures.c (bfd_default_scan): Use strcasecmp.
1871 (bfd_default_scan): Test for match with arch_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
1879 (bfd_arch_list): New function, return name of all the supported
1882 Tue Sep 9 10:21:56 1997 Nick Clifton <nickc@cygnus.com>
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
1889 Sun Sep 7 12:25:22 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
1891 * bfd/elf64-alpha.c (reloc_howto_type): Fix the howto table.
1893 Thu Sep 4 09:44:10 1997 Ian Lance Taylor <ian@cygnus.com>
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.
1900 * reloc.c: Remove extraneous commas from relocation entries.
1901 Remove BFD_RELOC_V850_16_PCREL.
1902 * bfd-in2.h: Rebuild.
1904 * xcofflink.c (xcoff_link_add_symbols): Put XTY_CM/XMC_TD symbols
1905 in sections named .tocbss rather than .bss.
1907 Wed Sep 3 11:23:23 1997 Nick Clifton <nickc@cygnus.com>
1909 * libbfd.h, bfd-in2.h, elf32-v850.c: Removed
1910 BFD_RELOC_V850_16_PCREL.
1912 Tue Sep 2 20:44:10 1997 Fred Fish <fnf@cygnus.com>
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.
1921 Tue Sep 2 17:45:22 1997 Nick Clifton <nickc@cygnus.com>
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.
1929 start-sanitize-v850e
1930 Tue Sep 2 17:43:49 1997 Nick Clifton <nickc@cygnus.com>
1932 * elf.c (prep_headers): Remove V850E magic number.
1933 * elf.c (prep_headers): Remove V850EA magic number.
1936 Tue Sep 2 17:35:05 1997 Doug Evans <dje@canuck.cygnus.com>
1938 * cpu-arc.c (arc_get_mach): Properly scan defined mach entries.
1940 Tue Sep 2 18:29:37 1997 Jeffrey A Law (law@cygnus.com)
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.
1947 Tue Sep 2 15:45:45 1997 Nick Clifton <nickc@cygnus.com>
1949 * cpu-v850.c: Use a macro to construct bfd_arch_info_type
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.
1956 Thu Aug 28 17:01:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
1958 * cpu-v850.c: Remove "plain" from v850 printable name.
1959 (scan): Use strcasecmp.
1961 * archures.c (bfd_mach_v850): Define.
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.
1967 * archures.c (bfd_mach_sh, ...): Define.
1969 Wed Aug 27 17:33:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
1971 * archures.c (bfd_archures_list): Always NULL terminate the list.
1973 Tue Aug 26 17:26:51 1997 Ian Lance Taylor <ian@cygnus.com>
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.
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.
1985 Mon Aug 25 16:14:34 1997 Christopher Provenzano <proven@cygnus.com>
1987 * configure: Rebuild with latest devo autoconf for NT support
1989 Mon Aug 25 16:11:04 1997 Nick Clifton <nickc@cygnus.com>
1991 * cpu-arm.c (compatible): If B is a default type, return A.
1993 Mon Aug 25 15:35:46 1997 Nick Clifton <nickc@cygnus.com>
1995 * cpu-v850.c (scan): New function.
1996 (arch_info_struct): New structure.
1997 (bfd_v850_arch): Add link into arch_info_structure.
1999 * config.bfd (targ_cpu): All v850 variants use the bfd_arch_v850
2002 * elf32-v850.c (v850_elf_object_p): New function.
2004 start-sanitize-v850e
2005 * archures.c (bfd_mach_v850e): Machine value for v850e.
2007 * bfd-in2.h (bfd_mach_v850e): Machine value for v850e.
2009 * elf32-v850.c (ELF_MACHINE_CODE): Default to v850e machine
2012 * elf.c (prep_headers): Add support for v850e machine number.
2014 * archures.c (bfd_mach_v850ea): Machine value for v850ea.
2016 * bfd-in2.h (bfd_mach_v850ea): Machine value for v850ea.
2018 * elf32-v850.c (ELF_MACHINE_CODE): Default to v850ea machine
2021 * elf.c (prep_headers): Add support for v850ea machine number.
2024 Mon Aug 25 14:07:33 1997 Ian Lance Taylor <ian@cygnus.com>
2026 * syms.c (_bfd_stab_section_find_nearest_line): Clear the
2027 cached_stab field if the offset prevents us from using the cache.
2029 Mon Aug 25 12:08:13 1997 Ian Lance Taylor <ian@cygnus.com>
2031 * aout-target.h (MY(vec)): Add SEC_CODE and SEC_DATA to section
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.
2040 start-sanitize-tic80
2041 Tue Aug 19 10:09:10 1997 Fred Fish <fnf@cygnus.com>
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.
2048 Tue Aug 19 08:47:17 1997 Fred Fish <fnf@cygnus.com>
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.
2070 Mon Aug 18 11:36:19 1997 Nick Clifton <nickc@cygnus.com>
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.
2077 * reloc.c (COMMENT): Add suuport for BFD_RELOC_V850_16_PCREL
2080 * libbfd.h: Add support for BFD_RELOC_V850_16_PCREL relocation.
2082 * bfd-in2.h: Add support for BFD_RELOC_V850_16_PCREL relocation.
2084 start-sanitize-v850e
2085 Mon Aug 18 11:33:56 1997 Nick Clifton <nickc@cygnus.com>
2087 * cpu-v850e: New file.
2089 * elf.c (prep_headers): Add support for v850e target.
2091 * bfd-in2.h (bfd_architecture): Add support for v850e target.
2093 * config.bfd: Add support for v850e target.
2095 * archures.c: Add support for v850e target.
2097 Mon Aug 18 11:33:56 1997 Nick Clifton <nickc@cygnus.com>
2099 * cpu-v850ea: New file.
2101 * elf.c (prep_headers): Add support for v850ea target.
2103 * bfd-in2.h (bfd_architecture): Add support for v850ea target.
2105 * config.bfd: Add support for v850ea target.
2107 * archures.c: Add support for v850ea target.
2110 Fri Aug 15 12:01:28 1997 Ian Lance Taylor <ian@cygnus.com>
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>.
2116 Fri Aug 15 04:58:02 1997 Doug Evans <dje@canuck.cygnus.com>
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.
2135 Tue Aug 12 11:45:18 1997 Ian Lance Taylor <ian@cygnus.com>
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.
2140 Mon Aug 11 12:45:43 1997 Ian Lance Taylor <ian@cygnus.com>
2142 * aoutx.h (NAME(aout,final_link)): Don't emit the string table if
2143 there are no symbols.
2145 Sun Aug 10 14:45:56 1997 Ian Lance Taylor <ian@cygnus.com>
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.
2152 Fri Aug 8 18:34:36 1997 Ian Lance Taylor <ian@cygnus.com>
2154 * Makefile.am: (ALL_MACHINES_CFILES): Add elf32-d10v.c.
2155 Rebuild dependencies.
2156 * Makefile.in: Rebuild.
2158 Wed Aug 6 18:56:51 1997 Ian Lance Taylor <ian@cygnus.com>
2160 * Makefile.am (docdir): Define.
2161 * Makefile.in: Rebuild.
2163 Tue Aug 5 23:05:03 1997 Ian Lance Taylor <ian@cygnus.com>
2165 * configure: Rebuild with autoconf 2.12.1.
2167 Mon Aug 4 12:00:35 1997 Ian Lance Taylor <ian@cygnus.com>
2169 * aclocal.m4, configure: Rebuild with new automake patches.
2171 Sun Aug 3 08:15:12 1997 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
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
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.
2181 Fri Aug 1 12:58:32 1997 Ian Lance Taylor <ian@cygnus.com>
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.
2189 Thu Jul 31 19:55:36 1997 Ian Lance Taylor <ian@cygnus.com>
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.
2207 Thu Jul 31 12:09:20 1997 Geoff Keating <geoffk@ozemail.com.au>
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.
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
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
2238 (ppc_elf_relocate_section): Add handy debugging code for when
2239 assertion fails. Add some more 'symbol made local because of
2242 * elf32-ppc.c (ppc_elf_relocate_section): Cope with addend when
2243 processing a GOT relocation as required by ABI.
2245 Wed Jul 30 21:30:35 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
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.
2253 Mon Jul 28 18:07:43 1997 Rob Savoye <rob@chinadoll.cygnus.com>
2255 * aclocal.m4: Add CYGWIN and EXEEXT autoconf macros.
2256 * configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
2258 * configure: Regenerated with autoconf 2.12.
2259 * doc/Makefile.in: Add $(EXEEXT) to chew executable.
2261 Mon Jul 28 02:50:29 1997 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2263 * rs6000-core.c (rs6000coff_core_p): If CORE_TRUNC is set, print
2264 a warning rather than returning an error.
2266 Sun Jul 27 19:54:14 1997 Felix Lee <flee@cygnus.com>
2268 * coffswap.h (coff_swap_aux_in): add semicolon to make MSVC happy.
2270 Fri Jul 25 14:50:08 1997 Felix Lee <flee@cygnus.com>
2272 * cisco-core.c: define signals for wingdb.
2274 Fri Jul 25 16:27:07 1997 Ian Lance Taylor <ian@cygnus.com>
2276 * ecofflink.c (bfd_ecoff_debug_accumulate): Only merge files with
2277 the same number of aux entries.
2279 Fri Jul 25 08:22:15 1997 Jeffrey A Law (law@cygnus.com)
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.
2285 Wed Jul 23 16:08:02 1997 Ian Lance Taylor <ian@cygnus.com>
2287 * coff-i386.c (coff_i386_reloc): Don't offset a common symbol by
2288 its value if COFF_WITH_PE is defined.
2290 Tue Jul 22 17:19:45 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
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
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.
2319 Tue Jul 22 15:09:12 1997 Ian Lance Taylor <ian@cygnus.com>
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.
2326 Sun Jul 20 20:05:20 1997 Ian Lance Taylor <ian@cygnus.com>
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.
2333 Mon Jul 14 15:33:55 1997 Ian Lance Taylor <ian@cygnus.com>
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
2340 start-sanitize-tic80
2341 Tue Jul 8 12:11:29 1997 Fred Fish <fnf@cygnus.com>
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
2347 (coff_swap_filehdr_in): Swap in target id field if used.
2350 Mon Jul 7 16:41:20 1997 Ian Lance Taylor <ian@cygnus.com>
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.
2357 Mon Jun 30 14:29:26 1997 Ian Lance Taylor <ian@cygnus.com>
2359 * elf32-m68k.c (howto_table): Use complain_overflow_bitfield, not
2360 complain_overflow_signed, for 32 bit PC relative relocations.
2362 Thu Jun 26 01:26:31 1997 Ian Lance Taylor <ian@cygnus.com>
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.
2368 * elf.c (bfd_elf_string_from_elf_section): Check for an invalid
2371 * elflink.h (elf_link_output_extsym): Use the right section for a
2373 * elf32-mips.c (mips_elf_link_output_symbol_hook): If a common
2374 symbol was in .scommon, mark it as SHN_MIPS_SCOMMON.
2376 Wed Jun 25 12:43:10 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
2378 * elflink.h (elf_merge_symbols): Resolve indirect and warning
2379 symbols before checking for new symbols.
2381 * elfcore.h (elf_corefile_note): Move out of HAVE_SYS_PROCFS_H.
2383 Tue Jun 24 11:20:43 1997 Ian Lance Taylor <ian@cygnus.com>
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).
2388 * xcofflink.c (xcoff_link_add_symbols): Permit symbols to be
2389 redefined by objects included from archives.
2391 Mon Jun 23 18:03:27 1997 Ian Lance Taylor <ian@cygnus.com>
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
2397 (elf_link_add_object_symbols): If the real name of the symbol gets
2398 overridden, convert the versioned symbol into an indirect symbol
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.
2405 Sun Jun 22 19:40:57 1997 Ian Lance Taylor <ian@cygnus.com>
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
2410 * coffgen.c (coff_object_p): Remove useless seek to current
2413 Wed Jun 18 19:03:38 1997 Ian Lance Taylor <ian@cygnus.com>
2415 * linker.c (link_action): Change COMMON_ROW/indr to from CREF to
2418 Tue Jun 17 11:55:02 1997 Ian Lance Taylor <ian@cygnus.com>
2420 * cofflink.c (_bfd_coff_link_input_bfd): If stripping debugging
2421 symbols, skip N_ABS symbols with debugging storage classes.
2423 Mon Jun 16 18:56:27 1997 Geoff Keating <geoffk@ozemail.com.au>
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.
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.
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.
2440 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Entries in the
2441 .rela.bss section are (of course) 'rela' relocs not 'rel' relocs.
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_'.
2449 * elf32-ppc.c (ppc_elf_size_dynamic_sections): '.rela' is 5
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
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
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
2483 (elf_backend_G_O_T_offset): Set default to 0.
2484 (elfNN_bed): Set added fields.
2486 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Was setting
2487 DT_RELENT in shared objects; should be DT_RELAENT.
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
2494 Mon Jun 16 14:42:14 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
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
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.
2506 Mon Jun 16 12:31:29 1997 Ian Lance Taylor <ian@cygnus.com>
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.
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.
2522 Wed Jun 11 22:44:20 1997 Jeffrey A Law (law@cygnus.com)
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
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.
2539 Wed Jun 11 00:00:07 1997 Ian Lance Taylor <ian@cygnus.com>
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
2549 * elf32-m68k.c, elf32-sparc.c: Corresponding changes.
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.
2556 1997-06-10 22:58 Ulrich Drepper <drepper@cygnus.com>
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.
2565 Tue Jun 10 11:13:03 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
2567 * cpu-arm.c: Add prototypes for compatible and scan.
2568 * cofflink.c: Add prototype for mark_relocs.
2570 * archive.c (bfd_special_undocumented_glue): Change filename to
2571 const pointer. Add prototype.
2573 Mon Jun 9 12:34:21 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2575 * elflink.h (elf_link_add_object_symbols): Ignore relocations of
2576 sections that will be discarded.
2578 1997-06-06 22:58 Ulrich Drepper <drepper@cygnus.com>
2580 * elflink.h (elf_link_find_version_dependencies): When searching
2581 for known version symbol skip non-matching verdef records, not
2584 Thu Jun 5 15:52:45 1997 Ian Lance Taylor <ian@cygnus.com>
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.
2589 Tue Jun 3 16:57:45 1997 Nick Clifton <nickc@cygnus.com>
2591 * reloc.c: Add thumb relocations.
2593 * bfd-in2.h: Add Thumb relocations.
2595 * libbfd.h: Add Thumb relocations.
2597 Mon Jun 2 10:41:52 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2599 * cpu-m68k.c (arch_info_struct): Fix 68060 cpu name.
2601 Fri May 30 12:46:27 1997 Ian Lance Taylor <ian@cygnus.com>
2603 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Set dynindx
2604 for a section even if it is not loaded.
2606 * cofflink.c (coff_link_add_symbols): If PE file, don't subtract
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.
2613 Wed May 28 15:48:43 1997 Nick Clifton <nickc@cygnus.com>
2615 * coff-arm.c: (coff_arm_bfd_set_private_flags): Make static.
2617 Wed May 28 16:16:04 1997 Ian Lance Taylor <ian@cygnus.com>
2619 * coff-i386.c (coff_i386_reloc): Don't just exit if we see an
2622 Wed May 28 09:48:43 1997 Nick Clifton <nickc@cygnus.com>
2624 * cpu-arm.c (compatible): Add test for supersets of ARM
2627 Tue May 27 19:42:03 1997 Bob Manson <manson@charmed.cygnus.com>
2629 * cofflink.c (_bfd_coff_final_link): Initialize global_to_static
2632 Tue May 27 14:34:08 1997 Nick Clifton <nickc@cygnus.com>
2634 * coff-arm.c (coff_arm_bfd_set_private_flags): Make global. It is
2635 called directly by gas/config/tc-arm.c.
2637 Tue May 27 15:58:53 1997 Richard Henderson <rth@tamu.edu>
2639 * elf64-alpha.c (PLT_ENTRY_*): Use a new thread-safe format.
2640 (elf64_alpha_finish_dynamic_symbol): Fill it in properly.
2642 Mon May 26 14:05:13 1997 Ian Lance Taylor <ian@cygnus.com>
2644 * coff-ppc.c (coff_ppc_relocate_section): If PE file, don't add
2647 Mon May 26 10:57:48 1997 Fred Fish <fnf@cygnus.com>
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.
2656 Fri May 23 15:14:58 1997 Fred Fish <fnf@cygnus.com>
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
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
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.
2683 start-sanitize-tic80
2684 Fri May 23 12:38:24 1997 Ian Lance Taylor <ian@cygnus.com>
2686 * coff-tic80.c (tic80_howto_table): Change overflow check for most
2687 PP relocations to complain_overflow_dont.
2689 Thu May 22 20:22:14 1997 Ian Lance Taylor <ian@cygnus.com>
2691 * coff-tic80.c (tic80_howto_table): Add PP relocations. Change
2692 name of R_RELLONG to "RELLONG". Set rightshift and complain for
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.
2702 Wed May 21 17:15:50 1997 Ian Lance Taylor <ian@cygnus.com>
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
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.
2714 * peicode.h: Add & 0xffffffff when using ImageBase in case bfd_vma
2717 Wed May 21 09:58:10 1997 Nick Clifton <nickc@cygnus.com>
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.
2724 Tue May 20 18:45:26 1997 Ian Lance Taylor <ian@cygnus.com>
2726 * coff-sh.c (sh_merge_private_data): New static function.
2727 (coff_bfd_merge_private_bfd_data): Define.
2729 start-sanitize-tic80
2730 Mon May 19 14:46:00 1997 Mark Alexander <marka@cygnus.com>
2732 * coff-tic80.c: Remove unnecessary #ifdefs.
2733 * config.bfd: Set targ_underscore to yes for tic80.
2735 Mon May 19 14:26:36 1997 Mark Alexander <marka@cygnus.com>
2737 * coff-tic80.c (NAMES_HAVE_UNDERSCORE): Define (fixes problem
2738 with unresolved external symbols in GDB).
2741 Fri May 16 10:23:03 1997 Jeffrey A Law (law@cygnus.com)
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
2747 * elf-m10200.c: Likewise.
2748 * elf32-m32r.c: Likewise.
2749 * elf32-sh.c: Likewise.
2751 Fri May 16 12:10:52 1997 Ian Lance Taylor <ian@cygnus.com>
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.
2760 Thu May 15 14:31:28 1997 Nick Clifton <nickc@cygnus.com>
2762 * cpu-arm.c (compatible): Allow default machine to be polymorphed
2763 into any other machine type.
2765 * coffcode.h (coff_set_flags): Initialise flags variable to 0.
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.
2770 Thu May 15 16:40:20 1997 Ian Lance Taylor <ian@cygnus.com>
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.
2776 Fri May 9 10:15:27 1997 Nick Clifton <nickc@cygnus.com>
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.
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.
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.
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
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.
2808 * libcoff-in.h (struct coff_tdata): Added flags field.
2810 Fri May 9 17:40:02 1997 Ian Lance Taylor <ian@cygnus.com>
2812 * config.bfd (i[3456]86-*-gnu*): Don't include Mach support.
2814 * config.bfd: Change #if 0 around uses of host_aout_vec to #if
2817 Mon May 5 13:57:32 1997 Mike Meissner <meissner@cygnus.com>
2819 * coffgen.c (coff_find_nearest_line): If there are no syments,
2822 Mon May 5 18:18:45 1997 Philip Blundell <pjb27@cam.ac.uk>
2824 * config.bfd: cope with '*-*-linux-gnuaout' targets.
2826 Thu May 1 11:31:12 1997 Ian Lance Taylor <ian@cygnus.com>
2828 * targmatch.sed: Add explicit \n characters to work around bug in
2829 HP/UX 10.20 sed program.
2831 Wed Apr 30 12:27:03 1997 Ian Lance Taylor <ian@cygnus.com>
2833 * elf.c (copy_private_bfd_data): Cast csecs to avoid sign
2836 Tue Apr 22 12:06:08 1997 Ian Lance Taylor <ian@cygnus.com>
2838 * Makefile.in (do_maintainer_clean): Don't remove bfd-in2.h.
2840 Mon Apr 21 11:21:31 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
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):
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
2853 (elf_m68k_size_dynamic_sections): If linking with -Bsymbolic,
2854 traverse with elf_m68k_discard_copies.
2856 Sat Apr 19 22:50:14 1997 Ian Lance Taylor <ian@cygnus.com>
2858 * elf32-i386.c (elf_i386_check_relocs): Only count PC relative
2859 relocs. From Jamie Lokier <jamie@rebellion.co.uk>.
2861 * coffcode.h (coff_compute_section_file_positions): Force the
2862 potential last byte in the file to be written out when
2865 Thu Apr 17 13:46:56 1997 Per Fogelstrom <pefo@openbsd.org>
2867 * configure.host (mips*-*-openbsd*): New host.
2869 Thu Apr 17 11:10:54 1997 Ian Lance Taylor <ian@cygnus.com>
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.
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
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.
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.
2895 Wed Apr 16 12:43:32 1997 Martin Hunt <hunt@cygnus.com>
2897 * elf32-d30v.c (elf_d30v_howto_table): Changed size of
2898 R_D30V_32_NORMAL to 2 (4 bytes).
2901 Wed Apr 16 14:02:29 1997 Ian Lance Taylor <ian@cygnus.com>
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
2908 * sparcnetbsd.c (TARGET_PAGE_SIZE): Define as 0x2000.
2909 (SEGMENT_SIZE): Don't define.
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>.
2915 Tue Apr 15 11:50:37 1997 Ian Lance Taylor <ian@cygnus.com>
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>.
2921 * Makefile.in (install): Depend upon installdirs. Use
2922 mkinstalldirs to build $(oldincludedir).
2923 (installdirs): New target.
2925 * elflink.h (elf_link_add_object_symbols): Don't call check_relocs
2926 if this is a debugging section which we are stripping.
2928 Mon Apr 14 12:39:30 1997 Richard Henderson <rth@tamu.edu>
2930 * elf64-alpha.c (elf64_alpha_object_p): Allocate the
2931 alpha-specific target data struct.
2933 Mon Apr 14 11:45:46 1997 Ian Lance Taylor <ian@cygnus.com>
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.
2940 Fri Apr 11 15:43:24 1997 Ian Lance Taylor <ian@cygnus.com>
2942 * elfcode.h (elf_slurp_symbol_table): Only subtract the section
2943 VMA if this is an executable file or a shared object.
2945 * targets.c (netbsd_core_vec): Declare. From Gordon W. Ross
2948 * libaout.h (struct aout_backend_data): Add entry_is_text_address
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
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.
2965 * xcofflink.c (bfd_xcoff_import_symbol): Handle importing a symbol
2966 whose name starts with `.'.
2968 Fri Apr 11 11:57:15 1997 Niklas Hallqvist <niklas@appli.se>
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.
2978 Tue Apr 8 18:09:29 1997 Jamie Lokier <jamie@rebellion.co.uk>
2980 * stabs.c (struct stab_section_info): New field
2982 (_bfd_link_section_stabs): Fill the above array.
2983 (_bfd_stab_section_offset): Use `cumulative_skips' to
2984 speed up offset calculation.
2986 Tue Apr 8 00:01:31 1997 Jeffrey A Law (law@cygnus.com)
2988 * elf-mn10300.c (mn10300_elf_relax_section): Don't forget the
2989 addend for non pc-relative relocations.
2991 * elf-m10300.c (bfd_elf32_mn10300_reloc): Remove prototype
2992 for non-existent function.
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.
3001 Mon Apr 7 16:47:09 1997 Ian Lance Taylor <ian@cygnus.com>
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).
3009 Mon Apr 7 10:53:52 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
3011 * bfd-in.h bfd-in2.h: add bfd_section_lma macro to correspond
3012 with bfd_section_vma.
3014 Fri Apr 4 11:37:15 1997 Ian Lance Taylor <ian@cygnus.com>
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.
3020 * bfd.c (bfd_record_phdr): Cast count to size_t before
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.
3035 * ppcboot.c (ppcboot_set_arch_mach): Make static.
3036 (ppcboot_bfd_print_private_bfd_data): Likewise.
3038 * elf32-mips.c (elf_mips_ctor64_howto): Set complain_on_overflow
3039 to complain_overflow_signed.
3041 Thu Apr 3 11:51:54 1997 Ian Lance Taylor <ian@cygnus.com>
3043 * VERSION: Set to 2.8.1.
3045 * Branched binutils 2.8.
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.
3054 Wed Apr 2 16:19:41 1997 Mike Meissner <meissner@cygnus.com>
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
3060 Wed Apr 2 10:49:07 1997 Ian Lance Taylor <ian@cygnus.com>
3062 * elflink.h (elf_link_add_object_symbols): Let a common symbol
3063 override an uninitialized symbol from a shared library with a
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.
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
3078 * elf32-mips.c (mips16_jump_reloc): Print a warning rather than
3081 Tue Apr 1 16:18:05 1997 Klaus Kaempf <kkaempf@progis.de>
3083 * configure.com: New file.
3084 * config.h-vms: Remove file.
3085 * makefile.vms: Update for new configure scheme.
3087 Mon Mar 31 23:28:39 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
3089 * libcoff-in.h (ppc_allocate_toc_section): Declare.
3090 (ppc_process_before_allocation): Declare.
3091 * libcoff.h: Rebuild.
3093 * coffcode.h (coff_mkobject_hook): Declare if not a macro.
3095 Mon Mar 31 16:29:50 1997 Joel Sherrill <joel@oarcorp.com>
3097 * config.bfd (hppa*-*-rtems*): New target, like hppa-*-*elf*.
3099 Mon Mar 31 16:11:35 1997 Ian Lance Taylor <ian@cygnus.com>
3101 * coff-a29k.c (coff_a29k_relocate_section): Don't use symndx as a
3102 symbol index for a R_IHCONST reloc.
3104 Mon Mar 31 15:40:59 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
3106 * targmatch.sed: Do not use \(\) recursively.
3108 Fri Mar 28 14:44:08 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
3110 * m68klinux.c (MACHTYPE_OK): Define.
3111 * i386linux.c (MACHTYPE_OK): Define.
3113 Fri Mar 28 11:56:15 1997 Ian Lance Taylor <ian@cygnus.com>
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.
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.
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>.
3137 * bfd.c: Include "libiberty.h".
3138 (strerror): Don't declare.
3139 (bfd_errmsg): Call xstrerror rather than strerror.
3141 Thu Mar 27 12:55:42 1997 Ian Lance Taylor <ian@cygnus.com>
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.
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.
3157 * COPYING: Update FSF address.
3160 Thu Mar 27 00:45:57 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
3162 * elf32-d30v.c (elf_d30v_howto_table): Fix a typo in the
3163 21-bit absolute that made it act as a relative.
3166 Wed Mar 26 14:50:20 1997 Ian Lance Taylor <ian@cygnus.com>
3168 * elflink.c (_bfd_elf_create_linker_section): Don't set
3169 bss_section and rel_section from existing sections.
3171 * elf32-ppc.c (ppc_elf_check_relocs): Only create the got section
3174 Tue Mar 25 22:26:56 1997 Stu Grossman (grossman@critters.cygnus.com)
3176 * aoutx.h (some_aout_object_p): Change executable test to fix
3177 problems with embedded a.out systems.
3179 Tue Mar 25 14:35:37 1997 Ian Lance Taylor <ian@cygnus.com>
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
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.
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.
3199 start-sanitize-tic80
3200 Mon Mar 24 20:07:29 1997 Fred Fish <fnf@cygnus.com>
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.
3207 Mon Mar 24 13:41:00 1997 Ian Lance Taylor <ian@cygnus.com>
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
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.
3221 * config.bfd: Don't set targ_underscore for i[3456]86-*-gnu* or
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.
3230 Fri Mar 21 13:08:26 1997 Ian Lance Taylor <ian@cygnus.com>
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.
3235 Fri Mar 21 12:36:46 1997 Doug Evans <dje@canuck.cygnus.com>
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
3246 Mon Mar 10 16:03:31 1997 Doug Evans <dje@seba.cygnus.com>
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.
3254 Thu Mar 20 12:39:02 1997 Ian Lance Taylor <ian@cygnus.com>
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
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
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.
3274 * binary.c (binary_set_section_contents): Don't get misled if the
3275 first section is not loadable. From Matthew L. Martin
3278 * elflink.h (elf_bfd_final_link): Set the value of a section
3279 symbol to the section address unless doing a relocateable link.
3281 Tue Mar 18 23:03:17 1997 Richard Henderson <rth@tamu.edu>
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.
3287 Tue Mar 18 22:40:09 1997 H.J. Lu <hjl@lucon.org>
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.
3299 Tue Mar 18 12:58:08 1997 Ian Lance Taylor <ian@cygnus.com>
3301 * elf32-m32r.c (m32r_elf_is_local_label_name): Remove.
3302 (bfd_elf32_bfd_is_local_label): Don't define.
3304 * xcofflink.c (_bfd_xcoff_bfd_final_link): Call bfd_malloc rather
3307 Mon Mar 17 11:32:53 1997 Ian Lance Taylor <ian@cygnus.com>
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
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".
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.
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.
3353 Sat Mar 15 15:24:18 1997 Ian Lance Taylor <ian@cygnus.com>
3355 * elf32-mips.c (mips_elf_is_local_label_name): Accept the generic
3356 ELF local label syntax as well.
3358 Sat Mar 15 10:16:42 1997 Fred Fish <fnf@cygnus.com>
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.
3366 Fri Mar 14 16:43:22 1997 Ian Lance Taylor <ian@cygnus.com>
3368 * elf32-mips.c (mips_elf_check_relocs): Give an error if CALL16 is
3369 seen with a local symbol, rather than crashing.
3371 * elfcode.h (elf_slurp_symbol_table): Don't try to read the
3372 version symbols if there aren't any.
3374 start-sanitize-tic80
3375 Thu Mar 13 16:38:30 1997 Fred Fish <fnf@cygnus.com>
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".
3382 Thu Mar 13 14:08:53 1997 Ian Lance Taylor <ian@cygnus.com>
3384 * elflink.h (elf_link_add_object_symbols): Don't warn about type
3385 or size changes because of a weak symbol.
3387 * cisco-core.c (SIGEMT): Define if not defined.
3389 Wed Mar 12 21:36:05 1997 Ian Lance Taylor <ian@cygnus.com>
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
3397 (elf_export_symbol): Ignore indirect symbols.
3398 (elf_link_output_extsym): Accept a section without an owner in an
3400 * elfcode.h (elf_slurp_symbol_table): Add a sanity check on the
3401 version count. Correct the allocation of x_versymp.
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
3410 (mips_elf_finish_dynamic_symbol): Don't change SHN_ABS into
3411 SHN_MIPS_TEXT or SHN_MIPS_DATA.
3413 * elf.c (bfd_elf_print_symbol): Tweak version output slightly.
3415 Tue Mar 11 01:38:36 1997 Ian Lance Taylor <ian@cygnus.com>
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
3431 Sun Mar 9 23:08:49 1997 Ian Lance Taylor <ian@cygnus.com>
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
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
3454 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Tell
3455 _bfd_stringtab_add to copy the name into permanent memory if
3458 Fri Mar 7 11:55:31 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
3460 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Fully parenthesize.
3462 Fri Mar 7 10:37:30 1997 Ian Lance Taylor <ian@cygnus.com>
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.
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.
3478 * Makefile.in ($(SHLINK)): Just use ln -s, not ln -sf, since
3479 Solaris doesn't like the combined options, and the -f is
3481 (stamp-tshlink, install): Likewise.
3483 * elf32-mips.c (mips_elf_relocate_section): Correct R_MIPS16_26
3484 handling when little endian.
3486 Thu Mar 6 13:51:51 1997 Jeffrey A Law (law@cygnus.com)
3488 * elf32-mn10300.c (mn10300_elf_final_link_relocate): New function.
3489 (mn10300_elf_relocate_section): Likewise.
3490 (elf_backend_relocate_section): Define.
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.
3498 Thu Mar 6 12:19:59 1997 Fred Fish <fnf@cygnus.com>
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.
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.
3511 * coff-z8k.c: Ditto.
3513 Wed Mar 5 13:59:09 1997 Doug Evans <dje@seba.cygnus.com>
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.
3519 Mon Mar 3 13:27:09 1997 Ulrich Drepper <drepper@rtl.cygnus.com>
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.
3526 start-sanitize-tic80
3527 Sun Mar 2 22:47:54 1997 Fred Fish <fnf@cygnus.com>
3529 * coff-tic80.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set this to 2
3533 Sun Mar 2 16:25:35 1997 Ian Lance Taylor <ian@cygnus.com>
3535 * elflink.h (elf_link_find_version_dependencies): Check that
3536 DEF_REGULAR is not set as well as checking that DEF_DYNAMIC is
3539 start-sanitize-tic80
3540 Fri Feb 28 16:52:40 1997 Fred Fish <fnf@cygnus.com>
3542 * coffcode.h (coff_set_flags): Add case for TIC80_ARCH_MAGIC.
3545 Fri Feb 28 15:06:45 1997 Ian Lance Taylor <ian@cygnus.com>
3547 * targets.c (bfd_default_vector): Make non-const.
3548 (find_target): New static function, broken out of
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.
3556 * syms.c (bfd_is_local_label): Return false if the symbol has no
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.
3571 Thu Feb 27 18:36:23 1997 Ian Lance Taylor <ian@cygnus.com>
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.
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.
3585 * coff-m88k.c (coff_bfd_is_local_label_name): Define.
3586 (m88k_is_local_label_name): New static function.
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.
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
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.
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
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.
3618 Wed Feb 26 15:19:51 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
3620 * elf32-d30v.c (bfd_elf_d30v_reloc): Add code to do 32-bit
3624 Wed Feb 26 13:33:03 1997 Ian Lance Taylor <ian@cygnus.com>
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.
3629 Tue Feb 25 18:51:35 1997 Stan Shebs <shebs@andros.cygnus.com>
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
3636 * targets.c (bfd_target_vector): Add ecoff_biglittle_vec.
3637 * configure.in (ecoff_biglittle_vec): Add case.
3638 * configure: Update.
3640 Tue Feb 25 00:32:49 1997 Ian Lance Taylor <ian@cygnus.com>
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.
3648 * elf32-mips.c (mips_elf_relocate_section): Check for misaligned
3649 jal and for jal overflow.
3651 Mon Feb 24 17:53:14 1997 Ian Lance Taylor <ian@cygnus.com>
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.
3716 Fri Feb 21 16:15:18 1997 Jeffrey A Law (law@cygnus.com)
3718 * elf32-mn10200.c (mn10200_elf_final_link_relocate): Simplify
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
3725 Fri Feb 21 13:55:14 1997 Doug Evans <dje@seba.cygnus.com>
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.
3733 Thu Feb 20 23:50:31 1997 Jeffrey A Law (law@cygnus.com)
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.
3742 * elf32-mn10200.c (mn10200_elf_final_link_relocate): New function.
3743 (mn10200_elf_relocate_section): Likewise.
3744 (elf_backend_relocate_section): Define.
3747 Tue Feb 18 17:22:59 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
3749 * Makefile.in, archures.c, config.bfd, configure.in, elf.c,
3750 reloc.c, targets.c: New target, elf-*-D30V.
3752 * bfd-in2.h, configure, libbfd.h: Rebuilt.
3754 * cpu-d30v.c, elf32-d30v.c: New files.
3757 Tue Feb 18 15:31:48 1997 Fred Fish <fnf@cygnus.com>
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.
3767 Tue Feb 18 11:41:00 1996 Dawn Perchik <dawn@cygnus.com>
3769 * sysdep.h: Don't define errno in MSVC if error.h is included.
3771 Tue Feb 18 10:04:13 1997 Jeffrey A Law (law@cygnus.com)
3773 * elf32-v850.c (v850_elf_relocate_section): Make sure r_symndx
3774 is initialized before it is used.
3776 Mon Feb 17 11:28:40 1997 Ian Lance Taylor <ian@cygnus.com>
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.
3781 Fri Feb 14 19:08:03 1997 Ian Lance Taylor <ian@cygnus.com>
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.
3787 Thu Feb 13 20:53:22 1997 Klaus Kaempf (kkaempf@progis.de)
3789 * makefile.vms: Add gcc flags to allow compiling with current gcc
3791 (targmatch.h): New dependency.
3793 * reloc.c (BFD_RELOC_ALPHA_CODEADDR): New relocation for
3795 * evax.h (ALPHA_R_CODEADDR): New relocation.
3796 * evax-alpha.c (ALPHA_R_CODEADDR): 64 bit procedure relocation for
3798 * evax-etir.c (ALPHA_R_CODEADDR): Output object code for this
3800 * bfd-in2.h, libbfd.h: Rebuild.
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.
3811 * evax-emh.c: Output filename to object file without path.
3813 * evax-egsd.c: New sections for local and global commons.
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.
3819 Wed Feb 12 18:10:30 1997 Ian Lance Taylor <ian@cygnus.com>
3821 * sunos.c (sunos_create_dynamic_sections): We need the dynamic
3822 sections if we are creating a shared library.
3824 Tue Feb 11 15:45:43 1997 Doug Evans <dje@canuck.cygnus.com>
3826 * configure.host (i386-windows): Don't set host64=true.
3828 Tue Feb 11 15:27:32 1997 Ian Lance Taylor <ian@cygnus.com>
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.
3839 Mon Feb 10 23:25:00 1997 Doug Evans <dje@seba.cygnus.com>
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}.
3844 start-sanitize-r5900
3845 Fri Feb 7 16:20:17 1997 Gavin Koch <gavin@cygnus.com>
3847 * config.bfd: add r5900
3850 Fri Feb 7 12:39:11 1997 Ian Lance Taylor <ian@cygnus.com>
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.
3856 Thu Feb 6 16:55:43 1997 Ian Lance Taylor <ian@cygnus.com>
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.
3873 * elflink.h (elf_link_input_bfd): Discard local symbols that are
3874 attached to sections which are not being included in the link.
3876 Wed Feb 5 13:20:17 1997 Ian Lance Taylor <ian@cygnus.com>
3878 * cofflink.c (_bfd_coff_generic_relocate_section): Ignore the
3879 symbol value when computing the addend for a pc_relative
3882 Mon Feb 3 11:54:06 1997 Ian Lance Taylor <ian@cygnus.com>
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.
3891 * coff-h8300.c (h8300_reloc16_extra_cases): Correct off by one
3892 error in overflow check for R_RELBYTE.
3894 Fri Jan 31 14:07:27 1997 Ian Lance Taylor <ian@cygnus.com>
3896 * ieee.c (ieee_slurp_section_data): Pick up the start address.
3897 From Mark Rasin <mark.rasin@telrad.co.il>.
3899 * aoutx.h (aout_link_write_symbols): Don't apply discard_l to
3902 Wed Jan 29 00:00:49 1997 Jeffrey A Law (law@cygnus.com)
3904 * elf32-mn10200.c (reloc_type): Add 16bit pc-relative reloc.
3905 (elf_mn10200_howto_table): Likewise.
3906 (mn10200_reloc_map): Likewise.
3908 Mon Jan 27 12:07:35 1997 Doug Evans <dje@seba.cygnus.com>
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.
3914 Mon Jan 27 12:25:02 1997 Ian Lance Taylor <ian@cygnus.com>
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.
3922 * elf32-i386.c (elf_i386_size_dynamic_sections): When checking for
3923 relocations against the text segment, look up the output name of
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.
3931 start-sanitize-tic80
3932 Wed Jan 22 15:40:28 1997 Fred Fish <fnf@cygnus.com>
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.
3939 Tue Jan 21 12:32:43 1997 Fred Fish <fnf@cygnus.com>
3941 * coff-tic80.c (tic80coff_vec): Change to little endian data
3945 Thu Jan 16 17:45:57 1997 Ian Lance Taylor <ian@cygnus.com>
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.
3954 Wed Jan 15 11:21:32 1997 Ian Lance Taylor <ian@cygnus.com>
3956 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Treat a
3957 NOTYPE symbol in a text section as a FUNC symbol.
3959 * coffcode.h (coff_compute_section_file_positions): Force
3960 relocbase to be aligned to COFF_DEFAULT_SECTION_ALIGNMENT_POWER.
3962 Tue Jan 14 08:46:33 1997 Doug Evans <dje@canuck.cygnus.com>
3964 * libaout.h (machine_type): Reserve several values for sparclet.
3966 start-sanitize-tic80
3967 Mon Jan 13 22:39:08 1997 Michael Meissner <meissner@tiktok.cygnus.com>
3969 * config.bfd (tic80-*-*): Don't require 'coff'.
3972 Mon Jan 13 19:36:25 1997 Michael Meissner <meissner@tiktok.cygnus.com>
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
3982 Mon Jan 6 13:28:35 1997 Jeffrey A Law (law@cygnus.com)
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.
3988 * elf32-mn10200.c (elf_mn10200_howto): Set pcrel_offset for
3989 24bit pc-relative reloc.
3991 start-sanitize-tic80
3992 Fri Jan 3 16:33:00 1997 Fred Fish <fnf@cygnus.com>
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.
4002 Fri Jan 3 16:54:08 1997 Jeffrey A Law (law@cygnus.com)
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.
4009 Fri Jan 3 16:58:31 1997 Richard Henderson <rth@tamu.edu>
4011 elf64-alpha multiple .got rewrite:
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
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.
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):
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
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.
4045 * elf64-alpha.c: Rewrite everything touching relocations.
4047 Fri Jan 3 11:42:53 1997 Michael Meissner <meissner@tiktok.cygnus.com>
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.
4058 Tue Dec 31 15:15:28 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4060 * elf32-v850.c (elf_v850_howto_table): Fix some spacing.
4062 Tue Dec 31 14:44:50 1996 Ian Lance Taylor <ian@cygnus.com>
4064 * config.bfd (mips*el-*-linux*): New target.
4065 (mips*-*-linux*): New target.
4067 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Clean up.
4068 Return a useful value.
4070 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
4072 * configure.in: Check ac_cv_func_mmap_fixed_mapped, not
4074 * configure: Rebuild.
4075 * configure.host: Use ac_cv_func_mmap_fixed_mapped instead of
4076 ac_cv_func_mmap in bfd/configure.host.
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
4082 * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
4083 (bfd_elf64_size_dynamic_sections): Likewise.
4084 * bfd-in2.h: Rebuild.
4086 Mon Dec 30 18:48:52 1996 Ian Lance Taylor <ian@cygnus.com>
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.
4092 start-sanitize-tic80
4093 Mon Dec 30 16:12:58 1996 Fred Fish <fnf@cygnus.com>
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".
4100 Sun Dec 29 16:18:52 1996 Fred Fish <fnf@cygnus.com>
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.
4108 Mon Dec 30 11:54:56 1996 Ian Lance Taylor <ian@cygnus.com>
4110 * libbfd.c: Patch up the mmap code so that it is only built if BFD
4111 is configured with --with-mmap.
4113 start-sanitize-tic80
4114 Sun Dec 29 10:48:57 1996 Fred Fish <fnf@cygnus.com>
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
4124 Fri Dec 27 20:56:41 1996 Fred Fish <fnf@cygnus.com>
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.
4139 Fri Dec 27 11:48:12 1996 H.J. Lu <hjl@lucon.org>
4141 * elflink.h (elf_buckets): Add some more values for larger
4144 Thu Dec 26 18:36:54 1996 Ian Lance Taylor <ian@cygnus.com>
4146 * Makefile.in (install): Move subdir_do out of conditional. From
4147 Fred Fish <fnf@cygnus.com>.
4149 Wed Dec 18 10:04:30 1996 Jeffrey A Law (law@cygnus.com)
4151 * elf32-mn10200.c (enum reloc_type): Enable basic 8, 16, and
4153 (elf_mn10200_howto_table): Likewise.
4154 (mn10200_reloc_map): Likewise.
4156 Tue Dec 17 11:09:36 1996 Ian Lance Taylor <ian@cygnus.com>
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
4162 (mips_elf_link_output_symbol_hook): New static function.
4163 (elf_backend_link_output_symbol_hook): Define.
4165 * elf.c (bfd_elf_print_symbol): Print the st_other field if it is
4168 Mon Dec 16 14:38:39 1996 Ian Lance Taylor <ian@cygnus.com>
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.
4174 Sun Dec 15 14:46:06 1996 Ian Lance Taylor <ian@cygnus.com>
4176 * elfcode.h (elf_slurp_reloc_table): Add dynamic parameter.
4177 * elf.c (_bfd_elf_canonicalize_reloc): Pass new argument to
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
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
4189 Fri Dec 13 13:18:49 1996 Dan Wilder <dan@gasboy.com>
4191 * coffcode.h (coff_set_flags): Use MC68KBCSMAGIC for bfd_arch_m68k
4192 if NAMES_HAVE_UNDERSCORE is defined.
4194 Fri Dec 13 11:13:23 1996 Doug Evans <dje@canuck.cygnus.com>
4196 * libaout.h (enum machine_type): Change M_SPARCLET from 142 to 131.
4198 Thu Dec 12 15:07:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4200 * elf32-ppc.c (ppc_elf_check_relocs): Move R_PPC_PLTREL24 into the
4203 Thu Dec 12 14:55:41 1996 Ian Lance Taylor <ian@cygnus.com>
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.
4210 * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Make static.
4212 * ppcboot.c (ppcboot_set_arch_mach): Don't define; it's a
4214 (ppcboot_bfd_print_private_bfd_data): Don't take the address of an
4217 Tue Dec 10 23:23:52 1996 Jeffrey A Law (law@cygnus.com)
4219 * elf32-mn10300.c (reloc_type): Remove big endian mn10300 reloc
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.
4226 * elf32-mn10200.c: Update from elf32-mn10300.c.
4228 Fri Dec 6 15:18:05 1996 Jeffrey A Law (law@cygnus.com)
4230 * elf32-mn10300.c (elf_symbol_leading_char): Define.
4232 * elf32-mn10300.c: Add some comments.
4234 Fri Dec 6 17:16:43 1996 Ian Lance Taylor <ian@cygnus.com>
4236 * ihex.c (ihex_scan): Always initialize buf before jumping to
4238 (ihex_read_section): Likewise.
4240 Thu Dec 5 22:29:18 1996 Jeffrey A Law (law@cygnus.com)
4242 * elf32-mn10300.c (elf_mn10300_howto_table): Don't set partial-
4243 inplace for most relocs.
4245 Thu Dec 5 13:24:46 1996 Ian Lance Taylor <ian@cygnus.com>
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.
4260 Wed Dec 4 14:18:13 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4262 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): #if 0 code that
4263 expects a .got.plt until we actually create it.
4265 Mon Dec 2 12:13:51 1996 Ian Lance Taylor <ian@cygnus.com>
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>.
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>.
4275 Mon Dec 2 00:39:24 1996 Jeffrey A Law (law@cygnus.com)
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.
4283 Sun Dec 1 00:18:59 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4285 * configure.in, configure: Handle mips*-sgi-irix6*.
4286 * irix-core.c (irix_core_core_file_p): Accept CORE_MAGICN32
4289 Wed Nov 27 12:10:25 1996 Ian Lance Taylor <ian@cygnus.com>
4291 * elf32-i386.c (elf_i386_relocate_section): Warn about a
4292 relocation against a symbol defined in a section with no output
4295 Tue Nov 26 11:07:31 1996 Ian Lance Taylor <ian@cygnus.com>
4297 * aclocal.m4 (BFD_CC_FOR_BUILD): Don't require AC_C_CROSS.
4298 * configure, config.in: Rebuild with autoconf 2.12.
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
4305 (elf_link_output_extsym): Set the other field from the global hash
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
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.
4318 Mon Nov 25 11:23:32 1996 Ian Lance Taylor <ian@cygnus.com>
4320 * configure.host: Use long long for mips-sgi-irix6*.
4322 * coffswap.h (coff_swap_scnhdr_out): Make line number overflow
4323 only a warning. From Philippe De Muyter <phdemuyt@ulb.ac.be>.
4325 Mon Nov 25 08:52:29 1996 Jeffrey A Law (law@cygnus.com)
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.
4334 Sat Nov 23 13:26:18 1996 Jeffrey A Law (law@cygnus.com)
4336 * som.c (setup_sections): Don't lose for a space which has
4337 no data, but some symbols.
4339 Fri Nov 22 11:32:13 1996 Ian Lance Taylor <ian@cygnus.com>
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
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
4353 (sunos_finish_dynamic_link): Check got_needed. Only set up
4354 dynamic linking information if needed.
4356 Thu Nov 21 10:31:31 1996 Rob Savoye (rob@cygnus.com)
4358 * config.bfd: Added VersaDOS format to the Ericsson configuration.
4360 Wed Nov 20 16:31:31 1996 Jeffrey A Law (law@cygnus.com)
4362 * elf32-mn10300.c: Rough cut at relocs for the mn10300.
4364 Wed Nov 13 08:12:38 1996 Jeffrey A Law (law@cygnus.com)
4366 * Makefile.in (elf32-d10v.o): Don't depend on elf/d10v.h
4369 Tue Nov 12 13:30:00 1996 Dawn Perchik <dawn@cygnus.com>
4371 * filemode.c: Include sysdep.h.
4372 * ihex.c: Add casts to eliminate compiler warnings.
4373 * sunos.c: Add casts to eliminate compiler warnings.
4375 Mon Nov 11 10:37:02 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4377 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Create .got.plt
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.
4383 Tue Oct 29 15:03:02 1996 Doug Evans <dje@canuck.cygnus.com>
4385 * elf32-m32r.c (elf_m32r_howto_table, R_M32R_24): Use
4386 complain_overflow_unsigned.
4388 Tue Oct 29 12:53:46 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4390 * elf32-d10v.c (elf_d10v_howto_table): Don't complain on
4391 overflows for R_D10V_16 and R_D10V_18.
4393 Tue Oct 29 13:23:53 1996 Ian Lance Taylor <ian@cygnus.com>
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.
4400 Fri Oct 25 16:56:40 1996 Ian Lance Taylor <ian@cygnus.com>
4402 * ieee.c (ieee_write_external_part): Correctly record whether
4403 there is an external part.
4405 Thu Oct 24 14:32:52 1996 Jeffrey A Law (law@cygnus.com)
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.
4411 Thu Oct 24 09:08:47 1996 Stu Grossman (grossman@critters.cygnus.com)
4413 * aclocal.m4, configure: Set USE_BINARY_FOPEN for *-*-windows.
4415 Wed Oct 23 00:53:16 1996 Jeffrey A Law (law@cygnus.com)
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.
4422 * elf32-v850.c (elf32_v850_howto_table): Fix typo in
4423 R_V850_SDA_OFFSET entry.
4425 Wed Oct 23 00:20:34 1996 Ian Lance Taylor <ian@cygnus.com>
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.
4432 Tue Oct 22 19:20:38 1996 Jeffrey A Law (law@cygnus.com)
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
4441 * elf32-v850.c: Include bfdlink.h.
4442 (bfd_elf32_v850_reloc): Return an error if we get a reloc
4444 (elf32_v850_bfd_final_link_relocate): New function.
4445 (v850_elf_relocation_section): Likewise.
4446 (elf_backend_relocate_section): Define.
4448 Tue Oct 22 17:22:43 1996 Ian Lance Taylor <ian@cygnus.com>
4450 * binary.c (binary_set_section_contents): Ignore sections which
4451 don't have SEC_LOAD and SEC_ALLOC set.
4453 Mon Oct 21 12:13:05 1996 Jeffrey A Law (law@cygnus.com)
4455 * linker.c (_bfd_generic_final_link): Avoid losing static
4456 symbols in the .bss section.
4458 Mon Oct 21 10:54:58 1996 Ian Lance Taylor <ian@cygnus.com>
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.
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.
4469 Thu Oct 17 10:43:29 1996 Doug Evans <dje@canuck.cygnus.com>
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.
4478 Wed Oct 16 11:24:35 1996 Jeffrey A Law (law@cygnus.com)
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.
4491 * elf32-v850.c (bfd_elf32_v850_reloc): Mask out bits we
4492 no longer want in pc-relative relocs.
4494 Tue Oct 15 22:17:37 1996 Jeffrey A Law (law@cygnus.com)
4496 * elf32-v850.c (bfd_elf32_v850_reloc): Don't silently
4497 accept a reloc against an undefined sybmol!
4499 Tue Oct 15 16:17:28 1996 Stu Grossman (grossman@critters.cygnus.com)
4501 * elf32-v850.c: Define elf_symbol_leading_char to be '_'.
4503 Tue Oct 15 12:40:41 1996 Ian Lance Taylor <ian@cygnus.com>
4505 * VERSION: Bump for new relocation.
4507 * hosts/i386bsd.h: If NBPG is not defined, define it as
4508 PAGE_SIZE, for recent versions of FreeBSD.
4510 Mon Oct 14 12:37:26 1996 Ian Lance Taylor <ian@cygnus.com>
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.
4515 Mon Oct 14 11:17:24 1996 Richard Henderson <rth@tamu.edu>
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.
4523 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Trap .got
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.
4530 Thu Oct 10 11:15:06 1996 Stan Shebs <shebs@andros.cygnus.com>
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.
4536 Thu Oct 10 14:14:23 1996 Ian Lance Taylor <ian@cygnus.com>
4538 * config.bfd: When setting targ_cpu, don't get confused by
4541 Tue Oct 8 08:51:19 1996 Stu Grossman (grossman@critters.cygnus.com)
4543 * configure.host: Add support for windows host (a build done
4544 under the Microsoft build environment).
4546 Tue Oct 8 11:40:16 1996 Ian Lance Taylor <ian@cygnus.com>
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.
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
4557 (sunos_check_dynamic_reloc): Subtract got_base from a base
4558 relative relocation.
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.
4564 Mon Oct 7 11:44:17 1996 Ian Lance Taylor <ian@cygnus.com>
4566 * archive.c (do_slurp_coff_armap): Only treat archive as little
4567 endian for i960 COFF.
4569 Fri Oct 4 13:49:01 1996 Ian Lance Taylor <ian@cygnus.com>
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.
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.
4579 * dep-in.sed: Rework backslash loop a bit to avoid bug in sed on
4581 * Makefile.in: Rebuild dependencies.
4583 * dep-in.sed: Remove ../bfd/sysdep.h, since it will appear when
4586 Fri Oct 4 11:41:39 1996 Jeffrey A Law (law@cygnus.com)
4588 * Makefile.in: Remove explicit dependencies for mn10200 and
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.
4594 Thu Oct 3 16:57:51 1996 Ian Lance Taylor <ian@cygnus.com>
4596 * cofflink.c (coff_link_add_symbols): Set obj_coff_keep_syms
4597 during this function.
4599 * elflink.c (_bfd_elf_create_linker_section): Only use an existing
4600 section if the flags are compatible.
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
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.
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.
4629 Thu Oct 3 09:29:09 1996 Jeffrey A Law (law@cygnus.com)
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.
4639 Thu Oct 3 15:38:19 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
4641 * Makefile.in (do_clean): Move config.log to do_distclean.
4643 Wed Oct 2 21:40:55 1996 Jeffrey A Law (law@cygnus.com)
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.
4659 Wed Oct 2 15:46:45 1996 Klaus Kaempf <kkaempf@progis.de>
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
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
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
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
4684 Wed Oct 2 12:02:02 1996 Ian Lance Taylor <ian@cygnus.com>
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.
4691 * cofflink.c (_bfd_coff_link_input_bfd): Don't crash if there is
4692 no hash table entry for a global symbol.
4694 Tue Oct 1 16:14:22 1996 Joel Sherrill <joel@oarcorp.com>
4696 * config.bfd (mips*-*-rtems*): New target, like mips*-*-elf*.
4698 Tue Oct 1 12:31:39 1996 Ian Lance Taylor <ian@cygnus.com>
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>.
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.
4708 Fri Sep 27 18:41:07 1996 Stu Grossman (grossman@critters.cygnus.com)
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!
4713 Mon Sep 23 13:33:00 1996 Ian Lance Taylor <ian@cygnus.com>
4715 * elf32-ppc.c (ppc_elf_add_symbol_hook): Create the .sbss section
4716 by hand, rather than by calling bfd_make_section.
4718 Mon Sep 23 09:23:41 1996 Doug Evans <dje@seba.cygnus.com>
4720 * reloc.c: Rename m32r relocs.
4721 * bfd-in2.h, libbfd.h: Rebuilt.
4722 * elf32-m32r.c: Update.
4724 Fri Sep 20 11:43:43 1996 Ian Lance Taylor <ian@cygnus.com>
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.
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.
4736 Thu Sep 19 11:03:06 1996 Ian Lance Taylor <ian@cygnus.com>
4738 * xcofflink.c (xcoff_link_add_symbols): Always initialize
4740 (_bfd_xcoff_bfd_final_link): Don't set target_index
4741 to an uninitialized value.
4743 Tue Sep 17 14:18:31 1996 Ian Lance Taylor <ian@cygnus.com>
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
4749 * coff-sh.c (sh_relocate_section): Check for an illegal symbol
4752 Mon Sep 16 12:39:36 1996 Ian Lance Taylor <ian@cygnus.com>
4754 * coff-arm.c (aoutarm_std_reloc_howto): Change dst_mask for ARM26D
4756 (coff_arm_adjust_symndx): New static function.
4757 (coff_adjust_symndx): Define.
4759 * srec.c (srec_scan): Accept multiple symbols on a single line.
4760 From Pascal Martin <pmartin@alsys.com>.
4764 Fri Sep 13 14:32:42 1996 Doug Evans <dje@canuck.cygnus.com>
4766 * aoutf1.h (MY_bfd_merge_private_bfd_data): Define.
4767 (sunos_merge_private_bfd_data): New function.
4769 Fri Sep 13 15:50:57 1996 Ian Lance Taylor <ian@cygnus.com>
4771 * bfd.c (bfd_copy_private_bfd_data): Switch on output BFD rather
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.
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
4792 Thu Sep 12 11:45:57 1996 Doug Evans <dje@seba.cygnus.com>
4794 * reloc.c: Add m32r relocs.
4795 * bfd-in2.h, libbfd.h: Rebuilt.
4796 * cpu-m32r.c,elf32-m32r.c: New files.
4798 Thu Sep 12 11:10:05 1996 Ian Lance Taylor <ian@cygnus.com>
4800 * ieee.c (ieee_vec): Set symbol_leading_char field to '_'.
4802 Wed Sep 11 11:57:56 1996 Ian Lance Taylor <ian@cygnus.com>
4804 * tekhex.c (first_phase): Change type parameter from char to int.
4806 (pass_over): Change func to expect int, not char.
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.
4812 Tue Sep 10 16:18:30 1996 Fred Fish <fnf@cygnus.com>
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.
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.
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.
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.
4893 * syms.c (coff_section_type): Ditto.
4895 Mon Sep 9 22:36:01 1996 Jeffrey A Law (law@cygnus.com)
4897 * bfd-in2.h: Rebuilt after m32r changes.
4899 Mon Sep 9 12:31:22 1996 Doug Evans <dje@canuck.cygnus.com>
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.
4905 Mon Sep 9 11:48:41 1996 Jeffrey A Law (law@cygnus.com)
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.
4911 Fri Sep 6 17:04:39 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4913 * elf32-d10v.c (elf_d10v_howto_table): Modify the size of R_D10V_16
4914 and R_D10V_18 to be 1 (word).
4916 Thu Sep 5 15:23:08 1996 Ian Lance Taylor <ian@cygnus.com>
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.
4922 Tue Sep 3 12:16:20 1996 Doug Evans <dje@canuck.cygnus.com>
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.
4933 Tue Sep 3 00:57:02 1996 Jeffrey A Law (law@cygnus.com)
4935 * elf32-v850.c (bfd_elf32_v850_reloc): Fix handling of
4936 low order sign bit propogation for R_V850_HI16_S.
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.
4944 Mon Sep 2 12:12:34 1996 Ian Lance Taylor <ian@cygnus.com>
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
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.
4953 Sun Sep 1 18:38:01 1996 Jeffrey A Law (law@cygnus.com)
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
4960 (TARGET_BIG_SYM, TARGET_BIG_NAME): Remove. The V850 is little
4963 Sun Sep 1 15:41:08 1996 Ian Lance Taylor <ian@cygnus.com>
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.
4969 Sat Aug 31 10:22:25 1996 Jeffrey A Law (law@cygnus.com)
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}.
4976 Fri Aug 30 18:06:04 1996 J.T. Conklin <jtc@hippo.cygnus.com>
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.
4983 Fri Aug 30 11:49:19 1996 Ian Lance Taylor <ian@cygnus.com>
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
4994 (elf_link_input_bfd): Get external symbols from cache in
4995 symtab_hdr->contents. Get contents from cache in
4997 * elfxx-target.h (bfD_elfNN_bfd_relax_section): Only define if not
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.
5017 * elf.c (map_sections_to_segments): Check that LMA does not skip a
5018 page before checking D_PAGED.
5020 * ihex.c (ihex_scan): Removed unnecessary extbase variable.
5021 (ihex_write_object_contents): Remove extbase; always use segbase
5024 Thu Aug 29 16:52:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
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.
5031 * config.bfd (i[3456]86-*-dgux*): Recognize as a synonym for x86
5034 Tue Aug 27 09:18:18 1996 Jeffrey A Law (law@cygnus.com)
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.
5043 Tue Aug 27 00:12:22 1996 Ian Lance Taylor <ian@cygnus.com>
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.
5050 Thu Aug 22 10:54:38 1996 Ian Lance Taylor <ian@cygnus.com>
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.
5056 * libieee.h (NSECTIONS): Don't define.
5057 (ieee_data_struct): Change section_table to asection **. Add
5059 * ieee.c (get_section_entry): If the table isn't big enough, make
5061 (ieee_slurp_sections): Remove assertion about number of sections.
5062 (ieee_object_p): Adjust initialization of ieee to match changes to
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
5071 Tue Aug 20 15:06:05 1996 J.T. Conklin <jtc@hippo.cygnus.com>
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.
5085 Fri Aug 16 16:25:35 1996 Ian Lance Taylor <ian@cygnus.com>
5087 * xcofflink.c (xcoff_link_add_dynamic_symbols): Create and define
5088 a function code symbol for an XMC_XO symbol.
5090 Thu Aug 15 12:33:29 1996 Stan Shebs <shebs@andros.cygnus.com>
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.
5097 Thu Aug 15 10:35:13 1996 Richard Henderson <rth@tamu.edu>
5099 * elf64-alpha.c (elf64_alpha_output_extsym): The section from
5100 which to offset to get the .plt entry address is ".plt".
5102 Thu Aug 15 16:40:30 1996 James G. Smith <jsmith@cygnus.co.uk>
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.
5108 * bfd-in2.h: Rebuilt
5110 Wed Aug 14 17:02:09 1996 Richard Henderson <rth@tamu.edu>
5112 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Correct typo
5113 in section dynidx start.
5115 Tue Aug 13 14:35:38 1996 Ian Lance Taylor <ian@cygnus.com>
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++.
5121 Tue Aug 13 17:04:40 1996 Michael Meissner <meissner@tiktok.cygnus.com>
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.
5127 Sat Aug 10 22:59:17 1996 Ian Lance Taylor <ian@cygnus.com>
5129 * elflink.h (elf_link_add_object_symbols): Do not resolve a common
5130 symbol against a STT_FUNC symbol in a shared library.
5132 Fri Aug 9 12:44:57 1996 Ian Lance Taylor <ian@cygnus.com>
5134 * xcofflink.c (xcoff_link_add_dynamic_symbols): If a descriptor
5135 symbol is found, automatically define the corresponding function
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
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.
5151 Thu Aug 8 16:24:55 1996 Ian Lance Taylor <ian@cygnus.com>
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.
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.
5163 Thu Aug 8 12:21:56 1996 Klaus Kaempf <kkaempf@progis.de>
5165 * evax-alpha.c (evax_alpha_vec): Corrected flags, cleanup.
5166 (evax_initialize): Remove evax_reloc_table.
5167 (evax_close_and_cleanup): Ditto.
5169 (alpha_howto_table): Remove ALPHA_R_SWREL32 and ALPHA_R_SWREL64
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.
5181 * hosts/alphavms.h (O_ACCMODE): Define if needed.
5183 * makefile.vms: Add better support for DEC C compilation
5184 Add evax.h dependencies
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.
5191 Thu Aug 8 08:17:32 1996 Stu Grossman (grossman@critters.cygnus.com)
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.
5197 Wed Aug 7 23:19:00 1996 Stu Grossman (grossman@critters.cygnus.com)
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
5202 * libbfd.c: Create dummy getpagesize() macro if HAVE_GETPAGESIZE
5205 Wed Aug 7 14:11:44 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
5207 * configure.in: Call BFD_NEEDED_DECLARATION on strstr and
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.
5215 * aclocal.m4 (BFD_NEED_DECLARATION): Include <string.h> or
5216 <strings.h> if they exist.
5218 * ieee.c (ieee_set_section_contents): Cast bfd_alloc return.
5220 Wed Aug 7 12:12:03 1996 Ian Lance Taylor <ian@cygnus.com>
5222 * cpu-i386.c (i8086_arch): Architecture info for the i8086.
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.
5233 Tue Aug 6 12:54:56 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
5235 * elf32-d10v.c (elf_d10v_howto_table): Added R_D10V_32.
5237 Mon Aug 5 13:42:41 1996 Ian Lance Taylor <ian@cygnus.com>
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
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.
5249 Thu Aug 1 22:43:08 1996 Jeffrey A Law (law@cygnus.com)
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.
5257 Wed Jul 31 15:50:55 1996 Ian Lance Taylor <ian@cygnus.com>
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.
5269 Wed Jul 31 15:00:12 1996 James G. Smith <jsmith@cygnus.co.uk>
5271 * reloc.c: (BFD_RELOC_ARM_OFFSETIMM8, BFD_RELOC_ARM_HWLITERAL):
5272 Added, for internal use by the ARM gas.
5274 * bfd-in2.h: Rebuilt
5276 Tue Jul 30 14:14:57 1996 Jeffrey A Law (law@cygnus.com)
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.
5284 Tue Jul 30 13:31:27 1996 Ian Lance Taylor <ian@cygnus.com>
5286 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Do the regular
5287 archive search before looking for stripped dynamic objects.
5289 Fri Jul 26 17:51:39 1996 Ian Lance Taylor <ian@cygnus.com>
5291 * xcofflink.c (xcoff_build_ldsyms): Make exporting an undefined
5292 symbol a warning rather than an error.
5294 Wed Jul 24 12:02:53 1996 Ian Lance Taylor <ian@cygnus.com>
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.
5300 Tue Jul 23 10:43:31 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
5302 * elf32-d10v.c (elf_d10v_howto_table): Changed all relocs to "long"
5303 and fixed mask on R_D10V_10_PCREL_L.
5305 Mon Jul 22 15:30:30 1996 Ian Lance Taylor <ian@cygnus.com>
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
5320 (TARGET_LITTLE_SYM): Likewise.
5321 * archive.c (bfd_slurp_armap): Check for and reject an archive map
5323 * Makefile.in: Rebuild dependencies.
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
5331 (_bfd_mips_elf_fake_sections): Likewise.
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.
5340 Fri Jul 19 18:15:51 1996 Ian Lance Taylor <ian@cygnus.com>
5342 * configure.in: Fix test for whether a compiler has a 64 bit
5343 type. From Jim Wilson <wilson@cygnus.com>.
5345 Thu Jul 18 15:39:10 1996 Ian Lance Taylor <ian@cygnus.com>
5347 * configure.host (mips-sgi-irix6*): New host.
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
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.
5365 * config.bfd (sparc-*-sysv4*): Don't build sunos_big_vec. From
5366 Andrew Gierth <ANDREWG@microlise.co.uk>.
5368 * configure.host: Set INSTALL_SHLIB.
5369 * configure.in: Call AC_SUBST (INSTALL_SHLIB).
5370 * configure: Rebuild.
5371 * Makefile.in (install): Use @INSTALL_SHLIB@.
5373 * config.bfd (mips*-*-irix6*): New target.
5374 * configure.host: Handle Irix 6 shared library like Irix 5.
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
5380 (_bfd_ppc_xcoff_relocate_section): Don't get the TOC offset for an
5383 Thu Jul 18 11:36:31 1996 Stan Shebs <shebs@andros.cygnus.com>
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.
5389 Wed Jul 17 18:02:32 1996 Kim Knuttila <krk@cygnus.com>
5391 * coff-ppc.c: Redid debug scheme - numerous fprintf's gone.
5392 Also removed most abort calls, in favor of using bfd reporting.
5394 Wed Jul 17 14:51:52 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
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.
5411 Wed Jul 17 10:58:55 1996 Kim Knuttila <krk@cygnus.com>
5413 * coff-ppc.c (coff_ppc_relocate_section): Removed bogus fprintf
5415 Tue Jul 16 23:49:02 1996 Stu Grossman (grossman@critters.cygnus.com)
5417 * archures.c bfd-in2.h: Add bfd_mach_i386_i386 and
5418 bfd_mach_i386_i8086 machine types.
5420 Wed Jul 10 12:42:56 1996 Ian Lance Taylor <ian@cygnus.com>
5422 * ecoff.c (_bfd_ecoff_new_section_hook): Set SEC_CODE for _INIT
5425 Wed Jul 10 11:18:21 1996 Richard Henderson <rth@tamu.edu>
5427 * coffcode.h (coff_set_section_contents): A/UX does not require
5428 special handling of the _LIB section.
5430 Tue Jul 9 15:52:20 1996 Jeffrey A Law (law@cygnus.com)
5432 * coff-h8300.c (h8300_reloc16_extra_cases): Use the correct
5433 value for R_RELBYTE.
5435 * reloc16.c (bfd_coff_reloc16_relax_section): Only "shrinks"
5436 array if one was allocated.
5438 Tue Jul 9 12:21:54 1996 Ian Lance Taylor <ian@cygnus.com>
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
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.
5454 Mon Jul 8 16:18:03 1996 Ian Lance Taylor <ian@cygnus.com>
5456 * elf32-mips.c (mips_reloc_map): Remove BFD_RELOC_32_PCREL entry.
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.
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.
5474 Fri Jul 5 19:27:49 1996 Ian Lance Taylor <ian@cygnus.com>
5476 * aout-target.h (MY(callback)): Set reloc_count fields.
5478 Thu Jul 4 12:00:37 1996 Ian Lance Taylor <ian@cygnus.com>
5480 * sunos.c (sunos_add_dynamic_symbols): Don't create dynamic
5481 sections unless this is a SunOS link.
5483 * VERSION: Set to 2.7.1.
5485 * Released binutils 2.7.
5487 Wed Jul 3 14:59:47 1996 Ian Lance Taylor <ian@cygnus.com>
5489 * i386aout.c: Include "aout/aout64.h".
5490 (i386aout_write_object_contents): New static function.
5491 (MY_write_object_contents): Define.
5493 * netbsd.h (MY(write_object_contents)): Make sure that
5494 adjust_sizes_and_vmas is called before fiddling with the magic
5497 Tue Jul 2 23:30:39 1996 Ian Lance Taylor <ian@cygnus.com>
5499 * stabs.c (_bfd_link_section_stabs): Fix casts of psinfo.
5501 Sun Jun 30 13:34:33 1996 Ian Lance Taylor <ian@cygnus.com>
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.
5511 * elf32-mips.c (ELF_MAGPAGESIZE): Change definition to 0x1000.
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.
5517 Sat Jun 29 16:18:51 1996 Kim Knuttila <krk@cygnus.com>
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.
5523 * coff-ppc.c (coff_ppc_relocate_section): Earlier error check
5525 (coff_ppc_relocate_section): Improved diagnostic for large TOCDEFN's.
5526 (TARGET_LITTLE_SYM): Added missing D_PAGED.
5528 Fri Jun 28 13:48:45 1996 Ian Lance Taylor <ian@cygnus.com>
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
5536 * reloc.c (bfd_perform_relocation): Handle xcoff-powermac like
5538 (bfd_install_relocation): Likewise.
5540 Fri Jun 28 11:17:00 1996 Richard Henderson <rth@tamu.edu>
5542 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add flags
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.
5553 Thu Jun 27 11:24:29 1996 Ian Lance Taylor <ian@cygnus.com>
5555 * configure.in: Add AC_ISC_POSIX, and check for setitimer and
5556 sysconf functions (for gprof).
5557 * configure, config.in: Rebuild.
5559 Wed Jun 26 16:29:02 1996 Ian Lance Taylor <ian@cygnus.com>
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
5565 * coff-alpha.c (alpha_adjust_reloc_in): Set the addend for a
5566 BRADDR, SREL16, SREL32, or SREL64 reloc against an external
5568 (alpha_relocate_section): Likewise.
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.
5579 Tue Jun 25 15:28:34 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5581 * elflink.h (elf_create_pointer_linker_section): Comment out code
5582 dealing with making GOT pointers negative of the GOT symbol for
5585 Tue Jun 25 11:41:24 1996 Richard Henderson <rth@tamu.edu>
5587 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't
5588 increment the .rela.plt size until after we're done creating the
5590 (elf64_alpha_finish_dynamic_symbol): Change .plt entry to load the
5591 .rela.plt offset directly rather than calculating it.
5593 Mon Jun 24 17:15:10 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
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
5601 * configure.in (AC_PREREQ): autoconf v2.5 or higher.
5602 * configure: Rebuilt.
5604 Mon Jun 24 22:50:35 1996 Jeffrey A Law (law@cygnus.com)
5606 * som.c (som_write_fixups): Fix typo in R_END_TRY for exception
5607 handling code > 1k away.
5609 Mon Jun 24 18:41:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5611 * elflink.h (elf_create_pointer_linker_section): If DEBUG is
5612 defined, output whenever the symbol is updated.
5614 Mon Jun 24 17:58:12 1996 Jouke Numan <jnuman@bazis.nl>
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.
5620 Sun Jun 23 20:42:51 1996 Doug Evans <dje@canuck.cygnus.com>
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.
5629 Fri Jun 21 17:38:15 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
5631 * config.bfd: Add support for *-*-rtems* configurations.
5633 Fri Jun 21 15:19:59 1996 Ian Lance Taylor <ian@cygnus.com>
5635 * elf.c (prep_headers): Add bfd_arch_alpha case.
5637 Fri Jun 21 12:35:27 1996 Richard Henderson <rth@tamu.edu>
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.
5652 Thu Jun 20 18:14:25 1996 Ian Lance Taylor <ian@cygnus.com>
5654 * ecoff.c (ecoff_armap_hash): If hlog is 0, just return 0, rather
5655 than relying on a right shift of 32.
5657 Thu Jun 20 11:00:57 1996 Doug Evans <dje@canuck.cygnus.com>
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.
5667 * peicode.h (coff_swap_scnhdr_out): ".drectve" doesn't have trailing 0.
5669 Wed Jun 19 11:37:52 1996 Ian Lance Taylor <ian@cygnus.com>
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.
5674 * binary.c (binary_set_section_contents): Set section file
5675 position based on LMA rather than VMA.
5677 Wed Jun 19 11:19:25 1996 Manfred Hollstein KS/EIC5 60/3/142 #40283 <manfred@lts.sel.alcatel.de>
5679 * linker.c (_bfd_generic_link_output_symbols): Don't output any
5680 symbols if info->strip == strip_all.
5682 Tue Jun 18 15:17:36 1996 Jeffrey A. Law <law@rtl.cygnus.com>
5684 * coff-h8300.c: Remove #if 0 code.
5685 (compatable): Don't allow mixing/matching of different architectures.
5687 * archures.c (bfd_mach_h8300s): Add.
5688 * bfd-in2.h: Rebuilt.
5689 * coff-h8300.c (funcvec_hash_newfunc): Handle H8/S too.
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.
5699 Tue Jun 18 14:42:58 1996 Klaus Kaempf <kkaempf@progis.de>
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.
5722 Tue Jun 18 13:54:18 1996 Ian Lance Taylor <ian@cygnus.com>
5724 * coff-h8300.c (h8300_reloc16_extra_cases): Make name a const
5726 (h8300_bfd_link_add_symbols): Likewise.
5728 Mon Jun 17 10:06:50 1996 Jeffrey A. Law <law@rtl.cygnus.com>
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.
5733 Mon Jun 17 12:49:11 1996 Ian Lance Taylor <ian@cygnus.com>
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
5738 (mips_elf_check_relocs): Only create .rel.dyn for R_MIPS_REL32 and
5739 R_MIPS_32 relocs if creating a shared library.
5741 Thu Jun 13 20:14:51 1996 Doug Evans <dje@canuck.cygnus.com>
5743 * peicode.h (add_data_entry): Use pei_section_data rather than
5744 _cooked_size. Corresponds to May 13 change in coffcode.h.
5746 Thu Jun 13 10:23:40 1996 Ian Lance Taylor <ian@cygnus.com>
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
5752 * peicode.h (coff_swap_filehdr_in): Don't clear the f_symptr field
5753 if there are no symbols.
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.
5762 Wed Jun 12 11:16:37 1996 Ian Lance Taylor <ian@cygnus.com>
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.
5769 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Check explicitly
5770 for _ptrgl, and treat it as global linkage code.
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.
5776 Tue Jun 11 15:24:48 1996 Ian Lance Taylor <ian@cygnus.com>
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.
5782 Mon Jun 10 11:57:27 1996 Jeffrey A Law (law@cygnus.com)
5784 * coff-h8300.c (howto_table): Add new entries for R_BCC_INV
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
5791 Sun Jun 9 16:30:20 1996 Jeffrey A Law (law@cygnus.com)
5793 * coff-h8300.c (h8300_reloc16_estimate): Fix many minor spacing
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.
5804 Thu Jun 6 15:24:45 1996 Richard Henderson <rth@tamu.edu>
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
5810 (ecoff_compute_section_file_positions): Do so.
5812 Thu Jun 6 11:24:37 1996 Ian Lance Taylor <ian@cygnus.com>
5814 * ieee.c (ieee_write_object_contents): Put a timestamp in the file
5815 to keep the HP emulator database happy.
5817 * config.bfd: Recognize powerpc-*-linux* and powerpcle-*-linux*.
5818 From Kevin Buettner <kev@primenet.com>.
5820 Wed Jun 5 15:16:04 1996 Ian Lance Taylor <ian@cygnus.com>
5822 * aoutx.h (translate_to_native_sym_flags): Don't try to print the
5823 name of a NULL section.
5825 Tue Jun 4 18:53:58 1996 Ian Lance Taylor <ian@cygnus.com>
5827 * linker.c (_bfd_generic_link_add_one_symbol): If notice_all is
5828 set, always call the notice callback.
5830 * VERSION: Increment for bfdlink.h change.
5832 Mon Jun 3 11:01:53 1996 Ian Lance Taylor <ian@cygnus.com>
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.
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.
5843 * Makefile.in: Rebuild dependencies.
5844 (BFD32_BACKENDS): Add ppcboot.o.
5845 (BFD32_BACKENDS_CFILES): Add ppcboot.c.
5847 * elf32-mips.c (mips_elf_size_dynamic_sections): Initialize c.
5848 From Per Fogelstrom <per.fogelstrom@mailbox200.swipnet.se>.
5850 Sat Jun 1 21:49:58 1996 Ian Lance Taylor <ian@cygnus.com>
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.
5857 Fri May 31 13:51:28 1996 Ian Lance Taylor <ian@cygnus.com>
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
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.
5904 * elf32-hppa.c (elf32_hppa_info_to_howto): Rename from
5906 (elf_info_to_howto): Define.
5907 * elf32-sparc.c (elf32_sparc_info_to_howto): Rename from
5909 (elf_info_to_howto): Define.
5910 * elf64-sparc.c (sparc64_elf_info_to_howto): Rename from
5912 (elf_info_to_howto): Define.
5914 * coff-w65.c (h8300_reloc16_estimate): Rename R_MOVB[12] to
5915 R_MOV16B[12], to match change in coff/internal.h.
5917 Thu May 30 12:38:49 1996 Ian Lance Taylor <ian@cygnus.com>
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
5961 * elf32-mips.c (mips_elf_object_p): Handle E_MIPS_ARCH_4.
5962 (mips_elf_final_write_processing): Likewise.
5964 Wed May 29 16:15:29 1996 Ian Lance Taylor <ian@cygnus.com>
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
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.
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.
6044 * libbfd.c (bfd_get_file_window): Add cast to fprintf argument.
6046 Tue May 28 11:42:08 1996 Ian Lance Taylor <ian@cygnus.com>
6048 * coff-sh.c (sh_relax_delete_bytes): Insert nop instructions, not
6049 zeroes, in alignment holes.
6051 * configure: Rebuild with autoconf 2.10.
6053 * aoutx.h (NAME(aout,find_nearest_line)): Make room for the
6054 potential leading underscore in the allocated buffer.
6056 Fri May 24 14:28:38 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6058 * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not put small common
6059 symbols into .sbss if this is a relocatable link.
6061 Thu May 23 12:26:24 1996 Ian Lance Taylor <ian@cygnus.com>
6063 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Warn about
6064 undefined symbols when creating a shared library.
6066 Fri May 17 13:54:15 1996 Ian Lance Taylor <ian@cygnus.com>
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.
6071 (sh_coff_howtos): Add entries for R_SH_CODE, R_SH_DATA and
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
6078 Thu May 16 16:34:13 1996 Ian Lance Taylor <ian@cygnus.com>
6080 * cache.c (bfd_open_file): Unlink the file before opening it for
6081 write. From Marty Leisner <leisner@sdsp.mc.xerox.com>.
6083 * opncls.c (bfd_fdopenr): Set opened_once.
6085 Tue May 14 12:35:32 1996 Ian Lance Taylor <ian@cygnus.com>
6087 * som.c (som_slurp_reloc_table): Clear external_relocs cache after
6090 * libbfd.c: Remove #ifdef FILE_OFFSET_IS_CHAR_INDEX, and compile
6091 the code unconditionally.
6093 Mon May 13 19:51:37 1996 Ian Lance Taylor <ian@cygnus.com>
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
6106 (pe_bfd_copy_private_section_data): New static function if
6109 Wed May 8 16:10:38 1996 Ian Lance Taylor <ian@cygnus.com>
6111 * srec.c (srec_set_arch_mach): Write as a function rather than a
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
6118 Wed May 8 09:17:34 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6120 * ppcboot.c (ppcboot_object_p): Check for type 0x41 in partition
6121 table. Call BFD_ASSERT to validate header size, instead of
6123 (ppcboot_bfd_print_private_bfd_data): Put quotes around partition
6126 Tue May 7 16:10:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6128 * ppcboot.c: New target for looking at PPCbug boot records.
6130 * config{ure.in,.bfd}: Add support for ppcboot target.
6132 * configure: Regenerate.
6134 Tue May 7 11:15:19 1996 Jeffrey A Law (law@cygnus.com)
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.
6144 Mon May 6 18:24:09 1996 Jeffrey A Law (law@cygnus.com)
6146 * reloc16.c (bfd_coff_reloc16_get_value): Handle common
6149 Sat May 4 05:08:45 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
6151 * elfcode.h (elf_object_p): Reject generic ELF target if
6152 e_machine matches an alternate machine code in a specific backend.
6154 * netbsd-core.c (netbsd_core_vec): Remove initializer for
6155 obsolete align_power_min field.
6157 Fri May 3 13:07:35 1996 Jeffrey A Law (law@cygnus.com)
6159 * coff-h8300.c (reloc_howto_type): Add howto entry for
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).
6167 Fri May 3 10:47:41 1996 Ian Lance Taylor <ian@cygnus.com>
6169 * aoutx.h (translate_from_native_sym_flags): Set the section for
6170 BSF_CONSTRUCTOR symbols.
6172 * cofflink.c (_bfd_coff_link_input_bfd): Correct setting of
6175 Wed May 1 18:39:32 1996 Doug Evans <dje@canuck.cygnus.com>
6177 * coffcode.h (coff_write_object_contents): In comdat section lookup,
6178 stop looking when section is found.
6180 Wed May 1 14:17:57 1996 Ian Lance Taylor <ian@cygnus.com>
6182 * coffcode.h (STRING_SIZE_SIZE): Define.
6183 (styp_to_sec_flags): Handle long symbol names when looking for the
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
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.
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
6207 Tue Apr 30 17:56:39 1996 Ian Lance Taylor <ian@cygnus.com>
6209 * aoutx.h (translate_from_native_sym_flags): Don't create
6210 SEC_CONSTRUCTOR sections.
6211 * ecoff.c (ecoff_set_symbol_info): Likewise.
6213 * elf32-mips.c (mips_elf_copy_private_bfd_data): Copy elf_gp.
6214 From Don Bowman <bowman@waterloo.hp.com>.
6216 Tue Apr 30 17:06:32 1996 Doug Evans <dje@canuck.cygnus.com>
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.
6221 Mon Apr 29 13:15:17 1996 Ian Lance Taylor <ian@cygnus.com>
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
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
6235 Fri Apr 26 18:00:37 1996 Ian Lance Taylor <ian@cygnus.com>
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.
6243 * som.c (som_slurp_symbol_table): Set the symbol count to the
6244 number of BFD symbols created.
6246 Fri Apr 26 12:34:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
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.
6252 Thu Apr 25 13:25:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
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
6261 (ppc_elf_finish_dynamic_symbol): Add support for PLT's, beef up
6263 (ppc_elf_relocate_section): If the output section isn't defined,
6264 don't abort, just give an error message.
6266 * elflink.c (_bfd_elf_create_dynamic_sections): If the section
6267 being created is .sdata or .sdata2, don't make the symbol dynamic.
6269 Wed Apr 24 14:04:07 1996 Ian Lance Taylor <ian@cygnus.com>
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.
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):
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.
6295 Tue Apr 23 12:48:42 1996 Ian Lance Taylor <ian@cygnus.com>
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.
6301 Mon Apr 22 18:29:01 1996 Doug Evans <dje@canuck.cygnus.com>
6303 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Fix spelling of
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].
6309 Mon Apr 22 15:07:24 1996 Ian Lance Taylor <ian@cygnus.com>
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
6322 (coff_link_add_symbols): Call _bfd_link_section_stabs if
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
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
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.
6342 * VERSION: Increment for bfdlink.h change.
6344 * coffgen.c (coff_renumber_symbols): Correct handling of
6345 BSF_NOT_AT_END common symbols.
6347 Fri Apr 19 19:21:56 1996 Ian Lance Taylor <ian@cygnus.com>
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
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.
6359 Thu Apr 18 18:51:18 1996 Ian Lance Taylor <ian@cygnus.com>
6361 * libcoff-in.h (struct coff_final_link_info): Add last_bf_index
6363 * libcoff.h: Rebuild.
6364 * coffswap.h (coff_swap_aux_in): Swap endndx field for C_FCN
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
6371 * cofflink.c (_bfd_coff_final_link): Initialize last_bf_index
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
6377 * xcofflink.c (xcoff_link_input_bfd): Check endndx field for C_FCN
6380 Wed Apr 17 12:08:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6382 * pe{,i}-ppc.c (PPC_PE): Define instead of PPC, so that compiling
6383 on Solaris PowerPC systems doesn't get confused.
6385 * ccffcode.h (coff_write_object_contents): Use #ifdef PPC_PE, not
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.
6392 Wed Apr 17 13:07:37 1996 Ian Lance Taylor <ian@cygnus.com>
6394 * xcofflink.c (xcoff_link_input_bfd): Check for TOC overflow.
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.
6400 Tue Apr 16 16:36:38 1996 Stu Grossman (grossman@lisa.cygnus.com)
6402 * elfcore.h: Add support for core files with multiple threads.
6403 (Primarily for Solaris.)
6405 Tue Apr 16 13:44:08 1996 Ian Lance Taylor <ian@cygnus.com>
6407 * aoutx.h (NAME(aout,squirt_out_relocs)): Don't do anything if
6408 section->orelocation is NULL.
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.
6416 Mon Apr 15 19:06:59 1996 Ian Lance Taylor <ian@cygnus.com>
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.
6426 Wed Apr 10 00:23:53 1996 Ian Lance Taylor <ian@cygnus.com>
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
6433 * libaout.h (WRITE_HEADERS): Write out the relocs even if there
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.
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.
6443 * ieee.c (ieee_write_byte): Change second parameter from bfd_byte
6444 to int to avoid promotion problems in prototype.
6446 Tue Apr 9 11:44:21 1996 Ian Lance Taylor <ian@cygnus.com>
6448 * configure.host: Use ${srcdir} when looking for picfrag.
6450 * configure.host: Switch on ${libdir}, not $(libdir). From
6451 alan@spri.levels.unisa.edu.au (Alan Modra).
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.
6460 Mon Apr 8 12:09:36 1996 Ian Lance Taylor <ian@cygnus.com>
6462 * configure.in: Permit --enable-shared to specify a list of
6464 * configure: Rebuild.
6466 * configure.host: Set HLDFLAGS and SHLIB_CFLAGS for *-dec-osf*
6467 host when configuring with --enable-shard.
6469 Fri Apr 5 12:24:13 1996 Ian Lance Taylor <ian@cygnus.com>
6471 * config.bfd: Add i[345]86-*-freebsdelf* target; from John Polstra
6474 * linker.c (link_action): For WARN_ROW/warn, use MWARN, not CYCLE,
6475 to avoid crashing in bfd_hash_replace.
6477 * sysdep.h: Use #ifdef, not #if.
6479 Thu Apr 4 23:32:23 1996 Ian Lance Taylor <ian@cygnus.com>
6481 * config.in: Rebuild.
6483 Thu Apr 4 18:49:09 1996 Fred Fish <fnf@cygnus.com>
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>
6493 Tue Apr 2 13:11:53 1996 Doug Evans <dje@canuck.cygnus.com>
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.
6506 Tue Apr 2 00:33:18 1996 Ian Lance Taylor <ian@cygnus.com>
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.
6518 * elfcode.h: Don't include <string.h>.
6520 Mon Apr 1 10:39:24 1996 Jeffrey A Law (law@cygnus.com)
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.
6529 Mon Apr 1 12:35:36 1996 Ian Lance Taylor <ian@cygnus.com>
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
6534 (aout_link_input_section_ext): Likewise.
6536 * elflink.h (elf_adjust_dynamic_symbol): If a common symbol got
6537 defined in a regular file, set ELF_LINK_HASH_DEF_REGULAR.
6539 Sun Mar 31 01:58:41 1996 steve chamberlain <sac@slash.cygnus.com>
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.
6545 Fri Mar 29 12:44:36 1996 Ian Lance Taylor <ian@cygnus.com>
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.
6569 * VERSION: Bump to 2.6.1.
6570 * Makefile.in (stamp-h): Depend upon VERSION.
6572 Thu Mar 28 23:48:49 1996 Jeffrey A Law (law@cygnus.com)
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
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.
6589 Thu Mar 28 17:44:08 1996 Ian Lance Taylor <ian@cygnus.com>
6591 * libhppa.h: If gcc 2.7 or higher, declare all the functions with
6592 __attribute__ ((__unused__)) so that -Wall doesn't warn about
6594 (hppa_rebuild_insn): Pass pointer to correct type to
6595 low_sign_unext and dis_assemble_21.
6597 Thu Mar 28 11:00:36 1996 Doug Evans <dje@canuck.cygnus.com>
6599 * config.bfd (sparc64-{sysv4*,solaris2*}): Delete.
6600 Stick with sparc-*-{sysv4*,solaris2*}.
6602 Wed Mar 27 10:43:34 1996 Ian Lance Taylor <ian@cygnus.com>
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.
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
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
6620 (dump_toc): Make fprintf strings and argument types correspond.
6621 (ppc_process_before_allocation): Remove unused variables. Always
6623 (ppc_reflo_reloc): Ifdef out.
6624 (ppc_addr32nb_reloc): Ifdef out.
6625 (ppc_coff_rtype2howto): Make fprintf strings and argument types
6627 (coff_ppc_rtype_to_howto): Likewise.
6628 (ppc_coff_swap_sym_in_hook): Remove unused variables.
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
6636 (pe_print_reloc): Remove unused variable onaline. Make fprintf
6637 strings and argument types correspond. Always return a value.
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.
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.
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
6657 (aout_link_input_bfd): Don't link unmarked sections.
6658 * cofflink.c (_bfd_coff_final_link): Mark sections included in the
6660 (_bfd_coff_link_input_bfd): Don't link unmarked sections.
6661 * coff-ppc.c (ppc_bfd_coff_final_link): Mark sections included in
6663 * elflink.h (elf_bfd_final_link): Mark sections included in the
6665 (elf_link_input_bfd): Don't link unmarked sections.
6666 * xcofflink.c (_bfd_xcoff_bfd_final_link): Mark sections included
6668 (xcoff_link_input_bfd): Don't link unmarked sections.
6670 * coffswap.h (coff_swap_scnhdr_out): Include section name in
6671 overflow error messages.
6673 Tue Mar 26 15:46:18 1996 Ian Lance Taylor <ian@cygnus.com>
6675 * bfd.c (_bfd_default_error_handler): If _bfd_error_program_name
6676 is not set, print "BFD: " before the error message.
6678 * configure.in: Use AC_CHECK_TOOL to find ar and ranlib. From
6679 Miles Bader <miles@gnu.ai.mit.edu>.
6680 * configure: Rebuild.
6682 Fri Mar 22 12:17:00 1996 Ian Lance Taylor <ian@cygnus.com>
6684 * xcofflink.c (xcoff_link_input_bfd): Fix scan for C_BINCL/C_EINCL
6687 * config.bfd: Add ieee_vec to targ_selvecs for i960 targets and
6688 m68k-aout, m68k-coff, and m68k-elf targets.
6690 Fri Mar 22 11:33:44 1996 Martin Anantharaman <martin@goofy.imech.uni-duisburg.de>
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.
6696 Thu Mar 21 11:00:47 1996 steve chamberlain <sac@slash.cygnus.com>
6698 * coffcode.h (coff_write_object_contents): Allocate
6699 buffers large enough for any FILEHDR or AOUTHDR.
6701 Thu Mar 21 16:28:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
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.
6708 Thu Mar 21 14:59:11 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6710 * peicode.h (pe_print_pdata): Warn if the .pdata section is not a
6711 multiple of 20 bytes.
6713 Thu Mar 21 13:54:40 1996 Ian Lance Taylor <ian@cygnus.com>
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.
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.
6724 Wed Mar 20 16:53:12 1996 Ian Lance Taylor <ian@cygnus.com>
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.
6730 Mon Mar 18 12:54:41 1996 Ian Lance Taylor <ian@cygnus.com>
6732 * elf32-mips.c (mips_elf_gprel32_reloc): Initialize gp if
6733 output_bfd is not NULL.
6735 Thu Mar 14 17:12:06 1996 Doug Evans <dje@charmed.cygnus.com>
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.
6741 Thu Mar 14 16:06:06 1996 Jeffrey A Law (law@cygnus.com)
6743 * coffcode.h: Allow specific backends to override the
6744 bfd_link_add_symbols routine.
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
6752 Tue Mar 12 12:41:17 1996 David Mosberger-Tang <davidm@koala.azstarnet.com>
6754 * coff-alpha.c (alpha_relocate_section): Use
6755 info->callbacks_warning, rather than _bfd_error_handler, for
6756 "multiple gp" warning.
6758 Tue Mar 12 12:10:55 1996 Ian Lance Taylor <ian@cygnus.com>
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
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.
6785 * ecoffswap.h (ecoff_swap_fdr_in): If ECOFF_64, turn 0xffffffff
6786 into -1 for intern->rss.
6788 * configure: Rebuild with autoconf 2.8.
6790 Mon Mar 11 12:28:31 1996 Ian Lance Taylor <ian@cygnus.com>
6792 * stab-syms.c (__define_stab_duplicate): Define.
6793 (bfd_get_stab_name): Rename from aout_stab_name. Rewrite to use a
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,
6808 Fri Mar 8 11:26:20 1996 Ian Lance Taylor <ian@cygnus.com>
6810 * elf.c (assign_file_positions_for_segments): Adjust file offset
6811 for section alignment even if SEC_LOAD is not set.
6813 Tue Mar 5 12:02:23 1996 Ian Lance Taylor <ian@cygnus.com>
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.
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.
6822 Mon Mar 4 12:49:16 1996 Ian Lance Taylor <ian@cygnus.com>
6824 * xcofflink.c (xcoff_mark): Treat undefined imported symbols as
6825 though they are defined in a shared library.
6826 (xcoff_build_ldsyms): Likewise.
6828 * coffgen.c (coff_find_nearest_line): Don't look at the line
6829 numbers for the section if section->lineno is NULL.
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.
6836 Fri Mar 1 09:42:59 1996 Michael Meissner <meissner@tiktok.cygnus.com>
6838 * elf32-ppc.c (ppc_elf_add_symbol_hook): Don't set SEC_LOAD flag
6841 Wed Feb 28 11:25:47 1996 Jeffrey A Law (law@cygnus.com)
6843 * libhppa.h (hppa_reloc_field_selector_type): Add R_HPPA_NLSEL
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
6850 (som_write_fixups): Finish handling of R_N0SEL and R_N1SEL.
6852 Wed Feb 28 11:00:24 1996 Ian Lance Taylor <ian@cygnus.com>
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
6858 Tue Feb 27 14:17:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
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.
6877 Tue Feb 27 11:31:34 1996 Jeffrey A Law (law@cygnus.com)
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.
6889 Mon Feb 26 12:52:48 1996 Stan Shebs <shebs@andros.cygnus.com>
6891 * mpw-make.sed: Edit out recent shared library support, and
6892 rules to rebuild .h files using doc/chew.
6894 Mon Feb 26 14:48:39 1996 David Mosberger-Tang <davidm@AZStarNet.com>
6896 * ecoff.c (ecoff_compute_section_file_positions): Adjust the file
6897 size even of sections with no contents.
6899 Mon Feb 26 14:01:13 1996 Ian Lance Taylor <ian@cygnus.com>
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
6906 * cofflink.c (_bfd_coff_link_input_bfd): Don't try to optimize a
6907 struct/union/enum type with no elements.
6909 Sat Feb 24 11:38:58 1996 Ian Lance Taylor <ian@cygnus.com>
6911 * bfd.c (bfd_errmsg): Handle a NULL return from strerror.
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.
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.
6921 Wed Feb 21 13:58:04 1996 Ian Lance Taylor <ian@cygnus.com>
6923 * coff-sh.c (sh_relax_delete_bytes): Correct range of R_SH_USES
6926 Tue Feb 20 16:22:44 1996 J.T. Conklin <jtc@rtl.cygnus.com>
6928 * bfd.c (tdata): Add netbsd_core_data.
6929 * bfd-in2.h: Regenerated.
6931 Tue Feb 20 16:50:02 1996 Ian Lance Taylor <ian@cygnus.com>
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
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.
6941 Tue Feb 20 08:26:27 1996 Fred Fish <fnf@phydeaux.cygnus.com>
6943 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
6944 Remove duplicate definition of gp.
6946 Mon Feb 19 12:37:41 1996 Ian Lance Taylor <ian@cygnus.com>
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
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
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
6964 (mips_elf_finish_dynamic_symbol): Don't bother to use
6965 _bfd_get_gp_value here.
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.
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>.
6975 * elf-bfd.h (struct elf_obj_tdata): Rename dt_needed_name to
6977 (elf_dt_name): Rename from elf_dt_needed_name.
6978 * elf.c (bfd_elf_set_dt_needed_name): Use elf_dt_name, not
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.
6986 Mon Feb 19 02:50:23 1996 Doug Evans <dje@charmed.cygnus.com>
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.
7000 Sun Feb 18 15:02:25 1996 Ian Lance Taylor <ian@cygnus.com>
7002 * configure.host: Check for 'do not mix' from native linker before
7003 trying to use -rpath.
7005 Fri Feb 16 12:46:18 1996 Ian Lance Taylor <ian@cygnus.com>
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.
7027 * bout.c (b_out_set_arch_mach): Recognize bfd_mach_i960_jx.
7029 Thu Feb 15 11:29:13 1996 Ian Lance Taylor <ian@cygnus.com>
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.
7036 * configure.host: Remove go32 and win32 host information, since it
7037 should no longer be needed.
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
7043 * configure.host: Set RPATH_ENVVAR.
7045 * Makefile.in: Rebuild dependencies.
7047 * elflink.c (_bfd_elf_create_linker_section): Remove unused
7048 zero_section variable.
7050 Thu Feb 15 10:39:17 1996 H.J. Lu <hjl@zoom.com>
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.
7056 Wed Feb 14 16:29:07 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
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
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
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
7083 (ieee_write_me_part): Make setting of me_record neater.
7084 (ieee_generic_stat_arch_elt): Get the size of an archive element.
7086 * syms.c (stt): Add entries for zerovars, vars, and code.
7088 * elfcode.h (validate_reloc): New static function.
7089 (write_relocs): Call validate_reloc for non ELF relocs.
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.
7095 * config.bfd (m68*-*-psos*): New target.
7097 Tue Feb 13 15:56:22 1996 Bryan Ford <baford@snake.cs.utah.edu>
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.
7103 Tue Feb 13 15:36:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7105 * elf32-ppc.c (ppc_elf_relocate_section): Don't segfault if dynboj
7106 is NULL, ie, the -r switch is used.
7108 Tue Feb 13 14:35:15 1996 Ian Lance Taylor <ian@cygnus.com>
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.
7116 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
7118 * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not
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
7127 (ieee_write_processor): New static function.
7128 (ieee_write_object_contents): Use ieee_write_processor.
7130 Fri Feb 9 10:53:00 1996 Ian Lance Taylor <ian@cygnus.com>
7132 * configure.host: Use ${CC-gcc} when testing for -rpath on SunOS.
7134 * coff-aux.c: Change include of aux.h to aux-coff.h.
7136 Thu Feb 8 14:01:03 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
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
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.
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.
7155 Wed Feb 7 13:56:06 1996 Ian Lance Taylor <ian@cygnus.com>
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.
7166 Wed Feb 7 13:37:39 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7168 * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not assume that the
7169 linker sections have been set up yet.
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.
7177 Tue Feb 6 14:04:49 1996 J.T. Conklin <jtc@rtl.cygnus.com>
7179 * configure.in (*-*-netbsd*): Set COREFILE to netbsd-core.c.
7180 don't define TRAD_HEADER.
7181 * configure: Rebuild.
7183 * netbsd-core.c: New file, support for NetBSD core files.
7184 * hosts/*nbsd.h: Removed.
7186 Tue Feb 6 11:47:49 1996 Doug Evans <dje@charmed.cygnus.com>
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.
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.
7209 Tue Feb 6 12:12:22 1996 Ian Lance Taylor <ian@cygnus.com>
7211 * configure.host: Make SHLIB_CFLAGS include $(PICFLAG) on a
7214 * Makefile.in (program_transform_name): New variable.
7215 (install): Transform library name before installing it.
7217 Mon Feb 5 10:38:27 1996 Ian Lance Taylor <ian@cygnus.com>
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.
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
7244 (stamp-ofiles): New target, like old ofiles target, but build
7245 using a temporary file and move-if-change, and touch stamp-ofiles
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
7254 (do_distclean): Remove pic and stamp-picdir.
7255 (install): Install shared libraries.
7256 ($(OFILES)): Depend upon stamp-picdir.
7257 (stamp-picdir): New target.
7259 * libcoff-in.h: Add comment reminding people that libcoff.h is a
7261 * libcoff.h: Rebuild.
7263 * elflink.h (elf_adjust_dynamic_symbol): Don't try to get the
7264 flavour of a section with no owner.
7266 * elf32-mips.c (mips_elf_create_dynamic_sections): Clear
7267 ELF_LINK_NON_ELF flag.
7268 (mips_elf_create_got_section): Likewise.
7270 * elf.c: Revert last change, since it breaks dynamic linking.
7271 * elf-bfd.h (struct elf_backend_data): Remove want_hdr_in_seg
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.
7277 Sun Feb 4 20:45:13 1996 Michael Meissner <meissner@tiktok.cygnus.com>
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.
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.
7288 Sat Feb 3 23:00:03 1996 Ian Lance Taylor <ian@cygnus.com>
7290 * coffcode.h: Move today's libcoff.h change into coffcode.h.
7292 Sat Feb 3 15:43:44 1996 Fred Fish <fnf@cygnus.com>
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.
7298 Fri Feb 2 11:42:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
7300 * aclocal.m4 (BFD_BINARY_FOPEN): Understand cygwin32.
7301 * configure: Regenerate.
7303 Fri Feb 2 12:12:16 1996 Jeffrey A Law (law@cygnus.com)
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.
7308 Thu Feb 1 16:04:06 1996 Ian Lance Taylor <ian@cygnus.com>
7310 * elf-bfd.h (ELF_LINK_NON_ELF): Define.
7311 * elf.c (_bfd_elf_link_hash_newfunc): Set elf_link_hash_flags to
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.
7319 * Makefile.in (bfd-in2.h): Make bfd.h, not protos, in docdir.
7320 (libbfd.h, libcoff.h): Corresponding change.
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.
7329 Wed Jan 31 17:23:32 1996 Steve Chamberlain <sac@slash.cygnus.com>
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.
7336 Wed Jan 31 16:23:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
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.
7342 Wed Jan 31 16:16:53 1996 Ian Lance Taylor <ian@cygnus.com>
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
7351 Wed Jan 31 12:55:49 1996 Richard Henderson <rth@tamu.edu>
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.
7379 Wed Jan 31 11:37:46 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7381 * elf32-m68k.c (elf_m68k_relocate_section): Fix R_68K_GOT*
7382 relocation; ignore addend with R_68K_{GOT,PLT}*O relocation.
7384 Tue Jan 30 12:09:04 1996 Ian Lance Taylor <ian@cygnus.com>
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.
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.
7400 * syms.c (_bfd_stab_section_find_nearest_line): Add casts to avoid
7403 Mon Jan 29 14:27:24 1996 Kim Knuttila <krk@cygnus.com>
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
7410 Mon Jan 29 13:06:28 1996 Ian Lance Taylor <ian@cygnus.com>
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.
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
7425 * elf.c (swap_out_syms): Only set type to STT_OBJECT if BSF_OBJECT
7428 * elf32-i386.c (elf_i386_relocate_section): If -Bsymbolic, when
7429 copying relocs into a shared object, treat a defined global 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.
7435 * elflink.h (elf_link_add_object_symbols): Only set weakdef to a
7436 real defined symbol, not to a weak defined symbol.
7438 Mon Jan 29 11:34:36 1996 Kim Knuttila <krk@cygnus.com>
7440 * cofflink.c: removed the POWERPC_LE_PE hack, promoted some types
7441 and made a few static functions externs.
7443 * coff-ppc.c (ppc_bfd_coff_final_link): new function, replaces the
7444 POWERPC_LE_PE hack in cofflink.
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.
7455 * libcoff.h: re-gen'd
7457 Fri Jan 26 18:33:35 1996 Ian Lance Taylor <ian@cygnus.com>
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
7473 * Makefile.in: Rebuild dependencies.
7475 Fri Jan 26 16:11:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
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.
7481 Thu Jan 25 12:14:16 1996 Ian Lance Taylor <ian@cygnus.com>
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,
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.
7501 * archures.c: Add missing `.' in enum bfd_architecture.
7502 * bfd-in2.h: Rebuild.
7504 * config.bfd (i[345]86-*-sco*elf*): Use bfd_elf32_i386_vec. From
7505 Robert Lipe <robertl@arnet.com>.
7507 Thu Jan 25 12:08:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
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.
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.
7524 * elflink.h (elf_create_pointer_linker_section) Only bump RELA
7525 section if the rel_section field has been set up.
7527 Wed Jan 24 20:40:26 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7529 * elf32-ppc.c (ppc_elf_relocate_section): Fix typo in eabi
7532 Wed Jan 24 10:38:34 1996 Doug Evans <dje@charmed.cygnus.com>
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.
7540 * config.bfd (sparc64-*-{sysv4*,solaris2*}): Comment out
7541 bfd_elf64_sparc_vec support.
7543 Tue Jan 23 14:33:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
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
7548 (ppc_elf_relocate_section): Implement R_PPC_EMB_{SDA21,RELSDA}
7551 Tue Jan 23 14:22:45 1996 Ian Lance Taylor <ian@cygnus.com>
7553 * coffcode.h (coff_new_section_hook): Don't try to align the
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>.
7561 Mon Jan 22 18:45:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7563 * elflink.h (elf_finish_pointer_linker_section): Don't allocate
7564 memory here for contents.
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
7571 (ppc_elf_check_relocs): Use bfd_get_section_name in debug message,
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
7578 Mon Jan 22 08:52:04 1996 Doug Evans <dje@charmed.cygnus.com>
7580 * elflink.h (elf_finish_pointer_linker_section): Fix typo.
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
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.
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.
7602 Mon Jan 22 11:21:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
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
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.
7618 * elf.c (_bfd_elf_link_hash_newfunc): Initialize new fields.
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
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.
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.
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.
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
7647 (_bfd_elf_make_linker_section_rela): Make a RELA section
7648 corresponding to the generated linker section.
7650 Sat Jan 20 08:36:10 1996 Doug Evans <dje@canuck.cygnus.com>
7652 * elf32-sparc.c (ELF_MACHINE_ALT1): Define.
7654 Thu Jan 18 18:25:34 1996 Kim Knuttila <krk@cygnus.com>
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
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
7670 * coffcode.h (coff_set_alignment_hook): alignment setting for .stab
7672 * peicode.h (coff_swap_scnhdr_out): set section flags for stab/str
7674 (coff_swap_aouthdr_out): Removed a non-working hack for computing the
7675 SizeOfImage for PowerPC. Ignore the size of the .junk section.
7677 Thu Jan 18 17:42:12 1996 Ian Lance Taylor <ian@cygnus.com>
7679 * elfcore.h: Include <signal.h> before <sys/procfs.h>.
7681 Wed Jan 17 12:40:14 1996 Ian Lance Taylor <ian@cygnus.com>
7683 * cpu-powerpc.c (arch_info_struct): Change last entry to not point
7685 (bfd_powerpc_arch): Point at first entry in arch_info_struct.
7687 Tue Jan 16 15:10:49 1996 Ian Lance Taylor <ian@cygnus.com>
7689 * elf.c (assign_file_positions_for_segments): Don't increment file
7690 offset for a segment which contains no loadable sections.
7692 Mon Jan 15 17:46:27 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7694 * reloc.c: Add new PowerPC relocations.
7695 * {bfd-in2,libbfd}.h: Regenerate.
7697 * elf32-ppc.c (ppc_elf_howto_raw): Add more PPC relocations.
7698 (ppc_elf_reloc_type_lookup): Lookup new relocations.
7700 Mon Jan 15 14:29:44 1996 Ian Lance Taylor <ian@cygnus.com>
7702 * aoutx.h (howto_table_ext): Fix RELOC_BASE10 and RELOC_BASE22
7705 * sunos.c (sunos_scan_ext_relocs): Don't fail assert if
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>.
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
7717 * ecoffswap.h: Add prototypes for static functions.
7719 Sun Jan 14 21:36:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7721 * elf32-ppc.c (ppc_elf_{unsupported,std}_reloc): Remove functions.
7722 (ppc_elf_howto_raw): Remove ppc_elf_{unsupported,std}_reloc
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.
7728 Sat Jan 13 09:36:52 1996 Michael Meissner <meissner@tiktok.cygnus.com>
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
7739 Fri Jan 12 15:27:59 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7741 * elf32-ppc.c (ppc_elf_fake_sections): Define, and handle the new
7742 section flags for V.4 and eabi.
7744 Fri Jan 12 13:59:16 1996 Ian Lance Taylor <ian@cygnus.com>
7746 * elf.c (assign_file_positions_for_segments): If a segment
7747 contains no sections, don't mark it as readable.
7749 * elf-bfd.h (_bfd_elf_section_from_bfd_section): Declare.
7750 * elfcode.h (_bfd_elf_section_from_bfd_section): Don't declare.
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
7759 (NAME(_bfd_elf,size_info)): Initialize swap_dyn_in field.
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>.
7765 Thu Jan 11 17:06:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
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.
7772 * elfxx-target.h (TARGET_{BIG,LITTLE}_SYM): Add new flags.
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.
7778 Thu Jan 11 11:23:30 1996 Ian Lance Taylor <ian@cygnus.com>
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.
7784 * elf32-mips.c: Extensive changes for a start at dynamic linking
7785 support, from Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>.
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
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
7807 (elf_reloc_link_order): Treat a reloc against a defined symbol as
7808 a reloc against the appropriate section.
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
7815 (ppc_elf_copy_private_bfd_data): Likewise.
7816 (ppc_elf_merge_private_bfd_data): Likewise.
7818 * elf32-m68k.c (howto_table): Change src_mask to 0 for all
7821 Tue Jan 9 15:22:53 1996 David Mosberger-Tang <davidm@azstarnet.com>
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
7828 (struct ecoff_section_tdata): Add gp field.
7830 Tue Jan 9 12:00:36 1996 Ian Lance Taylor <ian@cygnus.com>
7832 Handle Alpha ECOFF changes in OSF/1 3.2.
7833 * libecoff.h (struct ecoff_backend_data): Add get_elt_at_filepos
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.
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.
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
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.
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
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.
7903 * ecoff.c (_bfd_ecoff_find_nearest_line): Don't restrict line
7904 numbers to the .text section.
7906 Mon Jan 8 17:00:57 1996 Ian Lance Taylor <ian@cygnus.com>
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
7913 (ieee_write_object_contents): Check ieee_write_debug_part return.
7915 Thu Jan 4 17:12:37 1996 Fred Fish <fnf@cygnus.com>
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
7930 Thu Jan 4 16:27:46 1996 Ian Lance Taylor <ian@cygnus.com>
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.
7943 Wed Jan 3 19:42:47 1996 Michael Meissner <meissner@wogglebug.tiac.net>
7945 * elf32-ppc.c (ppc_elf_relocate_section): Make @GOT relocations
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
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.
7955 Wed Jan 3 15:11:30 1996 Ian Lance Taylor <ian@cygnus.com>
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.
7961 Tue Jan 2 14:17:15 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7963 * elf.c (bfd_section_from_shdr): Add support for note sections.
7965 Tue Jan 2 13:10:25 1996 Ian Lance Taylor <ian@cygnus.com>
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.
7971 * elf32-ppc.c: Remove trailing newline from calls to
7973 (ppc_elf_merge_private_bfd_data): Only warn about endianness
7974 difference if target endianness is known.
7976 Thu Dec 21 12:43:49 1995 Michael Meissner <meissner@tiktok.cygnus.com>
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
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.
7994 Wed Dec 20 19:14:18 1995 Ken Raeburn <raeburn@cygnus.com>
7996 * elf.c (copy_private_bfd_data): When attaching sections to
7997 segments ignore sections that won't be allocated. Patch from
8000 Tue Dec 19 20:01:43 1995 Ken Raeburn <raeburn@cygnus.com>
8002 * config.bfd: Match on m68k-cbm-* only if OS doesn't match
8005 Tue Dec 19 16:38:59 1995 Ian Lance Taylor <ian@cygnus.com>
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.
8011 Sun Dec 17 20:11:55 1995 Kim Knuttila <krk@cygnus.com>
8013 * peicode.h (pe_print_pdata): Must test the entire entry for zero
8014 to correctly terminate.
8016 Fri Dec 15 12:05:57 1995 Ian Lance Taylor <ian@cygnus.com>
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
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
8028 * All files: Change all references to byteorder_big_p and
8029 header_byteorder_big_p to use new bfd_*_endian macros.
8031 * coffgen.c (make_a_section_from_file): Set lma to s_paddr, not
8033 * coffcode.h (coff_write_object_contents): Set s_paddr to lma, not
8035 * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
8037 Fri Dec 15 07:32:09 1995 steve chamberlain <sac@slash.cygnus.com>
8039 * pe[i]-i386.c (TARGET_UNDERSCORE): Define to '_'.
8041 Thu Dec 14 13:45:37 1995 Ian Lance Taylor <ian@cygnus.com>
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
8050 (ieee_slurp_sections): Set the lma as well as the vma.
8051 (ieee_archive_p): Use bfd_alloc_grow rather than an obstack.
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
8057 (ihex_get_symtab): Likewise.
8059 Wed Dec 13 15:44:06 1995 Ian Lance Taylor <ian@cygnus.com>
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.
8071 Wed Dec 13 10:52:14 1995 Stan Shebs <shebs@andros.cygnus.com>
8073 * mpw-config.in: Match on mips-*-* instead of mips-idt-ecoff.
8075 Wed Dec 13 11:07:45 1995 Kim Knuttila <krk@cygnus.com>
8077 * coff-ppc.c (coff_ppc_relocate_section): removed debugging code.
8079 Tue Dec 12 17:42:06 1995 Kim Knuttila <krk@cygnus.com>
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.
8087 Tue Dec 12 11:34:23 1995 Ian Lance Taylor <ian@cygnus.com>
8089 * config.bfd: Handle sparc-*-elf*. From Ronald F. Guilmette
8092 Fri Dec 8 17:47:07 1995 Ian Lance Taylor <ian@cygnus.com>
8094 * elflink.h (elf_link_add_object_symbols): Set section_count to 0
8095 when setting sections to NULL.
8097 Wed Dec 6 17:05:37 1995 Ian Lance Taylor <ian@cygnus.com>
8099 * xcofflink.c (struct xcoff_loader_info): Add export_defineds
8101 (bfd_xcoff_size_dynamic_sections): Add export_defineds parameter.
8102 (xcoff_build_ldsyms): If export_defineds is set, set XCOFF_EXPORT
8104 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
8105 * bfd-in2.h: Rebuild.
8107 Mon Dec 4 16:40:47 1995 Kim Knuttila <krk@cygnus.com>
8109 * coffcode.h (coff_set_alignment_hook): Removed some debugging printf's
8111 Mon Dec 4 11:25:39 1995 Ian Lance Taylor <ian@cygnus.com>
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
8117 (ihex_write_object_contents): Generate types 4 and 5.
8119 * elflink.h (elf_link_output_extsym): Just ignore warning and
8120 indirect references to symbols which don't really exist.
8122 Sun Dec 3 19:00:27 1995 Kim Knuttila <krk@cygnus.com>
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.
8129 Sun Dec 3 16:46:54 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
8131 * aout-arm.c (MY_swap_std_reloc_out): Use KEEPIT to get the symbol
8132 index, don't call stoi.
8134 Fri Dec 1 14:46:51 1995 Ian Lance Taylor <ian@cygnus.com>
8136 * srec.c (srec_scan): Set lma as well as vma.
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.
8148 * elf.c (assign_file_positions_for_segments): Sort the sections in
8150 (get_program_header_size): Return the right size if segment_map is
8152 (copy_private_bfd_data): Don't bother to sort the sections.
8154 * bfd.c (bfd_record_phdr): New function.
8155 * bfd-in.h (bfd_record_phdr): Declare.
8156 * bfd_in2.h: Rebuild.
8158 * elf32-sparc.c (elf32_sparc_relocate_section): Remove bogus
8161 * libbfd.c (bfd_malloc, bfd_realloc): New functions.
8162 (bfd_zmalloc): Return PTR, not char *. Take size_t, not
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.
8170 Thu Nov 30 19:32:26 1995 Kim Knuttila <krk@cygnus.com>
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.
8181 * coffcode.h (coff_set_alignment_hook): check idata$X sections
8182 to get the right section alignment.
8184 Thu Nov 30 16:48:18 1995 Ian Lance Taylor <ian@cygnus.com>
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
8190 (map_sections_to_segments): Set includes_phdrs for PT_PHDR
8192 (assign_file_positions_for_segments): Handle includes_filehdr and
8193 includes_phdrs. Remove special handling of PT_PHDR and first
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.
8200 Thu Nov 30 11:17:33 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
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
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.
8211 Wed Nov 29 12:42:36 1995 Ian Lance Taylor <ian@cygnus.com>
8213 * peicode.h (pe_print_idata): Call malloc rather than xmalloc.
8214 (pe_print_pdata): Likewise.
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
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
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.
8229 * elf.c (assign_file_positions_for_segments): Fix case where extra
8230 program headers were allocated.
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.
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.
8245 Tue Nov 28 16:59:50 1995 Ian Lance Taylor <ian@cygnus.com>
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.
8261 Mon Nov 27 12:27:46 1995 Ian Lance Taylor <ian@cygnus.com>
8263 * hp300hpux.c (MY(callback)): Set lma as well as vma.
8265 * configure, config.in: Regenerate with autoconf 2.7.
8267 * elf32-i386.c (elf_backend_plt_readonly): Set correctly, to 1.
8268 * elf32-sparc.c (elf_backend_plt_readonly): Set correctly, to 0.
8270 Wed Nov 22 12:02:09 1995 Ian Lance Taylor <ian@cygnus.com>
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
8286 (alpha_relocate_section): Handle RELOC_SECTION_RCONST.
8288 * sunos.c (sunos_scan_dynamic_symbol): Only set written if the
8289 DEF_DYNAMIC flag is set.
8291 Tue Nov 21 13:25:29 1995 Ken Raeburn <raeburn@cygnus.com>
8293 * host-aout.c: If TRAD_HEADER is defined, include it.
8295 Tue Nov 21 13:03:57 1995 Ian Lance Taylor <ian@cygnus.com>
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.
8304 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Clear
8305 special_sections before returning when called with a non XCOFF
8308 * coffgen.c (coff_renumber_symbols): Sort common symbols with
8311 * coffcode.h (coff_compute_section_file_positions): Only pad the
8312 previous section to force file alignment when creating an
8315 Mon Nov 20 14:54:09 1995 Ian Lance Taylor <ian@cygnus.com>
8317 * coffcode.h (coff_compute_section_file_positions): If
8318 RS6000COFF_C, set up the .debug section.
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
8325 (_bfd_ppc_xcoff_relocate_section): Adjust relocations against a
8326 TOC anchor to use the TOC value used in the output file.
8328 Sat Nov 18 18:01:41 1995 Ian Lance Taylor <ian@cygnus.com>
8330 * coffgen.c (_bfd_coff_get_external_symbols): Cast malloc return.
8331 (_bfd_coff_read_string_table): Likewise.
8333 Sat Nov 18 19:43:04 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
8335 * pe-arm.c: Fix typos.
8336 * coff-arm.c: Likewise.
8338 Fri Nov 17 16:22:04 1995 Kim Knuttila <krk@cygnus.com>
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.
8348 Fri Nov 17 10:41:25 1995 Philippe De Muyter <phdm@info.ucl.ac.be>
8350 * elf-bfd.h (struct elf_link_hash_table): Change type of
8351 dynsymcount and bucketcount fields from size_t to bfd_size_type.
8353 Fri Nov 17 10:02:58 1995 Ian Lance Taylor <ian@cygnus.com>
8355 * coffcode.h (coff_pointerize_aux_hook): I960 version: don't
8356 pointerize C_LEAFSTAT or C_LEAFEXT entries.
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.
8362 Thu Nov 16 15:16:42 1995 Kim Knuttila <krk@cygnus.com>
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
8369 * peicode.h (dir_names): Added name descriptions
8371 Thu Nov 16 03:38:03 1995 Ken Raeburn <raeburn@cygnus.com>
8373 * VERSION: Updated to cygnus-2.6.
8375 Wed Nov 15 19:30:07 1995 Ken Raeburn <raeburn@cygnus.com>
8377 * targets.c (m68k4knetbsd_vec): Declare.
8379 Wed Nov 15 18:05:52 1995 Ian Lance Taylor <ian@cygnus.com>
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 *
8388 * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define as
8389 _bfd_generic_bfd_print_private_bfd_data rather than casting
8392 Wed Nov 15 04:09:14 1995 Ken Raeburn <raeburn@cygnus.com>
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
8397 (BFD_LIBS_CFILES, ALL_MACHINES_CFILES, BFD32_BACKENDS_CFILES,
8398 BFD64_BACKENDS_CFILES): New variables.
8401 Tue Nov 14 11:52:23 1995 Ian Lance Taylor <ian@cygnus.com>
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
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
8410 * cofflink.c (_bfd_coff_final_link): If there are no symbols,
8411 don't write out a string table.
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
8418 (_bfd_elf_compute_section_file_positions): Only build symbol table
8419 if there are some symbols. Set file offset of symtab and strtab
8421 (assign_file_positions_except_relocs): Remove dosyms parameter.
8422 Change all callers. Never set file offset of symtab and strtab
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.
8433 * config.bfd (sh-*-*): Set targ_defvec to shcoff_vec.
8435 * coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE, handle
8438 * coff-sh.c (shlcoff_vec): Use _bfd_generic_archive_p, not
8439 _bfd_dummy_target, matching the recent change to archive
8442 Mon Nov 13 13:24:38 1995 Ian Lance Taylor <ian@cygnus.com>
8444 * libbfd.c (bfd_get_file_window): Use casts to avoid doing
8445 arithmetic on PTR types.
8447 * aout-target.h (MY(callback)): Set the lma of the sections.
8449 * ecoff.c (ecoff_reloc_link_order): Turn a reloc against a defined
8450 symbol into a reloc against the section.
8452 Mon Nov 13 07:31:35 1995 Kim Knuttila <krk@cygnus.com>
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)
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
8468 Sun Nov 12 12:23:24 1995 Stan Shebs <shebs@andros.cygnus.com>
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.
8478 Fri Nov 10 12:10:14 1995 Ian Lance Taylor <ian@cygnus.com>
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
8487 Thu Nov 9 13:01:31 1995 Ian Lance Taylor <ian@cygnus.com>
8489 * archive.c (bfd_generic_archive_p): Preserve tdata in case of
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.
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.
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.
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.
8516 * coffcode.h (coff_write_object_contents): Set a.out vstamp to 1
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
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
8538 (_bfd_xcoff_bfd_final_link): Write out the descriptor section.
8539 (xcoff_write_global_symbol): Create a function descriptor when
8541 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
8542 * bfd-in2.h: Rebuild.
8544 Thu Nov 9 08:40:23 1995 Kim Knuttila <krk@cygnus.com>
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
8554 * libcoff-in.h (coff_link_hash_entry): removed toc_offset
8555 * libcoff.h: Rebuild
8557 * cofflink.c (_bfd_coff_link_hash_newfunc): removed toc_offset init
8558 (coff_link_add_symbols): removed toc_offset init
8560 Thu Nov 9 04:00:38 1995 Ken Raeburn <raeburn@cygnus.com>
8562 * Makefile.in (.dep1): Make sure the file mkdep is to write exists
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
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.
8578 Wed Nov 8 20:03:44 1995 Eric Freudenthal <freudenthal@nyu.edu>
8580 * coff-a29k.c (SIGN_EXTEND_HWORD): Use ~0xffff rather than
8583 Wed Nov 8 11:31:11 1995 Ian Lance Taylor <ian@cygnus.com>
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.
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
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.
8598 * xcofflink.c (XCOFF_DEF_DYNAMIC): Rename from XCOFF_REF_DYNAMIC.
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
8613 (xcoff_build_ldsyms): Likewise.
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.
8621 Tue Nov 7 11:53:48 1995 Kim Knuttila <krk@cygnus.com>
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.
8630 * cofflink.c (_bfd_coff_link_hash_newfunc): initialize toc_offset.
8631 (coff_link_add_symbols): initialize toc_offset.
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.
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
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
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
8654 Tue Nov 7 13:48:58 1995 Ian Lance Taylor <ian@cygnus.com>
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.
8660 * configure.in: Call AC_CHECK_PROG to find and cache AR.
8661 * configure: Rebuilt.
8663 * aclocal.m4 (BFD_CC_FOR_BUILD): Don't define CC_FOR_BUILD if it
8664 is defined in the environment.
8666 Tue Nov 7 10:57:24 1995 Jeffrey A Law (law@cygnus.com)
8668 * som.c (som_get_section_contents_in_window): Define to use
8671 Mon Nov 6 17:13:15 1995 Harry Dolan <dolan@ssd.intel.com>
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.
8694 Mon Nov 6 14:34:07 1995 Ian Lance Taylor <ian@cygnus.com>
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.
8703 Sun Nov 5 21:44:13 1995 Ken Raeburn <raeburn@cygnus.com>
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.
8710 * ecoff.c (_bfd_ecoff_slurp_armap): Cast _bfd_read_ar_hdr return
8713 Permit use of mmap when available:
8715 * configure.in: Check for mmap, madvise, mprotect.
8716 * config.in, configure: Regenerated.
8718 * libbfd.c (struct _bfd_window_internal): Define type.
8719 (bfd_init_window, bfd_free_window, bfd_get_file_window): New
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):
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
8737 (aout_link_free_symbols): Ditto.
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.
8747 Sat Nov 4 12:23:26 1995 Fred Fish <fnf@cygnus.com>
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
8753 Fri Nov 3 15:54:59 1995 Ian Lance Taylor <ian@cygnus.com>
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.
8762 * coffgen.c (_bfd_coff_read_string_table): Warn if the string size
8765 Thu Nov 2 23:16:39 1995 Ian Lance Taylor <ian@cygnus.com>
8767 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Don't warn about
8768 an undefined symbol in a shared link.
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).
8774 Wed Nov 1 14:26:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
8776 * coff-m88k.c (rtype2howto): New static function.
8777 (RTYPE2HOWTO): Use it rather than a macro definition.
8779 * coffcode.h (coff_write_object_contents): set internal_a.magic
8780 to PAGEMAGICPEXECPAGED #if defined (M68) && !defined (LYNXOS).
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.
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.
8790 Wed Nov 1 13:51:54 1995 Ken Raeburn <raeburn@cygnus.com>
8792 * i386linux.c (MY(vec)): Declare before use.
8794 Wed Nov 1 11:45:07 1995 Ian Lance Taylor <ian@cygnus.com>
8796 * reloc16.c (bfd_coff_reloc16_get_relocated_section_contents):
8797 Pass input_bfd, not in_bfd, to bfd_coff_reloc16_extra_cases.
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
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.
8813 * sunos.c (sunos_scan_ext_relocs): Only check the reloc symbol
8814 table index against the number of symbols for a base relative
8817 * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Change from macro to
8819 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Set
8820 full_aouthdr flag here...
8821 (_bfd_xcoff_bfd_final_link): ...not here.
8823 Tue Oct 31 12:52:02 1995 Fred Fish <fnf@cygnus.com>
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.
8835 Tue Oct 31 15:30:07 1995 David Mosberger-Tang <davidm@azstarnet.com>
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.
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,
8852 Tue Oct 31 12:34:11 1995 Ian Lance Taylor <ian@cygnus.com>
8854 * coffcode.h (coff_slurp_symbol_table): Accept C_BCOMM and
8855 C_ECOMM storage classes.
8857 * xcofflink.c (xcoff_mark_symbol): New static function, broken out
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
8863 (xcoff_build_ldsyms): Build a .loader symbol for an export symbol.
8865 Mon Oct 30 14:53:48 1995 Ian Lance Taylor <ian@cygnus.com>
8867 * xcofflink.c (struct xcoff_final_link_info): Add new line_filepos
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.
8875 * elf.c (elf_fake_sections): Remove bogus BFD_ASSERT.
8877 Sat Oct 28 01:25:34 1995 steve chamberlain <sac@slash.cygnus.com>
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
8885 Sat Oct 28 01:51:02 1995 Ian Lance Taylor <ian@cygnus.com>
8887 * xcofflink.c (xcoff_link_add_symbols): Handle csects in the
8890 Fri Oct 27 18:14:39 1995 Ian Lance Taylor <ian@cygnus.com>
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.
8901 Fri Oct 27 14:42:15 1995 Niklas Hallqvist <niklas@appli.se>
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.
8910 * m68knetbsd.c: Ditto as well as add support for the m68k4k object
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.
8917 * config.bfd: Add m68*-hp*-netbsd* case. Cross-pollinate m68k and
8918 m68k4k NetBSD configurations.
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.
8925 * libaout.h: Added M_68K4K_NETBSD magic.
8927 * m68k4knetbsd.c: New file.
8929 * hosts/{m68k,sparc}nbsd.h: Don't define HOST_BIG_ENDIAN_P.
8931 * hosts/nbsd.h: Define HOST_BIG_ENDIAN_P according to
8934 * hosts/mipsnbsd.h: New file.
8936 Thu Oct 26 14:16:47 1995 Ian Lance Taylor <ian@cygnus.com>
8938 * xcofflink.c: Numerous changes to get closer to a working XCOFF
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
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
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.
8957 Wed Oct 25 23:10:39 1995 Michael Meissner <meissner@tiktok.cygnus.com>
8959 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Remove MAC
8962 Wed Oct 25 16:19:27 1995 Jeffrey A Law (law@cygnus.com)
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.
8968 Wed Oct 25 14:59:22 1995 Per Bothner <bothner@kalessin.cygnus.com>
8970 * Makefile.in (diststuff): Don't make headers.
8972 Wed Oct 25 11:32:54 1995 Ian Lance Taylor <ian@cygnus.com>
8974 * Makefile.in: Rebuild dependencies.
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.
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
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.
8995 Tue Oct 24 17:44:20 1995 Stan Shebs <shebs@andros.cygnus.com>
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
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.
9007 * mpw-make.sed: Generalize subdir_do edit.
9009 Tue Oct 24 10:25:01 1995 Jeffrey A Law (law@cygnus.com)
9011 * hppabsd-core.c (make_bfd_asection): Initialize asect->filepos
9012 correctly. Don't initialize asect->vma.
9014 Fri Oct 20 13:23:48 1995 Ken Raeburn <raeburn@cygnus.com>
9016 * opncls.c (_bfd_new_bfd): If _bfd_chunksize wasn't preset, use
9017 something a little less than the page size.
9019 Thu Oct 19 13:06:09 1995 Ian Lance Taylor <ian@cygnus.com>
9021 * coff-i960.c (coff_i960_adjust_symndx): Clear *adjustedp.
9023 Wed Oct 18 16:20:08 1995 steve chamberlain <sac@slash.cygnus.com>
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
9030 * peicode.h (add_data_entry): Use _cooked_size of data directory.
9031 (coff_swap_outhdr_out): Hardwire in version number.
9033 Wed Oct 18 16:50:54 1995 Ken Raeburn <raeburn@cygnus.com>
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
9040 * coffgen.c (coff_find_nearest_line): Cast used_by_bfd value
9041 before assigning to sec_data.
9043 Wed Oct 18 13:25:17 1995 Ian Lance Taylor <ian@cygnus.com>
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
9052 Tue Oct 17 18:24:54 1995 Ian Lance Taylor <ian@cygnus.com>
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.
9062 Mon Oct 16 14:43:59 1995 steve chamberlain <sac@slash.cygnus.com>
9064 * libcoff-in.h (pe_data_type.in_reloc_p): New.
9066 Mon Oct 16 10:52:50 1995 Ian Lance Taylor <ian@cygnus.com>
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.
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
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
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.
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>.
9120 Sat Oct 14 21:36:02 1995 Michael Meissner <meissner@tiktok.cygnus.com>
9122 * coff-ppc.c (in_reloc_p): Add, clone from coff-i386.c.
9124 Fri Oct 13 17:48:43 1995 Ken Raeburn <raeburn@cygnus.com>
9126 * acconfig.h (HAVE_SYS_PROCFS_H): Undef, with comment.
9127 * config.in: Regenerated.
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.
9136 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
9138 * trad-core.c (rawptr): Make it a local variable of
9139 ptrace_unix_core_file_p.
9141 Fri Oct 13 11:22:01 1995 steve chamberlain <sac@slash.cygnus.com>
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
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.
9153 Wed Oct 11 00:49:29 1995 Ian Lance Taylor <ian@cygnus.com>
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.
9160 * elflink.h (elf_link_add_object_symbols): Correct conditions
9161 under which type and size change warnings are issued.
9163 Tue Oct 10 18:32:46 1995 Ian Lance Taylor <ian@cygnus.com>
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.
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.
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
9185 (coff_write_object_contents): Set cputype correctly in a.out
9187 (coff_slurp_symbol_table): Add casts to file_ptr to avoid
9189 * coffswap.h (coff_swap_aouthdr_in): Swap in cputype field.
9190 (coff_swap_aouthdr_out): Swap out cputype field. Don't clear
9192 * libcoff-in.h (struct xcoff_tdata): Add cputype field.
9193 * libcoff.h: Rebuild.
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
9202 Tue Oct 10 10:50:46 1995 Fred Fish <fnf@cygnus.com>
9204 * Makefile.in (FLAGS_TO_PASS): Remove BISON.
9206 Tue Oct 10 01:28:29 1995 Ian Lance Taylor <ian@cygnus.com>
9208 * elflink.h (elf_link_add_object_symbols): Don't warn about
9209 changing the size or type if the old definition was weak.
9211 Mon Oct 9 11:24:08 1995 Ian Lance Taylor <ian@cygnus.com>
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
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
9221 (coff_print_symbol): Print fix_value symbols in a useful fashion.
9222 * libcoff.h: Rebuild.
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
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.
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
9258 (do_slurp_bsd_armap, do_slurp_coff_armap): Likewise.
9259 (bfd_slurp_bsd_armap_f2): Likewise.
9260 (_bfd_slurp_extended_name_table): Likewise.
9262 Fri Oct 6 16:18:35 1995 Ken Raeburn <raeburn@cygnus.com>
9264 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
9266 * archive.c (bfd_get_next_mapent): Return BFD_NO_MORE_SYMBOLS
9267 when the symbol table is empty.
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.
9273 * ptrace-core.c (rawptr): Make it a local variable of
9274 ptrace_unix_core_file_p.
9276 Fri Oct 6 12:24:47 1995 Michael Meissner <meissner@tiktok.cygnus.com>
9278 * coff-rs6000.c (xcoff_write_archive_contents): Return false, not
9281 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Add NT, and
9282 Mac object file formats.
9284 Fri Oct 6 12:04:02 1995 Ian Lance Taylor <ian@cygnus.com>
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.
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.
9305 * coffcode.h (coff_write_object_contents): On AIX, clear F_RELFLG
9306 if there are symbols, for native AIX ld compatibility.
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.
9321 * coff-rs6000.c: Add full support for AIX archives. Rewrite old
9322 read-only/host-only support.
9324 * coffcode.h (coff_slurp_symbol_table): Set C_HIDEXT symbols to be
9326 (OTHER_GLOBAL_CLASS): Do not define to be C_HIDEXT if
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.
9352 Thu Oct 5 14:04:07 1995 steve chamberlain <sac@slash.cygnus.com>
9354 * peicode.c (coff_swap_filehdr_in): If symptr is
9355 zero, there aren't any symbols, even if nsyms is set.
9357 Thu Oct 5 11:45:02 1995 Ian Lance Taylor <ian@cygnus.com>
9359 * libecoff.h (struct ecoff_backend_data): Add adjust_headers
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
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.
9381 * hosts/i386bsd.h: Restore file incorrectly deleted on Sep 6.
9383 Wed Oct 4 18:15:02 1995 Jeff Law (law@hurl.cygnus.com)
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.
9390 Wed Oct 4 15:36:36 1995 Ken Raeburn <raeburn@cygnus.com>
9392 NS32k changes from Ian Dall:
9393 * aoutx.h (MY_final_link_relocate, MY_relocate_contents): New
9395 (aout_link_input_section_std, aout_link_input_section_ext,
9396 aout_link_reloc_link_order): Call them instead of _bfd_*
9398 * aout-target.h (MY_exec_header_not_counted): New macro, defaults
9400 (backend_data): Use it instead of hardcoded zero.
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.
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.
9412 * config.bfd: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
9413 ns32k-*-lites* like ns32k-*-netbsd*.
9415 * hosts/nbsd.h: Swap order of sys/vmparam.h and sys/param.h, to
9418 Wed Oct 4 14:15:52 1995 Ian Lance Taylor <ian@cygnus.com>
9420 * coffcode.h (coff_write_object_contents): Restore setting
9421 f_timdat to 0, deleted on August 22.
9423 Tue Oct 3 16:28:32 1995 steve chamberlain <sac@slash.cygnus.com>
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.
9433 Tue Oct 3 11:53:04 1995 Jeff Law (law@hurl.cygnus.com)
9435 * som.c (setup_sections): Don't die if a space has no subspaces.
9437 Mon Oct 2 14:08:55 1995 Ian Lance Taylor <ian@cygnus.com>
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.
9444 Sun Oct 1 01:34:41 1995 Jeff Law (law@hurl.cygnus.com)
9446 * som.c (som_begin_writing): Don't write the symbol table or
9448 (som_finish_writing): Write them here. Place them after the
9449 subspace data, but before the relocs.
9451 Fri Sep 29 11:01:55 1995 Ian Lance Taylor <ian@cygnus.com>
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
9457 (sunos_check_dynamic_reloc): Remove .text section assertion.
9459 Thu Sep 28 18:48:47 1995 Stan Shebs <shebs@andros.cygnus.com>
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.
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.
9477 Thu Sep 28 17:06:23 1995 steve chamberlain <sac@slash.cygnus.com>
9479 * binary.c (binary_get_symtab): Return an empty string on error.
9480 * opncls.c (bfd_fdpenr): Change WIN32 restriction to WINGDB.
9482 Thu Sep 28 15:30:44 1995 Kim Knuttila <krk@nellie>
9484 * coff-ppc.c: Reformatted according to gnu conventions
9485 Removed irrelevant "if 0" code
9487 Thu Sep 28 11:19:53 1995 Ian Lance Taylor <ian@cygnus.com>
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
9494 * coffcode.h (coff_new_section_hook): Make sure that the alignment
9495 of .ctors and .dtors sections is no larger than 2.
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
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
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.
9515 * Makefile.in (BFD32_BACKENDS): Add coff-arm.o.
9517 Thu Sep 28 00:58:05 1995 Doug Evans <dje@deneb.cygnus.com>
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.
9525 Wed Sep 27 10:37:14 1995 Ian Lance Taylor <ian@cygnus.com>
9527 * targets.c (bfd_find_target): Remove debugging code.
9529 Wed Sep 27 07:23:39 1995 Kim Knuttila <krk@nellie>
9531 * coff-ppc.c, pe-ppc.c, pei-ppc.c: Initial bfd for coff/PE
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
9546 Tue Sep 26 14:06:41 1995 Michael Meissner <meissner@tiktok.cygnus.com>
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
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.
9559 Tue Sep 26 12:48:05 1995 Ian Lance Taylor <ian@cygnus.com>
9561 * bfd.c (bfd_assert): Remove \n from string passed to
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
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.
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.
9595 Mon Sep 25 16:04:09 1995 Michael Meissner <meissner@tiktok.cygnus.com>
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.
9600 Mon Sep 25 11:48:02 1995 Ian Lance Taylor <ian@cygnus.com>
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.
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.
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
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.
9652 * sunos.c (sunos_read_dynamic_info): Adjust offsets in an NMAGIC
9653 file. From Peter DeWolf <pld@amt.tay1.dec.com>.
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.
9661 Sat Sep 23 01:22:23 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
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.
9670 Fri Sep 22 17:44:47 1995 Ian Lance Taylor <ian@cygnus.com>
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
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.
9697 Fri Sep 22 16:23:18 1995 Michael Meissner <meissner@tiktok.cygnus.com>
9699 * reloc.c (bfd_reloc_code_type): Add relocations to support all of
9701 * bfd-in2.h: Regenerate.
9702 * libbfd.h: Regenerate.
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.
9710 Thu Sep 21 21:53:18 1995 Michael Meissner <meissner@cygnus.com>
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.
9716 Wed Sep 20 12:03:26 1995 Ian Lance Taylor <ian@cygnus.com>
9718 * coffcode.h (coff_write_object_contents): Clear the vstamp field
9719 in the a.out header.
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.
9724 Tue Sep 19 17:02:26 1995 Ian Lance Taylor <ian@cygnus.com>
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.
9730 Tue Sep 19 14:02:21 1995 steve chamberlain <sac@slash.cygnus.com>
9732 * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right.
9734 Mon Sep 18 14:35:01 1995 Arne H. Juul <arnej@pvv.unit.no>
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.
9741 Fri Sep 15 10:24:36 1995 Ian Lance Taylor <ian@cygnus.com>
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
9757 Thu Sep 14 14:53:58 1995 Ian Lance Taylor <ian@cygnus.com>
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
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.
9784 Wed Sep 13 17:38:23 1995 Fred Fish <fnf@rtl.cygnus.com>
9786 * Makefile.in (clean-info): Remove extraneous tab from line
9789 Wed Sep 13 13:27:53 1995 Ian Lance Taylor <ian@cygnus.com>
9791 * cofflink.c (coff_link_input_bfd): Fail if a section with no
9792 contents has relocs.
9794 Thu Sep 12 12:45:34 1995 steve chamberlain <sac@slash.cygnus.com>
9796 * coffcode.h (coff_compute_section_file_positions): Keep the
9798 (coff_write_object_contents): Remember if it's a relocatable
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.
9804 Tue Sep 12 12:14:33 1995 Ian Lance Taylor <ian@cygnus.com>
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
9811 * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
9814 * dep-in.sed: Remove config.h from generated dependencies.
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.
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
9831 (bfd_lookup_arch): Change machine parameter from long to unsigned
9834 Mon Sep 11 10:55:47 1995 Ian Lance Taylor <ian@cygnus.com>
9836 * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
9837 a symbol with a non-zero plt_offset.
9839 Fri Sep 8 11:47:24 1995 Ian Lance Taylor <ian@cygnus.com>
9841 * elfcode.h (align_file_position): Remove; not used.
9843 * configure.in: Only check for <sys/procfs.h> on a native system,
9844 and make sure it defines prstatus_t.
9845 * configure: Rebuild.
9847 Thu Sep 7 12:48:01 1995 Ian Lance Taylor <ian@cygnus.com>
9849 * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.
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.
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.
9865 Wed Sep 6 15:00:33 1995 Ian Lance Taylor <ian@cygnus.com>
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
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.
9881 (LOCAL_H_DEPS): New variable.
9882 ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
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
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.
9906 * aclocal.m4 (BFD_BINARY_FOPEN): Define.
9907 (BFD_CC_FOR_BUILD): Define.
9908 * configure.in: Use BFD_CC_FOR_BUILD.
9909 * configure: Rebuild.
9911 Tue Sep 5 19:35:28 1995 Ian Lance Taylor <ian@cygnus.com>
9913 * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
9914 * configure: Rebuild.
9916 * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
9919 Tue Sep 5 12:48:26 1995 Jason Molenda (crash@phydeaux.cygnus.com)
9921 * config.bfd: i386pe_ve -> i386pe_vec.
9923 Mon Sep 4 14:02:43 1995 Ian Lance Taylor <ian@cygnus.com>
9925 * configure.host: Incorporate host Makefile fragments by setting
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@.
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.
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.
9957 Mon Sep 4 03:13:28 1995 Ken Raeburn <raeburn@cygnus.com>
9959 * configure.in: Put changequote lines around "i[345]86" patterns
9960 section of core file support.
9962 Sun Sep 3 11:31:58 1995 Jeff Law (law@snake.cs.utah.edu)
9964 * som.c (som_bfd_print_private_bfd_data): Define to use the
9967 Fri Sep 1 17:08:40 1995 steve chamberlain <sac@slash.cygnus.com>
9969 * peicode.h (coff_swap_aouthdr_in): Add ImageBase to
9970 entry, text_start and data_start.
9972 Fri Sep 1 18:06:28 1995 Ian Lance Taylor <ian@cygnus.com>
9974 * Makefile.in (OFILES): Remove $(TDEPFILES).
9975 * config/apollo.mt (TDEPFILES): Remove.
9976 * config/README: Update.
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.
10017 Fri Sep 1 15:18:50 1995 Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>
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.
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
10026 (elf_backend_create_program_headers): Likewise.
10027 (elfNN_bed): Initialize create_program_headers and
10029 * elf.c (get_program_header_size): Call create_program_headers
10031 (map_program_segments): Check want_hdr_in_seg backend field. Call
10032 create_program_headers backend routine.
10034 * elf.c (assign_file_positions_except_relocs): Align non allocated
10035 sections when creating an executable.
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.
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.
10053 Fri Sep 1 13:20:25 1995 Ian Lance Taylor <ian@cygnus.com>
10055 * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo.
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
10061 (elf_link_output_extsym): For an indirect or warning symbol, just
10062 output the symbol it points to.
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.
10074 * hash.c (bfd_hash_replace): New function.
10075 * bfd-in.h (bfd_hash_replace): Declare.
10076 * bfd-in2.h: Rebuild.
10078 Fri Sep 1 08:12:50 1995 James G. Smith <jsmith@beauty.cygnus.com>
10080 * config.bfd: Add mips*vr4300-*-elf* target.
10081 * config/mipsbvr4300.mt: Added.
10083 See file ChangeLog.2
10090 version-control: never