]> Git Repo - binutils.git/blame - bfd/ChangeLog
* aoutx.h (translate_from_native_sym_flags): Give warning symbols
[binutils.git] / bfd / ChangeLog
CommitLineData
0c205af2
DM
1Tue Jan 18 03:54:59 1994 David J. Mackenzie ([email protected])
2
3 * aoutx.h (translate_from_native_sym_flags): Give warning symbols
4 an (unused) nonzero section value, needed for check below.
5
964affdc
DM
6Mon Jan 17 15:12:07 1994 David J. Mackenzie ([email protected])
7
8 * aoutx.h (translate_from_native_sym_flags,
9 aout_link_add_symbols): Treat N_SET[ABDT] | N_EXT like
10 N_SET[ABDT].
11
38a5f510
ILT
12Fri Jan 14 16:45:43 1994 Ian Lance Taylor ([email protected])
13
14 * elfcode.h (elf_object_p): If there is a SHT_DYNAMIC section, set
15 the DYNAMIC flag for the BFD.
16 (NAME(bfd_elf,write_object_contents)): Don't try to write out a
17 BFD with the DYNAMIC flag set, since we don't generate the program
18 header table correctly.
19
20Fri Jan 14 01:04:36 1994 Peter Schauer ([email protected])
21
22 * elfcode.h (elf_slurp_symbol_table): Free x_symp at the end
23 of the function to avoid storage leak.
24
75919b3b
ILT
25Thu Jan 13 23:07:32 1994 Ian Lance Taylor ([email protected])
26
27 * ecoff.c (ecoff_link_write_external): An ifd can be -1.
28
39961154
JL
29Thu Jan 13 12:33:27 1994 Jeffrey A. Law ([email protected])
30
9558d13f
JL
31 * som.c (som_set_reloc_info): Provide a default symbol for
32 relocations which don't actually have an associated symbol.
33
39961154
JL
34 * som.c (hppa_som_reloc): Add new "error message" argument.
35
32476597
PS
36Wed Jan 12 13:36:43 1994 Peter Schauer ([email protected])
37
38 Enable gdb to write to core files on more core file readers.
39 * libbfd.c (bfd_generic_set_section_contents): Remove range check
40 for section size, it is already done in bfd_set_section_contents
41 with bfd_get_section_size_now.
42 * aix386-core.c, hppabsd-core.c, hpux-core.c, irix-core.c,
43 osf-core.c, ptrace-core.c, trad-core.c (*_set_section_contents):
44 Use bfd_generic_set_section_contents instead of bfd_false.
45
92f345b9
ILT
46Wed Jan 12 15:31:57 1994 Ian Lance Taylor ([email protected])
47
39961154
JL
48 * linker.c: Added initial documentation.
49
92f345b9
ILT
50 * linker.c (default_indirect_link_order): Don't expect space for
51 output relocations if there aren't any input relocations.
52
fed872d3
ILT
53Tue Jan 11 14:37:12 1994 Ian Lance Taylor ([email protected])
54
c5481a5e
ILT
55 * aoutx.h (NAME(aout,final_link)): Set a_entry before computing
56 file offsets.
57
fed872d3
ILT
58 * elfcode.h (swap_out_syms): A common symbol is STT_OBJECT, not
59 STT_NOTYPE.
60
b36b8a6e
JK
61Tue Jan 11 09:10:56 1994 Jim Kingdon ([email protected])
62
63 * config.bfd: Use ELF, not COFF for m88*-*-dgux*.
64 Combine m88k-*-* and m88110-*-* cases into m88*-*-*.
65
cf286547
ILT
66Tue Jan 11 00:07:19 1994 Ian Lance Taylor ([email protected])
67
68 * ecofflink.c: Extensive changes to compress and merge debugging
69 information, and to write some of out directly rather than saving
70 it in memory. Several new functions and structures, and new
71 arguments to existing functions.
72 * ecoff.c (ecoff_compute_reloc_file_positions): Compute
73 sym_filepos as well.
74 (ecoff_get_extr): Use ifdmap instead of ifdbase.
75 (ecoff_write_object_contents): Don't compute sym_filepos here.
76 Only output symbols if outsymbols is not NULL.
77 (ecoff_bfd_final_link): Adjust for changes in ecoff_debug_info and
78 bfd_ecoff_debug functions. Write out debugging information here.
79 (ecoff_final_link_debug_accumulate): Adjust for changes in
80 bfd_ecoff_debug functions.
81 (ecoff_link_write_external): Use ifdmap rather than ifdbase.
82 * elf32-mips.c (mips_elf_read_ecoff_info): Read external symbols
83 first, to put them in the first memory buffer. Clear fdr field.
84 (mips_elf_get_extr): Use pointer to unswapped external symbol.
85 (mips_elf_final_link): Adjust for changes in bfd_ecoff functions.
86 Preserve .text, .data and .bss even if they are empty. Save
87 pointer to unswapped external symbol rather than copying it.
88 Don't free up the external symbols.
89 * libelf.h (elf_symbol_type): Change mips_extr to PTR.
90 * bfd-in.h (bfd_ecoff_debug_init, bfd_ecoff_debug_free): Declare.
91 (bfd_ecoff_debug_accumulate): Update declaration.
92 (bfd_ecoff_debug_accumulate_other): Rename declaration from
93 bfd_ecoff_debug_link_other and update.
94 (bfd_ecoff_write_accumulated_debug): Declare.
95 * bfd-in2.h: Rebuilt.
96 * Makefile.in: Rebuilt dependencies.
97
2c96ba79
JK
98Mon Jan 10 20:46:53 1994 Jim Kingdon ([email protected])
99
100 * Makefile.in (install): Remove "@" which follows a backslash. In
101 this position it just causes errors, not suppresses echoes.
102
2304e1e8
JL
103Mon Jan 10 09:06:21 1994 Jeffrey A. Law ([email protected])
104
105 * som.c (hppa_som_gen_reloc_type): Fix handling of LT and RT
106 field selectors.
107
fb4cf140
KR
108Sun Jan 9 04:32:25 1994 Ken Raeburn ([email protected])
109
110 * config/i386-netbsd.mt (SELECT_VECS): Include i386bsd_vec.
111
d44b2ddb
DM
112Fri Jan 7 10:27:27 1994 David J. Mackenzie ([email protected])
113
5330499f
DM
114 * aoutx.h (adjust_z_magic): Don't merge the start of bss with the
115 end of data if they are not contiguous.
116
d44b2ddb
DM
117 * aoutf1.h (sunos4_aout_backend): Comment the fields' meanings.
118
a5a835ff
ILT
119Fri Jan 7 15:40:16 1994 Ian Lance Taylor ([email protected])
120
121 * ecoff.c (ecoff_mkobject_hook): Don't set SEC_SHARED_LIBRARY flag
122 for .reginfo section here.
123 (ecoff_new_section_hook): Set it here instead.
124
442da995
SS
125Fri Jan 7 10:29:27 1994 Stan Shebs ([email protected])
126
127 * bfd-in.h: (bfd_boolean): Add workaround for systems that also
128 define true and false as enums.
129 (ALMOST_STDC): Add as alternative to __STDC__.
130 * bfd-in2.h: Rebuilt.
131 * syms.c (bfd_print_symbol_vandf): Convert a PTR to FILE*.
132
6f56c941
DM
133Thu Jan 6 14:24:44 1994 David J. Mackenzie ([email protected])
134
135 * aoutx.h (translate_to_native_sym_flags): Catch the case where
136 there is no output section.
137
2f84ec0d
ILT
138Thu Jan 6 14:37:42 1994 Ian Lance Taylor ([email protected])
139
90d58284
ILT
140 * nlmcode.h (nlm_object_p): If we can't read the fixed header,
141 count it as a wrong format error, not a system call error, since
142 the object file might simply be too small.
143
144 * targets.c (target_vector): Added nlm32_alpha_vec inside #ifdef
145 BFD64.
146 * Makefile.in (BFD32_BACKENDS): Remove nlm32-alpha.o.
147 (BFD64_BACKENDS): Add nlm32-alpha.o. It depends on 64 bit
148 support, even though it is for an Alpha in 32 bit mode.
149 * configure.in (nlm32_alpha_vec): Set target64 to true.
150
151 * nlm32-gen.c, nlm64-gen.c: Removed. All nlm targets are
152 different, so there is no point to providing a generic one.
153 * libnlm.h: Don't bother to check for nlm_backend(bfd) being NULL
154 in the backend accessor macros; that should no longer be possible.
155 * targets.c (target_vector): Removed nlm32_big_generic_vec,
156 nlm64_big_generic_vec, nlm64_little_generic_vec.
157 * configure.in (nlm32_big_generic_vec, nlm32_little_generic_vec,
158 nlm64_big_generic_vec, nlm64_little_generic_vec): Removed.
159 * Makefile.in: Rebuilt dependencies, and
160 (BFD32_BACKENDS): Removed nlm32-gen.o.
161 (BFD64_BACKENDS): Removed nlm64-gen.o.
162 (CFILES): Removed nlm32-gen.c and nlm64-gen.c.
163
559d5074
ILT
164 * hp300hpux.c (ARCH_SIZE): Define before including aoutx.h.
165
2f84ec0d
ILT
166 * linker.c (_bfd_generic_link_add_one_symbol): Add constructor and
167 bitsize arguments. Changed all callers (aoutx.h).
168 * libbfd-in.h (_bfd_generic_link_add_one_symbol): Add constructor
169 and bitsize arguments to declaration.
170 * libbfd.h: Rebuilt.
171
172 * ecoff.c: First cut at new style of linker backend for
173 ECOFF--added a bunch of functions. Also:
174 (ecoff_sec_to_styp_flags): Set flags for .pdata and .xdata.
175 (ecoff_slurp_symbolic_header): New function.
176 (ecoff_slurp_symbolic_info): Call ecoff_slurp_symbolic_header.
177 (ecoff_compute_reloc_file_positions): New function.
178 (ecoff_set_section_contents): Get out quickly if count is zero.
179 Check errors better.
180 (ecoff_write_object_contents): Put .xdata section in data segment.
181 Call ecoff_compute_reloc_file_positions. Don't output relocs or
182 external symbols if outsymbols is NULL.
183 (ecoff_bfd_final_link): Completely rewritten.
184 * libecoff.h: Include bfdlink.h.
185 (struct ecoff_backend_data): Add relocate_section field.
186 (ecoff_data_type): Add sym_hashes and symndx_to_section fields.
187 (struct ecoff_link_hash_entry): Define.
188 (struct ecoff_link_hash_table): Define.
189 (ecoff_bfd_link_add_symbols): Declare as function, not macro.
190 (ecoff_bfd_link_hash_table_create): Likewise.
191 * ecofflink.c (bfd_ecoff_debug_one_external): New function.
192 (bfd_ecoff_debug_externals): Call bfd_ecoff_debug_one_external.
193 * bfd-in.h (bfd_ecoff_debug_one_external): Declare.
194 * bfd-in2.h: Rebuilt.
195 * coff-alpha.c (alpha_howto_table): Mark BRADDR as
196 partial_inplace, and set the src_mask to 0x1fffff.
197 (alpha_ecoff_get_relocated_section_contents): Remove unused
198 variable gp_warned.
199 (alpha_convert_external_reloc): New static function.
200 (alpha_relocate_section): New static function.
201 (alpha_ecoff_backend_data): Initialize relocate_section field.
202 * coff-mips.c (mips_relocate_refhi): New static function.
203 (mips_relocate_section): New static function.
204 (mips_ecoff_backend_data): Initialize relocate_section field.
205
206 * reloc.c (_bfd_relocate_contents): Corrected signed overflow
207 checking when there is an addend.
208
209 * aoutx.h (NAME(aout,final_link)): Don't abort when trying to link
210 a non a.out file, just pass it to _bfd_default_link_order.
211 (aout_link_input_section_std): When doing a final PC relative link
212 against a section symbol, subtract the VMA of the input section.
213 (aout_link_input_section_ext): Likewise.
214
215 * linker.c (default_indirect_link_order): Renamed from
216 _bfd_generic_indirect_link_order and made static.
217 (_bfd_generic_final_link): Don't switch on link_order type, just
218 call _bfd_default_link_order.
219 (_bfd_default_link_order): Handle bfd_indirect_link_order type.
220 * genlink.h: Removed declaration of
221 _bfd_generic_indirect_link_order.
222 * elf32-mips.c (mips_elf_final_link): Don't switch on link_order
223 type, just call _bfd_default_link_order.
224
225Tue Jan 4 21:23:37 1994 Ian Lance Taylor ([email protected])
226
227 * linker.c (generic_link_check_archive_element): Base the name of
228 the created common section on the name of the section the symbol
229 came from.
230 (_bfd_generic_link_add_one_symbol): (case BIG): A common symbol
231 must have a section, so don't bother to create one.
232
83acd9a2
DM
233Mon Jan 3 15:32:16 1994 David J. Mackenzie ([email protected])
234
235 * aout-target.h (MY(vec)): Add DYNAMIC to mask of object flags.
236 * aoutf1.h (NAME(aout,sunos4_write_object_contents)):
237 If the DYNAMIC flag is set, set it in the exec header.
238 * aoutx.h (NAME(aout,some_aout_object_p)): If the object is
239 dynamically linked, set the DYNAMIC flag in the BFD.
240 * libaout.h (N_SET_DYNAMIC): New macro.
241 (N_DYNAMIC): Add missing 0 in mask.
242
031534b0
ILT
243Mon Jan 3 11:41:45 1994 Ian Lance Taylor ([email protected])
244
2f84ec0d
ILT
245 * ecoff.c (ecoff_get_extr): Don't output section symbols as
246 external symbols.
247
85d73944
ILT
248 * bfd-in.h, hash.c: Change bfd_hash_allocate argument from size_t
249 to unsigned int, because size_t may not be defined in bfd.h.
250 * bfd-in2.h: Rebuilt.
251
8120aa8f
ILT
252 * bfd-in.h (bfd_get{b,l}[_signed_]{16,32,64}): Declare argument to
253 be a const pointer.
254 * bfd-in2.h: Rebuilt.
255 * libbfd.c (bfd_get{b,l}[_signed_]{16,32,64}): Declare argument to
256 be a const pointer.
257 * targets.c (bfd_target): Change swap function pointers
258 accordingly.
259 * archive.c (do_slurp_coff_armap): Change swap accordingly.
260 * aix386-core.c: Change NO_GET and NO_GETS accordingly.
261 * hppabsd-core.c, hpux-core.c, irix-core.c, osf-core.c,
262 ptrace-core.c, trad-core.c: Change NO_GET and NO_SIGNED_GET
263 accordingly.
264
b59f0276
ILT
265 * libbfd-in.h (struct artdata): Added tdata field.
266 (_bfd_add_bfd_to_archive_cache): Declare.
2af2b7c4 267 (_bfd_get_elt_at_filepos): Declare.
b59f0276
ILT
268 (_bfd_snarf_ar_hdr): Renamed from snarf_ar_hdr.
269 * libbfd.h: Rebuilt.
270 * archive.c: Cleaned up some more.
271 (_bfd_generic_mkarchive, bfd_generic_archive_p): Initialize
272 pointer elements of artdata.
273 (_bfd_add_bfd_to_archive_cache): Renamed from add_bfd_to_cache.
274 (_bfd_snarf_ar_hdr): Renamed from snarf_ar_hdr.
2af2b7c4
ILT
275 (_bfd_get_elt_at_filepos): Renamed from get_elt_at_filepos.
276 (get_extended_arelt_filename, bfd_construct_extended_name_table,
277 bfd_ar_hdr_from_filesystem, compute_and_write_armap): Made static.
b59f0276
ILT
278 * ecoff.c: Some comment changes.
279 (ecoff_slurp_armap): Handle rename of snarf_ar_hdr. Set
280 ardata->tdata to raw_armap.
281 (ecoff_archive_p): Initialize pointer elements of artdata.
282 * coff-rs6000.c (rs6000coff_get_elt_at_filepos): Handle rename of
283 add_bfd_to_cache.
284
031534b0
ILT
285 * hash.c: Added some documentation.
286
3f99570e
JK
287Mon Jan 3 11:09:28 1994 Jim Kingdon ([email protected])
288
289 * aout-target.h, netbsd386.c: Replace NO_SWAP_MAGIC with SWAP_MAGIC,
290 and do the swapping here rather than calling ntohl from the N_*
291 macros. This cleans up assumptions about the size of a host long,
292 the existence to ntohl, etc.
293
e38bcbdb
RS
294Sat Jan 1 13:50:05 1994 Rob Savoye ([email protected])
295
296 * config.bfd: Add support for VSTa micro-kernel. It currently uses
297 i386-aout.
298
f4d7c848
DM
299Sat Jan 1 10:18:54 1994 David J. Mackenzie ([email protected])
300
00fe3f53 301 * hosts/i386mach3.h (HOST_SEGMENT_SIZE): Fix value.
f4d7c848
DM
302 * i386mach3.c (SEGMENT_SIZE): Fix value.
303
728472f1
ILT
304Fri Dec 31 16:23:43 1993 Ian Lance Taylor ([email protected])
305
306 Minor cleanups suggested by CodeCenter.
307 * aoutx.h, coffgen.c, ecoff.c, ecofflink.c, elf.c, libbfd.c,
308 linker.c, reloc.c, section.c, srec.c: Added /*ARGSUSED*/ as
309 appropriate.
310 * aoutx.h (struct external_exec): Removed unnecessary declaration.
311 (NAME(aout,some_aout_object_p)): Set some tdata pointers to NULL.
312 (adjust_z_magic): Removed useless variable data_vma.
313 (stringtab_init): Initialize hash_zero.
314 (add_to_stringtab): Removed unused fourth argument.
315 (NAME(aout,swap_std_reloc_out)): Removed useless variable
316 r_addend.
317 (aout_link_input_section): Added some casts.
318 * archive.c (get_extended_arelt_filename, do_slurp_coff_armap,
319 bfd_ar_hdr_from_filesystem, bsd_write_armap, coff_write_armap):
320 Minor code rewriting to make it more C like.
321 (do_slurp_bsd_armap): Added some casts.
322 * ecoff.c (ecoff_write_object_contents): Removed useless variable
323 scn_base.
324 (ecoff_write_armap): Added some casts. Use "" rather than "\0".
325 * ecofflink.c (bfd_ecoff_write_debug): Added a cast.
326 * libaout.h (struct internal_exec): Removed unnecessary
327 declaration.
328 * linker.c (_bfd_generic_indirect_link_order): Added a cast.
329 * opncls.c (new_bfd): Removed a cast.
330 * reloc.c (bfd_generic_get_relocated_section_contents): Added
331 some casts.
332 * srec.c (internal_srec_write_object_contents): Removed useless
333 variable bytes_written.
334
696df58f
DM
335Fri Dec 31 11:46:13 1993 David J. Mackenzie ([email protected])
336
337 * i386mach3.c (N_TXTADDR): Don't define after all.
338 (TEXT_START_ADDR): Don't include exec header size in value.
339
e450eb45
DM
340Thu Dec 30 15:47:54 1993 David J. Mackenzie ([email protected])
341
342 * i386mach3.c (N_TXTADDR): Define.
343
4c3721d5
ILT
344Thu Dec 30 13:37:24 1993 Ian Lance Taylor ([email protected])
345
346 Extensive changes to move the bulk of the linker into BFD so that
347 more efficient backend code can be written for specific object
348 files. Only existing efficient backend is a.out.
349 * seclet.c, seclet.h: Removed.
350 * hash.c, linker.c, genlink.h: New files.
351 * bfd-in.h: Removed bfd_error_vector. Declared hash table
352 structures and functions.
353 (JUMP_TABLE): Removed bfd_seclet_link, added
354 bfd_link_hash_table_create, bfd_link_add_symbols and
355 bfd_final_link.
356 * All backends: Changed accordingly.
357 * bfd-in2.h: Rebuilt.
358 * bfd.c (struct _bfd): Added link_next and archive_pass fields.
359 Removed ld_symbols field.
360 (bfd_nonrepresentable_section, bfd_undefined_symbol,
361 bfd_reloc_value_truncated, bfd_reloc_is_dangerous,
362 bfd_error_vector): Removed.
363 (bfd_default_error_trap, bfd_error_trap,
364 bfd_error_nonrepresentabltrap): Removed.
365 (bfd_get_relocated_section_contents): Pass link_info. Pass
366 link_order instead of seclet. Pass symbols.
367 (bfd_relax_section): Pass link_info.
368 (bfd_seclet_link): Removed.
369 (bfd_link_hash_table_create, bfd_link_add_symbols,
370 bfd_final_link): New macros.
371 * libbfd-in.h: If __GNUC__ is defined and alloca is not, define
372 alloca as __builtin_alloca. Declare internal linking functions.
373 * libbfd.h: Rebuilt.
374 * libbfd.c (bfd_seek): Comment out fseek assertion. It's worked
375 for months.
376 * reloc.c (reloc_howto_type): Added error_message argument to
377 special_function field. Changed all callers and all definitions.
378 (bfd_get_reloc_size): Make argument a const pointer.
379 (bfd_perform_relocation): Add error_message argument to hold
380 string set if return value if bfd_reloc_dangerous. Changed all
381 callers.
382 (_bfd_final_link_relocate, _bfd_relocate_contents): New functions.
383 * section.c (asection): Renamed seclets_head and seclets_tail to
384 link_order_head and link_order_tail.
385 * targets.c (bfd_target): Replaced seclet argument with link_info
386 and link_order and symbols arguments in
387 bfd_get_relocated_section_contents. Added symbols argument to
388 bfd_relax_section. Removed bfd_seclet_link. Added
389 bfd_link_hash_table_create, bfd_link_add_symbols and
390 bfd_final_link.
391 * libaout.h (struct aoutdata): Added external_syms,
392 external_sym_count, external_strings, sym_hashes fields.
393 (obj_aout_external_syms, obj_aout_external_sym_count,
394 obj_aout_external_strings, obj_aout_sym_hashes): New accessor
395 macros.
396 (WRITE_HEADERS): Only output symbols if outsymbols is not NULL.
397 * aoutx.h: Wrote new back end linker routines.
398 (translate_to_native_sym_flags): Return boolean value. Don't use
399 bfd_error_vector.
400 (NAME(aout,write_syms)): Return boolean value. Check return value
401 of translate_to_native_sym_flags and bfd_write.
402 * aout-target.h (final_link_callback): New function.
403 (MY_bfd_final_link): New function.
404 * aout-adobe.c (aout_adobe_write_object_contents): Check return
405 value of aout_32_write_syms.
406 * hp300hpux.c (MY(write_object_contents)): Likewise.
407 * i386lynx.c (WRITE_HEADERS): Likewise.
408 * libaout.h (WRITE_HEADERS): Likewise.
409 * bout.c: Changed functions to use link_info->callbacks rather
410 than bfd_error_vector, and link_orders rather than seclets.
411 * coff-alpha.c: Likewise.
412 * coff-h8300.c: Likewise.
413 * coff-h8500.c: Likewise.
414 * coff-sh.c: Likewise.
415 * coff-z8k.c: Likewise.
416 * elf32-hppa.c: Likewise.
417 * reloc16.c: Likewise.
418 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Look
419 up _gp in the hash table rather than in outsymbols.
420 * coff-a29k.c (a29k_reloc): Pass errors back in new error_message
421 argument rather than printing them.
422 * coffcode.h (bfd_coff_reloc16_extra_cases): Take link_info and
423 link_order arguments rather than seclet. Changed all uses and
424 definitions.
425 (bfd_coff_reloc16_estimate): Pass link_info arguments. Changed
426 all uses and definitions.
427 * libcoff.h: Rebuilt.
428 * ecoff.c (ecoff_get_extr): If symbol is defined by linker, but
429 not by ECOFF, make it scAbs.
430 (ecoff_bfd_final_link): Renamed from ecoff_bfd_seclet_link and
431 rewritten.
432 * elf32-mips.c (mips_elf_final_link): Renamed from
433 mips_elf_seclet_link and rewritten.
434 * elf32-hppa.c (elf32_hppa_stub_description): Added link_info
435 field.
436 (new_stub, add_stub_by_name, hppa_elf_build_arg_reloc_stub,
437 hppa_elf_build_long_branch_stub, hppa_look_for_stubs_in_section):
438 Added link_info arguments. Changed all callers.
439 * elfcode.h (elf_slurp_symbol_table): Don't quit if outsymbols is
440 not NULL.
441 * oasys.c (oasys_write_sections): Return boolean value rather than
442 using bfd_error_vector.
443 (oasys_write_object_contents): Check return value of
444 oasys_write_sections.
445 * hosts/std-host.h: Don't declare qsort or strtol.
446 * Makefile.in: Rebuild dependencies.
447 (BFD_LIBS): Removed seclet.o. Added hash.o and linker.o.
448 (CFILES): Removed seclet.c. Added hash.c and linker.c.
449 (HFILES): Removed seclet.h. Added genlink.h.
450
1adbf662
PS
451Thu Dec 30 07:41:36 1993 Peter Schauer ([email protected])
452
453 * section.c (bfd_get_section_contents): Return zero filled buffer
454 if section has no contents.
455
d1b44e83
ILT
456Tue Dec 28 12:43:54 1993 Ian Lance Taylor ([email protected])
457
458 * elf.c (bfd_elf_generic_reloc): If this is not an inplace reloc,
459 then skip bfd_perform_relocation even if the addend is non-zero.
460
a2805287
KR
461Tue Dec 21 09:22:19 1993 Ken Raeburn ([email protected])
462
463 * coffcode.h (coff_write_relocs) [SWAP_OUT_RELOC_OFFSET]: Copy
464 addend to r_offset field.
465
466 * Makefile.in (CFILES): Added coff-sparc.c. Rebuild dependencies.
467
468 * coff-sparc.c (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET,
469 CALC_ADDEND): Define.
470
471 * aix386-core.c (aix386_core_file_p): Use cd_regs[0] for computing
472 the offsetof because AIX /bin/cc does not like to take the address
473 of an array. (From Minh Tran-Le.)
474
277b2d2b
JL
475Thu Dec 16 13:06:32 1993 Jeffrey A. Law ([email protected])
476
a2805287
KR
477 * Thu Dec 16 15:41:06 1993 Peter Hoogenboom ([email protected])
478
479 * elf32-hppa.c (hppa_elf_build_arg_reloc_stub): Make sure to copy
480 the return pointer into %r2 if no jump-in-call-delay-slot
481 optimization was done.
482
277b2d2b
JL
483 * hosts/hp300bsd.h: Correctly identify 4.3BSD vs 4.4BSD.
484
f8af9b40
DM
485Wed Dec 15 08:04:16 1993 David J. Mackenzie ([email protected])
486
487 * hosts/std-host.h: (time): Don't declare; conflicts on Mach3.
488
489 * hosts/i386mach3.h (HOST_PAGE_SIZE): Set to 1 to avoid padding.
490 (HOST_SEGMENT_SIZE): Set to 0 for same reason.
491
492 * i386mach3.c (PAGE_SIZE, SEGMENT_SIZE): Same changes as above.
493 (TEXT_START_ADDR): Correct.
494 (MY_backend_data): Define.
495
496 * aoutx.h (adjust_o_magic, adjust_z_magic, adjust_n_magic):
497 New functions; code moved from aout_<size>_adjust_sizes_and_vmas.
498
c97ae6e4
JL
499Tue Dec 14 21:48:33 1993 Jeffrey A. Law ([email protected])
500
501 * som.c (som_begin_writing): Fix thinkos in auxiliary header
502 support.
503 (bfd_som_attach_aux_hdr): Likewise.
504
a36b6f1d
JL
505Mon Dec 13 23:34:48 1993 Jeffrey A. Law ([email protected])
506
507 * elf32-hppa.c (hppa_elf_gen_reloc_type): Handle 'T' field
508 selectors for PIC code.
509
510 * som.c (hppa_som_gen_reloc_type): Handle 'T' field selectors.
511 (som_write_fixups): Handle R_DLT_REL, R_FSEL, R_RSEL, R_LSEL
512 relocations needed by PIC.
513
9e6f2498
SG
514Tue Dec 7 15:47:51 1993 Stu Grossman (grossman at cygnus.com)
515
516 * nlmcode.h: Fixes to avoid compiler warnings...
517
900e6d96
ILT
518Tue Dec 7 15:10:54 1993 Ian Lance Taylor ([email protected])
519
520 * libnlm.h (nlm_backend_data): Removed macro definition.
521 (nlm_alpha_backend_data): Adjusted accordingly.
522
017a52d7
JL
523Sun Dec 5 19:32:08 1993 Jeffrey A. Law ([email protected])
524
f6c2300b
JL
525 * som.c (som_begin_writing): Flesh out code for handling simple
526 auxiliary headers.
527 (bfd_som_attach_aux_hdr): New function.
528
529 * som.h (struct somdata): Add fields for attaching version and
530 copyright headers. Add accessor macros.
531
744069b8
JL
532 * som.c (R_DLT_REL, R_AUX_UNWIND, R_SEC_STMT): Add protected
533 definitions for old versions of HPUX which fail to define them.
534 (som_hppa_howto_talbe): Add R_DLT_REL, R_AUX_UNWIND, and R_SEC_STMT
535 now that they're safe. Delete bogus R_STATEMENT relocations.
536
017a52d7
JL
537 * som.c (som_hppa_howto_table): Add missing R_END_TRY. Delete
538 extra R_DATA_OVERRIDE.
539 (hppa_som_gen_reloc_type): Generate a relocation for the rounding
540 mode selector if needed.
541 (som_write_fixups): Handle requests for a change in the default
542 rounding mode. Rounding modes do not consume input bytes, but
543 are just markers much like R_ENTRY and R_EXIT.
544
48eb5281
JL
545Sat Dec 4 19:40:32 1993 Jeffrey A. Law ([email protected])
546
547 Fri Dec 3 09:55:17 1993 Pete Hoogenboom ([email protected])
548
017a52d7
JL
549 * elf32-hppa.c: (hppa_elf_reloc): Do not do code reordering when
550 the branch instruction as originally been nullified.
551 hppa_elf_reloc): Avoid useless call to bfd_put_32 () in the
552 case of no code reordering due to an LDO instruction in the
553 delay slot of the branch. Make sure to relocate the correct
554 instruction. Do not perform instruction reordering for millicode
555 calls.
556 (hppa_elf_build_arg_reloc_stub): Change the relocation type
557 to R_HPPA_STUB_CALL_17 when special processing might be needed.
558 (hppa_elf_build_long_branch_stub): Prevent code reordering on
559 a call from a linker stub to another linker stub and for millicode
560 calls. Do not trash the return register for calls from one linker
561 stub to a second linker stub.
562
4861ac76
JL
563 * elf32-hppa.c: (elf_hppa_howto_table): PLABEL and DLT
564 relocations are not pc-relative.
565
48eb5281
JL
566 * hppa_stubs.h: (BLE_N_XXX_0_31): New instruction used in
567 linker stub code.
568 (COPY_2_31): Likewise.
569
ecb2d887
ILT
570Fri Dec 3 18:40:58 1993 Ian Lance Taylor ([email protected])
571
572 * config/solaris2.mh (HDEFINES): Remove -Dconst=
573 * hosts/solaris.h: If not __GNUC__, define const as empty.
574
800748cd
ILT
575Thu Dec 2 15:43:32 1993 Ian Lance Taylor ([email protected])
576
4919d3ab
ILT
577 * ecoff.c: Added various casts for 32/64 bit cross targeting.
578 (ecoff_mkobject_hook): Set SEC_SHARED_LIBRARY for the .reginfo
579 section so that the linker ignores it.
580 * ecofflink.c: Added various casts for 32/64 bit cross targeting.
581 (ecoff_add_bytes): Changed need argument to size_t.
582 (bfd_ecoff_debug_link_other): Check return value of
583 ecoff_add_string.
584
585 * libbfd-in.h (new_bfd): Use void rather than an empty parameter
586 list.
587 * libbfd.h: Rebuilt.
588
800748cd
ILT
589 * libnlm.h (struct nlm_obj_tdata): New field backend_data.
590 (nlm_backend_data, nlm_alpha_backend_data): New accessor macros.
591 (struct nlm_backend_data): New field no_uninitialized_data.
592 (nlm_no_uninitialized_data): New accessor macro.
593 * nlmcode.h (nlm_compute_section_file_positions): Handle
594 no_uninitialized_data.
595 (nlm_external_reloc_compare): Sort relocs by address for a
596 particular symbol, to make the sort more stable.
597 (nlm_write_object_contents): Cast the arguments to qsort. Get the
598 value of a debugging symbol the same way we get the value of a
599 normal symbol.
600 * nlm32-alpha.c: Various changes. Write out GP and .lita relocs.
601 Set no_uninitialized_data to true.
602 * nlm32-i386.c (nlm32_i386_backend), nlm32-sparc.c
603 (nlm32_sparc_backend): Set no_uninitialized_data field false.
604 * nlmswap.h (nlm_swap_fixed_header_out): Zero out destination
605 before filling it in.
606
a7f6a456
JL
607Wed Dec 1 21:47:58 1993 Jeffrey A. Law ([email protected])
608
609 * som.c (som_section_type, som_decode_symcalss): New functions.
610 (som_get_symbol_info): Use them.
611 (som_slurp_symbol_table): Set the section of common and undefined
612 symbols correctly.
613
848ace96
KR
614Wed Dec 1 14:15:10 1993 Ken Raeburn ([email protected])
615
616 * elfcode.h (write_relocs): Initialize local var LAST_SYM_IDX, to
617 make gcc happy.
618
619 * mipsbsd.c: Changes from Ralph Campbell:
620 (mips_howto_table_ext): MIPS_RELOC_LO16 should use
621 complain_overflow_dont.
622 (aout_mips_*_vec): Make name use "a.out" instead of "aout", to
623 make gdb happy.
624
625 * bfd.c (bfd_errmsgs): Reword invalid-target message.
626
627 * config.bfd: For sparc*-*-coff, use sparc-coff.
628 * configure.in: Handle sparccoff_vec.
629 * targets.c (sparccoff_vec): Declare.
630
631 * reloc.c (bfd_get_reloc_size): New function.
632 (struct reloc_howto_type): Update documentation of size field.
633
2f555d79
ILT
634Wed Dec 1 14:39:05 1993 Ian Lance Taylor ([email protected])
635
68eaffda
ILT
636 * nlm32-alpha.c: New file; preliminary Alpha NetWare support.
637 * config.bfd (alpha-*-netware*): New target; use alpha-nlm.
638 * config/alpha-nlm.mt: New file.
639 * configure.in (nlm32_alpha_vec): New vector; use nlm32-alpha.o,
640 nlm32.o, and nlm.o.
641 * Makefile.in (BFD32_BACKENDS): Added nlm32-alpha.o.
642 (CFILES): Added nlm32-alpha.c.
643 Rebuilt dependencies.
644 * targets.c (nlm32_alpha_vec): Declare.
645
646 * libnlm.h (struct nlm_backend_data): New fields
647 optional_prefix_size, nlm_backend_object_p, nlm_write_prefix,
648 nlm_set_public_section, nlm_get_public_offset. Removed unused
649 nlm_write_reloc field. Changed nlm_write_import to remove
650 unnecessary symbol argument. Renamed nlm_write_externals to
651 nlm_write_external, and changed cound argument from bfd_vma to
652 bfd_size_type.
653 (nlm_optional_prefix_size, nlm_backend_object_p_func,
654 nlm_write_prefix_func, nlm_set_public_section_func,
655 nlm_get_public_offset_func): New accessor macros.
656 (nlm_write_reloc_func): Removed.
657 (nlm_write_external_func): Adjusted for field renaming.
658 * nlm32-i386.c (nlm_i386_write_import): Renamed from
659 nlm_i386_write_reloc. Removed old nlm_i386_write_import which
660 just called old nlm_i386_write_reloc.
661 (nlm_i386_write_external): Renamed from nlm_i386_write_externals.
662 Declared. Changed second argument from bfd_vma to bfd_size_type.
663 (nlm32_i386_backend): Adjusted for changes to fields and names.
664 * nlm32-sparc.c (nlm_sparc_mangle_relocs): Removed unused,
665 ifdeffed out code.
666 (nlm_sparc_write_import): Removed second argument.
667 (nlm_sparc_write_external): Renamed from
668 nlm_sparc_write_externals. Changed second argument from bfd_vma
669 to bfd_size_type.
670 (nlm32_sparc_backend): Adjusted for changes to fields and names.
671 * nlmcode.h: Removed some unused code.
672 (nlm_object_p): Don't destroy tdata pointer. Call
673 backend_object_p function if it exists.
674 (nlm_slurp_symbol_table): Removed unused variable rcount. Call
675 set_public_section_func if it exists instead of checking
676 NLM_HIBIT.
677 (nlm_compute_section_file_positions): Account for
678 optional_prefix_size.
679 (nlm_write_object_contents): Account for optional_prefix_size.
680 Removed useless variable write_reloc_func. Changed declaration
681 and call of write_import_func. Call write_prefix_func if it
682 exists. Removed unused variables len and temp. Call
683 get_public_offset_func if it exists rather than setting NLM_HIBIT.
684 * nlmswap.h: Declare functions.
685
2f555d79
ILT
686 * bfd-in.h (uint64_typeLOW, uint64_typeHIGH): Fully parenthesize
687 for clarity.
688 (fprintf_vma, sprintf_vma): Use %lx, not %x.
689 * bfd-in2.h: Rebuilt.
690 * hosts/alphaosf.h (uint64_typeLOW, uint64_typeHIGH): Cast results
691 to unsigned long.
692
693 * config.bfd: Don't set target64 here, as the setting is ignored.
694 * configure.in (ecoffalpha_little_vec): Set target64.
695
696 * config/alphaosf.mt (TDEFINES): Removed; setting host parameters
697 in TDEFINES is wrong.
698
699 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
700 Remove unused variable output_section.
701
7cd39d69
ILT
702Tue Nov 30 16:45:23 1993 Ian Lance Taylor ([email protected])
703
704 * irix-core.c: New file for Irix 4 and Irix 5 core support.
705 Functions taken out of coff-mips.c. Handle vmap type VMAPFILE.
706 * coff-mips.c: Irix 4 core file support moved to irix-core.c.
707 * targets.c: If IRIX_CORE defined, include irix_core_vec in
708 target_vector.
709 * config/irix4.mh (HDEFINES): Add -DIRIX_CORE.
710 (HDEPFILES): Define to be irix-core.o.
711 * config/irix5.mh (HDEFINES): Define to be -DIRIX_CORE.
712 (HDEPFILES): Define to be irix-core.o.
713 * Makefile.in (OPTIONAL_BACKENDS): Added irix-core.o. Removed
714 sco-core.o, which no longer exists.
715 (CFILES): Added all *-core.c files.
716 Rebuilt dependencies.
717
8d12f138
ILT
718Wed Nov 24 02:02:41 1993 Ian Lance Taylor ([email protected])
719
6c35a16d
ILT
720 * elfcode.h (map_program_segments): Restore check of file_size !=
721 mem_size, but only if SHT_PROGBITS.
722
8d12f138
ILT
723 * ecofflink.c: New file to hold ECOFF debug information linking
724 routines.
725 * ecoff.c (ecoff_clear_output_flags, ecoff_rel, ecoff_dump_seclet,
726 ecoff_add_string, ecoff_get_debug): Removed. Functionality now in
727 ecofflink.c.
728 (ecoff_get_extr, ecoff_set_index): New functions.
729 (ecoff_slurp_symbolic_info): Don't save raw_size.
730 (ecoff_bfd_seclet_link): Rewrote to use ecofflink.c functions.
731 (ecoff_compute_section_file_positions): Don't set EXEC_P just
732 because there is a start address.
733 (ecoff_write_object_contents): Handle external symbols here. Use
734 ecofflink.c functions to write out debugging information.
735 * elf32-mips.c (mips_elf_read_ecoff_info, mips_elf_get_extr,
736 mips_elf_set_index): New functions.
737 (mips_elf_seclet_link): Discard empty sections, the .options
738 section and .gptab sections. Handle linking .mdebug section.
739 * libecoff.h (ecoff_data_type): Removed raw_size and ifdbase.
740 * libelf.h (elf_symbol_type): Added mips_extr to tc_data union.
741 * bfd-in.h: Added prototypes for routines in ecofflink.c (some are
742 called by gas, so they are public).
743 * bfd-in2.h: Rebuilt.
744 * Makefile.in (BFD_LIBS): Added ecofflink.o.
745 (CFILES): Added ecofflink.c.
746 (ecofflink.o): New target. Rebuilt dependencies.
747
abb324b2
JL
748Mon Nov 22 22:26:42 1993 Jeffrey A. Law ([email protected])
749
750 * som.c (hppa_object_p): Also recognize SHARED_MAGIC_CNX as
751 a valid magic number if it's been defined.
752
8f45f604
ILT
753Mon Nov 22 14:17:36 1993 Ian Lance Taylor ([email protected])
754
755 * ecoff.c (ecoff_mkobject): Don't create .scommon section; linker
756 no longer requires it.
757 (ecoff_bfd_seclet_link, ecoff_sizeof_headers,
758 ecoff_write_object_contents): Don't treat .scommon section
759 specially.
760
c236d8b3
FF
761Mon Nov 22 10:54:27 1993 Fred Fish ([email protected])
762
763 Merged changes from [email protected] (Kevin A. Buettner):
764 * bfd/config/delta88.mh (HDEFINES): Define this to be -DPTRACE_CORE.
765 * bfd/config/delta88.mh (HDEPFILES): Defined to be ptrace-core.o.
766 * bfd/ptrace-core.c: New file for dealing with core files with
767 start with the ptrace_user structure found on BCS compliant systems.
768 * bfd/targets.c (ptrace_core_vec): New vector.
769
36456a67
JL
770Mon Nov 22 02:33:12 1993 Jeffrey A. Law ([email protected])
771
772 * Minimal support for reading SOM fixup streams. Allows
773 objdump -r to do something reasonable.
774 * som.c (som_get_reloc_upper_bound): Implement.
775 (som_canonicalize_reloc): Implement.
776 (som_set_reloc_info, som_slurp_reloc_table): New functions.
777
8d12f138
ILT
778Sun Nov 21 13:46:55 1993 Ken Raeburn ([email protected])
779
780 * hosts/lynx.h (FPRINTF_ALREADY_DECLARED): Define.
781 * hosts/sparclynx.h: Include lynx.h instead of duplicating it.
782
a1bff336
ILT
783Fri Nov 19 14:34:04 1993 Ian Lance Taylor ([email protected])
784
533af031
ILT
785 * coff-a29k.c (a29k_reloc): For R_IREL, don't left shift
786 signed_value before sign extending it. Don't subtract out
787 reloc_entry->address. This makes it compatible with what gas is
788 generating.
789
a1bff336
ILT
790 * elfcode.h (elf_fake_sections): Accept .sbss as the name for a
791 SHT_NOBITS sections.
792 (map_program_segments): Don't leave the loop after the first
793 SHT_NOBITS section.
794 (assign_file_positions_except_relocs): Only force sh_offset and
795 sh_addr to match modulo maxpagesize for a section which is not
796 SHT_NOBITS. Changed the method used to force page alignment after
797 a SHT_NOBITS section to only do it for the last such consecutive
798 section, and to really force page alignment.
799
96be1f52
KR
800Fri Nov 19 04:02:01 1993 Ken Raeburn ([email protected])
801
4c01d9b5
KR
802 * coffcode.h (coff_slurp_symbol_table): Print more verbose message
803 in the case of an unknown (or unhandled) storage class.
804
96be1f52
KR
805 * config/i386-lynx.mt (TDEFINES): FPRINTF_ALREADY_DECLARED should
806 not be defined here, since it is a host attribute, not a target
807 one.
808 * config/m68k-lynx.mt, config/sparc-lynx.mt: Ditto.
809
810 * coffcode.h (coff_bfd_reloc_type_lookup): Don't define if already
811 defined.
812
813 * coff-sparc.c: Define some relocations, based on ELF relocations.
814 (enum reloc_type, bfd_coff_generic_reloc, coff_sparc_howto_table,
815 struct coff_reloc_map, sparc_reloc_map,
816 coff_sparc_reloc_type_lookup): Borrowed from elf32-sparc.c and
817 elf.c, renamed.
818 (coff_bfd_reloc_type_lookup): Define to be coff_sparc_reloc_....
819 (rtype2howto): Index into coff_sparc_howto_table using
820 dst->r_type.
821
f8944f84
ILT
822Thu Nov 18 11:45:39 1993 Ian Lance Taylor ([email protected])
823
824 * config.bfd (mips*-*-irix5*): New target; use mipsbelf.
825 * configure.host (mips-sgi-irix5*) New host; use irix5 (no
826 hosts/irix5.h created; just use std-host.h).
827 * config/irix5.mh: New file; like irix4.mh, but don't use -G or
828 -lmalloc.
829 * Makefile.in: Rebuilt dependencies.
830
831 * ecoffswap.h: Changed type of internal pointers for swap out
832 functions to const *.
833
834 * elf32-mips.c (mips_elf_got16_reloc): New function. Handle GOT16
835 correctly for assembler, but linker support not implemented.
836 (elf_mips_howto_table): Use mips_elf_got16_reloc for GOT16.
837 (mips_elf_sym_is_global): New function; at least on Irix 5, all
838 non section symbols are considered global.
839 (elf_backend_sym_is_global): Define.
840 (mips_elf_final_write_processing): New function. Set the MIPS
841 architecture level correctly.
842 (elf_backend_final_write_processing): Define.
843 (mips_elf_section_from_shdr): Handle SHT_MIPS_OPTIONS.
844 (mips_elf_fake_sections): Set entsize of .mdebug or .reginfo
845 section to 1. Handle .options section.
846 (mips_elf_acom_section, mips_elf_acom_symbol,
847 mips_elf_acom_symbol_ptr): New static variables, used to build a
848 generic .acommon section to hold SHN_MIPS_ACOMMON symbols.
849 (mips_elf_symbol_processing): Handle SHN_MIPS_ACOMMON symbols by
850 putting them all in a global .acommon section.
851
852 * elfcode.h (bfd_section_from_shdr): Don't dump core if target
853 section has no ELF section data.
854 (elf_make_sections): Set addralign of reloc section to 4.
855 (elf_fake_sections): Likewise.
856 (map_program_segments): Don't consider section 0.
857 (assign_file_positions_except_relocs): Don't consider section 0.
858 In the main loop, skip the symtab and strtab sections, since their
859 positions are set elsewhere.
860 (swap_out_syms): Set addralign of symtab section to 4. Set
861 addralign of strtab sections to 1.
862 (assign_file_positions_for_relocs): Don't consider section 0.
863 (write_object_contents): Don't write out section 0.
864
865 * libelf.h (struct elf_backend_data): Added fields
866 elf_backend_sym_is_global and elf_backend_final_write_processing.
867 * elf32-target.h (elf32_bed): Added corresponding initializers.
868 * elf64-target.h (elf64_bed): Likewise.
869 * elfcode.h (sym_is_global): Take abfd argument. Call
870 elf_backend_sym_is_global if it is not NULL.
871 (elf_map_symbols): Pass abfd to sym_is_global.
872 (write_object_contents): Call elf_backend_final_write_processing
873 if it is defined.
874
c9668c58
ILT
875Wed Nov 17 18:43:28 1993 Ian Lance Taylor ([email protected])
876
877 * libecoff.h: Include coff/ecoff.h.
878 (struct ecoff_backend_data): Move external debugging information
879 fields into a single field pointing to an ecoff_debug_swap
880 structure.
881 (ecoff_data_type): Move debugging information fields into a single
882 field pointing to an ecoff_debug_info structure.
883 * coff-alpha.c, coff-mips.c, ecoff.c: Corresponding changes.
884
2f555d79
ILT
885Wed Nov 17 17:38:58 1993 Sean Eric Fagan ([email protected])
886
887 * nlmswap.h: New file to swap fixed header. Included by NLM
888 backends.
889 * libnlm.h (struct reloc_and_sec): Define.
890 (struct nlm_backend_data): Add fields fixed_header_size,
891 nlm_read_import, nlm_write_import, nlm_swap_fhdr_in,
892 nlm_swap_fhdr_out.
893 (nlm_fixed_header_size, nlm_read_import_func,
894 nlm_write_import_func, nlm_swap_fixed_header_in_func,
895 nlm_swap_fixed_header_out_func, nlm_write_external_func): New
896 accessor macros.
897 * nlmcode.h: Use new functions.
898 * nlm32-i386.c: Provide new functions.
899 * nlm32-sparc.c: New file; SPARC NLM backend.
900
55ff7aef
SS
901Wed Nov 17 13:56:10 1993 Stan Shebs ([email protected])
902
903 * i386lynx.c (swap_std_reloc_in, swap_ext_reloc_in): Ignore
904 garbage bits appearing in the upper end of symbolnums.
905
906 * config/sparc-lynx.mt (TDEFINES): Add -DFPRINTF_ALREADY_DECLARED.
907
343c1a96
SG
908Tue Nov 16 17:03:41 1993 Stu Grossman (grossman at cygnus.com)
909
910 * lynx-core.c (lynx_core_file_p): Change bfd_zalloc to bfd_alloc.
911 * m68klynx.c: Define core file macros.
912 * hosts/i386lynx.h, hosts/m68klynx.h, hosts/lynx.h: Move all
913 non-architecture specific stuff into lynx.h.
914
794057a7
JK
915Tue Nov 16 15:45:54 1993 Jim Kingdon ([email protected])
916
917 * i386linux.c: Define new macro ZMAGIC_DISK_BLOCK_SIZE to 1024, and
918 change PAGE_SIZE to 4096.
919
920Mon Nov 15 11:48:08 1993 Ken Raeburn ([email protected])
921
922 * Makefile.in (diststuff): New target.
923
924 * VERSION: Updated.
925
09796011
JL
926Sun Nov 14 23:33:01 1993 Jeffrey A. Law ([email protected])
927
3be54498
JL
928 * som.c (som_object_setup): Do not create dummy ".text", ".data",
929 and ".bss" sections.
930 (setup_sections): Do not set SEC_HAS_CONTENTS if a section's size
931 is zero. Recognize BSS type sections and turn off SEC_LOAD and
932 SEC_DATA (so binutils/size works). Set the correct value for
933 a section's _raw_size.
934 (som_slurp_symbol_table): Program entry points, and millicode are
935 also functions. Mark them as such. Also mark L$* symbols as
936 debugging symbols.
937
09796011
JL
938 * bfd-in2.h: Rebuilt.
939
aff97790
JL
940Sat Nov 13 15:27:15 1993 Jeffrey A. Law ([email protected])
941
91c0bcbb
JL
942 * som.c (som_bfd_reloc_type_lookup): Add missing prototype. Returns
943 a pointer to constant data. Delete bogus #define which made the
944 function useless.
945
aff97790 946 * som.c (som_prep_for_fixups): New function.
9d0dea6f 947 (som_write_fixups): New function.
0b35f7ec 948 (som_write_space_strings): New function.
6eb64408
JL
949 (som_write_symbol_strings): New function.
950 (som_begin_writing): New function.
aff97790 951
40249bfb
JL
952Fri Nov 12 15:29:36 1993 Jeffrey A. Law ([email protected])
953
980bac64
JL
954 * som.c (som_write_object_contents): Do not abort. Flesh out.
955 (som_set_section_contents): Do not abort. Flesh out.
956
efc0df7c
JL
957 * som.c (som_write_headers): New function.
958 (som_prep_headers): New function.
713de7ec 959 (som_build_and_write_symbol_table): New function.
7057b78f 960
2212ff92
JL
961 * som.c (som_sizeof_headers): Add missing prototype.
962 (som_set_arch_mach): Do not abort.
963
5532fc5a
JL
964 * som.c (som_count_spaces): New function.
965 (som_count_subspaces): New function.
966 (compare_syms): New function.
967 (som_compute_checksum): New function.
968
32619c58
JL
969 * som.c (hppa_som_gen_reloc_type): New function.
970 (som_bfd_reloc_type_lookup): New function.
971
54bbfd37
JL
972 * som.c (try_prev_fixup): New function.
973 (som_reloc_skip): New function.
974 (som_reloc_addend): New function.
efc0df7c 975 (som_reloc_call): New function.
54bbfd37 976
d125665c
JL
977 * som.c (som_initialize_reloc_queue): New function.
978 (som_reloc_queue_insert): Likewise.
979 (som_reloc_queue_fix): Likewise.
980 (som_reloc_queue_find): Likewise.
981
fcb0c846
JL
982 * som.c (som_hppa_howto_table): SOM howto relocation table.
983 (hppa_som_reloc): New function.
984
4fdb66cd
JL
985 * som.c (struct reloc_queue): New structure to keep track of
986 the last four multibyte relocations emitted.
987 (enum pa_symbol_type): Type to fully describe the symbol types
988 associated with .import/.export assembler directives.
989
70f1d738
JL
990 * som.c: Include libhppa.h
991
40249bfb
JL
992 * som.c (bfd_som_set_section_attributes): New function.
993 (bfd_som_set_subsection_attributes): Likewise.
994 (bfd_som_set_symboL_type): Likewise.
995 (bfd_som_attach_unwind_info): Likewise.
996 * som.h: Declare new exported functions.
997
998 * som.h (struct som_symbol): Add new fields to hold additional
999 information needed to build/write symbol tables and fixup streams.
1000 (struct som_section_data_struct): Add new fields to hold additional
1001 information needed to build/write space and subspace headers.
1002 (som_symbol_data): New accessor macro for SOM symbol information.
1003 (R_HPPA_*): Basic relocation types to be used by the assembler.
1004
115f7430
JK
1005Fri Nov 12 11:00:28 1993 Jim Kingdon ([email protected])
1006
1007 * trad-core.c (trad_unix_core_file_p): If new hook
1008 TRAD_CORE_ALLOW_ANY_EXTRA_SIZE defined, then skip the check for the
1009 corefile being too big.
1010 * hosts/i386sco.h: Define it.
1011
3e80841e
JL
1012Thu Nov 11 15:16:28 1993 Jeffrey A. Law ([email protected])
1013
8a71bf96
JL
1014 * bfd.c (struct _bfd): Add hppabsd_core_data.
1015 * targets.c (target_vector): Add hppabsd_core_vec.
1016 * hpux-core.c (hpux_core_core_file_p): Fail if an unknown core
1017 section is encountered during core section scanning.
1018 * hppabsd-core.c: New file.
1019 * config/hppabsd.mh: Enable HPPA BSD core files.
1020
3e80841e
JL
1021 * elf32-hppa.c (hppa_elf_reloc): Remove DEFUN crud. Remove code
1022 which is either commented out or ifdef'd out. Add, update and
1023 clean comments. Fix various indention and spacing problems. Handle
1024 problems related to using "ble" to jump to a stub rather than "bl"
1025 (%r31 is trashed by "ble", but not by "bl").
1026 (NEW_INSTRUCTION): Put inside curly braces.
1027 (CURRENT_STUB_OFFSET): Fix indention problems.
1028 (hppa_elf_build_arg_reloc_stub): Fix indention and spacing problems.
1029 Add, update and clean comments. Handle "ble" %r31 lossage problems.
1030 (hppa_elf_build_long_branch_stub): Likewise.
1031 (hppa_look_for_stubs_in_section): Likewise.
1032 (hppa_elf_stub_check): Remove obsolete function.
1033
1034 * hppa_stubs.h: Add new instructions to deal with %r31 lossage
1035 problems. Delete unused instructions.
1036
0f5bc783
SS
1037Tue Nov 9 11:40:27 1993 Stan Shebs ([email protected])
1038
1039 * m68klynx.c (TARGET_IS_BIG_ENDIAN_P): Define.
1040
95469b02
ILT
1041Tue Nov 9 11:26:05 1993 Ian Lance Taylor ([email protected])
1042
346f0414
ILT
1043 * elfcode.h (elf_object_p): Rather than looking through an array
1044 of architectures, get the ELF EM_xxx code from the backend
1045 information. Let the generic ELF target match any EM_xxx code not
1046 matched by another ELF target. Call elf_backend_object_p to let
1047 the backend do more checks and set global information.
1048 * libelf.h (struct elf_backend_data): Added elf_machine_code and
1049 elf_backend_object_p fields.
1050 (struct bfd_elf_arch_map): Removed.
1051 (bfd_elf_arch_map, bfd_elf_arch_map_size): Don't declare.
1052 * elf32-target.h, elf64-target.h: Initialize elf_machine_code
1053 field with ELF_MACHINE_CODE. Initialize elf_backend_object_p
1054 field with elf_backend_object_p (if it is defined).
1055 * elf32-gen.c, elf32-hppa.c, elf32-i386.c, elf32-i860.c,
1056 elf32-m68k.c, elf32-m88k.c, elf32-mips.c, elf32-sparc.c,
1057 elf64-gen.c (ELF_MACHINE_CODE): Defined.
1058 * elf32-mips.c: Include ecoffswap.h to get ECOFF swapping
1059 routines.
1060 (mips_elf_object_p): Set the right machine number.
1061 (mips_elf_ecoff_debug_swap): Defined.
1062 (elf_backend_object_p): Defined to be mips_elf_object_p.
1063 (elf_backend_ecoff_debug_swap): Defined to be
1064 mips_elf_ecoff_debug_swap.
1065 * elf.c (bfd_elf_arch_map, bfd_elf_arch_map_size): Removed.
1066
1067 * libbfd-in.h (target_vector, default_vector): Declare.
1068 * libbfd.h: Rebuilt.
1069 * format.c (target_vector, default_vector): Don't declare.
1070
1071 * elf32-mips.c (elf_mips_howto_table): Don't complain on overflow
1072 for R_MIPS_26. Correct overflow detection requires matching the
1073 upper four bits of the destination against the PC. From Ted Lemon
1074 <[email protected]>.
1075
1076 * bout.c (b_out_reloc_type_lookup): Return type should point to
1077 const data.
1078 * coff-i960.c (coff_i960_reloc_type_lookup): Likewise.
1079 * elf32-hppa.c (elf_hppa_reloc_type_lookup): Likewise.
1080 * mipsbsd.c (MY(reloc_howto_type_lookup)): Likewise.
1081 * coff-i386.c (coff_i386_reloc): Made howto const.
1082 * oasys.c (oasys_write_data): Made how const.
1083
95469b02
ILT
1084 * libelf.h: Added some comments.
1085 (struct elf_backend_data): Added elf_backend_ecoff_debug_swap
1086 field. Removed unused write_relocs field.
1087 * elf32-target.h: Adjusted elf_backend_data initialization
1088 accordingly.
1089 * elf64-target.h: Corrected elf_backend_data initialization to
1090 fill in all fields and to set elf_64_p to 1.
1091
e2756048
ILT
1092Mon Nov 8 18:13:14 1993 Ian Lance Taylor ([email protected])
1093
7b8106b4
ILT
1094 * elfcode.h (bfd_section_from_shdr): Remove duplicate assignment
1095 to filepos in SHT_STRTAB case.
1096 (assign_file_position_for_section): Set BFD section filepos as
1097 well as ELF section sh_offset.
1098
e2756048
ILT
1099 * reloc.c: Use const instead of CONST.
1100 (bfd_perform_relocation): Make variable howto a const pointer.
1101 * bfd-in2.h, libbfd.h: Rebuilt.
1102
1103Mon Nov 8 12:19:15 1993 Jim Kingdon ([email protected])
1104
1105 * Makefile.in (realclean): Don't remove generated headers. Reverts
1106 change of 2 Jul 1993.
1107
007455de
DHW
1108Mon Nov 8 06:08:31 1993 D. V. Henkel-Wallace ([email protected])
1109
1110 * configure.bfd: make unixware equivalent to sysv4.
1111
1112 * config/i386-nlm.mt: bring in elf config; make it the default.
1113
1d3e8847
JL
1114Sun Nov 7 20:21:38 1993 Jeffrey A. Law ([email protected])
1115
1116 * libbfd.c (bfd_put_8): Add parens around reference to "val"
1117 argument.
1118
2ccb88c0
DM
1119Fri Nov 5 21:45:09 1993 David J. Mackenzie ([email protected])
1120
1121 * hosts/i386mach3.h (HOST_SEGMENT_SIZE),
1122 i386mach3.c (SEGMENT_SIZE, TEXT_START_ADDR): Correct values (?).
1123
0f396d2a
ILT
1124Fri Nov 5 15:17:57 1993 Ian Lance Taylor ([email protected])
1125
1126 * coffcode.h (coff_write_object_contents): Zero out internal_a.
1127
c188b0be
DM
1128Fri Nov 5 10:41:07 1993 David J. Mackenzie ([email protected])
1129
1130 * aoutx.h, archive.c, archures.c, bfd.c, cache.c, coffcode.h,
1131 core.c, ctor.c, format.c, init.c, libbfd.c, opncls.c, reloc.c,
1132 section.c, syms.c, targets.c:
1133 Doc cleanup (spelling, punctuation, grammar, formatting).
1134 * bfd-in2.h, libbfd.h: Rebuild.
c188b0be 1135
baf205c4
JG
1136Thu Nov 4 14:46:14 1993 John Gilmore ([email protected])
1137
1138 * bfd-in.h (bfd_get_cacheable, bfd_set_cacheable): New accessors.
1139 * bfd.c, opncls.c: Improve comments on file descriptor cacheing.
1140
fa8e8648
JL
1141Thu Nov 4 08:54:30 1993 Jeffrey A. Law ([email protected])
1142
1143 * From Pete Hoogenboom ([email protected])
1144 * elf32-hppa.c (hppa_elf_get_section_contents): Fix logic error
1145 in last change. Always rebuild symbol extension section the first
1146 time though if output sections exist (fixes ld -r problems).
1147
d5d53b0a
JW
1148Thu Nov 04 08:08:46 1993 Jeffrey Wheat ([email protected])
1149
1150 * Makefile.in: Add .PHONY for check and installcheck rules.
1151
1152Tue Nov 2 14:42:27 1993 Bill Cox ([email protected])
1153
1154 * libbfd-in.h (artdata): Use long, not time_t for portability, at
1155 least to HPUX. File below is a derived file.
1156
31eb3ead
BC
1157Tue Nov 2 14:42:27 1993 Bill Cox ([email protected])
1158
1159 * libbfd.h (artdata): Use long, not time_t for portability, at
1160 least to HPUX.
1161
242f60e2
JK
1162Tue Nov 2 09:32:25 1993 Jim Kingdon ([email protected])
1163
1164 * config.bfd: Use bigmips for mips*-*-bsd*.
1165
55d5b62d
ILT
1166Mon Nov 1 14:30:09 1993 Ian Lance Taylor ([email protected])
1167
f2e945df
ILT
1168 * elfcode.h (elf_slurp_reloca_table, elf_slurp_reloc_table):
1169 Handle symbol number of zero.
1170
7386c3b7
ILT
1171 * reloc.c (enum bfd_reloc_code_real): Added
1172 BFD_RELOC_MIPS_LITERAL, BFD_RELOC_MIPS_GOT16,
1173 BFD_RELOC_MIPS_CALL16, BFD_RELOC_MIPS_GPREL32.
1174 * bfd-in2.h: Rebuilt.
1175 * coff-mips.c (mips_bfd_reloc_type_lookup): Handle
1176 BFD_RELOC_MIPS_LITERAL.
1177 * elf32-mips.c (mips_reloc_map): Handle new relocs.
1178 (mips_elf_hi16_reloc, mips_elf_lo16_reloc): Rearrange _gp_disp
1179 checks slightly.
1180
55d5b62d
ILT
1181 * aout-target.h (MY_bfd_debug_info_start, MY_bfd_debug_info_end,
1182 MY_bfd_debug_info_accumulat [sic]): Remove unused definitions.
1183 (MY_bfd_get_relocated_section_contents, MY_bfd_relax_section,
1184 MY_bfd_seclet_link): Define.
1185 (MY_bfd_reloc_type_lookup): Rename from
1186 MY_reloc_howto_type_lookup.
1187 (MY_bfd_make_debug_symbol): Rename from MY_make_debug_symbol.
1188 (MY(vec)): Use JUMP_TABLE rather than listing functions.
1189 * hp300hpux.c (MY_get_symtab, MY_get_symtab_upper_bound,
1190 MY_canonicalize_reloc, MY_write_object_contents): Don't define in
1191 terms of MY, because that causes a recusive invocation of CAT when
1192 expanded within JUMP_TABLE, and ANSI compilers don't expand
1193 recursive macros.
1194 * mipsbsd.c (MY_bfd_reloc_type_lookup): Rename from
1195 MY_reloc_howto_type_lookup, and don't define in terms of MY.
1196 (MY_canonicalize_reloc): Don't define in terms of MY.
1197 (aout_mips_little_vec, aout_mips_big_vec): Use JUMP_TABLE rather
1198 than listing functions.
1199
6198b7a1
JK
1200Mon Nov 1 09:12:25 1993 Jim Kingdon ([email protected])
1201
1202 * config.bfd: Use m68k-elf for m68*-*-sysv4*.
1203
ceeca31c 1204See file ChangeLog.1
e6d739eb 1205
41126f15
JK
1206\f
1207Local Variables:
1208mode: indented-text
1209left-margin: 8
1210fill-column: 74
1211version-control: never
1212End:
This page took 0.298082 seconds and 4 git commands to generate.