* coffgen.c (coff_find_nearest_line): Cast used_by_bfd value before assigning
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 Wed Oct 18 16:50:54 1995 Ken Raeburn <raeburn@cygnus.com>
2
3 * coffgen.c (coff_find_nearest_line): Cast used_by_bfd value
4 before assigning to sec_data.
5
6 Wed Oct 18 13:25:17 1995 Ian Lance Taylor <ian@cygnus.com>
7
8 * ecoff.c (_bfd_ecoff_find_nearest_line): The offset argument is
9 now relative to the section, not absolute.
10 * ecofflink.c (_bfd_ecoff_locate_line): Use the right symbol to
11 get the file name when there is a N_SO directory name. When
12 handling stabs, remember that section->vma was added to the
13 offset.
14
15 Tue Oct 17 18:24:54 1995 Ian Lance Taylor <ian@cygnus.com>
16
17 * sunos.c (struct sunos_link_hash_table): Add needed field.
18 (sunos_link_hash_table_create): Call bfd_release, not free.
19 (sunos_link_hash_table_create): Initialize needed field.
20 (sunos_add_dynamic_symbols): Record needed objects.
21 (bfd_sunos_get_needed_list): New function.
22 * bfd-in.h (bfd_sunos_get_needed_list): Declare.
23 * bfd-in2.h: Rebuild.
24
25 Mon Oct 16 14:43:59 1995 steve chamberlain <sac@slash.cygnus.com>
26
27 * libcoff-in.h (pe_data_type.in_reloc_p): New.
28
29 Mon Oct 16 10:52:50 1995 Ian Lance Taylor <ian@cygnus.com>
30
31 * bfd-in.h (struct bfd_link_needed_list): Rename from
32 bfd_elf_link_needed_list.
33 * bfd-in2.h: Rebuild.
34 * elf.c, elflink.h, libelf.h: Corresponding changes.
35
36 Add start at AIX linker support; no shared libraries yet.
37 * xcofflink.c: New file.
38 * configure.in (rs600coff_vec): Use xcofflink.o.
39 * configure: Rebuild.
40 * libcoff-in.h (struct xcoff_tdata): Add csects and debug_indices
41 fields.
42 (struct xcoff_section_tdata): Define.
43 (xcoff_section_data): Define macro.
44 (_bfd_xcoff_bfd_link_hash_table_create): Declare.
45 (_bfd_xcoff_bfd_link_add_symbols): Declare.
46 (_bfd_xcoff_bfd_final_link): Declare.
47 (_bfd_ppc_xcoff_relocate_section): Declare.
48 * libcoff.h: Rebuild.
49 * coff-rs6000.c: Clean up a bit.
50 (xcoff_mkobject): Default modtype to 1L, not RE. Initialize
51 cputype, csects, and debug_indices.
52 (xcoff_copy_private_bfd_data): Copy cputype.
53 (xcoff_howto_table): Rename from rs6000coff_howto_table.
54 (xcoff_rtype2howto): Rename from rs6000coff_rtype2howto.
55 (xcoff_reloc_type_lookup): Rename from
56 rs6000coff_reloc_type_lookup.
57 (coff_relocate_section): Define.
58 (_bfd_xcoff_sizeof_headers): Define.
59 (_bfd_xcoff_bfd_get_relocated_section_contents): Define.
60 (_bfd_xcoff_bfd_relax_section): Define.
61 (_bfd_xcoff_bfd_link_split_section): Define.
62 (rs6000coff_vec): For BFD_JUMP_TABLE_LINK, use _bfd_xcoff, not
63 coff.
64 * coffcode.h (coff_compute_section_file_positions): If AIX,
65 increment sofar by SMALL_AOUTSZ if not executable.
66 (coff_write_object_contents): If AIX, always output an a.out
67 header; if not executable, header size of SMALL_AOUTSZ.
68 * hash.c (struct bfd_strtab_hash): Add xcoff field.
69 (_bfd_stringtab_init): Initialize xcoff field.
70 (_bfd_xcoff_stringtab_init): New function.
71 (_bfd_stringtab_add): In XCOFF mode, leave two bytes for length.
72 (_bfd_stringtab_emit): In XCOFF mode, write out length.
73 * libbfd-in.h (_bfd_xcoff_stringtab_init): Declare.
74 * libbfd.h: Rebuild.
75 * Makefile.in: Rebuild dependencies.
76 (BFD32_BACKENDS): Add xcofflink.o.
77 (CFILES): Add xcofflink.c.
78
79 * elf32-mips.c (mips_elf_symbol_processing): Set SEC_ALLOC, not
80 SEC_NO_FLAGS, for .acommon section. From Peter Schauer
81 <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>.
82
83 Sat Oct 14 21:36:02 1995 Michael Meissner <meissner@tiktok.cygnus.com>
84
85 * coff-ppc.c (in_reloc_p): Add, clone from coff-i386.c.
86
87 Fri Oct 13 17:48:43 1995 Ken Raeburn <raeburn@cygnus.com>
88
89 * acconfig.h (HAVE_SYS_PROCFS_H): Undef, with comment.
90 * config.in: Regenerated.
91
92 * opncls.c (getpagesize) [!HAVE_GETPAGESIZE]: Define as 2048.
93 (_bfd_chunksize): New variable.
94 (_bfd_new_bfd): Set it to getpagesize() if negative, and use it
95 for obstack chunk size.
96 * configure.in: Check for getpagesize.
97 * configure: Regenerated.
98
99 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
100
101 * trad-core.c (rawptr): Make it a local variable of
102 ptrace_unix_core_file_p.
103
104 Fri Oct 13 11:22:01 1995 steve chamberlain <sac@slash.cygnus.com>
105
106 * coff-arm.c (in_reloc_p): New.
107 * coff-i386.c (in_reloc_p): New.
108 * coffcode.h: Allways include peicode.h if COFF_WITH_PE.
109 (coff_write_object_contents): Only set has_reloc_section
110 if PE_IMAGE.
111 * cofflink.c (_bfd_coff_generic_relocate_section): Call
112 in_reloc_p to decide if reloc should be emitted.
113 * libcoff.h (pe_data_type.in_reloc_p): New.
114 * peicode.h (pe_mkobject): Initialize in_reloc_p.
115
116 Wed Oct 11 00:49:29 1995 Ian Lance Taylor <ian@cygnus.com>
117
118 * cofflink.c (_bfd_coff_internal_syment_name): Move to coffgen.c.
119 (_bfd_coff_read_internal_relocs): Likewise.
120 * coffgen.c (_bfd_coff_internal_syment_name): Copy from coffgen.c.
121 (_bfd_coff_read_internal_relocs): Likewise.
122
123 * elflink.h (elf_link_add_object_symbols): Correct conditions
124 under which type and size change warnings are issued.
125
126 Tue Oct 10 18:32:46 1995 Ian Lance Taylor <ian@cygnus.com>
127
128 * coffgen.c (coff_count_linenumbers): Don't count line numbers for
129 a symbol which is not in a real section.
130 (coff_write_native_symbol): Corresponding change.
131
132 * cofflink.c (_bfd_coff_link_hash_newfunc): Rename from
133 coff_link_hash_newfunc and make non-static.
134 (_bfd_coff_link_hash_table_init): New function, broken out of
135 _bfd_coff_link_hash_table_create.
136 (_bfd_coff_link_hash_table_create): Use it.
137 (process_embedded_commands): Make static.
138 * libcoff-in.h ((_bfd_coff_link_hash_newfunc): Declare.
139 (_bfd_coff_link_hash_table_init): Declare.
140 * libcoff.h: Rebuild.
141
142 * coffcode.h (coff_mkobject_hook): If RS6000COFF_C, set cputype
143 field in XCOFF tdata.
144 (coff_set_arch_mach_hook): Check ifdef RS6000COFF_C, not ifdef
145 U802ROMAGIC, for clarity. Try to set arch and machine correctly
146 based on cputype stored in a.out header, or in n_type of initial
147 .file symbol.
148 (coff_write_object_contents): Set cputype correctly in a.out
149 header.
150 (coff_slurp_symbol_table): Add casts to file_ptr to avoid
151 warnings.
152 * coffswap.h (coff_swap_aouthdr_in): Swap in cputype field.
153 (coff_swap_aouthdr_out): Swap out cputype field. Don't clear
154 old resv1 field.
155 * libcoff-in.h (struct xcoff_tdata): Add cputype field.
156 * libcoff.h: Rebuild.
157
158 * cpu-rs6000.c (rs6000_compatible): New static function.
159 (bfd_rs6000_arch): Use it.
160 * cpu-powerpc.c (powerpc_compatible): New static function.
161 (arch_info_struct): Define various flavours of PowerPC.
162 (bfd_powerpc_arch): Use powerpc_compatible. Point at
163 arch_info_struct.
164
165 Tue Oct 10 10:50:46 1995 Fred Fish <fnf@cygnus.com>
166
167 * Makefile.in (FLAGS_TO_PASS): Remove BISON.
168
169 Tue Oct 10 01:28:29 1995 Ian Lance Taylor <ian@cygnus.com>
170
171 * elflink.h (elf_link_add_object_symbols): Don't warn about
172 changing the size or type if the old definition was weak.
173
174 Mon Oct 9 11:24:08 1995 Ian Lance Taylor <ian@cygnus.com>
175
176 * coffcode.h (combined_entry_type): Add fix_line field.
177 (coff_slurp_line_table): Warn if we try to set the lineno field of
178 a symbol twice.
179 (coff_slurp_symbol_table): If RS6000COFF_C, handle C_BINCL and
180 C_EINCL by setting fix_line. Fix C_BSTAT symbol value.
181 * coffgen.c (coff_mangle_symbols): Handle fix_line.
182 (coff_write_symbol): Only use N_DEBUG if the symbol is in the
183 absolute section.
184 (coff_print_symbol): Print fix_value symbols in a useful fashion.
185 * libcoff.h: Rebuild.
186
187 * libcoff-in.h (struct xcoff_tdata): Define.
188 (xcoff_data): Define.
189 * bfd.c (struct _bfd): Add xcoff_obj_data field to tdata union.
190 * bfd-in2.h, libcoff.h: Rebuild.
191 * coff-rs6000.c (xcoff_mkobject): New static function.
192 (coff_mkobject): Define.
193 (xcoff_copy_private_bfd_data): New static function.
194 (coff_bfd_copy_private_bfd_data): Define.
195 (rs6000coff_howto_table): Change R_TOC complain_on_overflow from
196 signed to bitfield.
197 (rs6000coff_vec): Add DYNAMIC to object_flags.
198 * coffcode.h (sec_to_styp_flags): If RS6000COFF_C, handle .pad and
199 .loader sections specially.
200 (coff_new_section_hook): If RS6000COFF_C, get the .text and .data
201 section alignment from the XCOFF tdata information.
202 (coff_mkobject_hook): If RS6000COFF_C, set DYNAMIC based on
203 F_SHROBJ, and copy the extra a.out header information into the
204 XCOFF tdata structure.
205 (coff_write_object_contents): If RS6000COFF_C, set F_SHROBJ,
206 F_DYNLOAD and the extra a.out header information.
207 (coff_slurp_symbol_table): Set BSF_NOT_AT_END for a C_EXT or
208 C_HIDEXT symbol with attached csect information.
209 * coffswap.h (coff_swap_aouthdr_in): If RS6000COFF_C, swap
210 in the o_maxdata field.
211 (coff_swap_aouthdr_out): If RS6000COFF_C, swap extra XCOFF fields.
212 * coffgen.c (coff_renumber_symbols): Don't move any symbol to the
213 end if BSF_NOT_AT_END is set.
214
215 * targets.c (bfd_target): Rename _bfd_read_ar_hdr field to
216 _bfd_read_ar_hdr_fn.
217 * libbfd-in.h (_bfd_read_ar_hdr): Update accordingly.
218 * bfd-in2.h, libbfd.h: Rebuild.
219 * archive.c (_bfd_get_elt_at_filepos): Cast _bfd_read_ar_hdr
220 return value.
221 (do_slurp_bsd_armap, do_slurp_coff_armap): Likewise.
222 (bfd_slurp_bsd_armap_f2): Likewise.
223 (_bfd_slurp_extended_name_table): Likewise.
224
225 Fri Oct 6 16:18:35 1995 Ken Raeburn <raeburn@cygnus.com>
226
227 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
228
229 * archive.c (bfd_get_next_mapent): Return BFD_NO_MORE_SYMBOLS
230 when the symbol table is empty.
231
232 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Don't reserve
233 space for section symbols, since we don't output them either.
234 (elf_m68k_adjust_dynindx): Removed.
235
236 * ptrace-core.c (rawptr): Make it a local variable of
237 ptrace_unix_core_file_p.
238
239 Fri Oct 6 12:24:47 1995 Michael Meissner <meissner@tiktok.cygnus.com>
240
241 * coff-rs6000.c (xcoff_write_archive_contents): Return false, not
242 NULL.
243
244 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Add NT, and
245 Mac object file formats.
246
247 Fri Oct 6 12:04:02 1995 Ian Lance Taylor <ian@cygnus.com>
248
249 * coffgen.c (coff_fix_symbol_name): Don't try to set up file
250 auxent if there isn't one.
251 (coff_write_symbols): If there is no file auxent, use SYMNMLEN
252 rather than FILNMLEN as the maximum name length.
253
254 * coffcode.h (bfd_coff_backend_data): Add new field
255 _bfd_coff_print_aux.
256 (bfd_coff_print_aux): New static function.
257 (coff_pointerize_aux_hook (RS6000COFF_C version)): Pointerize the
258 scnlen field of an XTY_LD csect aux entry.
259 (coff_print_aux): New static function.
260 (coff_slurp_symbol_table): Don't pointerize scnlen field; now done
261 in coff_pointerize_aux_hook.
262 (bfd_coff_std_swap_table): Initialize new field.
263 * coffgen.c (coff_print_symbol): Call bfd_coff_print_aux.
264 * libcoff.h: Rebuild.
265 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
266 * coff-mips.c (mips_ecoff_backend_data): Likewise.
267
268 * coffcode.h (coff_write_object_contents): On AIX, clear F_RELFLG
269 if there are symbols, for native AIX ld compatibility.
270
271 * coffcode.h (bfd_coff_backend_data): Add new field
272 _bfd_coff_pointerize_aux_hook.
273 (coff_pointerize_aux_hook): Define as a function if RS6000COFF_C
274 or I960, and as 0 otherwise.
275 (bfd_coff_std_swap_table): Initialize new field.
276 * libcoff.h: Rebuild.
277 * coffgen.c (coff_pointerize_aux): Change parameters to take
278 symbol pointer instead of type and class, and to take aux index.
279 Call _bfd_coff_pointerize_aux_hook if it is defined.
280 (coff_get_normalized_symtab): Always call coff_pointerize_aux.
281 * coff-alpha.c (alpha_ecoff_backend_data): Initialize all fields.
282 * coff-mips.c (mips_ecoff_backend_data): Likewise.
283
284 * coff-rs6000.c: Add full support for AIX archives. Rewrite old
285 read-only/host-only support.
286
287 * coffcode.h (coff_slurp_symbol_table): Set C_HIDEXT symbols to be
288 BSF_LOCAL.
289 (OTHER_GLOBAL_CLASS): Do not define to be C_HIDEXT if
290 RS6000COFF_C.
291
292 * targets.c (bfd_target): Add _bfd_read_ar_hdr field. Modify
293 BFD_JUMP_TABLE_ARCHIVE accordingly.
294 * libbfd-in.h (_bfd_snarf_ar_hdr): Don't declare.
295 (_bfd_compute_and_write_armap): Declare.
296 (_bfd_generic_read_ar_hdr): Declare.
297 (_bfd_read_ar_hdr): Define.
298 (_bfd_noarchive_read_ar_hdr): Define.
299 (_bfd_archive_bsd_read_ar_hdr): Define.
300 (_bfd_archive_coff_read_ar_hdr): Define.
301 * archive.c: Change all callers of _bfd_snarf_ar_hdr to call
302 _bfd_read_ar_hdr instead.
303 (_bfd_generic_read_ar_hdr): Rename from _bfd_snarf_ar_hdr.
304 (_bfd_compute_and_write_armap): Rename from
305 compute_and_write_armap. Make non-static. Change all callers.
306 * ecoff.c (_bfd_ecoff_slurp_armap): Call _bfd_read_ar_hdr rather
307 than _bfd_snarf_ar_hdr.
308 * aout-target.h (MY_read_ar_hdr): Define if not defined.
309 * ieee.c (ieee_read_ar_hdr): Define.
310 * libecoff.h (_bfd_ecoff_read_ar_hdr): Define.
311 * oasys.c (oasys_read_ar_hdr): Define.
312 * som.c (som_read_ar_hdr): Define.
313 * bfd-in2.h, libbfd.h: Rebuild.
314
315 Thu Oct 5 14:04:07 1995 steve chamberlain <sac@slash.cygnus.com>
316
317 * peicode.c (coff_swap_filehdr_in): If symptr is
318 zero, there aren't any symbols, even if nsyms is set.
319
320 Thu Oct 5 11:45:02 1995 Ian Lance Taylor <ian@cygnus.com>
321
322 * libecoff.h (struct ecoff_backend_data): Add adjust_headers
323 field.
324 * ecoff.c (ecoff_sec_to_styp_flags): Check for various Alpha
325 sections, and set styp correctly for them: .got, .hash, .dynamic,
326 .liblist, .rel.dyn, .conflic, .dynstr, .dynsym, .comment.
327 (_bfd_ecoff_styp_to_sec_flags): Check for various Alpha section
328 types.
329 (ecoff_sort_hdrs): New static function.
330 (ecoff_compute_section_file_positions): Return boolean, not void.
331 Sort the sections by VMA before looking through them. Put the
332 first non SEC_ALLOC section on a new page. Put every SEC_ALLOC
333 section on an appropriate boundary within the page.
334 (ecoff_compute_reloc_file_positions): Check return value of
335 ecoff_compute_section_file_positions.
336 (_bfd_ecoff_set_section_contents): Likewise.
337 (_bfd_ecoff_write_object_contents): Check for various Alpha
338 section types when incrementing text_size and data_size. Call
339 adjust_headers backend function if it exists.
340 * coff-alpha.c (alpha_adjust_headers): New static function.
341 (alpha_ecoff_backend_data): Initialize adjust_headers field.
342 * coff-mips.c (mips_ecoff_backend_data): Likewise.
343
344 * hosts/i386bsd.h: Restore file incorrectly deleted on Sep 6.
345
346 Wed Oct 4 18:15:02 1995 Jeff Law (law@hurl.cygnus.com)
347
348 * rs6000-core.c (CORE_VERSION_1): Use CORE_VERSION_1 instead
349 of ALTERNATE_AIX_CORE_FORMAT.
350 * configure.in (aix4): No longer need CORE_FLAGS.
351 * configure: Updated.
352
353 Wed Oct 4 15:36:36 1995 Ken Raeburn <raeburn@cygnus.com>
354
355 NS32k changes from Ian Dall:
356 * aoutx.h (MY_final_link_relocate, MY_relocate_contents): New
357 macros.
358 (aout_link_input_section_std, aout_link_input_section_ext,
359 aout_link_reloc_link_order): Call them instead of _bfd_*
360 versions.
361 * aout-target.h (MY_exec_header_not_counted): New macro, defaults
362 to zero.
363 (backend_data): Use it instead of hardcoded zero.
364
365 * aout-ns32k.c (CTOR_TABLE_RELOC_HOWTO): New macro.
366 (MY_swap_std_reloc_out): Use udata.i for KEEPIT, don't call stoi.
367
368 * ns32knetbsd.c: Include bfd.h.
369 (MY_text_includes_header, MY_bfd_reloc_type_lookup): New macros.
370 (MY_bfd_reloc_type_lookup): Declare function too.
371 * pc532-mach.c (set_sizes): Don't declare.
372 (MY_text_includes_header, MY_exec_header_not_counted): Define.
373 (backend_data, MY_backend_data): Don't define.
374
375 * config.bfd: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
376 ns32k-*-lites* like ns32k-*-netbsd*.
377
378 * hosts/nbsd.h: Swap order of sys/vmparam.h and sys/param.h, to
379 compile on lites.
380
381 Wed Oct 4 14:15:52 1995 Ian Lance Taylor <ian@cygnus.com>
382
383 * coffcode.h (coff_write_object_contents): Restore setting
384 f_timdat to 0, deleted on August 22.
385
386 Tue Oct 3 16:28:32 1995 steve chamberlain <sac@slash.cygnus.com>
387
388 * coffcode.h (coff_bfd_copy_private_symbol_data,
389 coff_bfd_copy_private_section_data,
390 coff_bfd_copy_private_bfd_data): ifdef to allow overrides.
391 * peicode.h (coff_bfd_copy_private_bfd_data): New
392 (pe_bfd_copy_private_bfd_data): New.
393 (coff_swap_scnhdr_in): Swap bss size into the right place.
394 (pe_print_private_bfd_data): Add some newlines.
395
396 Tue Oct 3 11:53:04 1995 Jeff Law (law@hurl.cygnus.com)
397
398 * som.c (setup_sections): Don't die if a space has no subspaces.
399
400 Mon Oct 2 14:08:55 1995 Ian Lance Taylor <ian@cygnus.com>
401
402 * elflink.h (elf_link_add_object_symbols): Don't let a weak
403 dynamic symbol override a common symbol. Don't change the size or
404 type if they have been set and the new symbol is not a definition.
405 Warn if the size or type changes.
406
407 Sun Oct 1 01:34:41 1995 Jeff Law (law@hurl.cygnus.com)
408
409 * som.c (som_begin_writing): Don't write the symbol table or
410 symbol strings.
411 (som_finish_writing): Write them here. Place them after the
412 subspace data, but before the relocs.
413
414 Fri Sep 29 11:01:55 1995 Ian Lance Taylor <ian@cygnus.com>
415
416 * sunos.c (sunos_add_one_symbol): Just pass false, not
417 info->shared_library, to sunos_create_dynamic_sections.
418 (sunos_scan_ext_relocs): Don't warn about a reloc in the .text
419 section.
420 (sunos_check_dynamic_reloc): Remove .text section assertion.
421
422 Thu Sep 28 18:48:47 1995 Stan Shebs <shebs@andros.cygnus.com>
423
424 * config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*.
425 * configure, configure.in: Add pmac_xcoff_vec case.
426 * Makefile.in (BFD32_BACKENDS): Add coff-pmac.o.
427 * coff-pmac.c: New file, PowerMac XCOFF support.
428 * coffcode.h (coff_set_arch_mach_hook): Add PowerMac case.
429 * targets.c (pmac_xcoff_vec): Declare.
430
431 * mpw-config.in: Various changes to be compatible with the
432 autoconf-based configury.
433 * mpw-make.sed: New file, sed commands to translate Unix
434 makefile into MPW syntax.
435 * mpw-make.in: Remove.
436 * hosts/mpw.h: Remove.
437 * bfd-in.h, bfd-in2.h: If MPW, include the file that defines
438 true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED.
439
440 Thu Sep 28 17:06:23 1995 steve chamberlain <sac@slash.cygnus.com>
441
442 * binary.c (binary_get_symtab): Return an empty string on error.
443 * opncls.c (bfd_fdpenr): Change WIN32 restriction to WINGDB.
444
445 Thu Sep 28 15:30:44 1995 Kim Knuttila <krk@nellie>
446
447 * coff-ppc.c: Reformatted according to gnu conventions
448 Removed irrelevant "if 0" code
449
450 Thu Sep 28 11:19:53 1995 Ian Lance Taylor <ian@cygnus.com>
451
452 * hp300hpux.c (convert_sym_type): Treat secondary symbols as weak
453 symbols rather than as indirect symbols.
454 (MY(slurp_symbol_table)): Don't do anything special about
455 secondary symbols.
456
457 * coffcode.h (coff_new_section_hook): Make sure that the alignment
458 of .ctors and .dtors sections is no larger than 2.
459
460 * sunos.c (sunos_add_one_symbol): Don't change
461 bfd_link_hash_common to bfd_link_hash_new, since it may be on the
462 undef list.
463 (bfd_sunos_record_link_assignment): Don't put __DYNAMIC in the
464 dynamic symbols when creating a shared library.
465 (sunos_scan_ext_relocs): Handle relocs correctly when creating a
466 shared library.
467 (sunos_scan_dynamic_symbol): Don't mark the __DYNAMIC symbol as
468 written even if it is not defined in a regular object.
469 (sunos_write_dynamic_symbol): Use plt_offset for the address of
470 the jump table reloc. Add an assertion. Use RELOC_JMP_SLOT
471 rather than the constant 22.
472 (sunos_check_dynamic_reloc): Handle creating a shared library.
473 (sunos_finish_dynamic_link): Set the first entry in the GOT to
474 zero when creating a shared library.
475 * aoutx.h (NAME(aout,final_link)): If there is a symbol __DYNAMIC,
476 write it out at the start of the symbol table.
477
478 * Makefile.in (BFD32_BACKENDS): Add coff-arm.o.
479
480 Thu Sep 28 00:58:05 1995 Doug Evans <dje@deneb.cygnus.com>
481
482 * config.bfd: Add arm-*-coff.
483 * configure.in, configure: Add armcoff_{little,big}_vec.
484 * targets.c (armcoff_{little,big}_vec): Declare.
485 (bfd_target_vector): Add armcoff_{little,big}_vec.
486 * coff-arm.c (armcoff_{little,big}_vec): Always define.
487
488 Wed Sep 27 10:37:14 1995 Ian Lance Taylor <ian@cygnus.com>
489
490 * targets.c (bfd_find_target): Remove debugging code.
491
492 Wed Sep 27 07:23:39 1995 Kim Knuttila <krk@nellie>
493
494 * coff-ppc.c, pe-ppc.c, pei-ppc.c: Initial bfd for coff/PE
495 support on powerpc.
496 * Makefile.in: added *-ppc files
497 * coffcode.h: ppc MAGIC, and use peicode.h rather than coffswap.h to
498 allow pe based .o's to be shared with other tools on ppc/NT
499 * config.bfd: added powerpc[le]-[pe|winnt] config support
500 * configure, configure.in: added bfd_powerpc[le]_pe[i]_vec
501 * peicode.h: Added more section flags for PE on ppc
502 Added coff_swap_filehdr_out to allow peicode.h to be
503 used for non-image PE files on ppc.
504 Check for image, or not, before copying pe_opthdr
505 * targets.c: Added new bfd's
506 * targets.c: Removed two inactive bfds that shouldn't have made it this
507 far.
508
509 Tue Sep 26 14:06:41 1995 Michael Meissner <meissner@tiktok.cygnus.com>
510
511 * elf32-ppc.c (ppc_reloc_type): Rename from reloc_type, and use
512 explicit values to initialize all relocs. Change all users.
513 (ppc_elf_brtaken_inner): New function to handle branch predicition
514 relocs.
515 (ppc_elf_brtaken_reloc): Ditto.
516 (ppc_elf_howto_raw): Use new functions. Make sure all unsupported
517 relocs use ppc_elf_unsupported_reloc.
518 (ppc_elf_merge_private_bfd_data): Keep track of whether an error
519 needs to be reported.
520 (ppc_elf_relocate_section): Support branch prediction relocs.
521
522 Tue Sep 26 12:48:05 1995 Ian Lance Taylor <ian@cygnus.com>
523
524 * bfd.c (bfd_assert): Remove \n from string passed to
525 _bfd_error_handler.
526
527 * coff-i386.c: (TWO_DATA_SECS): Don't define.
528 * coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook.
529 (bfd_coff_make_section_hook): Don't define.
530 (coff_make_section_hook): Remove.
531 (sec_to_styp_flags): Remove TWO_DATA_SECS case.
532 (styp_to_sec_flags): Likewise.
533 (coff_write_object_contents): Likewise.
534 (bfd_coff_std_swap_table): Don't initialize make_section_hook
535 field.
536 * libcoff.h: Rebuild.
537 * coffgen.c (make_a_section_from_file): Just call
538 bfd_make_section_anyway, not bfd_make_section or
539 bfd_coff_make_section_hook.
540 * ecoff.c (_bfd_ecoff_make_section_hook): Remove.
541 * libecoff.h (_bfd_ecoff_make_section_hook): Don't declare.
542 * coff-alpha.c (alpha_ecoff_backend_data): Don't initialize
543 make_section_hook field.
544 * coff-mips.c (mips_ecoff_backend_data): Likewise.
545
546 * aoutx.h (translate_from_native_sym_flags): Don't try to stuff
547 pointers into value field for warning and indirect symbols; just
548 leave the value field alone.
549 * linker.c (generic_link_add_symbol_list): Use next symbol for
550 warning and indirect symbols, rather than looking in symbol value.
551 * ecoff.c (ecoff_set_symbol_info): Remove indirect_ptr_ptr
552 parameter. Change all callers. Remove support for indirect
553 symbols; it didn't work anyhow.
554 (_bfd_ecoff_slurp_symbol_table): Remove indirect_ptr variable.
555 * syms.c: Change comments about BSF_WARNING and BSF_INDIRECT.
556 * bfd-in2.h: Rebuild.
557
558 Mon Sep 25 16:04:09 1995 Michael Meissner <meissner@tiktok.cygnus.com>
559
560 * elf32-ppc.c (ppc_elf_howto_raw): For all 14-bit branch relocs,
561 go back to telling the tools this reloc operates on 32 bits.
562
563 Mon Sep 25 11:48:02 1995 Ian Lance Taylor <ian@cygnus.com>
564
565 * aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler
566 rather than a direct fprintf.
567 * archive.c (_bfd_write_archive_contents): Likewise.
568 * coffcode.h (coff_slurp_symbol_table): Likewise.
569 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Likewise.
570 (ppc_elf_unsupported_reloc): Likewise.
571 (ppc_elf_relocate_section): Likewise.
572 * i386linux.c (linux_tally_symbols): Likewise.
573 (linux_finish_dynamic_link): Likewise.
574 * osf-core.c (osf_core_core_file_p): Likewise.
575 * rs6000-core.c (rs6000coff_get_section_contents): Likewise.
576 * som.c (som_sizeof_headers): Likewise.
577 * srec.c (srec_bad_byte): Likewise.
578 * bfd.c (bfd_assert): Likewise. Also change file to be const.
579 * libbfd-in.h (bfd_assert): Declare first parameter const.
580 * libbfd.h: Rebuild.
581 * coff-a29k.c (a29k_reloc): Don't bother to fprintf; returning
582 bfd_reloc_overflow is enough.
583 * coff-h8300.c (rtype2howto): Don't bother to fprintf; just abort.
584 * coff-h8500.c (rtype2howto): Likewise.
585 * coff-z8k.c (rtype2howto): Likewise.
586 * coffcode.h (dummy_reloc16_extra_cases): Likewise.
587 * elf.c (_bfd_elf_get_lineno): Likewise.
588 (_bfd_elf_no_info_to_howto): Likewise.
589 (_bfd_elf_no_info_to_howto_rel): Likewise.
590 * hp300hpux.c (convert_sym_type): Likewise.
591 (MY(swap_std_reloc_in)): Likewise.
592 * elf.c (bfd_section_from_shdr): Remove #if 0 sections.
593
594 * libaout.h (struct aoutdata): Add line_buf field.
595 * aoutx.h (NAME(aout,find_nearest_line)): Remove statics buffer
596 and filename_buffer. Instead, use a malloc buffer stored in the
597 new line_buf field. Remove length restrictions.
598
599 * coffgen.c (string_size): Remove static variable.
600 (debug_string_size, debug_string_section): Likewise.
601 (coff_fix_symbol_name): Add string_size_p, debug_string_section_p,
602 and debug_string_size_p parameters. Use them instead of the
603 global variables. Change all callers.
604 (coff_write_symbol): Likewise.
605 (coff_write_alien_symbol, coff_write_native_symbol): Likewise.
606 (coff_write_symbols): Add local variables to replace removed
607 global variables.
608
609 * libcoff-in.h (struct coff_section_tdata): Add offset, i,
610 function, and line_base fields.
611 * libcoff.h: Rebuild.
612 * coffgen.c (coff_find_nearest_line): Use section tdata to cache
613 information, rather than using static variables.
614
615 * sunos.c (sunos_read_dynamic_info): Adjust offsets in an NMAGIC
616 file. From Peter DeWolf <pld@amt.tay1.dec.com>.
617
618 * init.c (initialized): Remove static variable.
619 (bfd_init): Don't bother setting initialized.
620 (bfd_check_init): Remove.
621 * opncls.c (_bfd_new_bfd): Don't call bfd_check_init.
622 * libbfd.h: Rebuild.
623
624 Sat Sep 23 01:22:23 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
625
626 * rs6000-core.c (rs6000coff_core_p): Don't check the core file
627 size for full core dumps. Copy core file header to private data.
628 (rs6000coff_core_file_failing_command,
629 rs6000coff_core_file_failing_signal): New functions to extract
630 the file name and terminating signal from the core file.
631 * coff-rs6000.c: Use them.
632
633 Fri Sep 22 17:44:47 1995 Ian Lance Taylor <ian@cygnus.com>
634
635 Change arch info to be const, initialized at compile time.
636 * archures.c: Reindent many functions. Change CONST to const.
637 (bfd_arch_info_type): Make arch_name const. Remove disassemble;
638 nothing set it anyhow. Make next const.
639 (bfd_arch_info_list): Remove.
640 (bfd_archures_list): Rename from archures_init_table. Change from
641 a table of function pointers to a table of bfd_arch_info_type
642 structure addresses.
643 (bfd_scan_arch): Rewrite accordingly. Return a const pointer.
644 (bfd_lookup_arch): Likewise.
645 (bfd_set_arch_info): Rewrite accordingly. Change argument to be a
646 const pointer.
647 (bfd_default_arch_struct): Make const.
648 (bfd_arch_init, bfd_arch_linkin): Remove.
649 (bfd_get_arch_info): Return a const pointer.
650 * init.c (bfd_init): Don't call bfd_arch_init.
651 * bfd.c (struct _bfd): Make arch_info const.
652 * bfd-in2.h: Rebuild.
653 * libbfd.h: Rebuild.
654 * configure.in: Put & before everything in $selarchs.
655 * configure: Rebuild.
656 * cpu-*.c: Change bfd_*_arch from a function which calls
657 bfd_arch_linkin to a const structure.
658 * ieee.c (ieee_object_p): Make arch const.
659
660 Fri Sep 22 16:23:18 1995 Michael Meissner <meissner@tiktok.cygnus.com>
661
662 * reloc.c (bfd_reloc_code_type): Add relocations to support all of
663 PowerPC V.4.
664 * bfd-in2.h: Regenerate.
665 * libbfd.h: Regenerate.
666
667 * elf32-ppc.c (reloc_type): Update names to match current draft.
668 (ppc_elf_howto_raw): Mark 14 bit relocs as short sized and PC
669 relative. Update names to current V.4 draft.
670 (ppc_elf_reloc_type_lookup): Add support for more relocations.
671 (ppc_elf_relocate_section): Rename relocations to match draft.
672
673 Thu Sep 21 21:53:18 1995 Michael Meissner <meissner@cygnus.com>
674
675 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Allow modules
676 compiled with -mrelocatable-lib to be linked with either normal
677 modules or -mrelocatable modules.
678
679 Wed Sep 20 12:03:26 1995 Ian Lance Taylor <ian@cygnus.com>
680
681 * coffcode.h (coff_write_object_contents): Clear the vstamp field
682 in the a.out header.
683
684 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for
685 a reloc against a local symbol, even if it's not a section.
686
687 Tue Sep 19 17:02:26 1995 Ian Lance Taylor <ian@cygnus.com>
688
689 * targets.c (bfd_target): Remove unused align_power_min field.
690 * bfd-in2.h: Rebuild.
691 * All backends: Remove initialization of align_power_min.
692
693 Tue Sep 19 14:02:21 1995 steve chamberlain <sac@slash.cygnus.com>
694
695 * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right.
696
697 Mon Sep 18 14:35:01 1995 Arne H. Juul <arnej@pvv.unit.no>
698
699 * config.bfd (mips-dec-netbsd*): New target.
700 * configure.host (mips-dec-netbsd*): New host.
701 * configure.in (mips-dec-netbsd*): New native.
702 * configure: Rebuild.
703
704 Fri Sep 15 10:24:36 1995 Ian Lance Taylor <ian@cygnus.com>
705
706 Make the COFF backend linker merge common types:
707 * cofflink.c (struct coff_debug_merge_element): Define.
708 (struct coff_debug_merge_type): Define.
709 (struct coff_debug_merge_hash_entry): Define.
710 (struct coff_debug_merge_hash_table): Define.
711 (coff_debug_merge_hash_table_init): Define.
712 (coff_debug_merge_hash_table_free): Define.
713 (coff_debug_merge_hash_lookup): Define.
714 (struct coff_final_link_info): Add debug_merge field.
715 (coff_debug_merge_hash_newfunc): New static function.
716 (_bfd_coff_final_link): Allocate and free debug_merge table.
717 (coff_link_input_bfd): Merge identical enum, struct and union
718 types.
719
720 Thu Sep 14 14:53:58 1995 Ian Lance Taylor <ian@cygnus.com>
721
722 Convert i960 COFF to use COFF backend linker.
723 * coff-i960.c (coff_i960_relocate): Use a coff_section_data
724 structure to store the symbol being used.
725 (coff_i960_start_final_link): New static function.
726 (coff_i960_relocate_section): New static function.
727 (coff_i960_adjust_symndx): New static function.
728 (coff_start_final_link): Define.
729 (coff_relocate_section): Define.
730 (coff_adjust_symndx): Define.
731 * coffcode.h (bfd_coff_backend_data): Add new callback function
732 _bfd_coff_start_final_link.
733 (bfd_coff_start_final_link): Define.
734 (coff_start_final_link): Define if not defined.
735 (bfd_coff_std_swap_table): Add coff_start_final_link.
736 * cofflink.c (_bfd_coff_internal_syment_name): Make globally
737 visible.
738 (_bfd_coff_final_link): Call bfd_coff_start_final_link if the
739 function callback is not NULL.
740 * libcoff-in.h (struct coff_section_tdata): Add tdata field.
741 (_bfd_coff_internal_syment_name): Declare.
742 * libcoff.h: Rebuild.
743 * configure.in (icoff_big_vec): Add cofflink.o.
744 (icoff_little_vec): Likewise.
745 * configure: Rebuild.
746
747 Wed Sep 13 17:38:23 1995 Fred Fish <fnf@rtl.cygnus.com>
748
749 * Makefile.in (clean-info): Remove extraneous tab from line
750 following action.
751
752 Wed Sep 13 13:27:53 1995 Ian Lance Taylor <ian@cygnus.com>
753
754 * cofflink.c (coff_link_input_bfd): Fail if a section with no
755 contents has relocs.
756
757 Thu Sep 12 12:45:34 1995 steve chamberlain <sac@slash.cygnus.com>
758
759 * coffcode.h (coff_compute_section_file_positions): Keep the
760 raw size safe.
761 (coff_write_object_contents): Remember if it's a relocatable
762 file.
763 * libcoff-in.h (pe_data_type): New member 'has_reloc_section'
764 * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag
765 if relocatable file. Swap out saved raw size.
766
767 Tue Sep 12 12:14:33 1995 Ian Lance Taylor <ian@cygnus.com>
768
769 * Makefile.in (do_maintainer_clean): Rename from do_realclean.
770 (maintainer-clean): Rename from realclean, passing
771 maintainer-clean down to subdirectories, but leave realclean as a
772 synonym.
773
774 * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
775 warning callback.
776
777 * dep-in.sed: Remove config.h from generated dependencies.
778
779 * sunos.c (sunos_slurp_dynamic_symtab): New static function,
780 broken out of sunos_canonicalize_dynamic_symtab.
781 (sunos_canonicalize_dynamic_symtab): Call new function
782 sunos_slurp_dynamic_symtab.
783 (sunos_add_dynamic_symbols): Add three new parameters. Return the
784 dynamic symbol table to the caller.
785 * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols
786 callback to override the symbols being read.
787 * libaout.h (struct aout_backend_data): Add three new parameters
788 to add_dynamic_symbols callback.
789
790 Extensive minor changes to avoid various gcc warnings. Also:
791 * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
792 * archures.c (bfd_arch_info_type): Change mach field from long to
793 unsigned long.
794 (bfd_lookup_arch): Change machine parameter from long to unsigned
795 long.
796
797 Mon Sep 11 10:55:47 1995 Ian Lance Taylor <ian@cygnus.com>
798
799 * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
800 a symbol with a non-zero plt_offset.
801
802 Fri Sep 8 11:47:24 1995 Ian Lance Taylor <ian@cygnus.com>
803
804 * elfcode.h (align_file_position): Remove; not used.
805
806 * configure.in: Only check for <sys/procfs.h> on a native system,
807 and make sure it defines prstatus_t.
808 * configure: Rebuild.
809
810 Thu Sep 7 12:48:01 1995 Ian Lance Taylor <ian@cygnus.com>
811
812 * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.
813
814 * config.in: Rename from config.h.in.
815 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
816 Check for config.h:config.in when creating stamp-h.
817 * configure: Rebuild.
818 * Makefile.in (stamp-h): Depend upon config.in rather than
819 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
820 calling config.status.
821
822 * Makefile.in (do_distclean): Remove config.h and stamp-h.
823 (Makefile): Just rebuild Makefile.
824 (config.h, stamp-h): New targets.
825 * configure.in: Create stamp-h when rebuilding config.h.
826 * configure: Rebuild.
827
828 Wed Sep 6 15:00:33 1995 Ian Lance Taylor <ian@cygnus.com>
829
830 * configure.in: Call AC_CONFIG_HEADER. Substitute
831 HOST_64BIT_LONG. Check that various header files exist. Check
832 that fcntl exists. Call BFD_BINARY_FOPEN. Check whether malloc
833 and/or free need to be declared. Don't make a link to sysdep.h.
834 Define TRAD_HEADER for various hosts.
835 * configure: Rebuild.
836 * configure.host: Don't set my_host. Add definitions taken from
837 host header files for various entries. Remove entries which now
838 do nothing.
839 * acconfig.h: New file.
840 * config.h.in: New file, built by autoheader.
841 * sysdep.h: New file.
842 * Makefile.in (do_distclean): Don't remove sysdep.h.
843 (RECONFIG): Remove.
844 (LOCAL_H_DEPS): New variable.
845 ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
846 $(RECONFIG).
847 ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise.
848 ($(OPTIONAL_BACKENDS)): Likewise.
849 (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than
850 looking through sysdep.h.
851 * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile.
852 (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG.
853 (fprintf_vma, sprintf_vma): Likewise.
854 (int64_type, uint64_type): Don't define.
855 * bfd-in2.h: Rebuild.
856 * archures.c, bfd.c, srec.c: Include <ctype.h>.
857 * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS.
858 * lynx-core.c: Include stuff from old hosts/lynx.h.
859 * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL),
860 rather than NO_FCNTL.
861 * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__
862 rather than NATIVE_HPPAHPUX_COMPILER.
863 * trad-core.c: Don't include <errno.h>. Include TRAD_HEADER if it
864 is defined.
865 * hosts/*.h: Remove all header files which merely include,
866 declare, and define things. Leave header files which define
867 information needed by trad-core.c.
868
869 * aclocal.m4 (BFD_BINARY_FOPEN): Define.
870 (BFD_CC_FOR_BUILD): Define.
871 * configure.in: Use BFD_CC_FOR_BUILD.
872 * configure: Rebuild.
873
874 Tue Sep 5 19:35:28 1995 Ian Lance Taylor <ian@cygnus.com>
875
876 * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
877 * configure: Rebuild.
878
879 * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
880 a global symbol.
881
882 Tue Sep 5 12:48:26 1995 Jason Molenda (crash@phydeaux.cygnus.com)
883
884 * config.bfd: i386pe_ve -> i386pe_vec.
885
886 Mon Sep 4 14:02:43 1995 Ian Lance Taylor <ian@cygnus.com>
887
888 * configure.host: Incorporate host Makefile fragments by setting
889 shell variables.
890 * configure.in: Call AC_PROG_CC. Substitute CFLAGS, HDEFINES and
891 AR. Call AC_PROG_INSTALL. Substitute CC_FOR_BUILD, choosing a
892 value based on whether the code is being compiled by a cross
893 compiler. Don't substitute host_makefile_frag or frags.
894 * aclocal.m4: New file to define local AC_PROG_CC.
895 * configure: Rebuild.
896 * Makefile.in (INSTALL): Set to @INSTALL@.
897 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
898 (INSTALL_DATA): Set to @INSTALL_DATA@.
899 (AR): Set to @AR@.
900 (CC): Define as @CC@.
901 (CFLAGS): Set to @CFLAGS@.
902 (CC_FOR_BUILD): Set to @CC_FOR_BUILD@.
903 (@host_makefile_frag@): Remove.
904 (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@. Move $(CFLAGS)
905 after other options.
906 (config.status): Remove dependency upon @frags@.
907 * config/*.mh, config/README: Remove.
908
909 * config.bfd: Rewrite to incorporate the contents of the Makefile
910 fragments by setting shell variables, rather than merely returning
911 the name of a Makefile fragment.
912 * configure.in: Use shell variables set by config.bfd rather than
913 looking at the target Makefile fragment files. Don't substitute
914 target_makefile_frag. Do substitute TDEFINES.
915 * configure: Rebuild.
916 * Makefile.in (@target_makefile_frag@): Remove.
917 (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@.
918 * config/*.mt: Remove.
919
920 Mon Sep 4 03:13:28 1995 Ken Raeburn <raeburn@cygnus.com>
921
922 * configure.in: Put changequote lines around "i[345]86" patterns
923 section of core file support.
924
925 Sun Sep 3 11:31:58 1995 Jeff Law (law@snake.cs.utah.edu)
926
927 * som.c (som_bfd_print_private_bfd_data): Define to use the
928 generic version.
929
930 Fri Sep 1 17:08:40 1995 steve chamberlain <sac@slash.cygnus.com>
931
932 * peicode.h (coff_swap_aouthdr_in): Add ImageBase to
933 entry, text_start and data_start.
934
935 Fri Sep 1 18:06:28 1995 Ian Lance Taylor <ian@cygnus.com>
936
937 * Makefile.in (OFILES): Remove $(TDEPFILES).
938 * config/apollo.mt (TDEPFILES): Remove.
939 * config/README: Update.
940
941 * configure.in: For a native configuration, set COREFILE and
942 COREFLAG based on the canonical host name.
943 * configure: Rebuild.
944 * Makefile.in: Rebuild dependencies.
945 (ALL_CFLAGS): Add @COREFLAG@.
946 (OFILES): Replace $(HDEPFILES) with @COREFILE@.
947 * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file
948 support routines. Check LYNX_CORE rather than HOST_LYNX.
949 * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX.
950 * i386lynx.c: Likewise.
951 * m68klynx.c: Likewise.
952 * sparclynx.c: Likewise.
953 * rs6000-core.c: Check AIX_CORE rather than HOST_AIX.
954 * *-core.c: Comment changes.
955 * config/decstation.mh (HDEPFILES): Remove.
956 (HDEFINES): Remove -DTRAD_CORE.
957 * config/irix3.mh (RANLIB): Remove.
958 * config/irix4.mh (HDEPFILES, RANLIB): Remove.
959 (HDEFINES): Remove -DIRIX_CORE.
960 * config/riscos.mh (RANLIB, HDEPFILES): Remove.
961 (HDEFINES): Remove -DTRAD_CORE.
962 * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove.
963 * config/ultra3.mh (RANLIB): Remove.
964 * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove.
965 * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove.
966 * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove.
967 * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove.
968 * config/hppahpux.mh, config/hppaosf.mh: Remove.
969 * config/i386aix.mh, config/i386bsd.mh: Remove.
970 * config/i386linux.mh, config/i386mach3.mh: Remove.
971 * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove.
972 * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove.
973 * config/mipsmach3.mh, config/news-mips.mh: Remove.
974 * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove.
975 * config/rs600.mh, config/rs6000lynx.mh: Remove.
976 * config/solaris2.mh, config/stratus.mh: Remove.
977 * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove.
978 * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove.
979
980 Fri Sep 1 15:18:50 1995 Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>
981
982 * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or
983 DT_FINI entry if the appropriate symbol is not in the hash table.
984
985 * libelf.h (struct elf_backend_data): Add create_program_headers
986 and want_hdr_in_seg fields.
987 * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not
988 defined.
989 (elf_backend_create_program_headers): Likewise.
990 (elfNN_bed): Initialize create_program_headers and
991 want_hdr_in_seg.
992 * elf.c (get_program_header_size): Call create_program_headers
993 backend routine.
994 (map_program_segments): Check want_hdr_in_seg backend field. Call
995 create_program_headers backend routine.
996
997 * elf.c (assign_file_positions_except_relocs): Align non allocated
998 sections when creating an executable.
999
1000 * elfcode.h (elf_swap_phdr_in): Make non static.
1001 (elf_swap_phdr_out): Make non static.
1002 * libelf.h (bfd_elf32_swap_phdr_in): Declare.
1003 (bfd_elf32_swap_phdr_out): Declare.
1004 (bfd_elf64_swap_phdr_in): Declare.
1005 (bfd_elf64_swap_phdr_out): Declare.
1006
1007 * ecofflink.c (ecoff_collect_shuffle): New static function.
1008 (_bfd_ecoff_get_accumulated_pdr): New function.
1009 (_bfd_ecoff_get_accumulated_sym): New function.
1010 (_bfd_ecoff_get_accumulated_ss): New function.
1011 * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare.
1012 (_bfd_ecoff_get_accumulated_sym): Declare.
1013 (_bfd_ecoff_get_accumulated_ss): Declare.
1014 * libbfd.h: Rebuild.
1015
1016 Fri Sep 1 13:20:25 1995 Ian Lance Taylor <ian@cygnus.com>
1017
1018 * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo.
1019
1020 * elflink.h (elf_link_add_object_symbols): Handle indirect and
1021 warning symbols. If any section is named .gnu.warning.XXX, treat
1022 the contents as a warning to be issued if the symbol XXX is
1023 referenced.
1024 (elf_link_output_extsym): For an indirect or warning symbol, just
1025 output the symbol it points to.
1026
1027 * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error
1028 if bfd_hash_allocate fails, since it will already be set.
1029 (generic_link_hash_newfunc): Likewise.
1030 (archive_hash_newfunc): Likewise.
1031 (hash_entry_bfd): New static function.
1032 (_bfd_generic_link_add_one_symbol): Pass new arguments to warning
1033 callback. Allocate a new warning using the hash table newfunc.
1034 Use bfd_hash_replace to update the entry in the hash table, rather
1035 than assuming we can copy the fields with structure assignment.
1036
1037 * hash.c (bfd_hash_replace): New function.
1038 * bfd-in.h (bfd_hash_replace): Declare.
1039 * bfd-in2.h: Rebuild.
1040
1041 Fri Sep 1 08:12:50 1995 James G. Smith <jsmith@beauty.cygnus.com>
1042
1043 * config.bfd: Add mips*vr4300-*-elf* target.
1044 * config/mipsbvr4300.mt: Added.
1045
1046 See file ChangeLog.2
1047
1048 \f
1049 Local Variables:
1050 mode: indented-text
1051 left-margin: 8
1052 fill-column: 74
1053 version-control: never
1054 End:
This page took 0.056513 seconds and 4 git commands to generate.