Split ChangeLog into two.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 Mon Nov 22 22:26:42 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
2
3 * som.c (hppa_object_p): Also recognize SHARED_MAGIC_CNX as
4 a valid magic number if it's been defined.
5
6 Mon Nov 22 14:17:36 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7
8 * ecoff.c (ecoff_mkobject): Don't create .scommon section; linker
9 no longer requires it.
10 (ecoff_bfd_seclet_link, ecoff_sizeof_headers,
11 ecoff_write_object_contents): Don't treat .scommon section
12 specially.
13
14 Mon Nov 22 10:54:27 1993 Fred Fish (fnf@cygnus.com)
15
16 Merged changes from kev@spuds.geg.mot.com (Kevin A. Buettner):
17 * bfd/config/delta88.mh (HDEFINES): Define this to be -DPTRACE_CORE.
18 * bfd/config/delta88.mh (HDEPFILES): Defined to be ptrace-core.o.
19 * bfd/ptrace-core.c: New file for dealing with core files with
20 start with the ptrace_user structure found on BCS compliant systems.
21 * bfd/targets.c (ptrace_core_vec): New vector.
22
23 Mon Nov 22 02:33:12 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
24
25 * Minimal support for reading SOM fixup streams. Allows
26 objdump -r to do something reasonable.
27 * som.c (som_get_reloc_upper_bound): Implement.
28 (som_canonicalize_reloc): Implement.
29 (som_set_reloc_info, som_slurp_reloc_table): New functions.
30
31 Fri Nov 19 14:34:04 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
32
33 * coff-a29k.c (a29k_reloc): For R_IREL, don't left shift
34 signed_value before sign extending it. Don't subtract out
35 reloc_entry->address. This makes it compatible with what gas is
36 generating.
37
38 * elfcode.h (elf_fake_sections): Accept .sbss as the name for a
39 SHT_NOBITS sections.
40 (map_program_segments): Don't leave the loop after the first
41 SHT_NOBITS section.
42 (assign_file_positions_except_relocs): Only force sh_offset and
43 sh_addr to match modulo maxpagesize for a section which is not
44 SHT_NOBITS. Changed the method used to force page alignment after
45 a SHT_NOBITS section to only do it for the last such consecutive
46 section, and to really force page alignment.
47
48 Fri Nov 19 04:02:01 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
49
50 * coffcode.h (coff_slurp_symbol_table): Print more verbose message
51 in the case of an unknown (or unhandled) storage class.
52
53 * config/i386-lynx.mt (TDEFINES): FPRINTF_ALREADY_DECLARED should
54 not be defined here, since it is a host attribute, not a target
55 one.
56 * config/m68k-lynx.mt, config/sparc-lynx.mt: Ditto.
57
58 * coffcode.h (coff_bfd_reloc_type_lookup): Don't define if already
59 defined.
60
61 * coff-sparc.c: Define some relocations, based on ELF relocations.
62 (enum reloc_type, bfd_coff_generic_reloc, coff_sparc_howto_table,
63 struct coff_reloc_map, sparc_reloc_map,
64 coff_sparc_reloc_type_lookup): Borrowed from elf32-sparc.c and
65 elf.c, renamed.
66 (coff_bfd_reloc_type_lookup): Define to be coff_sparc_reloc_....
67 (rtype2howto): Index into coff_sparc_howto_table using
68 dst->r_type.
69
70 Thu Nov 18 11:45:39 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
71
72 * config.bfd (mips*-*-irix5*): New target; use mipsbelf.
73 * configure.host (mips-sgi-irix5*) New host; use irix5 (no
74 hosts/irix5.h created; just use std-host.h).
75 * config/irix5.mh: New file; like irix4.mh, but don't use -G or
76 -lmalloc.
77 * Makefile.in: Rebuilt dependencies.
78
79 * ecoffswap.h: Changed type of internal pointers for swap out
80 functions to const *.
81
82 * elf32-mips.c (mips_elf_got16_reloc): New function. Handle GOT16
83 correctly for assembler, but linker support not implemented.
84 (elf_mips_howto_table): Use mips_elf_got16_reloc for GOT16.
85 (mips_elf_sym_is_global): New function; at least on Irix 5, all
86 non section symbols are considered global.
87 (elf_backend_sym_is_global): Define.
88 (mips_elf_final_write_processing): New function. Set the MIPS
89 architecture level correctly.
90 (elf_backend_final_write_processing): Define.
91 (mips_elf_section_from_shdr): Handle SHT_MIPS_OPTIONS.
92 (mips_elf_fake_sections): Set entsize of .mdebug or .reginfo
93 section to 1. Handle .options section.
94 (mips_elf_acom_section, mips_elf_acom_symbol,
95 mips_elf_acom_symbol_ptr): New static variables, used to build a
96 generic .acommon section to hold SHN_MIPS_ACOMMON symbols.
97 (mips_elf_symbol_processing): Handle SHN_MIPS_ACOMMON symbols by
98 putting them all in a global .acommon section.
99
100 * elfcode.h (bfd_section_from_shdr): Don't dump core if target
101 section has no ELF section data.
102 (elf_make_sections): Set addralign of reloc section to 4.
103 (elf_fake_sections): Likewise.
104 (map_program_segments): Don't consider section 0.
105 (assign_file_positions_except_relocs): Don't consider section 0.
106 In the main loop, skip the symtab and strtab sections, since their
107 positions are set elsewhere.
108 (swap_out_syms): Set addralign of symtab section to 4. Set
109 addralign of strtab sections to 1.
110 (assign_file_positions_for_relocs): Don't consider section 0.
111 (write_object_contents): Don't write out section 0.
112
113 * libelf.h (struct elf_backend_data): Added fields
114 elf_backend_sym_is_global and elf_backend_final_write_processing.
115 * elf32-target.h (elf32_bed): Added corresponding initializers.
116 * elf64-target.h (elf64_bed): Likewise.
117 * elfcode.h (sym_is_global): Take abfd argument. Call
118 elf_backend_sym_is_global if it is not NULL.
119 (elf_map_symbols): Pass abfd to sym_is_global.
120 (write_object_contents): Call elf_backend_final_write_processing
121 if it is defined.
122
123 Wed Nov 17 18:43:28 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
124
125 * libecoff.h: Include coff/ecoff.h.
126 (struct ecoff_backend_data): Move external debugging information
127 fields into a single field pointing to an ecoff_debug_swap
128 structure.
129 (ecoff_data_type): Move debugging information fields into a single
130 field pointing to an ecoff_debug_info structure.
131 * coff-alpha.c, coff-mips.c, ecoff.c: Corresponding changes.
132
133 Wed Nov 17 13:56:10 1993 Stan Shebs (shebs@rtl.cygnus.com)
134
135 * i386lynx.c (swap_std_reloc_in, swap_ext_reloc_in): Ignore
136 garbage bits appearing in the upper end of symbolnums.
137
138 * config/sparc-lynx.mt (TDEFINES): Add -DFPRINTF_ALREADY_DECLARED.
139
140 Tue Nov 16 17:03:41 1993 Stu Grossman (grossman at cygnus.com)
141
142 * lynx-core.c (lynx_core_file_p): Change bfd_zalloc to bfd_alloc.
143 * m68klynx.c: Define core file macros.
144 * hosts/i386lynx.h, hosts/m68klynx.h, hosts/lynx.h: Move all
145 non-architecture specific stuff into lynx.h.
146
147 Tue Nov 16 15:45:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
148
149 * i386linux.c: Define new macro ZMAGIC_DISK_BLOCK_SIZE to 1024, and
150 change PAGE_SIZE to 4096.
151
152 Mon Nov 15 11:48:08 1993 Ken Raeburn (raeburn@rtl.cygnus.com)
153
154 * Makefile.in (diststuff): New target.
155
156 * VERSION: Updated.
157
158 Sun Nov 14 23:33:01 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
159
160 * som.c (som_object_setup): Do not create dummy ".text", ".data",
161 and ".bss" sections.
162 (setup_sections): Do not set SEC_HAS_CONTENTS if a section's size
163 is zero. Recognize BSS type sections and turn off SEC_LOAD and
164 SEC_DATA (so binutils/size works). Set the correct value for
165 a section's _raw_size.
166 (som_slurp_symbol_table): Program entry points, and millicode are
167 also functions. Mark them as such. Also mark L$* symbols as
168 debugging symbols.
169
170 * bfd-in2.h: Rebuilt.
171
172 Sat Nov 13 15:27:15 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
173
174 * som.c (som_bfd_reloc_type_lookup): Add missing prototype. Returns
175 a pointer to constant data. Delete bogus #define which made the
176 function useless.
177
178 * som.c (som_prep_for_fixups): New function.
179 (som_write_fixups): New function.
180 (som_write_space_strings): New function.
181 (som_write_symbol_strings): New function.
182 (som_begin_writing): New function.
183
184 Fri Nov 12 15:29:36 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
185
186 * som.c (som_write_object_contents): Do not abort. Flesh out.
187 (som_set_section_contents): Do not abort. Flesh out.
188
189 * som.c (som_write_headers): New function.
190 (som_prep_headers): New function.
191 (som_build_and_write_symbol_table): New function.
192
193 * som.c (som_sizeof_headers): Add missing prototype.
194 (som_set_arch_mach): Do not abort.
195
196 * som.c (som_count_spaces): New function.
197 (som_count_subspaces): New function.
198 (compare_syms): New function.
199 (som_compute_checksum): New function.
200
201 * som.c (hppa_som_gen_reloc_type): New function.
202 (som_bfd_reloc_type_lookup): New function.
203
204 * som.c (try_prev_fixup): New function.
205 (som_reloc_skip): New function.
206 (som_reloc_addend): New function.
207 (som_reloc_call): New function.
208
209 * som.c (som_initialize_reloc_queue): New function.
210 (som_reloc_queue_insert): Likewise.
211 (som_reloc_queue_fix): Likewise.
212 (som_reloc_queue_find): Likewise.
213
214 * som.c (som_hppa_howto_table): SOM howto relocation table.
215 (hppa_som_reloc): New function.
216
217 * som.c (struct reloc_queue): New structure to keep track of
218 the last four multibyte relocations emitted.
219 (enum pa_symbol_type): Type to fully describe the symbol types
220 associated with .import/.export assembler directives.
221
222 * som.c: Include libhppa.h
223
224 * som.c (bfd_som_set_section_attributes): New function.
225 (bfd_som_set_subsection_attributes): Likewise.
226 (bfd_som_set_symboL_type): Likewise.
227 (bfd_som_attach_unwind_info): Likewise.
228 * som.h: Declare new exported functions.
229
230 * som.h (struct som_symbol): Add new fields to hold additional
231 information needed to build/write symbol tables and fixup streams.
232 (struct som_section_data_struct): Add new fields to hold additional
233 information needed to build/write space and subspace headers.
234 (som_symbol_data): New accessor macro for SOM symbol information.
235 (R_HPPA_*): Basic relocation types to be used by the assembler.
236
237 Fri Nov 12 11:00:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
238
239 * trad-core.c (trad_unix_core_file_p): If new hook
240 TRAD_CORE_ALLOW_ANY_EXTRA_SIZE defined, then skip the check for the
241 corefile being too big.
242 * hosts/i386sco.h: Define it.
243
244 Thu Nov 11 15:16:28 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
245
246 * bfd.c (struct _bfd): Add hppabsd_core_data.
247 * targets.c (target_vector): Add hppabsd_core_vec.
248 * hpux-core.c (hpux_core_core_file_p): Fail if an unknown core
249 section is encountered during core section scanning.
250 * hppabsd-core.c: New file.
251 * config/hppabsd.mh: Enable HPPA BSD core files.
252
253 * elf32-hppa.c (hppa_elf_reloc): Remove DEFUN crud. Remove code
254 which is either commented out or ifdef'd out. Add, update and
255 clean comments. Fix various indention and spacing problems. Handle
256 problems related to using "ble" to jump to a stub rather than "bl"
257 (%r31 is trashed by "ble", but not by "bl").
258 (NEW_INSTRUCTION): Put inside curly braces.
259 (CURRENT_STUB_OFFSET): Fix indention problems.
260 (hppa_elf_build_arg_reloc_stub): Fix indention and spacing problems.
261 Add, update and clean comments. Handle "ble" %r31 lossage problems.
262 (hppa_elf_build_long_branch_stub): Likewise.
263 (hppa_look_for_stubs_in_section): Likewise.
264 (hppa_elf_stub_check): Remove obsolete function.
265
266 * hppa_stubs.h: Add new instructions to deal with %r31 lossage
267 problems. Delete unused instructions.
268
269 Tue Nov 9 11:40:27 1993 Stan Shebs (shebs@rtl.cygnus.com)
270
271 * m68klynx.c (TARGET_IS_BIG_ENDIAN_P): Define.
272
273 Tue Nov 9 11:26:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
274
275 * elfcode.h (elf_object_p): Rather than looking through an array
276 of architectures, get the ELF EM_xxx code from the backend
277 information. Let the generic ELF target match any EM_xxx code not
278 matched by another ELF target. Call elf_backend_object_p to let
279 the backend do more checks and set global information.
280 * libelf.h (struct elf_backend_data): Added elf_machine_code and
281 elf_backend_object_p fields.
282 (struct bfd_elf_arch_map): Removed.
283 (bfd_elf_arch_map, bfd_elf_arch_map_size): Don't declare.
284 * elf32-target.h, elf64-target.h: Initialize elf_machine_code
285 field with ELF_MACHINE_CODE. Initialize elf_backend_object_p
286 field with elf_backend_object_p (if it is defined).
287 * elf32-gen.c, elf32-hppa.c, elf32-i386.c, elf32-i860.c,
288 elf32-m68k.c, elf32-m88k.c, elf32-mips.c, elf32-sparc.c,
289 elf64-gen.c (ELF_MACHINE_CODE): Defined.
290 * elf32-mips.c: Include ecoffswap.h to get ECOFF swapping
291 routines.
292 (mips_elf_object_p): Set the right machine number.
293 (mips_elf_ecoff_debug_swap): Defined.
294 (elf_backend_object_p): Defined to be mips_elf_object_p.
295 (elf_backend_ecoff_debug_swap): Defined to be
296 mips_elf_ecoff_debug_swap.
297 * elf.c (bfd_elf_arch_map, bfd_elf_arch_map_size): Removed.
298
299 * libbfd-in.h (target_vector, default_vector): Declare.
300 * libbfd.h: Rebuilt.
301 * format.c (target_vector, default_vector): Don't declare.
302
303 * elf32-mips.c (elf_mips_howto_table): Don't complain on overflow
304 for R_MIPS_26. Correct overflow detection requires matching the
305 upper four bits of the destination against the PC. From Ted Lemon
306 <mellon@pepper.ncd.com>.
307
308 * bout.c (b_out_reloc_type_lookup): Return type should point to
309 const data.
310 * coff-i960.c (coff_i960_reloc_type_lookup): Likewise.
311 * elf32-hppa.c (elf_hppa_reloc_type_lookup): Likewise.
312 * mipsbsd.c (MY(reloc_howto_type_lookup)): Likewise.
313 * coff-i386.c (coff_i386_reloc): Made howto const.
314 * oasys.c (oasys_write_data): Made how const.
315
316 * libelf.h: Added some comments.
317 (struct elf_backend_data): Added elf_backend_ecoff_debug_swap
318 field. Removed unused write_relocs field.
319 * elf32-target.h: Adjusted elf_backend_data initialization
320 accordingly.
321 * elf64-target.h: Corrected elf_backend_data initialization to
322 fill in all fields and to set elf_64_p to 1.
323
324 Mon Nov 8 18:13:14 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
325
326 * elfcode.h (bfd_section_from_shdr): Remove duplicate assignment
327 to filepos in SHT_STRTAB case.
328 (assign_file_position_for_section): Set BFD section filepos as
329 well as ELF section sh_offset.
330
331 * reloc.c: Use const instead of CONST.
332 (bfd_perform_relocation): Make variable howto a const pointer.
333 * bfd-in2.h, libbfd.h: Rebuilt.
334
335 Mon Nov 8 12:19:15 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
336
337 * Makefile.in (realclean): Don't remove generated headers. Reverts
338 change of 2 Jul 1993.
339
340 Mon Nov 8 06:08:31 1993 D. V. Henkel-Wallace (gumby@cirdan.cygnus.com)
341
342 * configure.bfd: make unixware equivalent to sysv4.
343
344 * config/i386-nlm.mt: bring in elf config; make it the default.
345
346 Sun Nov 7 20:21:38 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
347
348 * libbfd.c (bfd_put_8): Add parens around reference to "val"
349 argument.
350
351 Fri Nov 5 21:45:09 1993 David J. Mackenzie (djm@thepub.cygnus.com)
352
353 * hosts/i386mach3.h (HOST_SEGMENT_SIZE),
354 i386mach3.c (SEGMENT_SIZE, TEXT_START_ADDR): Correct values (?).
355
356 Fri Nov 5 15:17:57 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
357
358 * coffcode.h (coff_write_object_contents): Zero out internal_a.
359
360 Fri Nov 5 10:41:07 1993 David J. Mackenzie (djm@thepub.cygnus.com)
361
362 * aoutx.h, archive.c, archures.c, bfd.c, cache.c, coffcode.h,
363 core.c, ctor.c, format.c, init.c, libbfd.c, opncls.c, reloc.c,
364 section.c, syms.c, targets.c:
365 Doc cleanup (spelling, punctuation, grammar, formatting).
366 * bfd-in2.h, libbfd.h: Rebuild.
367
368 Thu Nov 4 14:46:14 1993 John Gilmore (gnu@rtl.cygnus.com)
369
370 * bfd-in.h (bfd_get_cacheable, bfd_set_cacheable): New accessors.
371 * bfd.c, opncls.c: Improve comments on file descriptor cacheing.
372
373 Thu Nov 4 08:54:30 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
374
375 * From Pete Hoogenboom (hoogen@cs.utah.edu)
376 * elf32-hppa.c (hppa_elf_get_section_contents): Fix logic error
377 in last change. Always rebuild symbol extension section the first
378 time though if output sections exist (fixes ld -r problems).
379
380 Thu Nov 04 08:08:46 1993 Jeffrey Wheat (cassidy@cygnus.com)
381
382 * Makefile.in: Add .PHONY for check and installcheck rules.
383
384 Tue Nov 2 14:42:27 1993 Bill Cox (bill@tarkas.cygnus.com)
385
386 * libbfd-in.h (artdata): Use long, not time_t for portability, at
387 least to HPUX. File below is a derived file.
388
389 Tue Nov 2 14:42:27 1993 Bill Cox (bill@tarkas.cygnus.com)
390
391 * libbfd.h (artdata): Use long, not time_t for portability, at
392 least to HPUX.
393
394 Tue Nov 2 09:32:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
395
396 * config.bfd: Use bigmips for mips*-*-bsd*.
397
398 Mon Nov 1 14:30:09 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
399
400 * elfcode.h (elf_slurp_reloca_table, elf_slurp_reloc_table):
401 Handle symbol number of zero.
402
403 * reloc.c (enum bfd_reloc_code_real): Added
404 BFD_RELOC_MIPS_LITERAL, BFD_RELOC_MIPS_GOT16,
405 BFD_RELOC_MIPS_CALL16, BFD_RELOC_MIPS_GPREL32.
406 * bfd-in2.h: Rebuilt.
407 * coff-mips.c (mips_bfd_reloc_type_lookup): Handle
408 BFD_RELOC_MIPS_LITERAL.
409 * elf32-mips.c (mips_reloc_map): Handle new relocs.
410 (mips_elf_hi16_reloc, mips_elf_lo16_reloc): Rearrange _gp_disp
411 checks slightly.
412
413 * aout-target.h (MY_bfd_debug_info_start, MY_bfd_debug_info_end,
414 MY_bfd_debug_info_accumulat [sic]): Remove unused definitions.
415 (MY_bfd_get_relocated_section_contents, MY_bfd_relax_section,
416 MY_bfd_seclet_link): Define.
417 (MY_bfd_reloc_type_lookup): Rename from
418 MY_reloc_howto_type_lookup.
419 (MY_bfd_make_debug_symbol): Rename from MY_make_debug_symbol.
420 (MY(vec)): Use JUMP_TABLE rather than listing functions.
421 * hp300hpux.c (MY_get_symtab, MY_get_symtab_upper_bound,
422 MY_canonicalize_reloc, MY_write_object_contents): Don't define in
423 terms of MY, because that causes a recusive invocation of CAT when
424 expanded within JUMP_TABLE, and ANSI compilers don't expand
425 recursive macros.
426 * mipsbsd.c (MY_bfd_reloc_type_lookup): Rename from
427 MY_reloc_howto_type_lookup, and don't define in terms of MY.
428 (MY_canonicalize_reloc): Don't define in terms of MY.
429 (aout_mips_little_vec, aout_mips_big_vec): Use JUMP_TABLE rather
430 than listing functions.
431
432 Mon Nov 1 09:12:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
433
434 * config.bfd: Use m68k-elf for m68*-*-sysv4*.
435
436 See file ChangeLog.1
437
438 \f
439 Local Variables:
440 mode: indented-text
441 left-margin: 8
442 fill-column: 74
443 version-control: never
444 End:
This page took 0.043294 seconds and 4 git commands to generate.