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