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