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