]> Git Repo - binutils.git/blame - bfd/ChangeLog
* config/m68k/tm-dpx2.h: Include tm-m68k.h not nonexistent tm-68k.h.
[binutils.git] / bfd / ChangeLog
CommitLineData
bdf1b511
PS
1Wed Mar 30 00:31:49 1994 Peter Schauer ([email protected])
2
3 * i386dynix.c, config/i386-dynix.mt: New files, handling Dynix
4 variant of a.out.
5 * configure.in, config.bfd: Use them for Dynix.
6 * Makefile.in: Add dependencies for i386dynix.o.
7 * targets.c: Add definition for i386dynix_vec.
8 * hosts/symmetry.h: Do not define TRAD_CORE_USER_OFFSET for Dynix.
9 Define HOST_DATA_START_ADDR and TRAD_UNIX_CORE_FILE_FAILING_SIGNAL
10 for Dynix. Remove inclusion of dynix3.h, Dynix bfd is now handled by
11 i386dynix.c
12
a8a916c8
ILT
13Mon Mar 28 12:53:27 1994 Ian Lance Taylor ([email protected])
14
9f37f56a
ILT
15 * Makefile.in (BFD32_BACKENDS): Add coff-sparc.o.
16
09a28207
ILT
17 * coffcode.h (coff_set_flags): Handle bfd_arch_powerpc like
18 bfd_arch_rs6000.
19
ce8f1f60 20 * config.bfd (powerpc-*-aix*): New target; use rs6000.mt.
34632537
ILT
21 * config/rs6000.mt (SELECT_ARCHITECTURES): Add bfd_powerpc_arch.
22
a8a916c8
ILT
23 * aoutx.h (translate_from_native_sym_flags): Set SEC_RELOC flag
24 for generated constructor section.
25
25057836
JL
26Sat Mar 26 10:25:43 1994 Jeffrey A. Law ([email protected])
27
f977e865
JL
28 * som.c (som_get_section_contents): New function. Do not try
29 to actually read data from a section that doesn't have either
30 SEC_LOAD or SEC_DEBUGGING set (eg $BSS$) just return true.
31
25057836
JL
32 * libbfd.c (bfd_read): Set bfd_error as appropriate for a short
33 read. (bfd_error_system_call or bfd_error_file_truncated).
34
35 * som.c: Do not blindly set bfd_error_system_call after a
36 failing bfd_read, bfd_write, or bfd_seek. In a few places
37 (like som_object_p) override the error status set by bfd_read.
38
39 * aix386-core.c, aout-encap,c archive.c, bout.c: Likewise.
40 * coff-rs6000.c, coffgen.c ecoff.c, elf.c: Likewise.
41 * elf32-hppa.c, elfcode.h, hp300hpux.c, i386lynx.c: Likewise.
42 * nlm32-alpha.c, nlm32-i386.c, nlm32-sparc.c: Likewise.
43
44 * som.c: Check return values from several bfd_{seek,read,write}
45 calls that we just assumed were not failing.
46
471c3c3f
JK
47Fri Mar 25 11:44:06 1994 Jim Kingdon ([email protected])
48
49 * hosts/sysv4.h (HAVE_PROCFS): Add comments about ptx4.
50 * config/sysv4.mh: Add comment.
51 * config/symmetry.mh: Change comment.
52 * configure.host: Use sysv4, not symmetry, for i[34]86-sequent-sysv4*.
53
ec099b4b
ILT
54Fri Mar 25 17:10:45 1994 Ian Lance Taylor ([email protected])
55
a3a33af3 56 Changes to support linker relaxing of embedded MIPS PIC code to
471c3c3f 57 use a five instruction sequence for function calls which are out of
a3a33af3
ILT
58 range of the bal instruction.
59 * libecoff.h (struct ecoff_section_tdata): Define.
60 (ecoff_section_data): Define.
61 (ecoff_bfd_relax_section): Don't define.
62 * ecoff.c (ecoff_final_link_debug_accumulate): Don't read or free
63 the debugging information if it has already been read.
64 (ecoff_indirect_link_order): Handle _cooked_size being different
65 from _raw_size. Don't reread the contents or the relocs if they
66 have already been read in.
67 * coff-mips.c (mips_howto_table): Change bitsize of PCREL16 from
68 18 to 16.
69 (PCREL16_EXPANSION_ADJUSTMENT): Define.
70 (mips_relocate_refhi): Take adjust argument.
71 (mips_relocate_section): Handle reloc offsets stored in section
72 used_by_bfd field. Call mips_relax_pcrel16 to handle details of
73 expanding an out of range PCREL16. Keep trace of adjustments
74 required by expansions. Set s and unset h when converting a reloc
75 from undefined to section. Change handling of PC relative relocs:
76 if against a section, they are correct in the object file, if
77 against an external symbol they are pcrel_offset.
78 (mips_relax_section): New function.
79 (mips_relax_pcrel16): New function.
80 (ecoff_bfd_relax_section): Define.
81 * coff-alpha.c (ecoff_bfd_relax_section): Define.
82 * ecofflink.c (bfd_ecoff_debug_accumulate): Handle adjustments
83 built by mips_relax_section when writing out addresses.
84 * elf32-mips.c (mips_elf_read_ecoff_info): Clear adjust field.
85
ec099b4b
ILT
86 * aoutx.h (NAME(aout,find_nearest_line)): The caller expects
87 functionname_ptr to be set to a symbol name, so prepend
88 symbol_leading_char.
89
47e70c54
SC
90Thu Mar 24 11:33:46 1994 Steve Chamberlain ([email protected])
91
92 * coff-h8300.c (h8300_reloc16_extra_cases): Add relaxing info
93 for 16bit relative branches.
94 * coff-h8500.c (r_high8, r_low16, r_high16): Don't complain on
95 overflow.
96
9d7f682f
JL
97Thu Mar 24 09:21:13 1994 Jeffrey A. Law ([email protected])
98
99 * som.c (som_bfd_prep_for_ar_write): Ignore non-SOM objects.
100 (som_bfd_ar_write_symbol_stuff, som_write_armap): Likewise.
101
102Wed Mar 23 14:29:31 1994 David J. Mackenzie ([email protected])
103
104 * netbsd386.c (N_SET_FLAGS): Delete the old definition.
105
456961d1
ILT
106Wed Mar 23 14:58:44 1994 Ian Lance Taylor ([email protected])
107
108 Clean up the relaxing code for the new linker.
109 * targets.c (_bfd_relax_section): Take boolean *again argument
110 rather than asymbol list.
111 * bfd.c (bfd_relax_section): Change name of fourth argument from
112 symbols to again.
113 * reloc.c (bfd_generic_relax_section): Take boolean *again
114 argument rather than asymbol list. Always return true.
115 * bout.c: Include genlink.h.
116 (aligncode, perform_slip): Declare.
117 (perform_slip): Take BFD argument rather than asymbol list.
118 Changed all callers. Get the symbols from the BFD. Change the
119 hash table entry value as well as the symbol value.
120 (abs32code): Take BFD argument rather than asymbol list. Changed
121 all callers.
122 (aligncode): Likewise.
123 (b_out_relax_section): Take boolean *again argument rather than
124 asymbol list. Only return false if an error occurred. Set *again
125 to false. Get symbols from BFD.
126 * reloc16.c: Include genlink.h.
127 (bfd_perform_slip): Take BFD argument rather than asymbol list.
128 Get the symbols from the BFD. Change the hash table entry value
129 as well as the symbol value.
130 (bfd_coff_reloc16_relax_section): Take boolean *again argument
131 rather than asymbol list. Only return false if an error occurred.
132 Set *again to false. Get symbols from BFD.
133 * coffcode.h (bfd_coff_backend_data): Change
134 _bfd_coff_reloc16_estimate to take BFD argument rather than
135 asymbol list.
136 (bfd_coff_reloc16_estimate): Corresponding change.
137 (dummy_reloc16_estimate): Corresponding change.
138 * libcoff-in.h (bfd_coff_reloc16_relax_section): Change
139 declaration to take boolean * rather than asymbol list.
140 (bfd_perform_slip): Change declaration to take BFD rather than
141 asymbol list.
142 * coff-h8300.c (h300_reloc16_estimate): Take BFD argument rather
143 than asymbol list. Changed calls to bfd_perform_slip.
144 * bfd-in2.h: Rebuilt.
145 * libbfd.h: Rebuilt.
146 * libcoff.h: Rebuilt.
147 * Makefile.in: Rebuilt dependencies.
148
149 * genlink.h (_bfd_generic_link_get_symbols): Define.
150 (_bfd_generic_link_get_symcount): Define.
151 * linker.c (generic_link_read_symbols): New function.
152 (generic_link_add_object_symbols): Use it. Use
153 _bfd_generic_link_get_symbols and _bfd_generic_link_get_symcount
154 to get the symbols from the BFD.
155 (generic_link_check_archive_element): Likewise.
156 (_bfd_generic_final_link): Likewise.
157 (_bfd_generic_link_output_symbols): Likewise.
158 (default_indirect_link_order): Likewise.
159 (generic_link_add_symbol_list): Store pointer to hash table entry
160 in asymbol udata field.
161
4335ce64
ILT
162Tue Mar 22 13:09:44 1994 Ian Lance Taylor ([email protected])
163
c031ba0b
ILT
164 * coff-mips.c (mips_howto_table): Add entry for new MIPS_R_PCREL16
165 reloc, used in embedded PIC code.
166 (mips_adjust_reloc_in): Change sanity check to permit new reloc.
167 (mips_bfd_reloc_type_lookup): Turn BFD_RELOC_16_PCREL_S2 into
168 MIPS_R_PCREL16.
169
4335ce64
ILT
170 * elf32-mips.c (mips_elf_final_link): Account for link_order
171 relocs when allocating space for relocations. Set SEC_RELOC flag
172 for any section which has relocs. Handle link_order relocs in
173 link_order loop. Use _bfd_generic_link_add_symbols_collect for
174 add_symbls entry point.
175
176 * linker.c (_bfd_generic_final_link): Set reloc_count to 0 before
177 counting relocs. Set SEC_RELOC flag for any section which has
178 relocs.
179
180 * linker.c (_bfd_default_link_order): Handle bfd_data_link_order.
181
182 * linker.c (_bfd_generic_link_add_symbols): Just call
183 generic_link_add_symbols.
184 (_bfd_generic_link_add_symbols_collect): New function, like
185 _bfd_generic_link_add_symbols but also collect constructors and
186 destructors by name as collect2 does.
187 (generic_link_add_symbols): New function, like old
188 _bfd_generic_link_add_symbols but with collect argument.
189 (generic_link_add_object_symbols): Take collect argument.
190 (generic_link_check_archive_element_no_collect): New function.
191 (generic_link_check_archive_element_collect): New function.
192 (generic_link_check_archive_element): Take collect argument.
193 (generic_link_add_symbol_list): Take collect argument.
194 (_bfd_generic_link_add_one_symbol): Rename constructor argument to
195 collect.
196 * libbfd-in.h (_bfd_generic_link_add_symbols_collect): Declare.
197 * libbfd.h: Rebuilt.
198
9d92fe0a
JL
199Tue Mar 22 10:04:00 1994 Jeffrey A. Law ([email protected])
200
201 * archive.c (bfd_construct_extended_name_table): Use ar_padchar
202 for first character in an extended name.
203 (_bfd_write_archive_contents): If ar_padchar == '/', then use
204 "//" as the name of the special archive member holding the
205 extended name table.
206
f1cca647
ILT
207Mon Mar 21 12:28:19 1994 Ian Lance Taylor ([email protected])
208
209 Support for link_order types which generate relocs in order to
210 support -Ur in the linker.
211 * linker.c (generic_link_add_symbol_list): Remove bitsize argument
212 from call to _bfd_generic_link_add_one_symbol.
213 (_bfd_generic_link_add_one_symbol): Remove bitsize argument.
214 Don't pass bitsize to constructor call back. Pass BFD_RELOC_CTOR
215 instead of bitsize to add_to_set call back.
216 (_bfd_generic_final_link): Account for link_order relocs when
217 allocating space for relocations. Handle them in link_order loop.
218 (_bfd_generic_reloc_link_order): New function.
219 (_bfd_default_link_order): If a reloc_link_order is seen here,
220 abort.
221 (_bfd_count_link_order_relocs): New function.
222 * libbfd-in.h (_bfd_generic_link_add_one_symbol): Remove bitsize
223 argument from declaration.
224 (_bfd_generic_reloc_link_order): Declare.
225 (_bfd_count_link_order_relocs): Declare.
226 * libbfd.h: Rebuilt.
227 * aoutx.h (aout_link_add_symbols): Remove bitsize argument from
228 call to _bfd_generic_link_add_one_symbol.
229 (NAME(aout,final_link)): Account for link_order relocs when
230 allocating space for relocations. Handle them after handling all
231 input BFDs.
232 (aout_link_reloc_link_order): New function.
233 * ecoff.c (ecoff_link_add_externals): Remove bitsize argument from
234 call to _bfd_generic_link_add_one_symbol.
235 (ecoff_bfd_final_link): Account for link_order relocs when
236 allocating space for relocations. Handle them in link_order loop.
237 (ecoff_link_write_external): Set the storage class of a defined
238 linker created symbol based on the section it is in. Correct
239 bfd_link_hash_weak case to use .sc rather than .st.
240 (ecoff_reloc_link_order): New function.
241 * coff-alpha.c (alpha_bfd_reloc_type_lookup): Handle
242 BFD_RELOC_CTOR.
243 * coff-mips.c (mips_bfd_reloc_type_lookup): Likewise.
244
245 * sunos.c (sunos_read_dynamic_info): Remove unused locals dynsym
246 and buf.
247
248 * cisco-core.c (cisco_core_file_p): Only pass one argument to
249 bfd_zmalloc. Free a pointer, not a union.
250 (cisco_bfd_is_local_label): Correct cast from asection to asymbol.
251
142f59f4
JL
252Sun Mar 20 09:24:36 1994 Jeffrey A. Law ([email protected])
253
17e64ad3
JL
254 * bfd/som.c (som_begin_writing): Fix thinko (off by one error).
255
c2e1207b
JL
256 * som.c (bfd_section_from_som_symbol): Only to do the value
257 comparison for function symbols within executables.
258
c05d2d43
JL
259 * som.c (bfd_section_from_som_symbol): Renamed from
260 som_section_from_subspace_index. Pass in a native SOM symbol.
261 For executables, iterate through the sections to find out
262 which contains the symbol's address rather than using the
263 symbol_info field. (symbol_info has a different meaning for
264 dynamicly linked executables.)
265
61bcbf40
JL
266 * trad-core.c (trad_unix_core_file_p): Don't pass abfd to
267 bfd_zmalloc.
268
517a6af6
JL
269 * som.c (som_begin_writing): Fix braino (one call to align
270 space/subspace data was done unconditionally rather than
271 just for executables.)
272
142f59f4
JL
273 * som.c (som_begin_writing): Align text in all executables to
274 make HPUX kernel happy. Fixes strip/objcopy for shared
275 executables.
276
00806436
JL
277Sat Mar 19 07:06:59 1994 Jeffrey A. Law ([email protected])
278
279 * som.c (som_begin_writing): Account for alignment needs of
280 subspaces too when writing executables. Never request a negative
281 bss size. Fixes some problems with demand paged executables,
282 still having problems with pure executables and shared executables.
283
f3f29240
JK
284Fri Mar 18 19:12:47 1994 Jim Kingdon ([email protected])
285
286 * trad-core.c (trad_unix_core_file_p): Call bfd_zmalloc not
287 bfd_zalloc for rawptr, because later on we may call free, not
288 bfd_release, on it.
289
290 * bfd.c (struct _bfd): Add cisco_core_struct to tdata union.
291 * libbfd.c (bfd_read, bfd_seek): Add comments regarding errors.
292 * cisco-core.c: New file.
47dc9b52
JK
293 * Makefile.in: Change accordingly.
294 * configure.in: Recognize cisco_core_vec.
295 * config/m68k-aout.mt (SELECT_VECS): Add cisco_core_vec.
296 * targets.c: Add cisco_core_vec.
f3f29240
JK
297 * bfd-in2.h: Rebuilt.
298
3b499495
JL
299Fri Mar 18 18:13:49 1994 Jeffrey A. Law ([email protected])
300
15766917
JL
301 * som.h (som_copyable_section_data_struct): New structure
302 containing all the private section information which needs
303 to be copied from input section to output section during
304 objcopy or strip.
305 (som_section_data_struct): Remove several fields now in
306 som_copyable_section_data_struct. Make the space and
307 subspace dictionaries be pointers (to save space when
308 only reading objects).
309
310 * som.c (bfd_som_set_section_attributes): Now returns a boolean;
311 some references changed. Allocate a copyable data stucture if
312 none exists. Store info into the copyable data structure.
313 (bfd_som_set_subsection_attributes): Likewise.
314 (som_is_space, som_is_subspace, som_is_container): New functions.
315 Use these instead of directly accessing private data.
316 (som_prep_headers): Allocate space and subspace headers here.
317 Fill in some fields in the space/subspace headers from the
318 copyable data.
319 (som_bfd_copy_private_section_data): Only copy the stuff
320 that we really need to make objcopy and strip work. Allocate
321 the copy_data structure for the output bfd before copying.
322
4359a7ef
JL
323 * som.h (struct som_exec_data): New structure to hold exec
324 info that must be preserved when running objcopy/strip.
325 (struct somdata): Add new "exec_data" field and accessor
326 macro. Add some comments on how the various fields are used.
327 (som_section_data_struct): Make is_space and is_subspace bitfields.
328 Delete unused subspace_index. All references now use the
329 target_index field within the section structure itself.
330
331 * som.c (make_unique_section): Delete unused declaration.
332 (som_bfd_copy_private_bfd_data): New function.
333 (som_object_setup): Allocate space for and save exec information
334 that needs to be copied during objcopy/strip.
335 (som_mkobject): Do not allocate space for a file header here.
336 It is not used when only reading SOM objects.
337 (som_prep_headers): Allocate space for and attach a file header
338 to the output bfd. For executables, use the saved system_id
339 value rather than trying to guess the right value. Do not abort
340 wwhen setting file_hdr->entry* for executables.
341 (som_begin_writing): For executables, set the exec_entry and
342 exec_flags fields.
343 (som_copy_private_backend_section_data): Always return a value.
344
08b3c4f9
JL
345 * libhppa.h (PA_PAGESIZE): Define.
346
347 * som.c (SOM_ALIGN): Define.
348 (som_begin_writing): If writing an executable, initialize all
349 fields in the exec header to zero. Update fields in the exec
350 header as sizes of loadable subspaces are computed. Carefully
351 preserve alignments when building executables. Actually write the
352 exec after all the fields are filled in.
353
3b499495
JL
354 * Better long-filename handling. Reads SOM ABI compliant extended
355 names, but doesn't quite write compliant extended names yet.
356 * som.c (som_slurp_extended_name_table): Delete function. The
357 generic code will handle things correctly.
358 (som_slurp_armap): Seek to the beginning of the next member.
359 (normalize): New function.
360 (som_bfd_ar_write_symbol_stuff): Take the size of the extended
361 name table into account when computing the file offsets in the
362 SOM dictionary. Make sure to align to an even boundary.
363 (som_write_armap): Initialize the checksum to zero.
364 (ar_maxchars): Fix. Opps.
365
ff978570
KR
366Fri Mar 18 20:35:24 1994 Ken Raeburn ([email protected])
367
368 * aoutx.h (reloc_type_lookup): Handle BFD_RELOC_CTOR on a 64-bit
369 machine. Handle BFD_RELOC_SPARC13 and BFD_RELOC_SPARC_BASE13.
370
6f4aac6c
KR
371Thu Mar 17 18:26:46 1994 Ken Raeburn ([email protected])
372
5a66538b
KR
373 * bfd-in.h (BFD_VERSION): Use @VERSION@.
374 * Makefile.in (bfd.h): Replace it with contents of VERSION file.
375 * bfd-in2.h: Regenerated.
376
6f4aac6c
KR
377 * trad-core.c (trad_unix_bfd_is_local_label): Fixed typo where
378 this was also named trad_unix_bfd_copy_private_bfd_data.
379
8eb5d4be
JK
380Thu Mar 17 10:37:07 1994 Jim Kingdon ([email protected])
381
382 * aoutx.h, elfcode.h, coff-alpha.c, bout.c, ecoff.c, ecofflink.c,
383 elf32-hppa.c, elf32-mips.c, linker.c, som.c, sunos.c: If malloc(0)
384 returns NULL, it is not an error. It's possible that some of
385 these checks are not necessary (because the size can never be
386 zero), but putting in the checks is the conservative thing to do
387 in light of the fact that some of these malloc calls replaced
388 unchecked alloca calls, in which a zero argument would work fine.
389
1c6042ee
ILT
390Thu Mar 17 11:44:45 1994 Ian Lance Taylor ([email protected])
391
7838792b
ILT
392 * osf-core.c (osf_core_bfd_copy_private_bfd_data): Remove
393 duplicate definition.
394 (osf_core_bfd_is_local_label): Define.
395
4bbf7a49
ILT
396 * reloc.c (bfd_generic_get_relocated_section_contents): Don't fail
397 if malloc (0) fails. bfd_canonicalize_reloc returning 0 is not a
398 failure indication, it merely means there are no relocs.
399
1c6042ee
ILT
400 * elfcode.h (NAME(bfd_elf,write_object_contents)): Don't use space
401 after NAME, since SunOS /bin/cc can't handle it.
402
ae6710bc
DM
403Wed Mar 16 16:43:33 1994 David J. Mackenzie ([email protected])
404
405 * netbsd386.c (N_SET_FLAGS): Don't nuke the machine id field.
406 From [email protected] (Tasuki Hirata).
407
408Wed Mar 16 07:55:54 1994 Jim Kingdon ([email protected])
409
410 * aoutf1.h (4 places): Use a simple #if on ARCH_SIZE, rather than
411 all that convoluted stuff with NAME, CAT3, etc. The convoluted
412 stuff broke for SunOS4 /bin/cc (due to DEFUN elimination, I guess).
413
35ac8aac
JL
414Wed Mar 16 00:02:05 1994 Jeffrey A. Law ([email protected])
415
416 * som.c (som_prep_for_fixups): Detect section symbols based
417 on either the lack of private data or the symbol flags. Do not
418 munge section symbol names anymore -- they no longer confuse GDB.
419 (som_begin_writing): Leave space for an exec header if writing
420 an executable.
421 (som_slurp_symbol_table): Recognize both forms of section symbol
422 names "L$0\002" and "$<FOO>$". Change the name of "L$0\002"
423 section symbols to be the name of the section they represent.
424 Debugging symbols begin with "L$0\001", not just "L$".
425
5b3577cb
JL
426Tue Mar 15 22:58:28 1994 Jeffrey A. Law ([email protected])
427
428 * bfd-in2.h, libbfd.h, libcoff.h: Rebuilt.
429
430 * bfd-in.h (JUMP_TABLE): Add new entries to the jump table
431 for bfd_copy_private_section_data, bfd_copy_private_bfd_data,
432 and bfd_is_local_label.
433
434 * targets.c: Add new entries to the bfd_target structure.
435
436 * bfd.c (bfd_copy_private_bfd_data): New definition.
437
438 * section.c (bfd_copy_private_section_data): New definition.
439
440 * syms.c (bfd_is_local_label): New definition.
441
442 * libbfd-in.h (bfd_generic_is_local_label): Declare.
443
444 * libbfd.c (bfd_generic_is_local_label): New function.
445
446 * *-core.c: Provide default definitions for new functions in
447 the target vector which all point to bfd_false.
448
449 * aout-target.h, coffcode.h, elf32-target.h elf64-target.h, ieee.c
450 libaout.h, libecoff.h, nlm-target.h, oasys.c, srec.c, tekhex.c
451 Default new vectors for copying private backend data to bfd_true.
452 Default new vector for determining if a symbol is a local label
453 to bfd_generic_is_local_label.
454
455 * som.c (som_bfd_copy_private_section_data): New function.
456 (som_bfd_is_local_label): New function.
457 (som_bfd_copy_private_bfd_data): For now default to bfd_true.
458
459 * elf32-hppa.c (hppa_elf_is_local_label): New function.
460
0069bd06
ILT
461Tue Mar 15 23:55:47 1994 Ian Lance Taylor ([email protected])
462
463 * cf-m68klynx.c (CALC_ADDEND): Use _bfd_m68klynx_howto_table.
464
57a1867e
DM
465Tue Mar 15 04:41:13 1994 David J. Mackenzie ([email protected])
466
467 * Most files:
468 Replace DEFUN and DEFUN_VOID with K&R-style function definition.
469 Indent some of them to GNU standards.
470
471 * aout32.c, archures.c, core.c, cpu-h8300.c, cpu-i960.c,
472 cpu-m68k.c, cpu-m88k.c, cpu-mips.c, cpu-vax.c, ctor.c, demo64.c,
473 elf32-hppa.h, gen-aout.c, host-aout.c, init.c, libhppa.h,
474 libieee.h, liboasys.h, newsos3.c, som.h, stab-syms.c, sunos.c:
475 Update copyright years.
476
ec743cef
JL
477Mon Mar 14 11:41:23 1994 Jeffrey A. Law ([email protected])
478
baef2065
JL
479 * som.c (som_prep_for_fixups): A relocation involving the section
480 symbol for the *ABS* section is really a relocation involving
481 no symbol.
482 (som_slurp_symbol_table): Do not set BSF_GLOBAL or BSF_EXPORT for
483 undefined symbols. Correctly distinguish between debugger symbols
484 and section symbols.
485
b486fb13
JL
486 * som (setup_sections): Set SEC_DEBUGGING and the section attributes
487 for spaces and subspaces.
488
4c9db344
JL
489 * som.c (som_bfd_count_ar_symbols): Fix typo.
490
ec743cef
JL
491 * som.c (som_object_setup): Set EXEC_P, D_PAGED, WP_TEXT, and
492 HAS_RELOC based on the object's magic number.
493 (make_unique_section): Delete function. BFD and its users are
494 prepared to handle multiple sections with the same name.
495 (setup_sections): Allocate space on the BFD's obstack to hold
496 section names. Use bfd_make_setion_anyway rather than the
497 obsolete make_unique_section.
498 (som_prep_headers): Choose the correct SOM magic number based
499 on the BFD's flags.
500 (som_bfd_fill_in_ar_symbols): Return false, not NULL on error.
501
45ccfd58
ILT
502Sat Mar 12 09:46:09 1994 Ian Lance Taylor ([email protected])
503
504 * elf32-ppc.c: Renamed from elf32-powerpc.c.
505 start-sanitize-powerpc-netware
506 * nlm32-ppc.c: Renamed from nlm32-powerpc.c.
507 end-sanitize-powerpc-netware
508 * Makefile.in, configure.in: Corresponding changes.
509
92177c52
ILT
510Fri Mar 11 22:27:19 1994 Ian Lance Taylor ([email protected])
511
512 * elf32-powerpc.c: Extensive changes to update to preliminary ABI.
513
3e0b5554
PS
514Fri Mar 11 00:34:59 1994 Peter Schauer ([email protected])
515
516 * sunos.c (sunos_read_dynamic_info): Assume that dynamic info
517 is always located at the start of the data section to allow
518 recovery of the dynamic info from a stripped executable.
519 * ecoff.c (ecoff_styp_to_sec_flags): Handle STYP_PDATA, STYP_XDATA
520 and STYP_COMMENT.
521
80425e6c
JK
522Wed Mar 9 17:17:53 1994 Jim Kingdon ([email protected])
523
524 * libbfd-in.h: Remove alloca cruft. It was missing some necessary
525 cruft (like the #pragma alloca for AIX).
526 In addition to that problem, the C alloca calls xmalloc, which
527 means checking for being out of memory can't work right. The
528 following changes remove all uses of alloca from BFD.
529 * hosts/solaris2.h: Remove alloca cruft.
530 * som.c: Replace alloca with a fixed size auto array.
531 * aoutx.h, elfcode.h, nlmcode.h, bout.c, coff-alpha.c, ecoff.c,
d7fb4531
JK
532 ecofflink.c, elf32-hppa.c, elf32-mips.c, linker.c, reloc.c, som.c,
533 sunos.c: Replace alloca with malloc and appropriate error checking and
80425e6c
JK
534 freeing.
535 * linker.c: Replace alloca with obstack_alloc.
536 * libbfd.h: Rebuilt.
537
1404c365
ILT
538Tue Mar 8 12:10:38 1994 Ian Lance Taylor ([email protected])
539
540 * coff-mips.c (mips_relocate_section): Handle MIPS_R_LITERAL like
541 MIPS_R_GPREL.
542
25677b5b
PS
543Sat Mar 5 14:08:54 1994 Peter Schauer ([email protected])
544
545 * elf32-hppa.h, elfcode.h: Replace uses of Elf*_Half, Elf*_Word,
546 Elf*_Off typedefs by their expansion, the typedefs have been
547 removed from include/elf/internal.h.
802f4fe2
PS
548 * elfcode.h (bfd_section_from_shdr): Handle SHT_DYNAMIC section like
549 SHT_PROGBITS section.
25677b5b 550
7b5f6e48
JL
551Thu Mar 3 20:03:39 1994 Jeffrey A. Law ([email protected])
552
553 * som.h (_PA_RISC_ID): Treat HOST_HPPAOSF just like HOST_HPPABSD.
554
baf200d4
JK
555Wed Mar 2 13:28:06 1994 Jim Kingdon ([email protected])
556
557 * configure.host: Recognize i[34]86-sequent-*.
558
559 * trad-core.c (trad_unix_core_file_p): A non-zero, not zero,
560 return from bfd_seek indicates an error.
561 New macro TRAD_CORE_DSIZE_INCLUDES_TSIZE to replace
562 TRAD_CORE_STACK_OFFSET.
563 * hosts/symmetry.h: Define TRAD_CORE_DSIZE_INCLUDES_TSIZE and
564 TRAD_CORE_USER_OFFSET but not HOST_STACK_OFFSET.
565
44fd6622
JL
566Wed Mar 2 11:57:03 1994 Jeffrey A. Law ([email protected])
567
4e64845c
JL
568 * som.[ch]: Do not include libhppa.h in som.c, instead include
569 it in som.h.
570
571 * elf32-hppa.[ch]: Do not include libhppa.h in elf32-hppa.c, instead
572 include it in elf32-hppa.h.
573
98ecc945
JL
574 * som.c (log2): Return -1 on error rather than aborting.
575 (setup_sections): Bubble up an error from log2.
576
44fd6622
JL
577 * Changes to make HP C compiler happy in both traditional
578 and ANSI mode.
579 * som.c (hppa_som_gen_reloc_type): Use correct enum type for
580 field parameter.
581 (bfd_som_set_section_attributes): Use unsigned int rather than
582 unsigned char to avoid GNU-C extensions.
583 (bfd_som_attach_aux_hdr): Return a boolean to indicate success
584 or failure rather than aborting on failure.
585
586 * som.h (bfd_som_set_section_attributes): Fix prototype to match
587 som.c changes.
588 (bfd_som_attach_aux_hdr): Add prototype.
589 (hppa_som-gen_reloc_type): Likewise.
590
591 * elf32-hppa.c: Add a couple casts to make HP compiler happy.
592 (hppa_look_for_stubs_in_section): Do not return false on failure
593 until rest of code is ready to handle it. Abort for now.
594
d1f8b181
JK
595Tue Mar 1 18:33:59 1994 Jim Kingdon ([email protected])
596
597 * bfd-in2.h: Rebuilt.
598
85cc33c7
KH
599Tue Mar 1 13:06:53 1994 Kung Hsu ([email protected])
600
bb37e716
KH
601 * i386os9k.c: use new functions bfd_set_error and bfd_get_error.
602 * Makefile.in: delete an extra blank.
85cc33c7
KH
603 * configure.in : Add i396os9k_vec.
604
2f88343d
KH
605Mon Feb 28 15:41:01 1994 Kung Hsu ([email protected])
606
5143c305
KH
607 * config.bfd : Add i386-os9k.
608 * config/i386-os9k.mt : Newly add os9k target makefile.
609
2f88343d
KH
610 * i386os9k.c : new file to handle os9k format bfd.
611 * Makefile.in : Handle new file i386os9k.c
2f88343d
KH
612 * targets.c : Add bfd_target_os9k_flavour and i386os9k_vec.
613 * cache.c : Initialize cache_sentinel to 0.
614
6e58a4e5
JL
615Sun Feb 27 16:30:55 1994 Jeffrey A. Law ([email protected])
616
f3b477be
JL
617 * elf32-hppa.c (mismatches, retval_mismatches): Fix mismatch
618 action in case where caller specified no argument relocation.
619 (hppa_elf_build_linker_stub): Try again to get the sym_ptr_ptr
620 right in the original relocation and the stub's relocation.
621
6e58a4e5
JL
622 * elf32-hppa.h (hppa_look_for_stub_in_section): Fix typo. Delete
623 unused symbols argument.
624
625 * elf32-hppa.c (hppa_elf_stub_reloc): Accept asymbol ** rather
626 than asymbol * for original target symbol. All callers changed.
627 Set reloc->sym_ptr_ptr appropriately.
628 (hppa_elf_build_linker_stub): Set reloc->sym_ptr_ptr correctly.
629 (hppa_elf_look_for_stubs_in_section): No longer need symbols
630 argument. Use the output symbols when canonicalizing the relocs,
631 creating them if necessary.
632
633 * linker.c (_bfd_generic_link_output_symbols): Do not
634 rebuild/clobber the output symbols if they already exist.
635
4c8d6c9f
SS
636Sun Feb 27 15:22:36 1994 Stan Shebs ([email protected])
637
fdfe2d14
SS
638 * targets.c (BFD_SEND, BFD_SEND_FMT): Add debugging versions that
639 check all the pointer dereferences. Enabled via DEBUG_BFD_SEND.
640 * bfd-in2.h: Rebuilt.
641
4c8d6c9f
SS
642 * srec.c (hex_value): Always set to a size of 256 bytes.
643 (srec_init): Cosmetic changes.
644
e08b9ad7
JL
645Sun Feb 27 11:18:47 1994 Jeffrey A. Law ([email protected])
646
647 * elf32-hppa.c: Second half of major cleanup. More comments,
648 PARAMize and staticize rest of functions. Delete unused
649 functions. Delete unused/unnecessary arguments to some functions.
650 Group static vars together. Abort for bad errors until we have
651 error code propogation working. Work on spacing and indention.
652 Add FIXMEs for unresolved problems. Use enums rather than
653 #defines for lots of things. Merge two functions which build
654 linker stubs into a single function (so they can easily share a
655 ton of common code).
656
68241b2b
ILT
657Sat Feb 26 10:00:45 1994 Ian Lance Taylor ([email protected])
658
659 * reloc.c (_bfd_relocate_contents): Adjust handling of overflow to
660 avoid depending upon right shifts of signed numbers, and to
661 correct handling of src_mask with lower bits zero.
662
663 * aoutx.h, archive.c: Add casts to avoid warnings from SVR4 cc.
664 * ecoff.c, ecofflink.c, ecoffswap.h, srec.c: Likewise.
665 * elf32-i386.c: Likewise.
666 * elfcode.h (bfd_section_from_shdr): Make i unsigned; remove old
667 #if 0 code.
668 (elf_write_phdrs): Make i unsigned.
669 (map_program_segments): Make i and n_left unsigned.
670 (assign_file_positions_except_relocs): Make i unsigned.
671 (write_shdrs_and_ehdr): Make count unsigned.
672 (assign_file_positions_for_relocs): Make i unsigned.
673 (NAME(bfd,elf_write_object_contents)): Make count unsigned.
674 (section_from_elf_index): Make index argument unsigned.
675
96db3187
ILT
676Fri Feb 25 21:34:58 1994 Ian Lance Taylor ([email protected])
677
678 * elfcode.h: Don't include assert.h.
679 (swap_out_syms): Use BFD_ASSERT rather than assert.
680
681 * linker.c (_bfd_generic_link_write_global_symbol): Add missing
682 break in switch.
683
684 * hosts/i386v4.h (qsort, strtol): Remove incorrect and useless
685 declarations.
686
d6439785
JL
687Fri Feb 25 16:35:57 1994 Jeffrey A. Law ([email protected])
688
f5bfdacd
JL
689 * libhppa.h (hppa_rebuild_insn): Moved here from elf32-hppa.c.
690
691 * elf32-hppa.h (elf_hppa_tc_symbol): Add new arguments.
692 (elf_hppa_tc_make_sections): Likewise.
693 (elf_hppa_final_processing): Add extern decl.
694
695 * elf32-hppa.c: First half of major cleanup. Add/cleanup lots of
696 comments. PARAMize some static functions. Delete unused functions.
697 Delete unused/unnecessary arguments to many functions. Group
698 static vars together. Collapse common case statements together
699 in many places. Use default case when possible instead of listing
700 each case separately. Abort for bad errors until we get error
701 code propogation working. Work on spacing and indention problems.
702 Add FIXMEs for some unresolved problems. Delete hopelessly broken
703 COMPLEX relocation support (it's never used anyway).
704 (hppa_elf_rebuild_insn): Delete. Moved into libhppa.h.
705 (elf_hppa_tc_symbol): Accept and use new arguments (symext chains).
706 (elf_hppa_tc_make_sections): Likewise.
707
43ebdfcf
JL
708 * format.c (bfd_check_format_matches): Initialize matching_vector
709 to keep gcc -Wall quiet.
710
711 * elfcode.h (elf_slurp_reloca_table): Fix typo.
712
d6439785
JL
713 * som.c (som_get_symtab_upper_bound): Use "sizeof (asymbol *)"
714 not "sizeof (som_symbol_type *)".
715
716 * elfcode.h (elf_get_symtab_upper_bound): Use "sizeof (asymbol *)"
717 not "sizeof (asymbol"). Opps.
718
fbb8fe5c
ILT
719Fri Feb 25 13:19:04 1994 Ted Lemon ([email protected])
720
721 * bfd.c (bfd_get_gp_size): Can't return gp value on an archive.
722 (bfd_set_gp_size): Can't set gp value on an archive.
723
5e808126
SC
724Fri Feb 25 12:57:00 1994 Steve Chamberlain ([email protected])
725
726 * srec.c (pass_over): Don't skip too many characters when
727 end of line seen.
728
626f883f
ILT
729Fri Feb 25 11:41:57 1994 Ian Lance Taylor ([email protected])
730
731 * ecoff.c (ecoff_sizeof_headers): Align result to 16 byte
732 boundary.
733
734Thu Feb 24 07:13:22 1994 Jeffrey A. Law ([email protected])
735
736 * som.c (som_bfd_derive_misc_symbol_info): Derive symbol_info
737 field for absolute symbols in the same manner as undefined
738 and common symbols.
739
a69b39f0
PS
740Thu Feb 24 04:29:19 1994 Peter Schauer ([email protected])
741
742 * elfcode.h (elf_core_file_p): Check for core file e_machine match
743 like in elf_object_p.
744
2e7b92cf
JL
745Wed Feb 23 18:28:37 1994 Jeffrey A. Law ([email protected])
746
747 * elfcode.h (alloca): Delete declaration.
4f42757e
JL
748
749 * som.c (som_prep_headers): Use CPU_PA_RISC1_0 for magic
750 number rather than HP9000S800_ID. Note som.c is careful
751 to make sure CPU_PA_RISC1_0 is always defined.
752
891dc727
SS
753Mon Feb 21 10:12:02 1994 Stan Shebs ([email protected])
754
755 * Makefile.in (targets.o, archures.o): Use ALL_CFLAGS to supply
756 flags to explicit compile actions.
757
22a71fef
ILT
758Mon Feb 21 09:50:06 1994 Ian Lance Taylor ([email protected])
759
2f0deb19
ILT
760 * ecofflink.c (ecoff_write_symhdr): Set symhdr->magic here.
761 * ecoff.c (ecoff_write_object_contents): Make sure .bss section
762 ends on a page boundary if there is no symbol table.
763 (ecoff_bfd_final_link): Don't set symhdr->magic here.
764
aaca79a8
ILT
765 * hosts/hp300.h: Include <stdlib.h>; don't declare free.
766
2ab0b7f3
ILT
767 * som.c (som_bfd_count_ar_symbols): Use a pointer and alloca
768 rather than an array of variable size.
769 (som_bfd_fill_in_ar_symbols): Likewise.
770 (som_bfd_ar_write_symbol_stuff): Likewise.
771
22a71fef
ILT
772 * coff-alpha.c (alpha_relocate_section): Rewrite mask and shift
773 operation to avoid OSF 1.3 cc bug.
774 * ecoff.c (ecoff_write_object_contents): Make text_size, data_size
775 and bss_size bfd_size_type instead of unsigned long. Make
776 text_start and data_start bfd_vma instead of unsigned long.
777 * ecofflink.c (ecoff_add_string): Remove incorrect cast of return
778 value.
779
037ce95a
ILT
780Sun Feb 20 16:06:54 1994 Ian Lance Taylor ([email protected])
781
782 * linker.c (_bfd_generic_link_add_archive_symbols): Consider
783 symbols in the order they appear in the archive map.
784
3a1de3cc
PS
785Sat Feb 19 03:17:32 1994 Peter Schauer ([email protected])
786
787 * coff-alpha.c (reloc_nil): Add forward declaration, add missing
788 error_message argument.
789 * coff-sparc.c (bfd_coff_generic_reloc): Add forward declaration,
790 add missing error_message argument.
791 * mipsbsd.c (mips_fix_hi16_s): Add forward declaration, add missing
792 error_message argument.
793
99ec1f66
ILT
794Fri Feb 18 11:41:58 1994 Ian Lance Taylor ([email protected])
795
45ccfd58 796 start-sanitize-powerpc-netware
99ec1f66 797 Support for PowerPC NetWare.
92177c52 798 * nlm32-powerpc.c: New file.
99ec1f66
ILT
799 * config.bfd (powerpc-*-netware*): New target; use ppc-nlm.
800 * config/ppc-nlm.mt: New file.
801 * configure.in (nlm32_powerpc_vec): New target vector; use
802 nlm32-powerpc.o, nlm32.o, nlm.o.
803 * targets.c (nlm32_powerpc_vec): Declare.
804 * Makefile.in (BFD32_BACKENDS): Add nlm32-powerpc.o.
805 (CFILES): Should add nlm32-powerpc.c, but didn't, because the
806 dependencies can't be sanitized.
807 end-sanitize-powerpc-netware
808
809 Initial support for PowerPC ELF. Done without an ABI, and
810 probably to be changed when I get an ABI.
811 * config.bfd (powerpc-*-sysv4*): New target; use ppc-elf.
812 * config/ppc-elf.mt: New file.
813 * configure.in (bfd_elf32_powerpc_vec): New target vector; use
814 elf32-powerpc.o, elf32.o, elf.o.
815 * elf32-powerpc.c: New file.
816 * elfcode.h (prep_headers): Add bfd_arch_powerpc case.
817 (elf_set_arch_mach): Likewise.
818 * targets.c (bfd_elf32_powerpc_vec): Declare.
819 * Makefile.in (BFD32_BACKENDS): Add elf32-powerpc.o.
820 (CFILES): Add elf32-powerpc.c.
821 Rebuilt dependencies.
822
42f62ead
ILT
823Thu Feb 17 15:29:55 1994 Ian Lance Taylor ([email protected])
824
825 * coffgen.c (coff_write_linenumbers): Always return a value.
826
827 * elfcode.h (elf_slurp_symbol_table): Handle zero symbols
828 reasonably. Allocate x_symp using alloca.
829
830 * elfcode.h (map_program_segments): ELF program header entries
831 must be sorted by load address. This used to generate the entries
832 in reverse order.
833
834 * section.c (SEC_IN_MEMORY): Define.
835 (asection): Rename unused field otheruserdata to contents, and
836 make it char *.
837 (bfd_make_section_anyway): Initialize contents field to NULL.
838 (bfd_get_section_contents): If SEC_IN_MEMORY is set, get section
839 contents from contents field rather than from file.
840 * bfd-in2.h: Rebuilt.
841
d1ad85a6
DM
842Thu Feb 17 08:30:53 1994 David J. Mackenzie ([email protected])
843
844 * bfd.c (bfd_get_error, bfd_set_error): New functions.
845 (bfd_error): Make static.
846 (bfd_error_type): Renamed from bfd_ec. Prepend "bfd_error_" to
847 all values.
848 * bfd-in2.h: Regenerated.
849 * aix386-core.c, aout-adobe.c, aout-encap.c, aout-target.h,
850 aoutf1.h, aoutx.h, archive.c, archures.c,
851 bfd.c, bout.c, cache.c, coff-alpha.c, coff-mips.c,
852 coff-rs6000.c, coffcode.h, coffgen.c, core.c, ctor.c,
853 ecoff.c, ecofflink.c, elf.c, elf32-hppa.c, elf32-mips.c,
854 elfcode.h, format.c, hash.c, hp300hpux.c, hppabsd-core.c,
855 i386lynx.c, ieee.c, libbfd.c, libelf.h, linker.c,
856 lynx-core.c, nlm.c, nlm32-alpha.c, nlm32-i386.c,
857 nlm32-sparc.c, nlmcode.h, oasys.c, opncls.c, osf-core.c,
858 ptrace-core.c, reloc16.c, rs6000-core.c, section.c, som.c,
859 srec.c, sunos.c, syms.c, targets.c, tekhex.c,
860 trad-core.c: Change callers.
861
7430a991
JL
862Tue Feb 15 22:27:27 1994 Jeffrey A. Law ([email protected])
863
864 * som.c: Remove FIXMEs for things which have been dealt with.
865
54196ea1
KR
866Tue Feb 15 19:39:24 1994 Ken Raeburn ([email protected])
867
868 * section.c (bfd_get_section_contents): Since this function reads
869 unrelocated contents, the section's raw size is always the one to
870 use for bounds checking.
871
872 * linker.c (default_indirect_link_order): In assertion, compare
873 link_order size field against cooked size, not raw size, of input
874 section.
875
876 * bout.c (b_out_get_reloc_upper_bound): For BSS section, just
877 return 0.
878 (aligncode): When shrinking, the addend should be set to the
879 current offset in the section plus the number of bytes of padding
880 that will actually be retained.
881 (b_out_relax_section): If a section contains no relocations, don't
882 bother processing them.
883 (b_out_get_relocated_section_contents): Set reloc_done. Assert
884 that bfd_get_section_contents returns true. Check that relocs are
885 properly ordered.
886 (b_out_get_relocated_section_contents, case ALIGNDONE): Assert
887 that reloc->addend falls between the current source offset and the
888 raw size of the input section.
889
890 * config.bfd: Support i960 vxworks versions > 5.0 with coff, not
891 bout. Default with no version number is still bout. Support
892 explicit i960-coff target too.
893
894 * bout.c: Changed some indentation, deleted trailing whitespace,
895 fixed some comments, removed some "#if 1" lines.
896 (output_addr): New macro.
897 (calljx_callback, callj_callback, get_value, abs32code, aligncode,
898 b_out_get_relocated_section_contents): Use it for readability.
899
c6cdb69a
JL
900Tue Feb 15 09:00:16 1994 Jeffrey A. Law ([email protected])
901
902 * som.c (som_bfd_prep_for_ar_write): Iterate through the SOM
903 symbols, not the BFD symbols.
904 (som_bfd_ar_write_symbol_stuff): Likewise.
905
6e033f86
JL
906Mon Feb 14 22:55:20 1994 Jeffrey A. Law ([email protected])
907
24a1f6a0
JL
908 * som.c (som_slurp_symbol_table): Do not die if a BFD doesn't
909 have any symbols.
910
6e033f86
JL
911 * Finish basic read-write support for SOM archive libraries. Bugs
912 surely remain as this hasn't been tested all that much.
913 * som.c (SOM_LST_HASH_SIZE, SOM_LST_MODULE_LIMIT): Define.
914 (struct som_misc_symbol_info): New structure to hold info necessary
915 to build both normal and library symbol tables.
916 (som_derive_misc_symbol_info): New function to derive info necessary
917 to build both normal and library symbol tables.
918 (som_build_and_write_symbol_table): Use new function to derive misc
919 symbol information.
920 (som_slurp_symbol_table): Update backend private data for symbols
921 appropriately.
922 (som_bfd_prep_for_ar_write): New function.
923 (som_bfd_ar_symbol_hash): New function.
924 (som_bfd_ar_write_symbol_stuff): New function.
925 (som_write_armap): Flesh out.
926 (som_vec): Fix ar padding character.
927
928 * som.c: Consistently use memset rather than bzero.
929
8b8ddedb
SG
930Mon Feb 14 17:02:28 1994 Stu Grossman (grossman at cygnus.com)
931
932 * coff-rs6000.c: Add Lynx core file support, use HOST_AIX, where
933 appropriate.
934 * rs6000-core.c: Use HOST_AIX instead of COREFILES_PLEASE.
935 * config/rs6000.mh: Remove defs of ARCHIVES_PLEASE and
936 COREFILES_PLEASE.
937 * config/rs6000lynx.mh: Turn on Lynx core file support.
938 * hosts/rs6000.h: #define HOST_AIX.
5cf354ef 939 * hosts/rs6000lynx.h: Create this to enable Lynx host support.
8b8ddedb 940
6863eb4b
JL
941Sun Feb 13 14:30:00 1994 Jeffrey A. Law ([email protected])
942
50c5c4ad
JL
943 * som.h (som_symbol_data): Safely access backend private data
944 for BFD symbols. All callers changed.
945
6e033f86 946 * Read-only SOM archive support.
3c37f9ca
JL
947 * som.c (som_bfd_count_ar_symbols): New helper function.
948 (som_bfd_fill_in_ar_symbols): New helper function.
949 (som_slurp_armap): New function to read a SOM LST.
950
6863eb4b
JL
951 * som.h: Include <lst.h> and <ar.h>.
952
5e829a34
JL
953Sat Feb 12 22:34:14 1994 Jeffrey A. Law ([email protected])
954
955 * elfcode.h (elf_map_symbols): Fix typo.
956 (write_object_contents): Check return values from prep_headers and
957 elf_compute_section_file_positions.
958 (set_section_contents): Likewise.
959
a15691a5
DM
960Fri Feb 11 16:56:50 1994 David J. Mackenzie ([email protected])
961
962 * archive.c (normalize) [VMS]: Call malloc, not bfd_xmalloc.
963 (bfd_construct_extended_name_table): Check result of normalize.
964
9783e04a
DM
965Tue Feb 8 08:57:31 1994 David J. Mackenzie ([email protected])
966
967 Make all callers of malloc or realloc (including via obstacks)
968 check the result for NULL. Most set bfd_error to no_memory and
969 return in that case; a few are harder to fix, and are marked
970 with "FIXME <return type>".
971
972 * elf32-hppa.c (hppa_elf_build_arg_reloc_stub
973 hppa_elf_build_long_branch_stub): Check bfd_make_empty_symbol return.
974 * linker.c (_bfd_generic_link_output_symbols
975 _bfd_generic_link_write_global_symbol): Ditto
976 * section.c (bfd_make_section_anyway): Ditto.
977
978 * tekhex.c (find_chunk tekhex_mkobject): Check bfd_alloc.
979 (first_phase): Ditto. FIXME void
980 (tekhex_make_empty_symbol): Check bfd_zalloc.
981
982 * sunos.c (sunos_read_dynamic_info): Check bfd_zalloc.
983 (MY(read_dynamic_symbols) MY(read_dynamic_relocs)): Check bfd_alloc.
984
985 * stringhash.c (_bfd_stringtab_hash_newfunc): Check bfd_hash_allocate.
986
987 * srec.c: Indent.
988 (fillup_symbols): Check bfd_alloc. FIXME void
989 (srec_mkobject srec_get_section_contents
990 srec_set_section_contents): Check bfd_alloc.
991 (srec_make_empty_symbol): Check bfd_zalloc.
992
993 * som.c (hppa_som_gen_reloc_type): Check bfd_alloc_by_size_t.
994 (make_unique_section): Check bfd_alloc.
995 (som_new_section_hook): Check bfd_zalloc.
996 (bfd_som_attach_aux_hdr): Ditto. FIXME void
997
998 * rs6000-core.c (rs6000coff_core_p): Check bfd_zalloc.
999
1000 * osf-core.c (osf_core_make_empty_symbol): Check bfd_zalloc.
1001 (osf_core_core_file_p): Check bfd_alloc.
1002
1003 * oasys.c (oasys_slurp_symbol_table oasys_archive_p
1004 oasys_mkobject oasys_object_p oasys_new_section_hook
1005 oasys_set_section_contents): Check bfd_alloc.
1006 (oasys_slurp_section_data): Check bfd_zalloc and bfd_alloc.
1007 (oasys_make_empty_symbol): Check bfd_zalloc.
1008
1009 * nlmcode.h (nlm_make_empty_symbol): Check bfd_zalloc.
1010 (nlm_slurp_symbol_table): Check bfd_zalloc and bfd_alloc.
1011
1012 * nlm32-sparc.c (nlm_sparc_read_import): Check bfd_alloc.
1013
1014 * nlm32-i386.c (nlm_i386_read_import): Check bfd_alloc.
1015
1016 * nlm32-alpha.c (nlm_alpha_read_import): Check bfd_alloc.
1017
1018 * linker.c (_bfd_link_hash_newfunc
1019 (generic_link_hash_newfunc
1020 (archive_hash_newfunc
1021 (_bfd_generic_link_add_one_symbol): Check bfd_hash_allocate.
1022 (_bfd_generic_final_link
1023 (_bfd_generic_link_output_symbols
1024 (default_indirect_link_order): Check bfd_alloc.
1025 (bfd_new_link_order): Check bfd_alloc_by_size_t.
1026
1027 * irix-core.c (irix_core_make_empty_symbol): Check bfd_zalloc.
1028
1029 * ieee.c: Indent.
1030 (read_id get_symbol get_section_entry ieee_archive_p ieee_object_p
1031 ieee_slurp_section_data ieee_new_section_hook): Check bfd_alloc.
1032 (do_one): Check bfd_alloc. Return a boolean.
1033 (ieee_slurp_section_data): Check it.
1034 (init_for_output): Check bfd_alloc. Return a boolean.
1035 (ieee_set_section_contents): Check it.
1036 (do_with_relocs): Check bfd_alloc. Return a boolean.
1037 (ieee_bfd_debug_info_accumulate): Ditto. FIXME void.
1038 (ieee_mkobject): Check bfd_zalloc.
1039 (ieee_make_empty_symbol): Check bfd_zmalloc.
1040
1041 * hpux-core.c (hpux_core_make_empty_symbol): Check
1042 bfd_zalloc.
1043
1044 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Check
1045 bfd_zalloc.
1046 (hppabsd_core_core_file_p): Check bfd_zalloc.
1047
1048 * hp300hpux.c (MY(slurp_symbol_table)): Check bfd_alloc.
1049
1050 * elfcode.h (elf_new_section_hook): Check bfd_alloc.
1051 (bfd_section_from_phdr): Ditto.
1052 (write_relocs): Ditto. FIXME void
1053 (elf_map_symbols assign_section_numbers map_program_segments):
1054 Ditto. Return a boolean.
1055 (swap_out_syms): Ditto. Check elf_map_symbols.
1056 (elf_slurp_symbol_table): Check bfd_zalloc.
1057 (elf_slurp_reloca_table): Check bfd_alloc.
1058 (elf_slurp_reloc_table): Ditto.
1059 (elf_compute_section_file_positions): Check assign_section_numbers.
1060 (assign_file_positions_except_relocs): Return a boolean.
1061 Check map_program_segments.
1062 (elf_compute_section_file_positions): Check it.
1063
1064 * elf32-mips.c (mips_elf_final_link): Check bfd_alloc.
1065
1066 * elf32-hppa.c (hppa_elf_stub_branch_reloc): Check bfd_zmalloc and
1067 realloc.
1068 (hppa_elf_stub_reloc): Ditto.
1069 (hppa_elf_build_arg_reloc_stub): Check bfd_zalloc.
1070 (hppa_elf_build_long_branch_stub): Ditto.
1071 (elf32_hppa_backend_symbol_table_processing): Ditto.
1072
1073 * ecoff.c (ecoff_set_symbol_info): Check bfd_alloc. Return a boolean.
1074 (ecoff_slurp_symbol_table): Check it.
1075 (ecoff_slurp_armap): Check bfd_alloc.
1076 (ecoff_write_armap): Check bfd_zalloc.
1077 (ecoff_link_hash_newfunc): Check bfd_hash_allocate and
1078 _bfd_link_hash_newfunc.
1079 (ecoff_link_add_externals): Check bfd_alloc.
1080
1081 * ctor.c (bfd_constructor_entry): Check bfd_alloc.
1082
1083 * coffgen.c (coff_real_object_p): Check bfd_alloc.
1084 (coff_renumber_symbols): Check bfd_alloc_by_size_t. Return a boolean.
1085 (coff_write_symbol): Check bfd_alloc. FIXME int
1086 (coff_write_linenumbers): Check bfd_alloc. Return a boolean.
1087 (coff_section_symbol): Check bfd_alloc_by_size_t.
1088 (coff_get_normalized_symtab): Check bfd_alloc.
1089 (coff_bfd_make_debug_symbol): Check bfd_zalloc.
1090 * libcoff-in.h: Change decls of coff_renumber_symbols,
1091 coff_write_linenumbers.
1092 * libcoff.h: Rebuilt.
1093 * coffcode.h (coff_write_object_contents): Check
1094 coff_renumber_symbols, coff_write_linenumbers.
1095
1096 * coffcode.h: Indent.
1097 (coff_add_missing_symbols): Check bfd_alloc_by_size_t. Return a
1098 boolean.
1099 (coff_write_object_contents): Check it.
1100
1101 * coff-alpha.c (alpha_relocate_section): Check bfd_alloc.
1102 * coff-mips.c (mips_relocate_section): Ditto.
1103
1104 * archive.c (bfd_slurp_bsd_armap_f2): Check bfd_alloc value.
1105 (do_slurp_bsd_armap): Ditto.
1106 (compute_and_write_armap): Check bfd_realloc value.
1107
1108 * aoutx.h (translate_from_native_sym_flags): Check bfd_alloc
1109 return value. Return boolean value.
1110 (NAME(aout,make_empty_symbol)): Check bfd_zalloc return value.
1111 (NAME(aout,slurp_symbol_table)): Check bf_alloc and bfd_zalloc
1112 return value.
1113 (add_to_stringtab): Ditto. FIXME void
1114 (aout_link_hash_newfunc): Check bfd_hash_allocate return value.
1115 (aout_link_add_symbols): Check bfd_alloc value.
1116 (translate_symbol_table): Check translate_from_native_sym_flags.
1117 * hp300hpux.c (MY(slurp_symbol_table)): Ditto.
1118 * aoutx.h (aout_link_hash_newfunc): Check _bfd_link_hash_newfunc.
1119
1120 * opncls.c (bfd_zalloc bfd_realloc): Check result of bfd_alloc.
1121
1122 * opncls.c (obstack_chunk_alloc): Define as malloc, not
1123 bfd_xmalloc_by_size_t.
1124 (_bfd_new_bfd): Check obstack_begin for 0 return.
1125
1126 * ieee.c (obstack_chunk_alloc): Define as malloc, not
1127 bfd_xmalloc_by_size_t.
1128 (ieee_archive_p): Check obstack_begin for 0 return and
1129 obstack_finish for NULL return.
1130
1131 * hash.c (obstack_chunk_alloc): Define as malloc, not
1132 bfd_xmalloc_by_size_t.
1133 (bfd_hash_table_init_n): Check obstack_begin for 0 return and
1134 obstack_finish for NULL return.
1135 (bfd_hash_lookup): Check obstack_alloc for NULL return.
1136
1137 * ecofflink.c (obstack_chunk_alloc): Define as malloc, not
1138 bfd_xmalloc_by_size_t.
1139 bfd_ecoff_debug_accumulate
1140 bfd_ecoff_debug_accumulate_other): Check obstack_alloc.
1141 (add_file_shuffle add_memory_shuffle): Check obstack_alloc for
1142 NULL return. Return boolean, not void.
1143 (bfd_ecoff_debug_init): Check obstack_begin for 0 return.
1144 (bfd_ecoff_debug_accumulate): Check add_file_shuffle
1145 and add_memory_shuffle return.
1146 (string_hash_newfunc): Check bfd_hash_allocate and bfd_hash_newfunc.
1147 (bfd_ecoff_debug_accumulate): Check bfd_alloc.
1148 (ecoff_add_string): Check add_memory_shuffle return.
1149
1150 * libbfd-in.h (xmalloc, bfd_xmalloc, bfd_xmalloc_by_size_t):
1151 Remove decls.
1152 * libbfd.h: Rebuilt.
1153
30e441ca
SG
1154Fri Feb 11 15:35:32 1994 Stu Grossman (grossman at cygnus.com)
1155
1156 * configure.host: Add Lynx/rs6000 support.
1157 * config/i386-nlm.mt: Enable a.out file support.
1158 * config/rs6000lynx.mh: Lynx/rs6000 host support.
1159
5ee3886b
ILT
1160Fri Feb 11 17:25:58 1994 Ian Lance Taylor ([email protected])
1161
1162 * archive.c (compute_and_write_armap): Rewrite somewhat to improve
1163 memory usage.
1164
9a793780
SS
1165Fri Feb 11 13:10:42 1994 Stan Shebs ([email protected])
1166
1167 * archive.c: Change all references to '\n' in archive magic
1168 to '\012', for greater portability.
1169 * ecoff.c (ecoff_write_armap): Ditto.
1170
1171Thu Feb 10 12:58:48 1994 Ian Lance Taylor ([email protected])
1172
1173 * aoutx.h (aout_link_write_other_symbol): Check strip settings to
1174 see whether symbol should be output.
1175 * genlink.h (struct generic_write_global_symbol_info): Added info
1176 field.
1177 * linker.c (_bfd_generic_final_link): Initialize wginfo.info.
1178 (_bfd_generic_link_write_global_symbol): Check strip settings to
1179 see whether symbol should be output.
1180 * elf32-mips.c (mips_elf_final_link): Initialize wginfo.info.
1181
a62dd44f
JL
1182Wed Feb 9 21:34:58 1994 Jeffrey A. Law ([email protected])
1183
9a793780
SS
1184 * som.c (som_reloc_queue_find): Do not examine a NULL queue entry.
1185
a62dd44f
JL
1186 * som.c: Cast return values from BFD memory allocation routines to
1187 avoid warnings from the HP compiler.
1188
945f125b
ILT
1189Wed Feb 9 12:55:02 1994 Ian Lance Taylor ([email protected])
1190
0d634116
ILT
1191 * coff-alpha.c (alpha_relocate_section): Accept a LITERAL
1192 reloc on an "ldl" instruction too.
1193
945f125b
ILT
1194 * archive.c (bfd_ar_hdr_from_filesystem): Cast status elements
1195 when passing them to sprintf. Use %ld instead of %d.
1196
1197 * coff-rs6000.c (rs6000coff_mkarchive): Return false.
1198 (rs6000_coff_snarf_ar_hdr): Don't declare errno; it's not used.
1199 Also removed unused variable namelen.
1200 (rs6000coff_write_armap): Declare orl_count and stridx parameters.
1201
1202Tue Feb 8 18:00:34 1994 Ian Lance Taylor ([email protected])
1203
1204 * libbfd-in.h (xmalloc): Don't declare parameter type, to avoid
1205 conflicts.
1206 * libbfd.h: Rebuilt.
1207
fa965415
KR
1208Tue Feb 8 15:55:50 1994 Ken Raeburn ([email protected])
1209
1210 * coff-alpha.c (reloc_nil): New function.
1211 (alpha_howto_table): Use it as special_function to prevent certain
1212 relocs from being adjusted by bfd_perform_relocation. IGNORE
1213 reloc should be partial_inplace.
1214 (alpha_ecoff_get_relocated_section_contents): Accept a LITERAL
1215 reloc on an "ldl" instruction too.
1216
7c202d37
PS
1217Tue Feb 8 00:32:28 1994 Peter Schauer ([email protected])
1218
1219 * elf32-hppa.c (CURRENT_STUB_OFFSET, hppa_elf_build_arg_reloc_stub,
1220 hppa_elf_build_long_branch_stub): Cast to char * instead of int
1221 before performing pointer arithmetic.
1222
9ed21f0e
JL
1223Mon Feb 7 20:56:27 1994 Jeffrey A. Law ([email protected])
1224
1225 * config.bfd (hppa*-*-osf*): Use bfd_name hppaosf for this
1226 configuration.
1227 (hppa*-*-*elf*): This configuration used hppa-elf now.
1228
1229 * som.c: This file is also used for HOST_HPPAOSF.
1230
1231 * targets.c (bfd_target_vector): Enable som_vec for HOST_HPPAOSF.
1232
1233 * hosts/hppaosf.h: New host configuration file.
1234
1235 * config/hppabsd.mt (SELECT_VECS): Add bfd_elf32_hppa_vec as
1236 BSD handles both SOM and ELF object files.
1237
1238 * config/hppaosf.mh (HDEFINES): Delete. No longer needed.
1239 (RANLIB): Doesn't do anything, define it to be "echo".
1240
1241 * config/hppaosf.mt: New target makefile fragment for a PA running
1242 OSF1.
1243
bf969135
ILT
1244Mon Feb 7 15:02:06 1994 Ian Lance Taylor ([email protected])
1245
66f1cff5
ILT
1246 * archures.c (enum bfd_architecture): Added bfd_arch_powerpc.
1247 (archures_init_table): If SELECT_ARCHITECTURES is not defined,
1248 added bfd_powerpc_arch.
1249 * bfd-in2.h: Rebuilt.
1250 * cpu-powerpc.c: New file.
1251 * Makefile.in (ALL_MACHINES, CFILES): Added cpu-powerpc.c.
1252 Rebuilt dependencies.
1253
bf969135
ILT
1254 * elfcode.h (bfd_section_from_shdr): Get vma and alignment_power
1255 of an SHT_STRTAB section from sh_addr and sh_addralign, rather
1256 than just setting them to zero.
1257
b9d5cdf0
DM
1258Sun Feb 6 20:04:10 1994 David J. Mackenzie ([email protected])
1259
1260 * elfcode.h (prep_headers, swap_out_syms): Check for NULL return
1261 from bfd_new_strtab.
1262 (elf_compute_section_file_positions): Check for false return from
1263 swap_out_syms.
1264
1265 * linker.c (default_indirect_link_order): Check for NULL return
1266 from bfd_get_relocated_section_contents.
1267
1268 * syms.c: Make example application in doc call xmalloc, not
1269 bfd_xmalloc.
1270
1271 * aoutx.h (NAME(aout,slurp_symbol_table),
1272 aout_link_get_symbols, NAME(aout,link_hash_table_create)):
1273 * bout.c (b_out_slurp_reloc_table, b_out_squirt_out_relocs):
1274 * ecoff.c (ecoff_bfd_link_hash_table_create):
1275 * ecofflink.c (bfd_ecoff_debug_init):
1276 * format.c (bfd_check_format_matches):
1277 * linker.c (_bfd_generic_link_hash_table_create):
1278 (_bfd_generic_final_link):
1279 * reloc16.c (bfd_coff_reloc16_relax_section):
1280 (bfd_coff_reloc16_get_relocated_section_contents):
1281 * elf32-hppa.c (hppa_elf_build_arg_reloc_stub):
1282 * elf32-mips.c (mips_elf_final_link):
1283 * elfcode.h (bfd_new_strtab):
1284 (bfd_add_2_to_strtab):
1285 (elf_slurp_symbol_table):
1286 (elf_corefile_note):
1287 * libbfd.c (bfd_zmalloc):
1288 Use malloc and check the result, instead of bfd_xmalloc.
1289
6b054519
JK
1290Sat Feb 5 12:39:28 1994 Jim Kingdon ([email protected])
1291
1292 * config.bfd: Put m68*-*-sysv* line after m68*-*-sysv4*.
1293
bf430317
PS
1294Sat Feb 5 05:32:44 1994 Peter Schauer ([email protected])
1295
1296 * srec.c (srec_write_record): Put CONST keyword for "src" before
1297 "unsigned", some compilers don't like it after "unsigned".
1298 * libcoff.h, libcoff-in.h (bfd_perform_slip): Rename "value" to
1299 "val" in prototype declaration because some compilers don't like
1300 arguments whose names are the same as types.
1301
9b39ed6b
ILT
1302Sat Feb 5 01:14:38 1994 Ian Lance Taylor ([email protected])
1303
1304 * aoutx.h (aout_link_check_ar_symbols): Correct test for whether
1305 object file defines symbol. Also, if skipping a symbol, skip the
1306 second symbol of a N_WARNING or N_INDR symbol as well.
1307
d352be4f
ILT
1308Fri Feb 4 23:55:44 1994 Ian Lance Taylor ([email protected])
1309
1310 Add basic support for writing RS/6000 XCOFF files.
1311 * coff-rs6000.c (dummy_reloc): Removed.
1312 (rs6000coff_howto_table): Defined XCOFF relocs.
1313 (RTYPE2HOWTO): Defined to use rs6000coff_rtype2howto.
1314 (rs6000coff_rtype2howto): New function.
1315 (coff_bfd_reloc_type_lookup): Defined to use
1316 rs6000coff_reloc_type_lookup.
1317 (rs6000coff_reloc_type_lookup): New function.
1318 (SELECT_RELOC): Defined to set r_type and r_size fields.
1319 (COFF_LONG_FILENAMES): Defined.
1320 * coffcode.h (combined_entry_type): Changed fix_tag and fix_end
1321 fields to bitfields. Added fields fix_value and fix_scnlen.
1322 (sec_to_styp_flags): If STYP_DEBUG is defined, use it rather than
1323 STYP_INFO for the type of a section named .debug.
1324 (coff_add_missing_symbols): Don't define if RS6000COFF_C.
1325 (coff_write_object_contents): If RS6000COFF_C, don't call
1326 coff_add_missing_symbols.
1327 (coff_slurp_symbol_table): If RS6000COFF_C, then if the last aux
1328 entry has type STY_LD change the x_scnlen into a pointer to a
1329 symbol and set fix_scnlen. Also, for a C_BSTAT symbol, change the
1330 value into a pointer to a symbol and set fix_value.
1331 * libcoff.h: Rebuilt.
1332 * coffgen.c (coff_mangle_symbols): Reindent. If fix_value is set,
1333 get the symbol offset. Likewise for fix_scnlen.
1334 (string_size): Change type to bfd_size_type.
1335 (debug_string_size, debug_string_section): New static variables.
1336 (coff_fix_symbol_name): If bfd_coff_symname_in_debug returns true,
1337 write the symbol name into the .debug section; assume that the
1338 section has already been created with the right size.
1339 (coff_write_symbols): Initialize debug_string_size to 0. If
1340 bfd_coff_symname_in_debug returns true, don't put symbol name in
1341 usual string table. After writing out all symbols, if
1342 debug_string_size is not 0, check that it matches the size of the
1343 .debug section.
1344 (coff_get_normalized_symtab): Clear new fix_value and fix_scnlen
1345 fields. If the string offset is 0, always use an empty string as
1346 the name.
1347 (coff_make_empty_symbol): Zero out the symbol structure.
1348 * reloc.c (bfd_perform_relocation): Work around one gross hack
1349 with another: actually look at the target name to avoid the broken
1350 COFF check.
1351 (bfd_reloc_code_real_type): Add BFD_RELOC_PPC_B26,
1352 BFD_RELOC_PPC_BA26 and BFD_RELOC_PPC_TOC16.
1353 * bfd-in2.h: Rebuilt.
1354
0ee34272
DM
1355Fri Feb 4 17:28:32 1994 David J. Mackenzie ([email protected])
1356
1357 * libbfd.c (bfd_zmalloc): Call bfd_xmalloc instead of malloc.
1358 (bfd_xmalloc, bfd_xmalloc_by_size_t): Functions deleted.
1359 * libbfd-in.h: Define them as macros calling xmalloc and declare
1360 xmalloc.
1361 * libbfd.h: Rebuilt.
0ee34272 1362
fa2302b8
ILT
1363Thu Feb 3 16:49:35 1994 Ian Lance Taylor ([email protected])
1364
cbc174e7
ILT
1365 * ecofflink.c (bfd_ecoff_debug_externals): If a small undefined
1366 symbol has a value in the ECOFF symbol but not in the BFD symbol,
1367 keep the value in the ECOFF symbol. This helps gas.
1368
5072b8e5
ILT
1369 * linker.c (_bfd_generic_link_output_symbols,
1370 _bfd_generic_link_write_global_symbol): Don't require that all
1371 references to a common symbol be themselves common symbols.
1372
fa2302b8
ILT
1373 * aoutx.h (aout_reloc_index_to_section): Handle N_UNDF.
1374
96ad107b
JK
1375Wed Feb 2 20:37:19 1994 Jim Kingdon ([email protected])
1376
1377 * libbfd.c, bfd-in.h, hosts/alphaosf.h, hosts/sparc-ll.h, aoutf1.h,
1378 sparclynx.c, Makefile.in: Change HOST_64_BIT to BFD_HOST_64_BIT.
0324156c 1379 * bfd-in2.h: Rebuilt.
96ad107b 1380
192d8ee8
ILT
1381Wed Feb 2 12:30:13 1994 Ian Lance Taylor ([email protected])
1382
38e1f0ce
ILT
1383 * coffswap.h (coff_swap_reloc_out): If RS6000COFF_C, handle type
1384 and size correctly.
1385 (coff_swap_aux_in): If RS6000COFF_C, change x_csect.x_scnlen to
1386 x_csect.x_scnlen.l to match change in coff/internal.h.
1387 (coff_swap_aux_out): Likewise.
1388
ebf3b4cd
ILT
1389 * coff-mips.c (mips_ecoff_backend_data), coff-alpha.c
1390 (alpha_ecoff_backend_data): Change casts of aux_in and aux_out
1391 fields to match yesterday's changes.
1392
192d8ee8
ILT
1393 * coffcode.h (coff_write_relocs): If SELECT_RELOC is defined, pass
1394 in the internal_reloc itself, not the type.
1395 * coff-apollo.c, coff-h8300.c, coff-h8500.c, coff-i386.c,
1396 coff-m68k.c, coff-sh.c, coff-we32k.c, coff-z8k.c: Changed
1397 definition of SELECT_RELOC accordingly.
1398
330595d0
ILT
1399Tue Feb 1 12:05:44 1994 Ian Lance Taylor ([email protected])
1400
1401 * coffcode.h (bfd_coff_backend_data): Added new arguments to
1402 _bfd_coff_swap_aux_in and _bfd_coff_swap_aux_out: aux index number
1403 and number of aux entries.
1404 (bfd_coff_swap_aux_in, bfd_coff_swap_aux_out): Changed
1405 accordingly.
1406 * libcoff.h: Rebuilt.
1407 * coffswap.h (coff_swap_aux_in, coff_swap_aux_out): Accept new
1408 arguments. If RS6000COFF_C, only treat C_EXT and C_HIDEXT
1409 specially if this is the last aux entry.
1410 * coffgen.c (coff_write_symbol, coff_get_normalized_symtab): Pass
1411 new arguments to swap_aux functions.
1412
4e810849
KR
1413Sun Jan 30 15:14:36 1994 Ken Raeburn ([email protected])
1414
1415 * gen-aout.c (main): Set DEFAULT_ARCH based on preprocessor macros
1416 (only testing for m68k and vax at the moment); do verify that the
1417 preprocessor didn't trash the arch name inside the string version.
1418 Don't print out "pagesize =" line that prevents output from
1419 compiling. Derive BYTES_IN_WORD and ARCH values from sizeof
1420 results.
1421 * Makefile.in (aout-params.h): Pass gen-aout a dummy target name.
26b572e4
KR
1422 (check, installcheck): Identify directory in "no testsuites"
1423 message.
4e810849 1424
2edc8357
ILT
1425Sun Jan 30 13:25:28 1994 Ian Lance Taylor ([email protected])
1426
1427 * aoutx.h (aout_link_write_symbols): Write out correct value for
1428 object file symbol.
1429
098630a0
KR
1430Fri Jan 28 18:34:05 1994 Ken Raeburn ([email protected])
1431
1432 * hosts/vaxbsd.h (HOST_STACK_END_ADDR): Vax BSD doesn't define
1433 KERNBASE, so hard-code 0x80000000 instead.
1434
c3156966
ILT
1435Thu Jan 27 13:54:08 1994 Ian Lance Taylor ([email protected])
1436
1437 * linker.c (generic_link_add_symbol_list): If symbol is common,
1438 set the BSF_OLD_COMMON flag.
1439
d6d4e4c3
DM
1440Wed Jan 26 13:47:15 1994 David J. Mackenzie ([email protected])
1441
1442 * format.c (bfd_check_format_matches): Put the new entry in the
1443 correct element of matching_vector.
1444
09f70549
JK
1445Tue Jan 25 11:43:28 1994 Jim Kingdon ([email protected])
1446
1447 * som.c, som.h (bfd_som_set_section_attributes,
1448 bfd_som_set_subsection_attributes): Change parameters from char
1449 to int. Following a prototype with an old-style function definition
1450 in the presence of widened parameters is a GCC-ism not supported
1451 by the HP compiler in ANSI mode.
1452
a927c32d
ILT
1453Tue Jan 25 11:46:46 1994 Ian Lance Taylor ([email protected])
1454
8638431e
ILT
1455 * reloc.c (bfd_get_reloc_size): Size of type -2 is 4 bytes, not 2.
1456
3b490cdd
ILT
1457 * hp300hpux.c (MY(write_object_contents)): Write out the symbols
1458 before writing out the relocs, so that the right symbol indices
1459 are used.
1460
71d58b59
ILT
1461 * archive.c (do_slurp_bsd_armap, bfd_slurp_bsd_armap_f2): Do not
1462 try to overlay the internal carsyms on the external symdefs. That
1463 can not work if the size of a host pointer is larger than 4 bytes.
1464
1465 * format.c (bfd_check_format_matches): Cast result of
1466 bfd_xmalloc_by_size_t.
1467 * opncls.c (_bfd_new_bfd): Avoid ANSI C prototype.
1468
a927c32d
ILT
1469 * archive.c: Reindented to GNU standards.
1470
aabda2da
DM
1471Mon Jan 24 14:41:23 1994 David J. Mackenzie ([email protected])
1472
f4bd7a8f
DM
1473 * opncls.c (_bfd_new_bfd, _bfd_new_bfd_contained_in): Add
1474 "_bfd_" to function names.
1475 * archive.c (_bfd_create_empty_archive_element_shell),
1476 libbfd-in.h: Change callers.
1477
1478 * libbfd.c (bfd_zmalloc): Renamed from zalloc.
1479 * libbfd.c (bfd_add_to_string_table),
1480 trad-core.c (trad_unix_core_file_p),
1481 targets.c (bfd_target_list),
1482 ptrace-core.c (ptrace_unix_core_file_p),
1483 opncls.c (new_bfd), libbfd-in.h,
1484 ieee.c (ieee_make_empty_symbol),
1485 elf32-hppa.c (hppa_elf_stub_branch_reloc),
1486 (hppa_elf_stub_reloc): Change callers.
1487 * libbfd.h: Regenerated.
1488
1489 * archive.c (_bfd_look_for_bfd_in_cache): Add "_bfd_" to name.
1490 (_bfd_get_elt_at_filepos),
1491 coff-rs6000.c (rs6000coff_get_elt_at_filepos), libbfd-in.h:
1492 Change callers.
1493
1494 * format.c (bfd_check_format_matches), libbfd-in.h, targets.c,
1495 elfcode.h (elf_object_p): Rename target_vector to bfd_target_vector
1496 and default_vector to bfd_default_vector.
1497 * libbfd.h: Regenerated.
1498
aabda2da
DM
1499 * format.c (bfd_check_format_matches): New function.
1500 (bfd_check_format): Call it.
1501 (bfd_matching_formats): Function removed.
1502 * targets.c: Replace the vector added on Jan 21 with a count of
1503 entries in default_vector.
1504 * bfd-in2.h: Regenerated.
1505
ca1c6bec
ILT
1506Mon Jan 24 12:38:54 1994 Ian Lance Taylor ([email protected])
1507
3f048f7f
ILT
1508 * coff-alpha.c (alpha_ecoff_object_p): New function. Set size of
1509 .pdata section based on lnnoptr field, not section header.
1510 (alpha_relocate_section): Don't bother to check if r_symndx >= 0,
1511 since it is unsigned.
1512 (ecoffalpha_little_vec): Use alpha_ecoff_object_p rather than
1513 coff_object_p.
1514 * ecoff.c (ecoff_new_section_hook): Set alignment_power field of
1515 .pdata section to 3.
1516 (ecoff_compute_section_file_positions): Save the size of the
1517 .pdata section in the line_filepos field, and actually align the
1518 .pdata section to an alignment power of 4.
1519 (ecoff_compute_reloc_file_positions): Set output_has_begun after
1520 calling ecoff_compute_section_file_positions.
1521 (ecoff_write_object_contents): Set s_lnnoptr for the .pdata
1522 section from the line_filepos field. Set vstamp for the optional
1523 header from the vstamp of the symbolic header.
1524 (ecoff_bfd_final_link): Set vstamp of the symbolic header to the
1525 vstamp used by the first object file in the link.
1526
1527 * ecofflink.c (ecoff_align_debug): Align RFDs to debug_align.
1528
a20bdb43
ILT
1529 * linker.c (generic_link_check_achive_element): Set SEC_ALLOC flag
1530 for a created common section.
1531 (_bfd_generic_link_add_one_symbol): Likewise.
1532
1533 * elfcode.h (swap_out_syms): Use elf_section_from_bfd_section to
1534 get the index of a common section, rather than always using
1535 SHN_COMMON (MIPS has multiple common sections).
1536
7a60ed8c
ILT
1537 * elf32-hppa.c (hppa_elf_gen_reloc_type): Typo (== for =).
1538
4991ebb9
ILT
1539 * bfd/aoutx.h (aout_link_input_section_std,
1540 aout_link_input_section_ext): Pass additional arguments to
1541 reloc_overflow callback.
1542 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents,
1543 alpha_relocat_section): Likewise.
1544 * coff-h8300.c (h8300_reloc16_extra_cases): Likewise.
1545 * coff-h8500.c (extra_case): Likewise.
1546 * coff-mips.c (mips_relocate_section): Likewise.
1547 * coff-z8k.c (extra_case): Likewise.
1548 * elf32-hppa.c (hppa_elf_stub_finish): Likewise.
1549 * reloc.c (bfd_generic_get_relocated_section_contents): Likewise.
1550
1cedfe03
ILT
1551 * bout.c (calljx_callback, callj_callback): Use get_value to get
1552 the symbol value and check for undefined symbols.
1553 (get_value): If the symbol is undefined, look it up in the linker
1554 hash table.
1555 (b_out_get_relocated_section_contents): For PCREL24 and PCREL13
1556 use get_value to get the symbol value and check for undefined
1557 symbols.
1558 * reloc16.c (bfd_coff_reloc16_get_value): If the symbol is
1559 undefined, look it up in the linker hash table.
1560
ca1c6bec
ILT
1561 * aoutx.h (translate_symbol_table): The string index 0 has a
1562 special meaning for normal symbols, but not for dynamic symbols.
1563
3f2255e7
SG
1564Sat Jan 22 12:26:01 1994 Stu Grossman (grossman at cygnus.com)
1565
1566 * sparclynx.c: Setup appropriate macros to enable core file
1567 support.
1568
0f8f509c
DM
1569Fri Jan 21 16:25:35 1994 David J. Mackenzie ([email protected])
1570
3b31740c
DM
1571 * targets.c: Add a vector of matching format names.
1572 * format.c (bfd_matching_formats): New function to return it.
1573 (bfd_check_format): Set it.
1574 * bfd-in2.h: Regenerated.
1575
0f8f509c
DM
1576 * bfd-in.h: Remove decls of bfd_ec type and error printing functions.
1577 Remove decl of type symclass; wasn't used.
1578 * bfd.c: Document error handling, including code fragments
1579 containing the error decls that were in bfd-in.h.
1580 Remove DEFUNs.
1581 * bfd-in2.h: Regenerated.
1582
27814aa6 1583Fri Jan 21 14:11:16 1994 Sean Fagan ([email protected])
4733517b
JK
1584
1585 * nlmcode.h, liblnm.h, nlm32-alpha.c nlm32-i386.c nlm32-sparc.c:
1586 The sparc (and possibly other?) NLM format requires a different
1587 way to write exports, so add a write_export field to the backend
1588 data (and set it to NULL for everything but the sparc).
e7cc9a2e 1589
3f40d101
DM
1590Fri Jan 21 14:11:16 1994 Jim Kingdon ([email protected])
1591
e7cc9a2e
JK
1592 * sunos.c (MY(read_dynamic_relocs)): Compare info->dynrel with NULL,
1593 not (struct external_nlist *) NULL. info->dynrel is a PTR, not
1594 a struct external_nlist *.
1595
6de49562
DM
1596Fri Jan 21 09:29:01 1994 David J. Mackenzie ([email protected])
1597
74788cf0 1598 * bfd.c: Remove error strings for errors removed below.
6de49562
DM
1599 * aoutx.h (translate_to_native_sym_flags), bfd-in.h (bfd_ec),
1600 oasys.c (oasys_write_sections): Rename
1601 bfd_error_nonrepresentable_section to nonrepresentable_section.
1602 None of the other bfd error names start with "bfd_error".
1603 Remove errors symbol_not_found and no_relocation_info, which seem
1604 to be unused.
1605 * bfd-in2.h: Regenerated.
1606
0ee75d02
ILT
1607Fri Jan 21 01:11:55 1994 Ian Lance Taylor ([email protected])
1608
fcc41f68
ILT
1609 * bfd.c (bfd_get_gp_size): Added support for ELF.
1610
0ee75d02
ILT
1611 * syms.c (BSF_DYNAMIC): New symbol flag.
1612 (bfd_print_symbol_vandf): Print it.
1613 * bfd-in2.h: Rebuilt.
1614 * libaout.h (struct aout_backend_data): New read_dynamic_symbols
1615 and read_dynamic_relocs fields.
1616 (struct aoutdata): New dynamic_info field.
1617 (obj_aout_dynamic_info): New accessor macro.
1618 * sunos.c (struct sunos_dynamic_info): New structure.
1619 (sunos_read_dynamic_info, MY(read_dynamic_symbols),
1620 MY(read_dynamic_relocs)): New functions to read dynamic symbols
1621 and relocs.
1622 * aoutx.h (NAME(aout,some_aout_object_p)): If the object is
1623 dynamically linked, set SEC_RELOC for both the .text and .data
1624 sections.
1625 (translate_from_native_sym_flags): Don't set BSF_LOCAL for an
1626 undefined symbol.
1627 (translate_symbol_table): New function, split out of
1628 slurp_symbol_table; set the BSF_DYNAMIC flag appropriately.
1629 (NAME(aout,slurp_symbol_table)): Read dynamic symbols, if any.
1630 (NAME(aout,slurp_reloc_table)): Read dynamic relocs, if any.
1631 (NAME(aout,get_reloc_upper_bound)): Include dynamic reloc count in
1632 return value.
1633 * aoutf1.h (NAME(aout,sunos4_write_object_contents)): Don't write
1634 out dynamic symbols or relocs against reloc symbols, since they
1635 are already in the .text section and we wouldn't know where to
1636 write them anyhow.
1637 (sunos4_aout_backend): Initialize read_dynamic_symbols and
1638 read_dynamic_relocs fields.
1639 * aout-target.h (MY(backend_data)): Initialize
1640 read_dynamic_symbols and read_dynamic_relocs fields.
1641
dc3da58f
KR
1642Thu Jan 20 20:57:27 1994 Ken Raeburn ([email protected])
1643
1644 * hosts/alphaosf.h (uint64e_type, uint64_type, int64_type): Delete
1645 typedefs, since HOST_64_BIT will take care of defining them in
1646 bfd.h.
1647
7e7fb4a8
KR
1648Wed Jan 19 17:28:59 1994 Ken Raeburn ([email protected])
1649
1650 * config/alphaosf.mh (HDEFINES): Don't define HOST_64_BIT here;
1651 that's dealt with elsewhere.
1652 * hosts/alphaosf.h (sprintf_vma, fprintf_vma): New macros.
1653 (uint64_typeHIGH, uint64_typeLOW): Comment with HOST_64_BIT so
1654 they get copied to bfd.h.
1655
1656 * reloc.c (enum bfd_reloc_code_real): Add some Alpha relocation
1657 types. Reorganized some of the existing ones.
1658 * coff-alpha.c (alpha_howto_table): Construct 64-bit negative one
1659 values in case of compilation on a 32-bit machine. Fix pcrel
1660 fields of some reloc types.
1661 (alpha_bfd_reloc_type_lookup): Handle more relocation types.
1662
1663 * bfd-in.h (uint64_typeHIGH, uint64_typeLOW): Supply default
1664 definitions when not defined, regardless of whether uint64_type is
1665 a defined macro or not.
1666 (fprintf_vma, sprintf_vma): Define only if fprintf_vma is not
1667 already defined.
1668
d7e34f67
ILT
1669Wed Jan 19 00:02:54 1994 Ian Lance Taylor ([email protected])
1670
1671 * aoutx.h (translate_to_native_sym_flags): Set the type of a
1672 BSF_WARNING symbol to N_WARNING.
1673
53155af1
ILT
1674Tue Jan 18 16:43:19 1994 Ian Lance Taylor ([email protected])
1675
1676 * aoutx.h (aout_link_add_symbols): Increment sym_hash as well as p
1677 for an indirect or warning symbol.
1678 (aout_link_write_symbols): Update sym_hash with the target of an
3a5b50f4
ILT
1679 indirect or warning symbol. If an indirect symbol is defined,
1680 output the calculated value and don't output the target symbol.
53155af1 1681
0c205af2
DM
1682Tue Jan 18 03:54:59 1994 David J. Mackenzie ([email protected])
1683
1684 * aoutx.h (translate_from_native_sym_flags): Give warning symbols
1685 an (unused) nonzero section value, needed for check below.
1686
964affdc
DM
1687Mon Jan 17 15:12:07 1994 David J. Mackenzie ([email protected])
1688
1689 * aoutx.h (translate_from_native_sym_flags,
1690 aout_link_add_symbols): Treat N_SET[ABDT] | N_EXT like
1691 N_SET[ABDT].
1692
38a5f510
ILT
1693Fri Jan 14 16:45:43 1994 Ian Lance Taylor ([email protected])
1694
1695 * elfcode.h (elf_object_p): If there is a SHT_DYNAMIC section, set
1696 the DYNAMIC flag for the BFD.
1697 (NAME(bfd_elf,write_object_contents)): Don't try to write out a
1698 BFD with the DYNAMIC flag set, since we don't generate the program
1699 header table correctly.
1700
1701Fri Jan 14 01:04:36 1994 Peter Schauer ([email protected])
1702
1703 * elfcode.h (elf_slurp_symbol_table): Free x_symp at the end
1704 of the function to avoid storage leak.
1705
75919b3b
ILT
1706Thu Jan 13 23:07:32 1994 Ian Lance Taylor ([email protected])
1707
1708 * ecoff.c (ecoff_link_write_external): An ifd can be -1.
1709
39961154
JL
1710Thu Jan 13 12:33:27 1994 Jeffrey A. Law ([email protected])
1711
9558d13f
JL
1712 * som.c (som_set_reloc_info): Provide a default symbol for
1713 relocations which don't actually have an associated symbol.
1714
39961154
JL
1715 * som.c (hppa_som_reloc): Add new "error message" argument.
1716
32476597
PS
1717Wed Jan 12 13:36:43 1994 Peter Schauer ([email protected])
1718
1719 Enable gdb to write to core files on more core file readers.
1720 * libbfd.c (bfd_generic_set_section_contents): Remove range check
1721 for section size, it is already done in bfd_set_section_contents
1722 with bfd_get_section_size_now.
1723 * aix386-core.c, hppabsd-core.c, hpux-core.c, irix-core.c,
1724 osf-core.c, ptrace-core.c, trad-core.c (*_set_section_contents):
1725 Use bfd_generic_set_section_contents instead of bfd_false.
1726
92f345b9
ILT
1727Wed Jan 12 15:31:57 1994 Ian Lance Taylor ([email protected])
1728
39961154
JL
1729 * linker.c: Added initial documentation.
1730
92f345b9
ILT
1731 * linker.c (default_indirect_link_order): Don't expect space for
1732 output relocations if there aren't any input relocations.
1733
fed872d3
ILT
1734Tue Jan 11 14:37:12 1994 Ian Lance Taylor ([email protected])
1735
c5481a5e
ILT
1736 * aoutx.h (NAME(aout,final_link)): Set a_entry before computing
1737 file offsets.
1738
fed872d3
ILT
1739 * elfcode.h (swap_out_syms): A common symbol is STT_OBJECT, not
1740 STT_NOTYPE.
1741
b36b8a6e
JK
1742Tue Jan 11 09:10:56 1994 Jim Kingdon ([email protected])
1743
1744 * config.bfd: Use ELF, not COFF for m88*-*-dgux*.
1745 Combine m88k-*-* and m88110-*-* cases into m88*-*-*.
1746
cf286547
ILT
1747Tue Jan 11 00:07:19 1994 Ian Lance Taylor ([email protected])
1748
1749 * ecofflink.c: Extensive changes to compress and merge debugging
1750 information, and to write some of out directly rather than saving
1751 it in memory. Several new functions and structures, and new
1752 arguments to existing functions.
1753 * ecoff.c (ecoff_compute_reloc_file_positions): Compute
1754 sym_filepos as well.
1755 (ecoff_get_extr): Use ifdmap instead of ifdbase.
1756 (ecoff_write_object_contents): Don't compute sym_filepos here.
1757 Only output symbols if outsymbols is not NULL.
1758 (ecoff_bfd_final_link): Adjust for changes in ecoff_debug_info and
1759 bfd_ecoff_debug functions. Write out debugging information here.
1760 (ecoff_final_link_debug_accumulate): Adjust for changes in
1761 bfd_ecoff_debug functions.
1762 (ecoff_link_write_external): Use ifdmap rather than ifdbase.
1763 * elf32-mips.c (mips_elf_read_ecoff_info): Read external symbols
1764 first, to put them in the first memory buffer. Clear fdr field.
1765 (mips_elf_get_extr): Use pointer to unswapped external symbol.
1766 (mips_elf_final_link): Adjust for changes in bfd_ecoff functions.
1767 Preserve .text, .data and .bss even if they are empty. Save
1768 pointer to unswapped external symbol rather than copying it.
1769 Don't free up the external symbols.
1770 * libelf.h (elf_symbol_type): Change mips_extr to PTR.
1771 * bfd-in.h (bfd_ecoff_debug_init, bfd_ecoff_debug_free): Declare.
1772 (bfd_ecoff_debug_accumulate): Update declaration.
1773 (bfd_ecoff_debug_accumulate_other): Rename declaration from
1774 bfd_ecoff_debug_link_other and update.
1775 (bfd_ecoff_write_accumulated_debug): Declare.
1776 * bfd-in2.h: Rebuilt.
1777 * Makefile.in: Rebuilt dependencies.
1778
2c96ba79
JK
1779Mon Jan 10 20:46:53 1994 Jim Kingdon ([email protected])
1780
1781 * Makefile.in (install): Remove "@" which follows a backslash. In
1782 this position it just causes errors, not suppresses echoes.
1783
2304e1e8
JL
1784Mon Jan 10 09:06:21 1994 Jeffrey A. Law ([email protected])
1785
1786 * som.c (hppa_som_gen_reloc_type): Fix handling of LT and RT
1787 field selectors.
1788
fb4cf140
KR
1789Sun Jan 9 04:32:25 1994 Ken Raeburn ([email protected])
1790
1791 * config/i386-netbsd.mt (SELECT_VECS): Include i386bsd_vec.
1792
d44b2ddb
DM
1793Fri Jan 7 10:27:27 1994 David J. Mackenzie ([email protected])
1794
5330499f
DM
1795 * aoutx.h (adjust_z_magic): Don't merge the start of bss with the
1796 end of data if they are not contiguous.
1797
d44b2ddb
DM
1798 * aoutf1.h (sunos4_aout_backend): Comment the fields' meanings.
1799
a5a835ff
ILT
1800Fri Jan 7 15:40:16 1994 Ian Lance Taylor ([email protected])
1801
1802 * ecoff.c (ecoff_mkobject_hook): Don't set SEC_SHARED_LIBRARY flag
1803 for .reginfo section here.
1804 (ecoff_new_section_hook): Set it here instead.
1805
442da995
SS
1806Fri Jan 7 10:29:27 1994 Stan Shebs ([email protected])
1807
1808 * bfd-in.h: (bfd_boolean): Add workaround for systems that also
1809 define true and false as enums.
1810 (ALMOST_STDC): Add as alternative to __STDC__.
1811 * bfd-in2.h: Rebuilt.
1812 * syms.c (bfd_print_symbol_vandf): Convert a PTR to FILE*.
1813
6f56c941
DM
1814Thu Jan 6 14:24:44 1994 David J. Mackenzie ([email protected])
1815
1816 * aoutx.h (translate_to_native_sym_flags): Catch the case where
1817 there is no output section.
1818
2f84ec0d
ILT
1819Thu Jan 6 14:37:42 1994 Ian Lance Taylor ([email protected])
1820
90d58284
ILT
1821 * nlmcode.h (nlm_object_p): If we can't read the fixed header,
1822 count it as a wrong format error, not a system call error, since
1823 the object file might simply be too small.
1824
1825 * targets.c (target_vector): Added nlm32_alpha_vec inside #ifdef
1826 BFD64.
1827 * Makefile.in (BFD32_BACKENDS): Remove nlm32-alpha.o.
1828 (BFD64_BACKENDS): Add nlm32-alpha.o. It depends on 64 bit
1829 support, even though it is for an Alpha in 32 bit mode.
1830 * configure.in (nlm32_alpha_vec): Set target64 to true.
1831
1832 * nlm32-gen.c, nlm64-gen.c: Removed. All nlm targets are
1833 different, so there is no point to providing a generic one.
1834 * libnlm.h: Don't bother to check for nlm_backend(bfd) being NULL
1835 in the backend accessor macros; that should no longer be possible.
1836 * targets.c (target_vector): Removed nlm32_big_generic_vec,
1837 nlm64_big_generic_vec, nlm64_little_generic_vec.
1838 * configure.in (nlm32_big_generic_vec, nlm32_little_generic_vec,
1839 nlm64_big_generic_vec, nlm64_little_generic_vec): Removed.
1840 * Makefile.in: Rebuilt dependencies, and
1841 (BFD32_BACKENDS): Removed nlm32-gen.o.
1842 (BFD64_BACKENDS): Removed nlm64-gen.o.
1843 (CFILES): Removed nlm32-gen.c and nlm64-gen.c.
1844
559d5074
ILT
1845 * hp300hpux.c (ARCH_SIZE): Define before including aoutx.h.
1846
2f84ec0d
ILT
1847 * linker.c (_bfd_generic_link_add_one_symbol): Add constructor and
1848 bitsize arguments. Changed all callers (aoutx.h).
1849 * libbfd-in.h (_bfd_generic_link_add_one_symbol): Add constructor
1850 and bitsize arguments to declaration.
1851 * libbfd.h: Rebuilt.
1852
1853 * ecoff.c: First cut at new style of linker backend for
1854 ECOFF--added a bunch of functions. Also:
1855 (ecoff_sec_to_styp_flags): Set flags for .pdata and .xdata.
1856 (ecoff_slurp_symbolic_header): New function.
1857 (ecoff_slurp_symbolic_info): Call ecoff_slurp_symbolic_header.
1858 (ecoff_compute_reloc_file_positions): New function.
1859 (ecoff_set_section_contents): Get out quickly if count is zero.
1860 Check errors better.
1861 (ecoff_write_object_contents): Put .xdata section in data segment.
1862 Call ecoff_compute_reloc_file_positions. Don't output relocs or
1863 external symbols if outsymbols is NULL.
1864 (ecoff_bfd_final_link): Completely rewritten.
1865 * libecoff.h: Include bfdlink.h.
1866 (struct ecoff_backend_data): Add relocate_section field.
1867 (ecoff_data_type): Add sym_hashes and symndx_to_section fields.
1868 (struct ecoff_link_hash_entry): Define.
1869 (struct ecoff_link_hash_table): Define.
1870 (ecoff_bfd_link_add_symbols): Declare as function, not macro.
1871 (ecoff_bfd_link_hash_table_create): Likewise.
1872 * ecofflink.c (bfd_ecoff_debug_one_external): New function.
1873 (bfd_ecoff_debug_externals): Call bfd_ecoff_debug_one_external.
1874 * bfd-in.h (bfd_ecoff_debug_one_external): Declare.
1875 * bfd-in2.h: Rebuilt.
1876 * coff-alpha.c (alpha_howto_table): Mark BRADDR as
1877 partial_inplace, and set the src_mask to 0x1fffff.
1878 (alpha_ecoff_get_relocated_section_contents): Remove unused
1879 variable gp_warned.
1880 (alpha_convert_external_reloc): New static function.
1881 (alpha_relocate_section): New static function.
1882 (alpha_ecoff_backend_data): Initialize relocate_section field.
1883 * coff-mips.c (mips_relocate_refhi): New static function.
1884 (mips_relocate_section): New static function.
1885 (mips_ecoff_backend_data): Initialize relocate_section field.
1886
1887 * reloc.c (_bfd_relocate_contents): Corrected signed overflow
1888 checking when there is an addend.
1889
1890 * aoutx.h (NAME(aout,final_link)): Don't abort when trying to link
1891 a non a.out file, just pass it to _bfd_default_link_order.
1892 (aout_link_input_section_std): When doing a final PC relative link
1893 against a section symbol, subtract the VMA of the input section.
1894 (aout_link_input_section_ext): Likewise.
1895
1896 * linker.c (default_indirect_link_order): Renamed from
1897 _bfd_generic_indirect_link_order and made static.
1898 (_bfd_generic_final_link): Don't switch on link_order type, just
1899 call _bfd_default_link_order.
1900 (_bfd_default_link_order): Handle bfd_indirect_link_order type.
1901 * genlink.h: Removed declaration of
1902 _bfd_generic_indirect_link_order.
1903 * elf32-mips.c (mips_elf_final_link): Don't switch on link_order
1904 type, just call _bfd_default_link_order.
1905
1906Tue Jan 4 21:23:37 1994 Ian Lance Taylor ([email protected])
1907
1908 * linker.c (generic_link_check_archive_element): Base the name of
1909 the created common section on the name of the section the symbol
1910 came from.
1911 (_bfd_generic_link_add_one_symbol): (case BIG): A common symbol
1912 must have a section, so don't bother to create one.
1913
83acd9a2
DM
1914Mon Jan 3 15:32:16 1994 David J. Mackenzie ([email protected])
1915
1916 * aout-target.h (MY(vec)): Add DYNAMIC to mask of object flags.
1917 * aoutf1.h (NAME(aout,sunos4_write_object_contents)):
1918 If the DYNAMIC flag is set, set it in the exec header.
1919 * aoutx.h (NAME(aout,some_aout_object_p)): If the object is
1920 dynamically linked, set the DYNAMIC flag in the BFD.
1921 * libaout.h (N_SET_DYNAMIC): New macro.
1922 (N_DYNAMIC): Add missing 0 in mask.
1923
031534b0
ILT
1924Mon Jan 3 11:41:45 1994 Ian Lance Taylor ([email protected])
1925
2f84ec0d
ILT
1926 * ecoff.c (ecoff_get_extr): Don't output section symbols as
1927 external symbols.
1928
85d73944
ILT
1929 * bfd-in.h, hash.c: Change bfd_hash_allocate argument from size_t
1930 to unsigned int, because size_t may not be defined in bfd.h.
1931 * bfd-in2.h: Rebuilt.
1932
8120aa8f
ILT
1933 * bfd-in.h (bfd_get{b,l}[_signed_]{16,32,64}): Declare argument to
1934 be a const pointer.
1935 * bfd-in2.h: Rebuilt.
1936 * libbfd.c (bfd_get{b,l}[_signed_]{16,32,64}): Declare argument to
1937 be a const pointer.
1938 * targets.c (bfd_target): Change swap function pointers
1939 accordingly.
1940 * archive.c (do_slurp_coff_armap): Change swap accordingly.
1941 * aix386-core.c: Change NO_GET and NO_GETS accordingly.
1942 * hppabsd-core.c, hpux-core.c, irix-core.c, osf-core.c,
1943 ptrace-core.c, trad-core.c: Change NO_GET and NO_SIGNED_GET
1944 accordingly.
1945
b59f0276
ILT
1946 * libbfd-in.h (struct artdata): Added tdata field.
1947 (_bfd_add_bfd_to_archive_cache): Declare.
2af2b7c4 1948 (_bfd_get_elt_at_filepos): Declare.
b59f0276
ILT
1949 (_bfd_snarf_ar_hdr): Renamed from snarf_ar_hdr.
1950 * libbfd.h: Rebuilt.
1951 * archive.c: Cleaned up some more.
1952 (_bfd_generic_mkarchive, bfd_generic_archive_p): Initialize
1953 pointer elements of artdata.
1954 (_bfd_add_bfd_to_archive_cache): Renamed from add_bfd_to_cache.
1955 (_bfd_snarf_ar_hdr): Renamed from snarf_ar_hdr.
2af2b7c4
ILT
1956 (_bfd_get_elt_at_filepos): Renamed from get_elt_at_filepos.
1957 (get_extended_arelt_filename, bfd_construct_extended_name_table,
1958 bfd_ar_hdr_from_filesystem, compute_and_write_armap): Made static.
b59f0276
ILT
1959 * ecoff.c: Some comment changes.
1960 (ecoff_slurp_armap): Handle rename of snarf_ar_hdr. Set
1961 ardata->tdata to raw_armap.
1962 (ecoff_archive_p): Initialize pointer elements of artdata.
1963 * coff-rs6000.c (rs6000coff_get_elt_at_filepos): Handle rename of
1964 add_bfd_to_cache.
1965
031534b0
ILT
1966 * hash.c: Added some documentation.
1967
3f99570e
JK
1968Mon Jan 3 11:09:28 1994 Jim Kingdon ([email protected])
1969
1970 * aout-target.h, netbsd386.c: Replace NO_SWAP_MAGIC with SWAP_MAGIC,
1971 and do the swapping here rather than calling ntohl from the N_*
1972 macros. This cleans up assumptions about the size of a host long,
1973 the existence to ntohl, etc.
1974
e38bcbdb
RS
1975Sat Jan 1 13:50:05 1994 Rob Savoye ([email protected])
1976
1977 * config.bfd: Add support for VSTa micro-kernel. It currently uses
1978 i386-aout.
1979
f4d7c848
DM
1980Sat Jan 1 10:18:54 1994 David J. Mackenzie ([email protected])
1981
00fe3f53 1982 * hosts/i386mach3.h (HOST_SEGMENT_SIZE): Fix value.
f4d7c848
DM
1983 * i386mach3.c (SEGMENT_SIZE): Fix value.
1984
728472f1
ILT
1985Fri Dec 31 16:23:43 1993 Ian Lance Taylor ([email protected])
1986
1987 Minor cleanups suggested by CodeCenter.
1988 * aoutx.h, coffgen.c, ecoff.c, ecofflink.c, elf.c, libbfd.c,
1989 linker.c, reloc.c, section.c, srec.c: Added /*ARGSUSED*/ as
1990 appropriate.
1991 * aoutx.h (struct external_exec): Removed unnecessary declaration.
1992 (NAME(aout,some_aout_object_p)): Set some tdata pointers to NULL.
1993 (adjust_z_magic): Removed useless variable data_vma.
1994 (stringtab_init): Initialize hash_zero.
1995 (add_to_stringtab): Removed unused fourth argument.
1996 (NAME(aout,swap_std_reloc_out)): Removed useless variable
1997 r_addend.
1998 (aout_link_input_section): Added some casts.
1999 * archive.c (get_extended_arelt_filename, do_slurp_coff_armap,
2000 bfd_ar_hdr_from_filesystem, bsd_write_armap, coff_write_armap):
2001 Minor code rewriting to make it more C like.
2002 (do_slurp_bsd_armap): Added some casts.
2003 * ecoff.c (ecoff_write_object_contents): Removed useless variable
2004 scn_base.
2005 (ecoff_write_armap): Added some casts. Use "" rather than "\0".
2006 * ecofflink.c (bfd_ecoff_write_debug): Added a cast.
2007 * libaout.h (struct internal_exec): Removed unnecessary
2008 declaration.
2009 * linker.c (_bfd_generic_indirect_link_order): Added a cast.
2010 * opncls.c (new_bfd): Removed a cast.
2011 * reloc.c (bfd_generic_get_relocated_section_contents): Added
2012 some casts.
2013 * srec.c (internal_srec_write_object_contents): Removed useless
2014 variable bytes_written.
2015
696df58f
DM
2016Fri Dec 31 11:46:13 1993 David J. Mackenzie ([email protected])
2017
2018 * i386mach3.c (N_TXTADDR): Don't define after all.
2019 (TEXT_START_ADDR): Don't include exec header size in value.
2020
e450eb45
DM
2021Thu Dec 30 15:47:54 1993 David J. Mackenzie ([email protected])
2022
2023 * i386mach3.c (N_TXTADDR): Define.
2024
4c3721d5
ILT
2025Thu Dec 30 13:37:24 1993 Ian Lance Taylor ([email protected])
2026
2027 Extensive changes to move the bulk of the linker into BFD so that
2028 more efficient backend code can be written for specific object
2029 files. Only existing efficient backend is a.out.
2030 * seclet.c, seclet.h: Removed.
2031 * hash.c, linker.c, genlink.h: New files.
2032 * bfd-in.h: Removed bfd_error_vector. Declared hash table
2033 structures and functions.
2034 (JUMP_TABLE): Removed bfd_seclet_link, added
2035 bfd_link_hash_table_create, bfd_link_add_symbols and
2036 bfd_final_link.
2037 * All backends: Changed accordingly.
2038 * bfd-in2.h: Rebuilt.
2039 * bfd.c (struct _bfd): Added link_next and archive_pass fields.
2040 Removed ld_symbols field.
2041 (bfd_nonrepresentable_section, bfd_undefined_symbol,
2042 bfd_reloc_value_truncated, bfd_reloc_is_dangerous,
2043 bfd_error_vector): Removed.
2044 (bfd_default_error_trap, bfd_error_trap,
2045 bfd_error_nonrepresentabltrap): Removed.
2046 (bfd_get_relocated_section_contents): Pass link_info. Pass
2047 link_order instead of seclet. Pass symbols.
2048 (bfd_relax_section): Pass link_info.
2049 (bfd_seclet_link): Removed.
2050 (bfd_link_hash_table_create, bfd_link_add_symbols,
2051 bfd_final_link): New macros.
2052 * libbfd-in.h: If __GNUC__ is defined and alloca is not, define
2053 alloca as __builtin_alloca. Declare internal linking functions.
2054 * libbfd.h: Rebuilt.
2055 * libbfd.c (bfd_seek): Comment out fseek assertion. It's worked
2056 for months.
2057 * reloc.c (reloc_howto_type): Added error_message argument to
2058 special_function field. Changed all callers and all definitions.
2059 (bfd_get_reloc_size): Make argument a const pointer.
2060 (bfd_perform_relocation): Add error_message argument to hold
2061 string set if return value if bfd_reloc_dangerous. Changed all
2062 callers.
2063 (_bfd_final_link_relocate, _bfd_relocate_contents): New functions.
2064 * section.c (asection): Renamed seclets_head and seclets_tail to
2065 link_order_head and link_order_tail.
2066 * targets.c (bfd_target): Replaced seclet argument with link_info
2067 and link_order and symbols arguments in
2068 bfd_get_relocated_section_contents. Added symbols argument to
2069 bfd_relax_section. Removed bfd_seclet_link. Added
2070 bfd_link_hash_table_create, bfd_link_add_symbols and
2071 bfd_final_link.
2072 * libaout.h (struct aoutdata): Added external_syms,
2073 external_sym_count, external_strings, sym_hashes fields.
2074 (obj_aout_external_syms, obj_aout_external_sym_count,
2075 obj_aout_external_strings, obj_aout_sym_hashes): New accessor
2076 macros.
2077 (WRITE_HEADERS): Only output symbols if outsymbols is not NULL.
2078 * aoutx.h: Wrote new back end linker routines.
2079 (translate_to_native_sym_flags): Return boolean value. Don't use
2080 bfd_error_vector.
2081 (NAME(aout,write_syms)): Return boolean value. Check return value
2082 of translate_to_native_sym_flags and bfd_write.
2083 * aout-target.h (final_link_callback): New function.
2084 (MY_bfd_final_link): New function.
2085 * aout-adobe.c (aout_adobe_write_object_contents): Check return
2086 value of aout_32_write_syms.
2087 * hp300hpux.c (MY(write_object_contents)): Likewise.
2088 * i386lynx.c (WRITE_HEADERS): Likewise.
2089 * libaout.h (WRITE_HEADERS): Likewise.
2090 * bout.c: Changed functions to use link_info->callbacks rather
2091 than bfd_error_vector, and link_orders rather than seclets.
2092 * coff-alpha.c: Likewise.
2093 * coff-h8300.c: Likewise.
2094 * coff-h8500.c: Likewise.
2095 * coff-sh.c: Likewise.
2096 * coff-z8k.c: Likewise.
2097 * elf32-hppa.c: Likewise.
2098 * reloc16.c: Likewise.
2099 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Look
2100 up _gp in the hash table rather than in outsymbols.
2101 * coff-a29k.c (a29k_reloc): Pass errors back in new error_message
2102 argument rather than printing them.
2103 * coffcode.h (bfd_coff_reloc16_extra_cases): Take link_info and
2104 link_order arguments rather than seclet. Changed all uses and
2105 definitions.
2106 (bfd_coff_reloc16_estimate): Pass link_info arguments. Changed
2107 all uses and definitions.
2108 * libcoff.h: Rebuilt.
2109 * ecoff.c (ecoff_get_extr): If symbol is defined by linker, but
2110 not by ECOFF, make it scAbs.
2111 (ecoff_bfd_final_link): Renamed from ecoff_bfd_seclet_link and
2112 rewritten.
2113 * elf32-mips.c (mips_elf_final_link): Renamed from
2114 mips_elf_seclet_link and rewritten.
2115 * elf32-hppa.c (elf32_hppa_stub_description): Added link_info
2116 field.
2117 (new_stub, add_stub_by_name, hppa_elf_build_arg_reloc_stub,
2118 hppa_elf_build_long_branch_stub, hppa_look_for_stubs_in_section):
2119 Added link_info arguments. Changed all callers.
2120 * elfcode.h (elf_slurp_symbol_table): Don't quit if outsymbols is
2121 not NULL.
2122 * oasys.c (oasys_write_sections): Return boolean value rather than
2123 using bfd_error_vector.
2124 (oasys_write_object_contents): Check return value of
2125 oasys_write_sections.
2126 * hosts/std-host.h: Don't declare qsort or strtol.
2127 * Makefile.in: Rebuild dependencies.
2128 (BFD_LIBS): Removed seclet.o. Added hash.o and linker.o.
2129 (CFILES): Removed seclet.c. Added hash.c and linker.c.
2130 (HFILES): Removed seclet.h. Added genlink.h.
2131
1adbf662
PS
2132Thu Dec 30 07:41:36 1993 Peter Schauer ([email protected])
2133
2134 * section.c (bfd_get_section_contents): Return zero filled buffer
2135 if section has no contents.
2136
d1b44e83
ILT
2137Tue Dec 28 12:43:54 1993 Ian Lance Taylor ([email protected])
2138
2139 * elf.c (bfd_elf_generic_reloc): If this is not an inplace reloc,
2140 then skip bfd_perform_relocation even if the addend is non-zero.
2141
a2805287
KR
2142Tue Dec 21 09:22:19 1993 Ken Raeburn ([email protected])
2143
2144 * coffcode.h (coff_write_relocs) [SWAP_OUT_RELOC_OFFSET]: Copy
2145 addend to r_offset field.
2146
2147 * Makefile.in (CFILES): Added coff-sparc.c. Rebuild dependencies.
2148
2149 * coff-sparc.c (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET,
2150 CALC_ADDEND): Define.
2151
2152 * aix386-core.c (aix386_core_file_p): Use cd_regs[0] for computing
2153 the offsetof because AIX /bin/cc does not like to take the address
2154 of an array. (From Minh Tran-Le.)
2155
277b2d2b
JL
2156Thu Dec 16 13:06:32 1993 Jeffrey A. Law ([email protected])
2157
a2805287
KR
2158 * Thu Dec 16 15:41:06 1993 Peter Hoogenboom ([email protected])
2159
2160 * elf32-hppa.c (hppa_elf_build_arg_reloc_stub): Make sure to copy
2161 the return pointer into %r2 if no jump-in-call-delay-slot
2162 optimization was done.
2163
277b2d2b
JL
2164 * hosts/hp300bsd.h: Correctly identify 4.3BSD vs 4.4BSD.
2165
f8af9b40
DM
2166Wed Dec 15 08:04:16 1993 David J. Mackenzie ([email protected])
2167
2168 * hosts/std-host.h: (time): Don't declare; conflicts on Mach3.
2169
2170 * hosts/i386mach3.h (HOST_PAGE_SIZE): Set to 1 to avoid padding.
2171 (HOST_SEGMENT_SIZE): Set to 0 for same reason.
2172
2173 * i386mach3.c (PAGE_SIZE, SEGMENT_SIZE): Same changes as above.
2174 (TEXT_START_ADDR): Correct.
2175 (MY_backend_data): Define.
2176
2177 * aoutx.h (adjust_o_magic, adjust_z_magic, adjust_n_magic):
2178 New functions; code moved from aout_<size>_adjust_sizes_and_vmas.
2179
c97ae6e4
JL
2180Tue Dec 14 21:48:33 1993 Jeffrey A. Law ([email protected])
2181
2182 * som.c (som_begin_writing): Fix thinkos in auxiliary header
2183 support.
2184 (bfd_som_attach_aux_hdr): Likewise.
2185
a36b6f1d
JL
2186Mon Dec 13 23:34:48 1993 Jeffrey A. Law ([email protected])
2187
2188 * elf32-hppa.c (hppa_elf_gen_reloc_type): Handle 'T' field
2189 selectors for PIC code.
2190
2191 * som.c (hppa_som_gen_reloc_type): Handle 'T' field selectors.
2192 (som_write_fixups): Handle R_DLT_REL, R_FSEL, R_RSEL, R_LSEL
2193 relocations needed by PIC.
2194
9e6f2498
SG
2195Tue Dec 7 15:47:51 1993 Stu Grossman (grossman at cygnus.com)
2196
2197 * nlmcode.h: Fixes to avoid compiler warnings...
2198
900e6d96
ILT
2199Tue Dec 7 15:10:54 1993 Ian Lance Taylor ([email protected])
2200
2201 * libnlm.h (nlm_backend_data): Removed macro definition.
2202 (nlm_alpha_backend_data): Adjusted accordingly.
2203
017a52d7
JL
2204Sun Dec 5 19:32:08 1993 Jeffrey A. Law ([email protected])
2205
f6c2300b
JL
2206 * som.c (som_begin_writing): Flesh out code for handling simple
2207 auxiliary headers.
2208 (bfd_som_attach_aux_hdr): New function.
2209
2210 * som.h (struct somdata): Add fields for attaching version and
2211 copyright headers. Add accessor macros.
2212
744069b8
JL
2213 * som.c (R_DLT_REL, R_AUX_UNWIND, R_SEC_STMT): Add protected
2214 definitions for old versions of HPUX which fail to define them.
2215 (som_hppa_howto_talbe): Add R_DLT_REL, R_AUX_UNWIND, and R_SEC_STMT
2216 now that they're safe. Delete bogus R_STATEMENT relocations.
2217
017a52d7
JL
2218 * som.c (som_hppa_howto_table): Add missing R_END_TRY. Delete
2219 extra R_DATA_OVERRIDE.
2220 (hppa_som_gen_reloc_type): Generate a relocation for the rounding
2221 mode selector if needed.
2222 (som_write_fixups): Handle requests for a change in the default
2223 rounding mode. Rounding modes do not consume input bytes, but
2224 are just markers much like R_ENTRY and R_EXIT.
2225
48eb5281
JL
2226Sat Dec 4 19:40:32 1993 Jeffrey A. Law ([email protected])
2227
2228 Fri Dec 3 09:55:17 1993 Pete Hoogenboom ([email protected])
2229
017a52d7
JL
2230 * elf32-hppa.c: (hppa_elf_reloc): Do not do code reordering when
2231 the branch instruction as originally been nullified.
2232 hppa_elf_reloc): Avoid useless call to bfd_put_32 () in the
2233 case of no code reordering due to an LDO instruction in the
2234 delay slot of the branch. Make sure to relocate the correct
2235 instruction. Do not perform instruction reordering for millicode
2236 calls.
2237 (hppa_elf_build_arg_reloc_stub): Change the relocation type
2238 to R_HPPA_STUB_CALL_17 when special processing might be needed.
2239 (hppa_elf_build_long_branch_stub): Prevent code reordering on
2240 a call from a linker stub to another linker stub and for millicode
2241 calls. Do not trash the return register for calls from one linker
2242 stub to a second linker stub.
2243
4861ac76
JL
2244 * elf32-hppa.c: (elf_hppa_howto_table): PLABEL and DLT
2245 relocations are not pc-relative.
2246
48eb5281
JL
2247 * hppa_stubs.h: (BLE_N_XXX_0_31): New instruction used in
2248 linker stub code.
2249 (COPY_2_31): Likewise.
2250
ecb2d887
ILT
2251Fri Dec 3 18:40:58 1993 Ian Lance Taylor ([email protected])
2252
2253 * config/solaris2.mh (HDEFINES): Remove -Dconst=
2254 * hosts/solaris.h: If not __GNUC__, define const as empty.
2255
800748cd
ILT
2256Thu Dec 2 15:43:32 1993 Ian Lance Taylor ([email protected])
2257
4919d3ab
ILT
2258 * ecoff.c: Added various casts for 32/64 bit cross targeting.
2259 (ecoff_mkobject_hook): Set SEC_SHARED_LIBRARY for the .reginfo
2260 section so that the linker ignores it.
2261 * ecofflink.c: Added various casts for 32/64 bit cross targeting.
2262 (ecoff_add_bytes): Changed need argument to size_t.
2263 (bfd_ecoff_debug_link_other): Check return value of
2264 ecoff_add_string.
2265
2266 * libbfd-in.h (new_bfd): Use void rather than an empty parameter
2267 list.
2268 * libbfd.h: Rebuilt.
2269
800748cd
ILT
2270 * libnlm.h (struct nlm_obj_tdata): New field backend_data.
2271 (nlm_backend_data, nlm_alpha_backend_data): New accessor macros.
2272 (struct nlm_backend_data): New field no_uninitialized_data.
2273 (nlm_no_uninitialized_data): New accessor macro.
2274 * nlmcode.h (nlm_compute_section_file_positions): Handle
2275 no_uninitialized_data.
2276 (nlm_external_reloc_compare): Sort relocs by address for a
2277 particular symbol, to make the sort more stable.
2278 (nlm_write_object_contents): Cast the arguments to qsort. Get the
2279 value of a debugging symbol the same way we get the value of a
2280 normal symbol.
2281 * nlm32-alpha.c: Various changes. Write out GP and .lita relocs.
2282 Set no_uninitialized_data to true.
2283 * nlm32-i386.c (nlm32_i386_backend), nlm32-sparc.c
2284 (nlm32_sparc_backend): Set no_uninitialized_data field false.
2285 * nlmswap.h (nlm_swap_fixed_header_out): Zero out destination
2286 before filling it in.
2287
a7f6a456
JL
2288Wed Dec 1 21:47:58 1993 Jeffrey A. Law ([email protected])
2289
2290 * som.c (som_section_type, som_decode_symcalss): New functions.
2291 (som_get_symbol_info): Use them.
2292 (som_slurp_symbol_table): Set the section of common and undefined
2293 symbols correctly.
2294
848ace96
KR
2295Wed Dec 1 14:15:10 1993 Ken Raeburn ([email protected])
2296
2297 * elfcode.h (write_relocs): Initialize local var LAST_SYM_IDX, to
2298 make gcc happy.
2299
2300 * mipsbsd.c: Changes from Ralph Campbell:
2301 (mips_howto_table_ext): MIPS_RELOC_LO16 should use
2302 complain_overflow_dont.
2303 (aout_mips_*_vec): Make name use "a.out" instead of "aout", to
2304 make gdb happy.
2305
2306 * bfd.c (bfd_errmsgs): Reword invalid-target message.
2307
2308 * config.bfd: For sparc*-*-coff, use sparc-coff.
2309 * configure.in: Handle sparccoff_vec.
2310 * targets.c (sparccoff_vec): Declare.
2311
2312 * reloc.c (bfd_get_reloc_size): New function.
2313 (struct reloc_howto_type): Update documentation of size field.
2314
2f555d79
ILT
2315Wed Dec 1 14:39:05 1993 Ian Lance Taylor ([email protected])
2316
68eaffda
ILT
2317 * nlm32-alpha.c: New file; preliminary Alpha NetWare support.
2318 * config.bfd (alpha-*-netware*): New target; use alpha-nlm.
2319 * config/alpha-nlm.mt: New file.
2320 * configure.in (nlm32_alpha_vec): New vector; use nlm32-alpha.o,
2321 nlm32.o, and nlm.o.
2322 * Makefile.in (BFD32_BACKENDS): Added nlm32-alpha.o.
2323 (CFILES): Added nlm32-alpha.c.
2324 Rebuilt dependencies.
2325 * targets.c (nlm32_alpha_vec): Declare.
2326
2327 * libnlm.h (struct nlm_backend_data): New fields
2328 optional_prefix_size, nlm_backend_object_p, nlm_write_prefix,
2329 nlm_set_public_section, nlm_get_public_offset. Removed unused
2330 nlm_write_reloc field. Changed nlm_write_import to remove
2331 unnecessary symbol argument. Renamed nlm_write_externals to
2332 nlm_write_external, and changed cound argument from bfd_vma to
2333 bfd_size_type.
2334 (nlm_optional_prefix_size, nlm_backend_object_p_func,
2335 nlm_write_prefix_func, nlm_set_public_section_func,
2336 nlm_get_public_offset_func): New accessor macros.
2337 (nlm_write_reloc_func): Removed.
2338 (nlm_write_external_func): Adjusted for field renaming.
2339 * nlm32-i386.c (nlm_i386_write_import): Renamed from
2340 nlm_i386_write_reloc. Removed old nlm_i386_write_import which
2341 just called old nlm_i386_write_reloc.
2342 (nlm_i386_write_external): Renamed from nlm_i386_write_externals.
2343 Declared. Changed second argument from bfd_vma to bfd_size_type.
2344 (nlm32_i386_backend): Adjusted for changes to fields and names.
2345 * nlm32-sparc.c (nlm_sparc_mangle_relocs): Removed unused,
2346 ifdeffed out code.
2347 (nlm_sparc_write_import): Removed second argument.
2348 (nlm_sparc_write_external): Renamed from
2349 nlm_sparc_write_externals. Changed second argument from bfd_vma
2350 to bfd_size_type.
2351 (nlm32_sparc_backend): Adjusted for changes to fields and names.
2352 * nlmcode.h: Removed some unused code.
2353 (nlm_object_p): Don't destroy tdata pointer. Call
2354 backend_object_p function if it exists.
2355 (nlm_slurp_symbol_table): Removed unused variable rcount. Call
2356 set_public_section_func if it exists instead of checking
2357 NLM_HIBIT.
2358 (nlm_compute_section_file_positions): Account for
2359 optional_prefix_size.
2360 (nlm_write_object_contents): Account for optional_prefix_size.
2361 Removed useless variable write_reloc_func. Changed declaration
2362 and call of write_import_func. Call write_prefix_func if it
2363 exists. Removed unused variables len and temp. Call
2364 get_public_offset_func if it exists rather than setting NLM_HIBIT.
2365 * nlmswap.h: Declare functions.
2366
2f555d79
ILT
2367 * bfd-in.h (uint64_typeLOW, uint64_typeHIGH): Fully parenthesize
2368 for clarity.
2369 (fprintf_vma, sprintf_vma): Use %lx, not %x.
2370 * bfd-in2.h: Rebuilt.
2371 * hosts/alphaosf.h (uint64_typeLOW, uint64_typeHIGH): Cast results
2372 to unsigned long.
2373
2374 * config.bfd: Don't set target64 here, as the setting is ignored.
2375 * configure.in (ecoffalpha_little_vec): Set target64.
2376
2377 * config/alphaosf.mt (TDEFINES): Removed; setting host parameters
2378 in TDEFINES is wrong.
2379
2380 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
2381 Remove unused variable output_section.
2382
7cd39d69
ILT
2383Tue Nov 30 16:45:23 1993 Ian Lance Taylor ([email protected])
2384
2385 * irix-core.c: New file for Irix 4 and Irix 5 core support.
2386 Functions taken out of coff-mips.c. Handle vmap type VMAPFILE.
2387 * coff-mips.c: Irix 4 core file support moved to irix-core.c.
2388 * targets.c: If IRIX_CORE defined, include irix_core_vec in
2389 target_vector.
2390 * config/irix4.mh (HDEFINES): Add -DIRIX_CORE.
2391 (HDEPFILES): Define to be irix-core.o.
2392 * config/irix5.mh (HDEFINES): Define to be -DIRIX_CORE.
2393 (HDEPFILES): Define to be irix-core.o.
2394 * Makefile.in (OPTIONAL_BACKENDS): Added irix-core.o. Removed
2395 sco-core.o, which no longer exists.
2396 (CFILES): Added all *-core.c files.
2397 Rebuilt dependencies.
2398
8d12f138
ILT
2399Wed Nov 24 02:02:41 1993 Ian Lance Taylor ([email protected])
2400
6c35a16d
ILT
2401 * elfcode.h (map_program_segments): Restore check of file_size !=
2402 mem_size, but only if SHT_PROGBITS.
2403
8d12f138
ILT
2404 * ecofflink.c: New file to hold ECOFF debug information linking
2405 routines.
2406 * ecoff.c (ecoff_clear_output_flags, ecoff_rel, ecoff_dump_seclet,
2407 ecoff_add_string, ecoff_get_debug): Removed. Functionality now in
2408 ecofflink.c.
2409 (ecoff_get_extr, ecoff_set_index): New functions.
2410 (ecoff_slurp_symbolic_info): Don't save raw_size.
2411 (ecoff_bfd_seclet_link): Rewrote to use ecofflink.c functions.
2412 (ecoff_compute_section_file_positions): Don't set EXEC_P just
2413 because there is a start address.
2414 (ecoff_write_object_contents): Handle external symbols here. Use
2415 ecofflink.c functions to write out debugging information.
2416 * elf32-mips.c (mips_elf_read_ecoff_info, mips_elf_get_extr,
2417 mips_elf_set_index): New functions.
2418 (mips_elf_seclet_link): Discard empty sections, the .options
2419 section and .gptab sections. Handle linking .mdebug section.
2420 * libecoff.h (ecoff_data_type): Removed raw_size and ifdbase.
2421 * libelf.h (elf_symbol_type): Added mips_extr to tc_data union.
2422 * bfd-in.h: Added prototypes for routines in ecofflink.c (some are
2423 called by gas, so they are public).
2424 * bfd-in2.h: Rebuilt.
2425 * Makefile.in (BFD_LIBS): Added ecofflink.o.
2426 (CFILES): Added ecofflink.c.
2427 (ecofflink.o): New target. Rebuilt dependencies.
2428
abb324b2
JL
2429Mon Nov 22 22:26:42 1993 Jeffrey A. Law ([email protected])
2430
2431 * som.c (hppa_object_p): Also recognize SHARED_MAGIC_CNX as
2432 a valid magic number if it's been defined.
2433
8f45f604
ILT
2434Mon Nov 22 14:17:36 1993 Ian Lance Taylor ([email protected])
2435
2436 * ecoff.c (ecoff_mkobject): Don't create .scommon section; linker
2437 no longer requires it.
2438 (ecoff_bfd_seclet_link, ecoff_sizeof_headers,
2439 ecoff_write_object_contents): Don't treat .scommon section
2440 specially.
2441
c236d8b3
FF
2442Mon Nov 22 10:54:27 1993 Fred Fish ([email protected])
2443
2444 Merged changes from [email protected] (Kevin A. Buettner):
2445 * bfd/config/delta88.mh (HDEFINES): Define this to be -DPTRACE_CORE.
2446 * bfd/config/delta88.mh (HDEPFILES): Defined to be ptrace-core.o.
2447 * bfd/ptrace-core.c: New file for dealing with core files with
2448 start with the ptrace_user structure found on BCS compliant systems.
2449 * bfd/targets.c (ptrace_core_vec): New vector.
2450
36456a67
JL
2451Mon Nov 22 02:33:12 1993 Jeffrey A. Law ([email protected])
2452
2453 * Minimal support for reading SOM fixup streams. Allows
2454 objdump -r to do something reasonable.
2455 * som.c (som_get_reloc_upper_bound): Implement.
2456 (som_canonicalize_reloc): Implement.
2457 (som_set_reloc_info, som_slurp_reloc_table): New functions.
2458
8d12f138
ILT
2459Sun Nov 21 13:46:55 1993 Ken Raeburn ([email protected])
2460
2461 * hosts/lynx.h (FPRINTF_ALREADY_DECLARED): Define.
2462 * hosts/sparclynx.h: Include lynx.h instead of duplicating it.
2463
a1bff336
ILT
2464Fri Nov 19 14:34:04 1993 Ian Lance Taylor ([email protected])
2465
533af031
ILT
2466 * coff-a29k.c (a29k_reloc): For R_IREL, don't left shift
2467 signed_value before sign extending it. Don't subtract out
2468 reloc_entry->address. This makes it compatible with what gas is
2469 generating.
2470
a1bff336
ILT
2471 * elfcode.h (elf_fake_sections): Accept .sbss as the name for a
2472 SHT_NOBITS sections.
2473 (map_program_segments): Don't leave the loop after the first
2474 SHT_NOBITS section.
2475 (assign_file_positions_except_relocs): Only force sh_offset and
2476 sh_addr to match modulo maxpagesize for a section which is not
2477 SHT_NOBITS. Changed the method used to force page alignment after
2478 a SHT_NOBITS section to only do it for the last such consecutive
2479 section, and to really force page alignment.
2480
96be1f52
KR
2481Fri Nov 19 04:02:01 1993 Ken Raeburn ([email protected])
2482
4c01d9b5
KR
2483 * coffcode.h (coff_slurp_symbol_table): Print more verbose message
2484 in the case of an unknown (or unhandled) storage class.
2485
96be1f52
KR
2486 * config/i386-lynx.mt (TDEFINES): FPRINTF_ALREADY_DECLARED should
2487 not be defined here, since it is a host attribute, not a target
2488 one.
2489 * config/m68k-lynx.mt, config/sparc-lynx.mt: Ditto.
2490
2491 * coffcode.h (coff_bfd_reloc_type_lookup): Don't define if already
2492 defined.
2493
2494 * coff-sparc.c: Define some relocations, based on ELF relocations.
2495 (enum reloc_type, bfd_coff_generic_reloc, coff_sparc_howto_table,
2496 struct coff_reloc_map, sparc_reloc_map,
2497 coff_sparc_reloc_type_lookup): Borrowed from elf32-sparc.c and
2498 elf.c, renamed.
2499 (coff_bfd_reloc_type_lookup): Define to be coff_sparc_reloc_....
2500 (rtype2howto): Index into coff_sparc_howto_table using
2501 dst->r_type.
2502
f8944f84
ILT
2503Thu Nov 18 11:45:39 1993 Ian Lance Taylor ([email protected])
2504
2505 * config.bfd (mips*-*-irix5*): New target; use mipsbelf.
2506 * configure.host (mips-sgi-irix5*) New host; use irix5 (no
2507 hosts/irix5.h created; just use std-host.h).
2508 * config/irix5.mh: New file; like irix4.mh, but don't use -G or
2509 -lmalloc.
2510 * Makefile.in: Rebuilt dependencies.
2511
2512 * ecoffswap.h: Changed type of internal pointers for swap out
2513 functions to const *.
2514
2515 * elf32-mips.c (mips_elf_got16_reloc): New function. Handle GOT16
2516 correctly for assembler, but linker support not implemented.
2517 (elf_mips_howto_table): Use mips_elf_got16_reloc for GOT16.
2518 (mips_elf_sym_is_global): New function; at least on Irix 5, all
2519 non section symbols are considered global.
2520 (elf_backend_sym_is_global): Define.
2521 (mips_elf_final_write_processing): New function. Set the MIPS
2522 architecture level correctly.
2523 (elf_backend_final_write_processing): Define.
2524 (mips_elf_section_from_shdr): Handle SHT_MIPS_OPTIONS.
2525 (mips_elf_fake_sections): Set entsize of .mdebug or .reginfo
2526 section to 1. Handle .options section.
2527 (mips_elf_acom_section, mips_elf_acom_symbol,
2528 mips_elf_acom_symbol_ptr): New static variables, used to build a
2529 generic .acommon section to hold SHN_MIPS_ACOMMON symbols.
2530 (mips_elf_symbol_processing): Handle SHN_MIPS_ACOMMON symbols by
2531 putting them all in a global .acommon section.
2532
2533 * elfcode.h (bfd_section_from_shdr): Don't dump core if target
2534 section has no ELF section data.
2535 (elf_make_sections): Set addralign of reloc section to 4.
2536 (elf_fake_sections): Likewise.
2537 (map_program_segments): Don't consider section 0.
2538 (assign_file_positions_except_relocs): Don't consider section 0.
2539 In the main loop, skip the symtab and strtab sections, since their
2540 positions are set elsewhere.
2541 (swap_out_syms): Set addralign of symtab section to 4. Set
2542 addralign of strtab sections to 1.
2543 (assign_file_positions_for_relocs): Don't consider section 0.
2544 (write_object_contents): Don't write out section 0.
2545
2546 * libelf.h (struct elf_backend_data): Added fields
2547 elf_backend_sym_is_global and elf_backend_final_write_processing.
2548 * elf32-target.h (elf32_bed): Added corresponding initializers.
2549 * elf64-target.h (elf64_bed): Likewise.
2550 * elfcode.h (sym_is_global): Take abfd argument. Call
2551 elf_backend_sym_is_global if it is not NULL.
2552 (elf_map_symbols): Pass abfd to sym_is_global.
2553 (write_object_contents): Call elf_backend_final_write_processing
2554 if it is defined.
2555
c9668c58
ILT
2556Wed Nov 17 18:43:28 1993 Ian Lance Taylor ([email protected])
2557
2558 * libecoff.h: Include coff/ecoff.h.
2559 (struct ecoff_backend_data): Move external debugging information
2560 fields into a single field pointing to an ecoff_debug_swap
2561 structure.
2562 (ecoff_data_type): Move debugging information fields into a single
2563 field pointing to an ecoff_debug_info structure.
2564 * coff-alpha.c, coff-mips.c, ecoff.c: Corresponding changes.
2565
2f555d79
ILT
2566Wed Nov 17 17:38:58 1993 Sean Eric Fagan ([email protected])
2567
2568 * nlmswap.h: New file to swap fixed header. Included by NLM
2569 backends.
2570 * libnlm.h (struct reloc_and_sec): Define.
2571 (struct nlm_backend_data): Add fields fixed_header_size,
2572 nlm_read_import, nlm_write_import, nlm_swap_fhdr_in,
2573 nlm_swap_fhdr_out.
2574 (nlm_fixed_header_size, nlm_read_import_func,
2575 nlm_write_import_func, nlm_swap_fixed_header_in_func,
2576 nlm_swap_fixed_header_out_func, nlm_write_external_func): New
2577 accessor macros.
2578 * nlmcode.h: Use new functions.
2579 * nlm32-i386.c: Provide new functions.
2580 * nlm32-sparc.c: New file; SPARC NLM backend.
2581
55ff7aef
SS
2582Wed Nov 17 13:56:10 1993 Stan Shebs ([email protected])
2583
2584 * i386lynx.c (swap_std_reloc_in, swap_ext_reloc_in): Ignore
2585 garbage bits appearing in the upper end of symbolnums.
2586
2587 * config/sparc-lynx.mt (TDEFINES): Add -DFPRINTF_ALREADY_DECLARED.
2588
343c1a96
SG
2589Tue Nov 16 17:03:41 1993 Stu Grossman (grossman at cygnus.com)
2590
2591 * lynx-core.c (lynx_core_file_p): Change bfd_zalloc to bfd_alloc.
2592 * m68klynx.c: Define core file macros.
2593 * hosts/i386lynx.h, hosts/m68klynx.h, hosts/lynx.h: Move all
2594 non-architecture specific stuff into lynx.h.
2595
794057a7
JK
2596Tue Nov 16 15:45:54 1993 Jim Kingdon ([email protected])
2597
2598 * i386linux.c: Define new macro ZMAGIC_DISK_BLOCK_SIZE to 1024, and
2599 change PAGE_SIZE to 4096.
2600
2601Mon Nov 15 11:48:08 1993 Ken Raeburn ([email protected])
2602
2603 * Makefile.in (diststuff): New target.
2604
2605 * VERSION: Updated.
2606
09796011
JL
2607Sun Nov 14 23:33:01 1993 Jeffrey A. Law ([email protected])
2608
3be54498
JL
2609 * som.c (som_object_setup): Do not create dummy ".text", ".data",
2610 and ".bss" sections.
2611 (setup_sections): Do not set SEC_HAS_CONTENTS if a section's size
2612 is zero. Recognize BSS type sections and turn off SEC_LOAD and
2613 SEC_DATA (so binutils/size works). Set the correct value for
2614 a section's _raw_size.
2615 (som_slurp_symbol_table): Program entry points, and millicode are
2616 also functions. Mark them as such. Also mark L$* symbols as
2617 debugging symbols.
2618
09796011
JL
2619 * bfd-in2.h: Rebuilt.
2620
aff97790
JL
2621Sat Nov 13 15:27:15 1993 Jeffrey A. Law ([email protected])
2622
91c0bcbb
JL
2623 * som.c (som_bfd_reloc_type_lookup): Add missing prototype. Returns
2624 a pointer to constant data. Delete bogus #define which made the
2625 function useless.
2626
aff97790 2627 * som.c (som_prep_for_fixups): New function.
9d0dea6f 2628 (som_write_fixups): New function.
0b35f7ec 2629 (som_write_space_strings): New function.
6eb64408
JL
2630 (som_write_symbol_strings): New function.
2631 (som_begin_writing): New function.
aff97790 2632
40249bfb
JL
2633Fri Nov 12 15:29:36 1993 Jeffrey A. Law ([email protected])
2634
980bac64
JL
2635 * som.c (som_write_object_contents): Do not abort. Flesh out.
2636 (som_set_section_contents): Do not abort. Flesh out.
2637
efc0df7c
JL
2638 * som.c (som_write_headers): New function.
2639 (som_prep_headers): New function.
713de7ec 2640 (som_build_and_write_symbol_table): New function.
7057b78f 2641
2212ff92
JL
2642 * som.c (som_sizeof_headers): Add missing prototype.
2643 (som_set_arch_mach): Do not abort.
2644
5532fc5a
JL
2645 * som.c (som_count_spaces): New function.
2646 (som_count_subspaces): New function.
2647 (compare_syms): New function.
2648 (som_compute_checksum): New function.
2649
32619c58
JL
2650 * som.c (hppa_som_gen_reloc_type): New function.
2651 (som_bfd_reloc_type_lookup): New function.
2652
54bbfd37
JL
2653 * som.c (try_prev_fixup): New function.
2654 (som_reloc_skip): New function.
2655 (som_reloc_addend): New function.
efc0df7c 2656 (som_reloc_call): New function.
54bbfd37 2657
d125665c
JL
2658 * som.c (som_initialize_reloc_queue): New function.
2659 (som_reloc_queue_insert): Likewise.
2660 (som_reloc_queue_fix): Likewise.
2661 (som_reloc_queue_find): Likewise.
2662
fcb0c846
JL
2663 * som.c (som_hppa_howto_table): SOM howto relocation table.
2664 (hppa_som_reloc): New function.
2665
4fdb66cd
JL
2666 * som.c (struct reloc_queue): New structure to keep track of
2667 the last four multibyte relocations emitted.
2668 (enum pa_symbol_type): Type to fully describe the symbol types
2669 associated with .import/.export assembler directives.
2670
70f1d738
JL
2671 * som.c: Include libhppa.h
2672
40249bfb
JL
2673 * som.c (bfd_som_set_section_attributes): New function.
2674 (bfd_som_set_subsection_attributes): Likewise.
2675 (bfd_som_set_symboL_type): Likewise.
2676 (bfd_som_attach_unwind_info): Likewise.
2677 * som.h: Declare new exported functions.
2678
2679 * som.h (struct som_symbol): Add new fields to hold additional
2680 information needed to build/write symbol tables and fixup streams.
2681 (struct som_section_data_struct): Add new fields to hold additional
2682 information needed to build/write space and subspace headers.
2683 (som_symbol_data): New accessor macro for SOM symbol information.
2684 (R_HPPA_*): Basic relocation types to be used by the assembler.
2685
115f7430
JK
2686Fri Nov 12 11:00:28 1993 Jim Kingdon ([email protected])
2687
2688 * trad-core.c (trad_unix_core_file_p): If new hook
2689 TRAD_CORE_ALLOW_ANY_EXTRA_SIZE defined, then skip the check for the
2690 corefile being too big.
2691 * hosts/i386sco.h: Define it.
2692
3e80841e
JL
2693Thu Nov 11 15:16:28 1993 Jeffrey A. Law ([email protected])
2694
8a71bf96
JL
2695 * bfd.c (struct _bfd): Add hppabsd_core_data.
2696 * targets.c (target_vector): Add hppabsd_core_vec.
2697 * hpux-core.c (hpux_core_core_file_p): Fail if an unknown core
2698 section is encountered during core section scanning.
2699 * hppabsd-core.c: New file.
2700 * config/hppabsd.mh: Enable HPPA BSD core files.
2701
3e80841e
JL
2702 * elf32-hppa.c (hppa_elf_reloc): Remove DEFUN crud. Remove code
2703 which is either commented out or ifdef'd out. Add, update and
2704 clean comments. Fix various indention and spacing problems. Handle
2705 problems related to using "ble" to jump to a stub rather than "bl"
2706 (%r31 is trashed by "ble", but not by "bl").
2707 (NEW_INSTRUCTION): Put inside curly braces.
2708 (CURRENT_STUB_OFFSET): Fix indention problems.
2709 (hppa_elf_build_arg_reloc_stub): Fix indention and spacing problems.
2710 Add, update and clean comments. Handle "ble" %r31 lossage problems.
2711 (hppa_elf_build_long_branch_stub): Likewise.
2712 (hppa_look_for_stubs_in_section): Likewise.
2713 (hppa_elf_stub_check): Remove obsolete function.
2714
2715 * hppa_stubs.h: Add new instructions to deal with %r31 lossage
2716 problems. Delete unused instructions.
2717
0f5bc783
SS
2718Tue Nov 9 11:40:27 1993 Stan Shebs ([email protected])
2719
2720 * m68klynx.c (TARGET_IS_BIG_ENDIAN_P): Define.
2721
95469b02
ILT
2722Tue Nov 9 11:26:05 1993 Ian Lance Taylor ([email protected])
2723
346f0414
ILT
2724 * elfcode.h (elf_object_p): Rather than looking through an array
2725 of architectures, get the ELF EM_xxx code from the backend
2726 information. Let the generic ELF target match any EM_xxx code not
2727 matched by another ELF target. Call elf_backend_object_p to let
2728 the backend do more checks and set global information.
2729 * libelf.h (struct elf_backend_data): Added elf_machine_code and
2730 elf_backend_object_p fields.
2731 (struct bfd_elf_arch_map): Removed.
2732 (bfd_elf_arch_map, bfd_elf_arch_map_size): Don't declare.
2733 * elf32-target.h, elf64-target.h: Initialize elf_machine_code
2734 field with ELF_MACHINE_CODE. Initialize elf_backend_object_p
2735 field with elf_backend_object_p (if it is defined).
2736 * elf32-gen.c, elf32-hppa.c, elf32-i386.c, elf32-i860.c,
2737 elf32-m68k.c, elf32-m88k.c, elf32-mips.c, elf32-sparc.c,
2738 elf64-gen.c (ELF_MACHINE_CODE): Defined.
2739 * elf32-mips.c: Include ecoffswap.h to get ECOFF swapping
2740 routines.
2741 (mips_elf_object_p): Set the right machine number.
2742 (mips_elf_ecoff_debug_swap): Defined.
2743 (elf_backend_object_p): Defined to be mips_elf_object_p.
2744 (elf_backend_ecoff_debug_swap): Defined to be
2745 mips_elf_ecoff_debug_swap.
2746 * elf.c (bfd_elf_arch_map, bfd_elf_arch_map_size): Removed.
2747
2748 * libbfd-in.h (target_vector, default_vector): Declare.
2749 * libbfd.h: Rebuilt.
2750 * format.c (target_vector, default_vector): Don't declare.
2751
2752 * elf32-mips.c (elf_mips_howto_table): Don't complain on overflow
2753 for R_MIPS_26. Correct overflow detection requires matching the
2754 upper four bits of the destination against the PC. From Ted Lemon
2755 <[email protected]>.
2756
2757 * bout.c (b_out_reloc_type_lookup): Return type should point to
2758 const data.
2759 * coff-i960.c (coff_i960_reloc_type_lookup): Likewise.
2760 * elf32-hppa.c (elf_hppa_reloc_type_lookup): Likewise.
2761 * mipsbsd.c (MY(reloc_howto_type_lookup)): Likewise.
2762 * coff-i386.c (coff_i386_reloc): Made howto const.
2763 * oasys.c (oasys_write_data): Made how const.
2764
95469b02
ILT
2765 * libelf.h: Added some comments.
2766 (struct elf_backend_data): Added elf_backend_ecoff_debug_swap
2767 field. Removed unused write_relocs field.
2768 * elf32-target.h: Adjusted elf_backend_data initialization
2769 accordingly.
2770 * elf64-target.h: Corrected elf_backend_data initialization to
2771 fill in all fields and to set elf_64_p to 1.
2772
e2756048
ILT
2773Mon Nov 8 18:13:14 1993 Ian Lance Taylor ([email protected])
2774
7b8106b4
ILT
2775 * elfcode.h (bfd_section_from_shdr): Remove duplicate assignment
2776 to filepos in SHT_STRTAB case.
2777 (assign_file_position_for_section): Set BFD section filepos as
2778 well as ELF section sh_offset.
2779
e2756048
ILT
2780 * reloc.c: Use const instead of CONST.
2781 (bfd_perform_relocation): Make variable howto a const pointer.
2782 * bfd-in2.h, libbfd.h: Rebuilt.
2783
2784Mon Nov 8 12:19:15 1993 Jim Kingdon ([email protected])
2785
2786 * Makefile.in (realclean): Don't remove generated headers. Reverts
2787 change of 2 Jul 1993.
2788
007455de
DHW
2789Mon Nov 8 06:08:31 1993 D. V. Henkel-Wallace ([email protected])
2790
2791 * configure.bfd: make unixware equivalent to sysv4.
2792
2793 * config/i386-nlm.mt: bring in elf config; make it the default.
2794
1d3e8847
JL
2795Sun Nov 7 20:21:38 1993 Jeffrey A. Law ([email protected])
2796
2797 * libbfd.c (bfd_put_8): Add parens around reference to "val"
2798 argument.
2799
2ccb88c0
DM
2800Fri Nov 5 21:45:09 1993 David J. Mackenzie ([email protected])
2801
2802 * hosts/i386mach3.h (HOST_SEGMENT_SIZE),
2803 i386mach3.c (SEGMENT_SIZE, TEXT_START_ADDR): Correct values (?).
2804
0f396d2a
ILT
2805Fri Nov 5 15:17:57 1993 Ian Lance Taylor ([email protected])
2806
2807 * coffcode.h (coff_write_object_contents): Zero out internal_a.
2808
c188b0be
DM
2809Fri Nov 5 10:41:07 1993 David J. Mackenzie ([email protected])
2810
2811 * aoutx.h, archive.c, archures.c, bfd.c, cache.c, coffcode.h,
2812 core.c, ctor.c, format.c, init.c, libbfd.c, opncls.c, reloc.c,
2813 section.c, syms.c, targets.c:
2814 Doc cleanup (spelling, punctuation, grammar, formatting).
2815 * bfd-in2.h, libbfd.h: Rebuild.
c188b0be 2816
baf205c4
JG
2817Thu Nov 4 14:46:14 1993 John Gilmore ([email protected])
2818
2819 * bfd-in.h (bfd_get_cacheable, bfd_set_cacheable): New accessors.
2820 * bfd.c, opncls.c: Improve comments on file descriptor cacheing.
2821
fa8e8648
JL
2822Thu Nov 4 08:54:30 1993 Jeffrey A. Law ([email protected])
2823
2824 * From Pete Hoogenboom ([email protected])
2825 * elf32-hppa.c (hppa_elf_get_section_contents): Fix logic error
2826 in last change. Always rebuild symbol extension section the first
2827 time though if output sections exist (fixes ld -r problems).
2828
d5d53b0a
JW
2829Thu Nov 04 08:08:46 1993 Jeffrey Wheat ([email protected])
2830
2831 * Makefile.in: Add .PHONY for check and installcheck rules.
2832
2833Tue Nov 2 14:42:27 1993 Bill Cox ([email protected])
2834
2835 * libbfd-in.h (artdata): Use long, not time_t for portability, at
2836 least to HPUX. File below is a derived file.
2837
31eb3ead
BC
2838Tue Nov 2 14:42:27 1993 Bill Cox ([email protected])
2839
2840 * libbfd.h (artdata): Use long, not time_t for portability, at
2841 least to HPUX.
2842
242f60e2
JK
2843Tue Nov 2 09:32:25 1993 Jim Kingdon ([email protected])
2844
2845 * config.bfd: Use bigmips for mips*-*-bsd*.
2846
55d5b62d
ILT
2847Mon Nov 1 14:30:09 1993 Ian Lance Taylor ([email protected])
2848
f2e945df
ILT
2849 * elfcode.h (elf_slurp_reloca_table, elf_slurp_reloc_table):
2850 Handle symbol number of zero.
2851
7386c3b7
ILT
2852 * reloc.c (enum bfd_reloc_code_real): Added
2853 BFD_RELOC_MIPS_LITERAL, BFD_RELOC_MIPS_GOT16,
2854 BFD_RELOC_MIPS_CALL16, BFD_RELOC_MIPS_GPREL32.
2855 * bfd-in2.h: Rebuilt.
2856 * coff-mips.c (mips_bfd_reloc_type_lookup): Handle
2857 BFD_RELOC_MIPS_LITERAL.
2858 * elf32-mips.c (mips_reloc_map): Handle new relocs.
2859 (mips_elf_hi16_reloc, mips_elf_lo16_reloc): Rearrange _gp_disp
2860 checks slightly.
2861
55d5b62d
ILT
2862 * aout-target.h (MY_bfd_debug_info_start, MY_bfd_debug_info_end,
2863 MY_bfd_debug_info_accumulat [sic]): Remove unused definitions.
2864 (MY_bfd_get_relocated_section_contents, MY_bfd_relax_section,
2865 MY_bfd_seclet_link): Define.
2866 (MY_bfd_reloc_type_lookup): Rename from
2867 MY_reloc_howto_type_lookup.
2868 (MY_bfd_make_debug_symbol): Rename from MY_make_debug_symbol.
2869 (MY(vec)): Use JUMP_TABLE rather than listing functions.
2870 * hp300hpux.c (MY_get_symtab, MY_get_symtab_upper_bound,
2871 MY_canonicalize_reloc, MY_write_object_contents): Don't define in
2872 terms of MY, because that causes a recusive invocation of CAT when
2873 expanded within JUMP_TABLE, and ANSI compilers don't expand
2874 recursive macros.
2875 * mipsbsd.c (MY_bfd_reloc_type_lookup): Rename from
2876 MY_reloc_howto_type_lookup, and don't define in terms of MY.
2877 (MY_canonicalize_reloc): Don't define in terms of MY.
2878 (aout_mips_little_vec, aout_mips_big_vec): Use JUMP_TABLE rather
2879 than listing functions.
2880
6198b7a1
JK
2881Mon Nov 1 09:12:25 1993 Jim Kingdon ([email protected])
2882
2883 * config.bfd: Use m68k-elf for m68*-*-sysv4*.
2884
ceeca31c 2885See file ChangeLog.1
e6d739eb 2886
41126f15
JK
2887\f
2888Local Variables:
2889mode: indented-text
2890left-margin: 8
2891fill-column: 74
2892version-control: never
2893End:
This page took 0.530612 seconds and 4 git commands to generate.