]> Git Repo - binutils.git/blame - bfd/ChangeLog
* c-lang.c (asm_language_defn): New definitions for language_asm,
[binutils.git] / bfd / ChangeLog
CommitLineData
263a3f17
ILT
1Mon Jun 20 11:06:27 1994 Ian Lance Taylor ([email protected])
2
2f3508ad
ILT
3 * Many files: change all bfd_target vectors to be const. Change
4 all uses of bfd_target * to be const bfd_target *. Change
5 bfd_target_vector and bfd_default_vector arrays to be const
6 bfd_target * const *.
7
75f3ef7a
ILT
8 * ecoff.c, libecoff.h, ecoffswap.h, coff-alpha.c, coff-mips.c,
9 elf32-mips.c: Renamed all externally visible ECOFF routines which
10 are local to BFD to start with _bfd_ecoff instead of just ecoff.
11
aac6b32f
ILT
12 * ecoff.c (ecoff_swap_tir_in): Change input argument to const.
13 (ecoff_swap_tir_out): Likewise.
14 (ecoff_swap_rndx_in, ecoff_swap_rndx_out): Likewise.
15 (ecoff_slurp_symbolic_info): Add new arguments to correspond to
16 read_debug_info entry point in ecoff_debug_swap structure.
17 Change all calls.
18 * libecoff.h (ecoff_slurp_symbolic_info): Change declaration.
19 * ecoffswap.h (ecoff_swap_tir_in, ecoff_swap_tir_out): Declare.
20 (ecoff_swap_rndx_in, ecoff_swap_rndx_out): Declare.
21 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new
22 ecoff_debug_swap fields.
23 * coff-mips.c (mips_ecoff_backend_data): Likewise.
24 * elf32-mips.c (mips_elf_read_ecoff_info): Undefine READ.
25 (mips_elf_ecoff_debug_swap): Initialize new ecoff_debug_swap
26 fields.
27 * configure.in (bfd_elf32_bigmips_vec): Use ecoff.o and
28 ecofflink.o.
29 (bfd_elf32_littlemips_vec): Likewise.
30 (ecoff_big_vec, ecoff_little_vec): Likewise.
31 (ecoffalpha_little_vec): Likewise.
32 * Makefile.in (BFD_LIBS): Remove ecoff.o and ecofflink.o.
33 (BFD32_BACKENDS): Add ecoff.o and ecofflink.o.
34
6c8fa8e6
ILT
35 * aoutx.h (NAME(aout,final_link)): Check flavour of sub, not abfd,
36 when computing reloc sizes. From Eric Youngdale
37 <[email protected]>.
38 * elfcode.h (elf_bfd_final_link): Don't try to compute maximum
39 reloc count or size for a non-ELF file.
40
6fea0659
ILT
41 * mipsbsd.c (MY_final_link_callback): Define to avoid warning.
42
263a3f17
ILT
43 * hp300hpux.c (MY_final_link_callback): Define to avoid warning.
44 (BMAGIC, QMAGIC): Define; used by aoutx.h.
45 (MY(slurp_symbol_table)): Change translate_from_native_sym_flags
46 calls to use new parameters.
47
785e2b52
ILT
48Fri Jun 17 14:45:32 1994 Ian Lance Taylor ([email protected])
49
50 * aout-target.h (MY(callback)): Set the alignments of the text,
51 data and bss sections after determining the architecture.
52
53 * sunos.c (sunos_add_one_symbol): Treat a common symbol from a
54 dynamic object as being in the .bss section of the object, rather
55 than as being undefined.
56
83b69190
JL
57Fri Jun 17 11:16:50 1994 Jeff Law ([email protected])
58
9fefc1be
JL
59 * libhppa.h (bfd_hppa_insn2fmt, hppa_rebuild_insn): Make INLINE.
60
83b69190
JL
61 * elf32-hppa.h (elf_hppa_final_processing): Delete decl.
62
c46b8ed7
JL
63Thu Jun 16 23:36:23 1994 Jeff Law ([email protected])
64
65 * elfcode.h (elf_link_input_bfd): Don't try to read local symbols
66 if there aren't any in the input file.
67
04003b57
ILT
68Thu Jun 16 14:25:22 1994 Eric Youngdale ([email protected])
69
70 * i386linux.c: Many new functions and definitions for linker
71 support for Linux shared libraries.
72 * bfd-in.h (bfd_linux_size_dynamic_sections): Declare.
73 * bfd-in2.h: Rebuild.
74
75Thu Jun 16 14:23:46 1994 Ian Lance Taylor ([email protected])
76
e3400040
ILT
77 * config.bfd: If second argument is ``_'', then, instead of
78 echoing config file name, echo whether target uses leading
79 underscores on symbol names. Add appropriate settings to
80 different cases. Used by binutils/configure.in to set default for
81 c++filt.
82
0ff5d3a6
ILT
83 * elfcode.h (elf_bfd_final_link): If trying to generate a shared
84 object, warn and return false.
85
04003b57
ILT
86 * aoutx.h (NAME(aout,some_aout_object_p)): Accept BMAGIC objects
87 and treat them as OMAGIC.
88
485dc654
KR
89Wed Jun 15 18:02:21 1994 Ken Raeburn ([email protected])
90
91 Enable sparc v9 support for release. Note that this is still a
92 work in progress, pending release of an ABI specification.
93 * config.bfd, configure.in: Include sparc v9 elf config.
94 * elfcode.h (prep_headers): Handle sparc v9 (64 bit).
95 * reloc.c (bfd_reloc_code_real): New reloc types.
96 * elf64-sparc.c: Implement elf64-sparc target.
97 * Makefile.in, targets.c: Updated.
98
d17fc4c9
ILT
99Wed Jun 15 01:34:07 1994 Ian Lance Taylor ([email protected])
100
c1f84521
ILT
101 * libelf.h (struct elf_obj_tdata): New field dt_needed_name.
102 (elf_dt_needed_name): New accessor macro.
103 * elfcode.h (elf_link_add_object_symbols): If elf_dt_needed_name
104 is set, use that instead of the filename for the DT_NEEDED dynamic
105 entry.
106 * elf.c (bfd_elf_set_dt_needed_name): New function.
107 * bfd-in.h (bfd_elf_set_dt_needed_name): Declare.
108 * bfd-in2.h: Rebuilt.
109
7c726b66
ILT
110 * elfcode.h (NAME(bfd_elf,size_dynamic_sections)): Add sinterpptr
111 argument, and set it to the .interp section.
112 * bfd-in.h (bfd_elf32_size_dynamic_sections): Update prototype.
113 (bfd_elf64_size_dynamic_sections): Likewise.
114 * bfd-in2.h: Rebuilt.
115
f1d42c04
ILT
116 * coff-sparc.c (SWAP_OUT_RELOC_EXTRA): Define to clear the r_spare
117 field of the reloc rather than letting it be garbage.
118
aeef32f0
ILT
119 * archive.c (bfd_slurp_armap): Recognize __.SYMDEF/ as well as
120 __.SYMDEF; the former was used in old Linux archives. From
121 [email protected] (Rick Sladkey).
122
f7d2fa44
ILT
123 * i386linux.c (i386linux_write_object_contents): Define; like
124 MY(write_object_contents) in aout-target.h, but set MACHTYPE to
125 M_386. From [email protected] (Rick Sladkey).
126 (MY_write_object_contents): Define.
127
2cd086e3
ILT
128 * aoutx.h (translate_from_native_sym_flags): Treat N_SETV symbols
129 as N_DATA symbols.
130 (aout_link_add_symbols): Likewise.
131
d17fc4c9
ILT
132 * aoutx.h: Rewrite symbol duplicate elimination to use BFD hash
133 tables.
134 (struct stringtab_entry, struct stringtab_data): Remove.
135 (HASHMAXLEN, HASH_CHAR, hash, compare, log2, emit_strtab): Remove.
136 (struct strtab_hash_entry, struct strtab_hash): Define.
137 (strtab_hash_newfunc, strtab_hash_lookup): Define.
138 (stringtab_free, emit_stringtab): Define.
139 (stringtab_init, add_to_stringtab): Rewrite.
140 (NAME(aout,write_syms)): Use new stringtab code.
141 (struct aout_final_link_info, NAME(aout,final_link)): Likewise.
142 (aout_link_write_symbols, aout_link_write_other_symbol): Likewise.
143
144 * bfd-in.h (BFD_TRADITIONAL_FORMAT): Define new BFD flag to
145 request BFD to write object in the traditional format, whatever
146 that means for the particular backend.
147 * bfd-in2.h: Rebuilt.
148
149 * hash.c (bfd_hash_allocate): If obstack_alloc fails, set
150 bfd_error_no_memory.
151
ac9ed096
ILT
152Tue Jun 14 13:00:04 1994 Ian Lance Taylor ([email protected])
153
f5419a59
ILT
154 * libaout.h (struct aoutdata): Add q_magic_format to subformat
155 enum.
156 * aout-target.h (MY_bfd_copy_private_bfd_data): Define as function
157 if not already defined. Copy subformat information.
158 (MY_text_includes_header): Define as 0 if not already defined.
159 (MY(backend_data)): Use MY_text_includes_header rather than 0.
160 (MY_final_link_callback): Rename from final_link_callback, and
161 define only if MY_final_link_callback is not already defined.
162 (MY_bfd_final_link): Rename use of final_link_callback to
163 MY_final_link_callback.
164 * aoutx.h (NAME(aout,some_aout_object_p)): Handle QMAGIC like
165 ZMAGIC, but set the subformat to q_magic_format. Abort if the
166 magic number if not recognized.
167 (adjust_z_magic): Use QMAGIC if q_magic_format.
168 * i386linux.c (MY_text_includes_header): Define as 1.
169 (i386linux_bfd_final_link): New static function.
170 (MY_bfd_final_link): Define as i386linux_bfd_final_link.
171
172 * aoutx.h (translate_to_native_sym_flags): Check both section and
173 output_section against sections of abfd.
174
ac9ed096
ILT
175 * libecoff.h (struct ecoff_link_hash_entry): Change type of
176 written from boolean to char. Add new field small.
177 * ecoff.c (ecoff_link_hash_newfunc): Initialize written to 0
178 rather than false. Initialize small to 0.
179 (ecoff_link_add_externals): If ECOFF type is scSUndefined, set
180 small. If small is set, and hash table type is common, force the
181 symbol into a section named SCOMMON and change the ECOFF type from
182 scCommon to scSCommon.
183 (ecoff_link_write_external): Set written to 1 rather than true.
184 * coff-mips.c (mips_relocate_section): Correct JMPADDR reloc
185 overflow check to consider section VMA of input file.
186
9ae74960
ILT
187Mon Jun 13 14:20:07 1994 Ian Lance Taylor ([email protected])
188
189 * aoutf1.h (aout_32_sunos4_write_object_contents): Handle a
190 machine type of 68000.
191 * aoutx.h (NAME(aout,machine_type)): Add new argument unknown.
192 Set *unknown to true if machine type is really unknown, as opposed
193 to M_UNKNOWN for the 68000.
194 (NAME(aout,set_arch_mach)): Change NAME(aout,machine_type) call
195 accordingly.
196 * libaout.h (NAME(aout,machine_type)): Add new argument to
197 prototype.
198
8117e1ea
JL
199Sun Jun 12 20:21:03 1994 Jeff Law ([email protected])
200
201 * som.c (EXEC_AUX_ID): Define based on availablity of HPUX_AUX_ID
202 or HIUX_AUX_ID.
203 (som_begin_writing): Use EXEC_AUX_ID instead of HPUX_AUX_ID.
204 (som_write_armap): Use CPU_PA_RISC1_0 as the magic number. Note
205 som.c is careful to always define CPU_PA_RISC1_0.
206
4298e311
ILT
207Sat Jun 11 16:32:30 1994 Ian Lance Taylor ([email protected])
208
209 Add weak symbols as an extension to a.out.
210 * aoutx.h (sym_in_text_section): Don't define.
211 (sym_in_data_section, sym_in_bss_section): Likewise.
212 (sym_is_undefined, sym_is_global_defn): Likewise.
213 (sym_is_debugger_info, sym_is_fortrancommon): Likewise.
214 (sym_is_absolute, sym_is_indirect): Likewise.
215 (translate_from_native_sym_flags): Rewrite for clarity. Rearrange
216 arguments and change caller. Handle weak symbols.
217 (translate_to_native_sym_flags): Likewise.
218 (aout_link_check_ar_symbols): Don't ignore weak symbols. Pull
219 object in from archive if a weak defintion is found for an
220 existing undefined symbol.
221 (aout_link_add_symbols): Put all cases in switch. Set flags of an
222 undefined symbol to 0. Handle weak symbols.
223 (aout_link_write_symbols): Handle weak symbols.
224 (aout_link_write_other_symbol): Likewise.
225 (aout_link_input_section_std): Likewise.
226 (aout_link_input_section_ext): Likewise.
227 * sunos.c (sunos_write_dynamic_symbol): Likewise.
228
22aabad5
ILT
229Fri Jun 10 13:25:13 1994 Ian Lance Taylor ([email protected])
230
4f019d04
ILT
231 * aoutx.h (NAME(aout,canonicalize_reloc)): Handle .bss section.
232 (NAME(aout,get_reloc_upper_bound)): Likewise.
233
22aabad5
ILT
234 * coff-i960.c (coff_i960_reloc_type_lookup): Add BFD_RELOC_CTOR.
235 * linker.c (_bfd_generic_link_write_global_symbol): Don't assume
236 the section of a common symbol is not NULL.
237
238Wed Jun 8 23:15:53 1994 Stu Grossman ([email protected])
239
240 * nlmcode.h (nlm_object_p): Set EXEC_P and start address for GDB.
241
1b88cd18
ILT
242Wed Jun 8 23:57:34 1994 Ian Lance Taylor ([email protected])
243
244 * aoutx.h (aout_get_external_symbols): Don't try to read the
245 strings if there are no symbols.
246 (aout_link_write_other_symbol): Use the output section when
247 working out the type.
248
d38eee51
ILT
249Tue Jun 7 13:25:08 1994 Ian Lance Taylor ([email protected])
250
b9ac0a53
ILT
251 * elfcode.h (assign_section_numbers): Put shstrtab, symtab and
252 strtab sections at end of file. Avoids bug in some versions of
253 SVR4 strip. From Eric Youngdale <[email protected]>.
254
d38eee51
ILT
255 * coffcode.h (styp_to_sec_flags): If COFF_PAGE_SIZE is defined,
256 set SEC_DEBUGGING for STYP_INFO sections.
257 (coff_compute_section_file_positions): If COFF_PAGE_SIZE is
258 defined, and D_PAGED is set, set the file position equal to the
259 section VMA modulo COFF_PAGE_SIZE.
260 * coffgen.c (coff_real_object_p): If F_EXEC is set, set D_PAGED.
261 * coff-i386.c: Set D_PAGED in BFD target.
262 (COFF_PAGE_SIZE): Define.
263 * coff-m68k.c, coff-sparc.c: Likewise.
264
d8d67d66
ILT
265Mon Jun 6 10:57:28 1994 Ian Lance Taylor ([email protected])
266
e6667b2b
ILT
267 * elfcode.h (bfd_section_from_shdr): Don't turn a reloc section
268 into a BFD section just because SHF_ALLOC is set; require that it
269 not use the normal symbol table.
270 (elf_section_from_bfd_section): Corresponding change.
271
118e8d1c
ILT
272 Better indirect and warning symbol handling inspired by Stuart
273 Quick <[email protected]>.
274 * linker.c (enum link_action): Add REF, MIND, CWARN, REFC.
275 (link_action): Change UNDEF_ROW/def and UNDEFW_ROW/def from NOACT
276 to REF. Change UNDEF_ROW/indr and UNDEFW_ROW/indr from CYCLE to
277 REFC. Change DEF_ROW/indr and COMMON_ROW/indr from CYCLE to MDEF.
278 Change DEFW_ROW/indr from CYCLE to NOACT. Change INDR_ROW/indr
279 from MDEF to MIND. Change INDR_ROW/warn from WARNC to CYCLE.
280 Change WARN_ROW/def and WARN_ROW/indr from MWARN to CWARN. Change
281 WARN_ROW/com from MWARN to WARN. Change WARN_ROW/warn from NOACT
282 to CYCLE. Change SET_ROW/warn from WARNC to CYCLE>
283 (_bfd_generic_link_add_one_symbol): Handle REF, MIND, CWARN and
284 REFC. If a new indirect symbol has been referenced, push the
285 reference down to the symbol it points to. FIx handling of WARN.
286 * aoutx.h (translate_from_native_sym_flags): If N_WARNING, don't
287 clobber e_type of next symbol.
288 (translate_to_native_sym_flags): Likewise.
289 (aout_link_write_symbols): Loop on bfd_link_hash_warning as well
290 as bfd_link_hash_indirect.
291
35fee729
ILT
292 * libaout.h (struct aout_link_hash_entry): New field written.
293 * aoutx.h (NAME(aout,link_hash_newfunc)): Initialize written.
294 (aout_link_write_symbols): Use written, not root.written.
295 (aout_link_write_other_symbol): Likewise.
296 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
297 * libecoff.h (struct ecoff_link_hash_entry): New field written.
298 * ecoff.c (ecoff_link_hash_newfunc): Initialize written.
299 (ecoff_link_write_external): use written, not root.written.
300 * genlink.h (struct generic_link_hash_entry): New field written.
301 * linker.c (_bfd_link_hash_newfunc): Don't initialize written.
302 (generic_link_hash_newfunc): Initialize written.
303 (_bfd_generic_link_output_symbols): Use written, not root.written.
304 (_bfd_generic_link_write_global_symbol): Likewise.
305 (_bfd_generic_reloc_link_order): Likewise.
306
469984d1
ILT
307 * libecoff.h (ecoff_data_type): Add linker field.
308 * ecoff.c (ecoff_write_object_contents): Check new tdata linker
309 field, rather than outsymbols being non-NULL, to decide whether to
310 output the symbols and relocs.
311 (ecoff_bfd_final_link): Set new tdata linker field to true.
312
30f34d07
ILT
313 * ecoff.c (ecoff_bfd_copy_private_bfd_data): Don't try to copy
314 data to a non-ECOFF file.
315
d8d67d66
ILT
316 * libbfd-in.h: Add warning that libbfd.h is a generated file.
317 * libbfd.h: Rebuilt.
318
a04e14b6
ILT
319Sun Jun 5 15:02:30 1994 Ian Lance Taylor ([email protected])
320
fa15568a
ILT
321 Changes to support ELF strip and objcopy on dynamically linked
322 files.
323 * elfcode.h (elf_fake_sections): Add prototype.
324 (bfd_section_from_shdr): Make a BFD section from an SHT_HASH
325 section, and from an SHT_DYNSYM section, and from the dynamic
326 string table section.
327 (elf_object_p): Set D_PAGED if there is a program header.
328 (elf_make_sections): Remove.
329 (fix_up_strtabs): Remove.
330 (elf_fake_sections): Rewrite. Now sets sh_entsize.
331 (assign_section_numbers): Rewrite. Now sets sh_link and sh_info
332 for all sections.
333 (elf_compute_section_file_positions): Don't call obsolete
334 functions elf_make_sections or fix_up_strtabs.
335 (swap_out_syms): Set sh_addralign to FILE_ALIGN rather than 4.
336 (NAME(bfd_elf,write_object_contents)): Permit writing DYNAMIC
337 objects.
338 (elf_section_from_bfd_section): Treat SHT_DYNSYM like other normal
339 sections. If an SHT_REL or SHT_RELA section is allocated or uses
340 an unusual symbol table, permit a BFD section to map to it.
341 Permit most SHT_STRTAB sections to have a BFD section mapped to
342 them.
343 (elf_bfd_final_link): Don't set sh_link, sh_info or sh_entsize
344 fields of dynamic sections here; do it in assign_section_numbers.
345 * elf32-target.h, elf64-target.h: Add D_PAGED to permitted object
346 flags.
347
a04e14b6
ILT
348 * elf.c (_bfd_elf_make_section_from_shdr): Only set SEC_DATA if
349 SEC_LOAD is set, rather than checking SEC_ALLOC.
350
351 * libbfd-in.h (bfd_realloc): Change last arg to "size_t size".
352
4ee3b9be
JL
353Fri Jun 3 10:58:02 1994 Jeff Law ([email protected])
354
99fa5510
JL
355 * som.c (som_write_object_contents): Don't compute the file header's
356 checksum here.
357 (som_write_headers): Instead do it here.
358
4ee3b9be
JL
359 * libbfd.h (bfd_realloc): Change last arg to "size_t size".
360
e85e8bfe
ILT
361Thu Jun 2 17:39:22 1994 Ian Lance Taylor ([email protected])
362
2855b89f
ILT
363 * hosts/sun3.h: Include <stdlib.h>. Don't declare free, exit or
364 getenv.
365
e85e8bfe
ILT
366 Add linker support for SunOS shared libraries.
367 * sunos.c: Include bfdlink.h. Add many new functions and
368 definitions for SunOS shared library support.
369 * bfd-in.h (bfd_sunos_record_link_assignment): Declare.
370 (bfd_sunos_size_dynamic_sections): Declare.
371 * bfd-in2.h: Rebuilt.
372 * aoutx.h (struct aout_link_hash_entry): Move to libaout.h.
373 (struct aout_link_hash_table): Likewise.
374 (aout_link_hash_lookup, aout_link_hash_traverse): Likewise.
375 (aout_hash_table): Likewise.
376 (NAME(aout,link_hash_newfunc)): Rename from aout_link_hash_newfunc
377 and make externally visible.
378 (NAME(aout,link_hash_table_init)): New function.
379 (NAME(aout,link_hash_table_create)): Call
380 NAME(aout,link_hash_table_init), not _bfd_link_hash_table_init.
381 (aout_link_add_symbols): Don't fail if no symbols. If it exists,
382 call add_dynamic_symbols backend entry point for dynamic objects.
383 Use add_one_symbol backend entry point if it exists.
384 (NAME(aout,final_link)): Call finish_dynamic_link backend entry
385 point, if it exists.
386 (aout_link_input_bfd): For a dynamic object, call
387 link_dynamic_object backend entry point, if it exists.
388 (aout_link_write_other_symbol): Call write_dynamic_symbol backend
389 entry point, if it exists.
390 (aout_link_input_section): Don't read the relocs if they have
391 already been read.
392 (aout_link_input_section_std): When doing a final link, for a
393 reloc against an external symbol, call check_dynamic_reloc backend
394 entry point, if it exists.
395 (aout_link_input_section_ext): Likewise.
396 * libaout.h: Protect against multiple inclusion. Include
397 bfdlink.h.
398 (struct aout_link_hash_entry): Move in from aoutx.h.
399 (struct aout_link_hash_table): Likewise.
400 (aout_link_hash_lookup, aout_link_hash_traverse): Likewise.
401 (aout_hash_table): Likewise.
402 (struct aout_backend_data): Add fields add_dynamic_symbols,
403 add_one_symbol, link_dynamic_object, write_dynamic_symbol,
404 check_dynamic_reloc, and finish_dynamic_link.
405 (struct aout_section_data_struct): Define new structure.
406 (aout_section_data): Define new accessor macro.
407 (NAME(aout,link_hash_newfunc)): Declare.
408 (NAME(aout,link_hash_table_init)): Declare.
409 * aoutf1.h (sunos4_aout_backend): Initialize new aout_backend_data
410 fields.
411 * aout-target.h (MY(backend_data)): Likewise.
412 * i386aout.c (MY(backend_data)): Likewise.
413 * i386mach3.c (MY(backend_data)): Likewise.
414 * mipsbsd.c (MY(backend_data)): Likewise.
415 * sparclynx.c (sparclynx_aout_backend): Likewise.
416
417 * aoutx.h (NAME(aout,slurp_symbol_table)): Don't zero out cached
418 until we know it is non-NULL.
419 (aout_link_write_symbols): Don't skip a warning symbol even if it
420 has already been written out. If skipping an indirect symbol,
421 skip the next symbol as well.
422
220642fd
ILT
423Wed Jun 1 14:37:50 1994 Ian Lance Taylor ([email protected])
424
425 * hosts/sun3.h: Don't declare qsort, malloc or realloc.
426
c06e55d9
KR
427Thu May 26 13:56:03 1994 Ken Raeburn ([email protected])
428
429 * nlmcode.h (nlm_swap_auxiliary_headers_in): Cast bfd_byte pointer
430 to char pointer to avoid compiler warnings.
431
432 * dep-in.sed: Remove spaces before colons.
433
434 Merged changes back in from FSF gas release 2.3:
435
436 * Makefile.in (stmp-bfd.h): Wrap `if' block around grep
437 invocation, to avoid a bug in BSD 4.4 make.
438
439 From Ralph Campbell:
440 * mipsbsd.c (mips_fix_jmp_addr): If symbol is undefined, return an
441 error.
442 (mips_fix_hi16_s): Ditto.
443
444 Fri May 13 21:21:00 1994 DJ Delorie ([email protected])
445
446 * makefile.dos: define a default target, or archives won't work
447 due to multiple matches.
448
449 Wed May 11 22:32:00 1994 DJ Delorie ([email protected])
450
451 * configure.bat: update for latest files
452 * makefile.dos: update for correct targets and sources
453 * coff-go32.c: [new] go32's COFF format (i386coff with underscores)
454 * targets.c: add go32coff target
455 * makefile.in: add coff-go32.c support
456
ada45a2a
JL
457Thu May 26 10:10:21 1994 Jeff Law ([email protected])
458
459 * som.c (som_prep_headers): Do not set the system_id here, private
460 bfd data has not been copied yet.
461 (som_write_headers): Instead do it here.
462
5315c428
ILT
463Tue May 24 16:17:18 1994 Ian Lance Taylor ([email protected])
464
465 Make MIPS ELF use new ELF backend linker. No shared library
466 support yet.
467 * elf32-mips.c (bfd_mips_elf32_swap_gptab_in): New function.
468 (bfd_mips_elf32_swap_gptab_out): New function.
469 (mips_elf_object_p): If last symbol is LOCAL, set elf_bad_symtab.
470 (mips_elf_final_write_processing): Set sh_info field for .gptab.*
471 sections.
472 (mips_elf_fake_sections): Set sh_entsize for .gptab.* sections.
473 (mips_elf_read_ecoff_info): Read and free external symbols last,
474 not first, for clarity.
475 (struct mips_elf_link_hash_entry): Define new structure.
476 (struct mips_elf_link_hash_table): Define new structure.
477 (mips_elf_link_hash_lookup): Define new macro.
478 (mips_elf_link_hash_traverse): Define new macro.
479 (mips_elf_hash_table): Define new macro.
480 (mips_elf_link_hash_newfunc): New static function.
481 (mips_elf_link_hash_table_create): New static function.
482 (mips_elf_add_symbol_hook): New static function.
483 (struct extsym_info): Define new structure.
484 (mips_elf_get_extr, mips_elf_set_index): Remove.
485 (mips_elf_output_extsym): New static function.
486 (gptab_compare): New static function.
487 (mips_elf_final_link): Rewrite to use ELF backend linker, and to
488 merge gptab information in input files.
489 (mips_elf_relocate_hi16): New static function.
490 (mips_elf_relocate_section): New static function.
491 (bfd_elf32_bfd_link_hash_table_create): Define as macro before
492 including elf32-target.h.
493 (elf_backend_relocate_section): Likewise.
494 (elf_backend_add_symbol_hook): Likewise.
495 * elf.c (_bfd_elf_link_hash_newfunc): Rename from
496 elf_link_hash_newfunc and make globally visible. Change caller.
497 (_bfd_elf_link_hash_table_init): New function, broken out of
498 _bfd_elf_link_hash_table_create.
499 (_bfd_elf_link_hash_table_create): Use
500 _bfd_elf_link_hash_table_init.
501 * libelf.h (struct elf_obj_tdata): Add new field bad_symtab.
502 (elf_bad_symtab): Define new accessor macro.
503 (_bfd_elf_link_hash_newfunc): Declare.
504 (_bew_elf_link_hash_table_init): Declare.
505 * elfcode.h (elf_object_p): Call backend object_p hook after
506 swapping in all the section headers.
507 (map_program_segments): Correct typo: Internal for External.
508 (elf_link_add_object_symbols): If elf_bad_symtab is set, read all
509 the symbols. Skip STB_LOCAL symbols rather than giving an error.
510 (elf_bfd_final_link): If elf_bad_symtab is set, allocate space for
511 all symbols, not just locals.
512 (elf_link_output_extsym): Only skip a symbol not mentioned by a
513 regular file if it is mentioned by a dynamic object.
514 (elf_link_input_bfd): If elf_bad_symtab is set, read all the
515 symbols.
516
88bbe402
JL
517Fri May 20 13:38:23 1994 Jeff Law ([email protected])
518
519 * som.c (som_set_reloc_info): Do not set any relocation info
520 for SOM fixups which are never passed to BFD.
521
497c5434
ILT
522Fri May 20 11:57:05 1994 Ian Lance Taylor ([email protected])
523
c8588f2f
ILT
524 * coff-mips.c (mips_relocate_section): Add MIPS_R_JMPADDR overflow
525 checking.
526
95b77361
ILT
527 * elf32-i386.c (elf_i386_size_dynamic_sections): Add DT_DEBUG to
528 the dynamic linking information for the benefit of the debugger.
529 From Peter Schauer.
530 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
531
497c5434
ILT
532 * elf.c (_bfd_elf_make_section_from_shdr): New function, based on
533 code repeated three times in bfd_section_from_shdr in elfcode.h.
534 * libelf.h (_bfd_elf_make_section_from_shdr): Declare.
535 * elfcode.h (bfd_section_from_shdr): Use new function
536 _bfd_elf_make_section_from_shdr to create BFD sections. If a
537 reloc section does not use the main symbol table, or it is part of
538 the process image, treat it as a normal section, not relocs.
539 * elf32-mips.c (mips_elf_section_from_shdr): Use new function
540 _bfd_elf_make_section_from_shdr.
541
013dec1a
ILT
542Thu May 19 11:37:11 1994 Ian Lance Taylor ([email protected])
543
7a0c782d
ILT
544 * elf32-target.h, elf64-target.h: Change ar_max_namelen value from
545 15 to 14 to match SVR4 ar.
546
013dec1a
ILT
547 Add support for ELF shared libraries. Loosely based on work by
548 Eric Youngdale <[email protected]>.
549 * libelf.h (struct elf_backend_data): Add new fields for dynamic
550 linking: elf_backend_create_dynamic_sections,
551 elf_backend_adjust_dynamic_symbol,
552 elf_backend_size_dynamic_sections,
553 elf_backend_finish_dynamic_symbol,
554 elf_backend_finish_dynamic_sections.
555 (struct elf_link_hash_entry): Change type of align field to
556 bfd_size_type. Add fields dynindx, dynstr_index, weakdef,
557 elf_link_hash_flags.
558 (struct elf_link_hash_table): Add fields dynobj, dynsymcount,
559 dynstr, bucketcount.
560 (bfd_elf32_swap_reloc_in, bfd_elf32_swap_reloc_out): Declare.
561 (bfd_elf32_swap_reloca_in, bfd_elf32_swap_reloca_out): Declare.
562 (bfd_elf32_swap_dyn_in, bfd_elf32_swap_dyn_out): Declare.
563 (bfd_elf32_add_dynamic_entry): Declare.
564 (bfd_elf64_swap_reloc_in, bfd_elf64_swap_reloc_out): Declare.
565 (bfd_elf64_swap_reloca_in, bfd_elf64_swap_reloca_out): Declare.
566 (bfd_elf64_swap_dyn_in, bfd_elf64_swap_dyn_out): Declare.
567 (bfd_elf64_add_dynamic_entry): Declare.
568 * elfcode.h (Elf_External_Dyn): Define.
569 (elf_swap_reloc_in): Define as macro using NAME. Make externally
570 visible.
571 (elf_swap_reloc_out): Likewise.
572 (elf_swap_reloca_in, elf_swap_reloca_out): Likewise.
573 (elf_swap_dyn_in, elf_swap_dyn_out): Define as macro using NAME
574 and as new externally visible function.
575 (elf_fake_sections): Set section type of dynamic sections based on
576 section names.
577 (elf_write_phdrs): Remove.
578 (assign_file_position_for_section): Add new align argument.
579 Change all callers.
580 (get_program_header_size): New static function.
581 (struct seg_info): Remove.
582 (map_program_segments): Completely rewrite.
583 (assign_file_positions_except_relocs): Completely rewrite.
584 (assign_file_positions_for_relocs): Don't set a file position for
585 sections which already have one. Don't bother to align the file
586 position here.
587 (section_from_elf_index): Handle SHT_HASH and SHT_DYNAMIC
588 section types.
589 (elf_section_from_bfd_section): Likewise.
590 (elf_slurp_symbol_table): If section_from_elf_index fails, just
591 use bfd_abs_section rather than returning an error.
592 (elf_sizeof_headers): Make useful.
593 (elf_link_record_dynamic_symbol): New static function.
594 (elf_link_add_object_symbols): Handle dynamic objects.
595 (elf_link_create_dynamic_sections): New static function.
596 (elf_add_dynamic_entry): Define as macro using NAME and as new
597 externally visible function.
598 (NAME(bfd_elf,record_link_assignment)): New function.
599 (elf_buckets): New static variable.
600 (NAME(bfd_elf,size_dynamic_sections)): New function.
601 (struct elf_final_link_info): Add dynsym_sec and hash_sec fields.
602 (elf_bfd_final_link): Handle dynamic linking. Create a section
603 symbol for all ELF sections, not all BFD sections. Store section
604 symbol index in target_index field, not index field. Traverse
605 over global symbols even if stripping.
606 (elf_link_output_extsym): Output dynamic symbols. Mark symbols
607 defined by dynamic objects as undefined.
608 (elf_link_input_bfd): Ignore dynamic objects. Use target_index
609 field for section relocs, and make sure it is set.
610 (elf_reloc_link_order): Use target_index field for section relocs,
611 and make sure it is set.
612 * elf.c (elf_link_hash_newfunc): Initialize dynindx, dynstr_index,
613 weakdef and elf_link_hash_flags fields.
614 (_bfd_elf_link_hash_table_create): Initialize dynobj, dynsymcount,
615 dynstr and bucketcount fields.
616 * elf32-target.h: Initialize new dynamic linking fields.
617 * elf64-target.h: Likewise.
618 * elf32-i386.c: New functions for dynamic linking support.
619 * elf32-sparc.c: Likewise.
620 * bfd-in.h (bfd_elf32_record_link_assignment): Declare.
621 (bfd_elf64_record_link_assignment): Declare.
622 (bfd_elf32_size_dynamic_sections): Declare.
623 (bfd_elf64_size_dynamic_sections): Declare.
624 * bfd-in2.h: Rebuilt.
625
82492ca1
ILT
626Wed May 18 08:29:04 1994 Ian Lance Taylor ([email protected])
627
628 * som.c: Don't include <sys/dir.h> or <sys/user.h>.
629 (som_reloc_queue_find): Call memcmp instead of bcmp.
630 (som_bfd_reloc_type_lookup): Change first argument to bfd *.
631 (compare_syms): Change types of arguments to const void *.
632 (bfd_section_from_som_symbol): Removed unused local found.
633 (som_write_armap): Add elength, map, orl_count and int arguments.
634 (som_write_armap): Use %ld and cast to long for getuid result.
635
673aceca
JL
636Wed May 18 09:09:32 1994 Jeff Law ([email protected])
637
638 * elf32-hppa.h (R_HPPA_ABS_CALL): Define.
639 * elf32-hppa.c (hppa_elf_gen_reloc_type): Handle absolute calls.
640
641 * som.h (R_HPPA_ABS_CALL): Define.
642 * som.c (hppa_som_gen_reloc_type): Delete complex relocation types.
643
0f62bdc0
KR
644Tue May 17 19:33:12 1994 Ken Raeburn ([email protected])
645
646 * coff-i960.c (icoff_little_vec, icoff_big_vec): Indicate leading
647 underscore, for compatibility with Intel tool chain (gnu960v2).
648
c3cb04b4
JL
649Mon May 16 10:09:22 1994 Jeff Law ([email protected])
650
459ae909
JL
651 * bfd-in2.h: Rebuilt.
652
653 * elf32-hppa.c: Change .hppa_linker_stubs to .PARISC.stubs,
654 likewise for other PA specific sections.
655 (hppa_elf_relocate_unwind_table): Delete unused
656 function.
657 (elf_hppa_howto_table): Completely new table based on 94-02-02
658 draft PA ELF spec. Change relocation tags appropriately
659 throughout elf32-hppa.c
660 (hppa_elf_gen_reloc_type): Rewrite and simplify based on 94-02-02
661 spec.
662 (hppa_elf_reloc): Likewise.
663 (hppa_look_for_stubs_in_section): Likewise
664 (ELF_MACHINE_CODE): Change to EM_PARISC.
665 * elf32-hppa.h: Include "elf/hppa.h". Change relocation tags
666 appropriately throughout elf32-hppa.h.
667 (elf32_hppa_reloc_type): New table based on 94-02-02 draft PA ELF
668 spec.
669 (R_HPPA_ABS_CALL, R_HPPA_COMPLEX*, R_HPPA_UNWIND): Delete definitions.
670 * elfcode.h (prep_headers): Use EM_PARISC instead of EM_HPPA.
671 * reloc.c (bfd_reloc_code_real): Delete unused HPPA relocations.
672 * som.h (R_HPPA_ABS_CALL, R_HPPA_COMPLEX): Delete definitions.
673
c3cb04b4
JL
674 * libhppa.h (hppa_field_adjust): Avoid adding constant_value into
675 the final value twice for LR and RR field selectors.
676
cb9461ff
JK
677Sat May 14 09:09:19 1994 Jim Kingdon ([email protected])
678
679 * aoutx.h (add_to_stringtab): Use BFD_ASSERT not assert. This
680 avoids __eprintf troubles.
681
8db528c8
ILT
682Fri May 13 10:51:21 1994 Ian Lance Taylor ([email protected])
683
0d898d03
ILT
684 * bout.c (b_out_bfd_reloc_type_lookup): Handle BFD_RELOC_CTOR.
685
8db528c8
ILT
686 * config/mipsbelf.mt (SELECT_VECS): Add ecoff_big_vec and
687 ecoff_little_vec since Irix 5 supports ECOFF executables.
688
666f5925
ILT
689Wed May 11 00:31:57 1994 Ian Lance Taylor ([email protected])
690
4fa4476b
ILT
691 * ecoff.c (ecoff_find_nearest_line): Handle fdr.adr != pdr.adr
692 correctly.
693
666f5925
ILT
694 * Makefile.in (stmp-bfd.h): Use || instead of ; to force SunOS
695 make to invoke the shell.
696
c16313f0
ILT
697Tue May 10 14:23:43 1994 Ian Lance Taylor ([email protected])
698
699 * section.c (SEC_COFF_SHARED_LIBRARY): Renamed from
700 SEC_SHARED_LIBRARY for clarity. Changed all uses.
701 * bfd-in2.h: Rebuilt.
702 * coffcode.h (sec_to_styp_flags): If SEC_COFF_SHARED_LIBRARY is
703 set, set STYP_NOLOAD.
704 * coffgen.c (coff_section_from_bfd_index): Don't get an assertion
705 failure because of a bad shared library.
706
eeb8c187
BC
707Mon May 9 18:53:40 1994 Bill Cox ([email protected])
708
709 * linker.c: Add missing comment terminator.
710
6ec3bb6a
ILT
711Mon May 9 11:53:54 1994 Ian Lance Taylor ([email protected])
712
8e5090ce
ILT
713 * linker.c (_bfd_generic_link_add_one_symbol): If hashp and *hashp
714 are not NULL, assume the caller has already looked up the symbol
715 in the hash table and has stored the entry in *hashp.
716 (generic_link_add_symbol_list): Set h to NULL before calling
717 _bfd_generic_link_add_one_symbol.
718 * ecoff.c (ecoff_link_add_externals): Likewise.
719
720 * elfcode.h (assign_file_positions_except_relocs): Don't require
721 page shared between .data and .bss segments to contain zeroes.
722
6ec3bb6a
ILT
723 * elfcode.h: Include bfdlink.h. Added several new functions to do
724 linking.
725 (ELF_R_TYPE): Define.
726 (bfd_add_to_strtab): Return unsigned long. Change check for
727 realloc failure.
728 (elf_fake_sections): Check return value of bfd_add_to_strtab.
729 (elf_compute_section_file_positions): Add link_info argument.
730 Call elf_backend_begin_write_processing hook and prep_headers
731 here. Only call swap_out_syms if link_info is NULL. Set up
732 .shstrtab section here. Pass dosyms argument to
733 assign_file_positions_except_relocs. Set output_has_begun flag.
734 (assign_file_positions_for_symtab_and_strtabs): Add dosyms
735 argument, and use it to control setting .symtab and .strtab file
736 positions.
737 (assign_file_positions_except_relocs): Add dosyms argument, and
738 pass it on.
739 (prep_headers): Check return value of bfd_add_to_strtab.
740 (swap_out_syms): Likewise. Also, don't set up .shstrtab here.
741 (NAME(bfd_elf,write_object_contents)): Some calls moved into
742 elf_compute_section_file_positions.
743 (elf_set_section_contents): Likewise.
744 (elf_slurp_symbol_table): SHN_LORESERV corrected to SHN_LORESERVE.
745 * libelf.h: Include bfdlink.h.
746 (struct elf_backend_data): Add fields collect,
747 elf_add_symbol_hook, elf_backend_relocate_section.
748 (struct bfd_elf_section_data): Add field rel_hashes.
749 (struct elf_obj_tdata): Remove fields internal_syms and symbols.
750 Add field sym_hashes.
751 (obj_symbols, obj_internal_syms): Remove definitions.
752 (elf_sym_hashes): Define.
753 (struct elf_link_hash_entry): Define.
754 (struct elf_link_hash_table): Define.
755 (elf_link_hash_lookup): Define.
756 (elf_link_hash_traverse): Define.
757 (elf_hash_table): Define.
758 (_bfd_elf_link_hash_table_create): Declare.
759 (bfd_elf32_bfd_link_add_symbols): Declare.
760 (bfd_elf32_bfd_final_link): Declare.
761 (bfd_elf64_bfd_link_add_symbols): Declare.
762 (bfd_elf64_bfd_final_link): Declare.
763 * elf.c: Include bfdlink.h.
764 (elf_link_hash_newfunc): New function.
765 (_bfd_elf_link_hash_table_create): New function.
766 * elf32-target.h (elf_backend_relocate_section): If not defined,
767 define as 0 and use generic linker. Otherwise, use ELF backend
768 linker.
769 (elf_backend_collect): If not defined, define as false.
770 (elf_backend_add_symbol_hook): If not defined, define as 0.
771 (elf32_bed): Initialize new fields.
772 * elf64-target.h: Same changes as elf32-target.h.
773 * elf32-i386.c: Include bfdlink.h.
774 (elf_i386_relocate_section): New function.
775 (elf_backend_relocate_section): Define.
776 * elf32-sparc.c: Include bfdlink.h.
777 (elf_info_to_howto): Change type of dst from Elf32_Internal_Rela
778 to Elf_Internal_Rela (they're the same type anyhow).
779 (elf_sparc_relocate_section): New function.
780 (elf_backend_relocate_section): Define.
781 * elf32-mips.c (elf_backend_collect): Define.
782
783 * Makefile.in (stmp-bfd.h): Avoid useless make error message in a
784 different way; touch takes a numeric argument on some systems.
785
786Fri May 6 13:34:14 1994 Ian Lance Taylor ([email protected])
787
788 * nlmcode.h (nlm_swap_auxiliary_headers_in): Rework custom header
789 handling for latest suggested format.
790 (nlm_swap_auxiliary_headers_out): Likewise.
791 (nlm_compute_section_file_positions): Likewise.
792
793Fri May 6 11:11:50 1994 D. V. Henkel-Wallace ([email protected])
794
795 * config.bfd: handle erricsson config (for OSE).
796
797Thu May 5 15:40:47 1994 Ken Raeburn ([email protected])
798
799 Patches from Ralph Campbell:
800 * mipsbsd.c (mips_fix_jmp_addr): New function.
801 (mips_fix_hi16_s): Use bfd_is_com_section.
802 (mips_howto_table_ext): Call mips_fix_jmp_addr for MIPS_RELOC_JMP.
803
d66da742
SC
804Fri May 6 11:48:55 1994 Steve Chamberlain ([email protected])
805
806 * config/go32.mh: XX support.
807
808 From bill
809 * Makefile.in: Build sysdep.h without causing worrying but
810 harmless error message.
811
77d11284
ILT
812Wed May 4 11:09:53 1994 Ian Lance Taylor ([email protected])
813
814 Changed m68k-aout to set flags to 0; m68k-sunos still uses 1.
815 * aout0.c: New file.
816 * targets.c (aout0_big_vec): Declare.
817 (bfd_target_vector): Add aout0_big_vec.
818 * config.bfd (m68*-*-aout*): Use m68k-0aout, not m68k-aout.
819 * config/m68k-aout.mt (SELECT_VECS): Removed.
820 * config/m68k-0aout.mt: New file.
821 * configure.in (aout0_big_vec): New target vector: use aout0.o,
822 aout32.o and stab-syms.o.
823 * Makefile.in: Rebuilt dependencies.
824 (BFD32_BACKENDS): Add aout0.o.
825 (CFILES): Add aout0.c.
826
827 * libaout.h (struct aout_backend_data): Add field exec_hdr_flags.
828 * aout-target.h (MY_exec_hdr_flags): If not defined, define as 0.
829 MY(backend_data): Initialize exec_hdr_flags field.
830 * aoutf1.h (sunos_32_set_arch_mach): Make static.
831 (aout32_sunos4_write_object_contents): Set flags from backend
832 info.
833 (MY_exec_hdr_flags): If not defined, define as 1.
834 (sunos4_aout_backend): Initialize exec_hdr_flags field.
835 * aout-encap.c (encap_write_object_contents): Set flags from
836 backend info.
837 (MY_exec_hdr_flags): Define as N_FLAGS_COFF_ENCAPSULATE.
838 * hp300hpux.c (MY_exec_hdr_flags): Define as 0x2.
839 (MY(write_object_contents)): Set flags from backend info.
840 * i386aout.c (MY(backend_data)): Initialize exec_hdr_flags field.
841 * i386mach3.c (MY(backend_data)): Likewise.
842 * mipsbsd.c (MY(backend_data)): Likewise.
843 * sparclynx.c (NAME(aout,sparclynx_write_object_contents)): Set
844 flags from backend info.
845 (sparclynx_aout_backend): Initialize exec_hdr_flags field.
846
127f8e91
KR
847Wed May 4 02:56:00 1994 Ken Raeburn ([email protected])
848
849 * config.bfd (i386-*-gnu*): Treat like i386-*-mach*.
850 (m68*-apollo-*): Treat all Apollo configs the same, don't handle
851 BSD specially.
852
92400edb
ILT
853Tue May 3 19:43:21 1994 Ian Lance Taylor ([email protected])
854
855 * cache.c: Rewrote to work correctly.
856 * libbfd.h: Rebuilt.
857 * opncls.c (bfd_cache_init, bfd_open_file): Don't declare.
858 (bfd_fdopenr): Check return value of bfd_cache_init.
859
e3361fc3
ILT
860Fri Apr 29 15:08:23 1994 Ian Lance Taylor ([email protected])
861
862 * cf-m68klynx.c (CALC_ADDEND): Check for PC relative relocs by
863 enumerating them, since the reloc type can not serve as an index
864 into the m68k COFF howto_table.
865
7c6ba201
SC
866Fri Apr 29 09:42:39 1994 Steve Chamberlain ([email protected])
867
dbf13547 868 * config.bfd (*-go32): Changed to coff.
7c6ba201 869 * coff-h8300.c (JMPL1): Get HOWTO right for 24bit branches.
dbf13547
SC
870 * srec.c (srec_write_symbols): Write out the correct number of
871 symbols and don't stick in extra nulls.
7c6ba201 872
380c60b1
SS
873Tue Apr 26 15:07:24 1994 Stan Shebs ([email protected])
874
875 * cf-sparclynx.c (LYNXOS, COFF_LONG_FILENAMES): Define.
876 * coff-sparc.c (BADMAG): Recognize LYNXCOFFMAGIC.
877 (COFF_SPARC): Define.
878 * coffcode.h (coff_new_section_hook): If COFF_SPARC, set alignment
879 power of data and bss sections to 3.
880 * hosts/lynx.h (__LYNXOS): Define.
881
6c101bcf
JL
882Tue Apr 26 15:04:26 1994 Jeffrey A. Law ([email protected])
883
884 * elf32-hppa.c (hppa_elf_reloc): Adjust the addend of relocations
885 against section symbols to avoid losing during ld -r.
886
887Tue Apr 26 12:16:41 1994 Ian Lance Taylor ([email protected])
888
889 * elfcode.h (shstrtab_length_fixed): Remove useless static
890 variable.
891 (struct elf_sect_data): Remove unused structure.
892 (elf_object_p): Free memory if error occurs. Check return value
893 of bfd_default_set_arch_mach. If elf_get_str_section fails,
894 preserve error code rather than setting wrong_format.
895 (null_shdr): Remove static variable.
896 (assign_section_numbers): Remove shstrtab_length_fixed assignment.
897 Allocate first section header on BFD obstack rather than using
898 null_shdr.
899 (bfd_prpsinfo): Remove unused local variable newsect.
900
2e03ce18
ILT
901Mon Apr 25 15:31:04 1994 Ian Lance Taylor ([email protected])
902
ba436e33
ILT
903 * elfcode.h (write_relocs): Undo patch of Apr 10; breaks Solaris.
904
2e03ce18
ILT
905 * elfcode.h (bfd_section_from_shdr): Use bfd_make_section_anyway
906 to create sections. Check return value of recursive calls.
907 (bfd_section_from_phdr): Check return value of bfd_make_section.
908 (elf_symbol_from_bfd_symbol): Likewise.
909 (elf_object_p): Check return value of bfd_section_from_shdr.
910 (section_from_elf_index): Likewise.
911 (elf_slurp_symbol_table): Check return value of
912 section_from_elf_index.
913 (bfd_prstatus): Return boolean value. Check return value of
914 bfd_make_section.
915 (bfd_fpregset): Likewise.
916 (bfd_prpsinfo): Return boolean value.
917 (elf_corefile_note): Check return values of bfd_prstatus,
918 bfd_fpregset, and bfd_prpsinfo.
919 (elf_core_file_p): Check return value of elf_corefile_note.
920
79167def
ILT
921Fri Apr 22 11:08:38 1994 Ian Lance Taylor ([email protected])
922
cc71e155
ILT
923 Get rid of the ECOFF .reginfo section hack.
924 * ecoff.c (ecoff_mkobject_hook): Don't create a .reginfo section.
925 (ecoff_new_section_hook): Don't handle the .reginfo section.
926 (ecoff_sizeof_headers): Likewise.
927 (ecoff_get_section_contents): Likewise.
928 (ecoff_compute_section_file_positions): Likewise.
929 (ecoff_compute_reloc_file_positions): Likewise.
930 (ecoff_set_section_contents): Likewise.
931 (ecoff_write_object_contents): Likewise.
932 (ecoff_bfd_final_link): Likewise.
933 (ecoff_bfd_copy_private_bfd_data): Copy the GP value and the
934 register masks.
935 (bfd_ecoff_get_gp_value): New function.
936 (bfd_ecoff_set_gp_value): New function.
937 (bfd_ecoff_set_regmasks): New function.
938 * bfd-in.h (bfd_ecoff_get_gp_value): Declare.
939 (bfd_ecoff_set_gp_value): Declare.
940 (bfd_ecoff_set_regmasks): Declare.
941 * bfd-in2.h: Rebuilt.
942
1bb42b1f
ILT
943 Fix ECOFF objcopy to actually copy debugging information.
944 * ecoff.c (ecoff_bfd_copy_private_bfd_data): New function.
945 (ecoff_get_extr): Assume that any ECOFF symbol with local clear is
946 an external symbol, rather than checking the symbol flags. Only
947 check the flags for non-ECOFF symbols.
948 * ecofflink.c (bfd_ecoff_debug_externals): Don't crash if the
949 output_section field of the symbol section is NULL.
950 * libecoff.h (ecoff_bfd_copy_private_bfd_data): Declare as
951 function rather than defining as macro.
952
d290d8da
ILT
953 * ieee.c (ieee_object_p): Set bfd_error_got_wrong_format if
954 appropriate.
955
956 * targets.c (bfd_target_vector): Add bfd_elf32_powerpc_vec.
957
80a903c9
ILT
958 * aout-adobe.c (aout_adobe_set_arch_mach): Check return value of
959 bfd_default_set_arch_mach. Accept bfd_arch_m68k as well as
960 bfd_arch_unknown.
961 * coffcode.h (coff_set_arch_mach): Check return value of
962 bfd_default_set_arch_mach.
963 * elfcode.h (elf_set_arch_mach): Don't check a list of ELF
964 architectures, just see if the desired architecture matches what
965 the ELF backend permits.
966
967 * coffcode.h (coff_set_arch_mach_hook): Rename SHMAGIC to
968 SH_ARCH_MAGIC to match change in coff/sh.h.
969 (coff_set_flags): Likewise.
970
79167def
ILT
971 Follow convention in which each NLM header has an 8 byte stamp
972 followed by a four byte length.
973 * libnlm.h (struct nlm_obj_tdata): Rename nlm_cygnus_section_hdr
974 to nlm_cygnus_ext_header, and change type to
975 Nlm_Internal_Cygnus_Ext_Header.
976 (nlm_cygnus_ext_header): Rename from nlm_cygnus_section_header.
977 * nlmcode.h (nlm_swap_auxiliary_headers_in): Use CyGnUsEx instead
978 of CyGnUsSeCs. Rename from cygnus_section to cygnus_ext. Require
979 length word to be 8.
980 (nlm_swap_auxiliary_headers_out): Rename from cygnus_section to
981 cygnus_ext. Set length word to 8.
982 (nlm_compute_section_file_positions): Rename from cygnus_section
983 to cygnus_ext.
984
7f772644
SG
985Thu Apr 21 22:54:22 1994 Stu Grossman (grossman at cygnus.com)
986
987 * nlmcode.h (nlm_swap_auxiliary_headers_in): Keep section table
988 (from CyGnUsSeCs) in more permanent memory to keep section names
989 from getting trashed.
990
cb71adf1
PS
991Thu Apr 21 09:29:37 1994 Peter Schauer ([email protected])
992
993 * libelf.h (elf_obj_tdata): Add members for dynamic symbol table
994 handling.
995 * elfcode.h (bfd_section_from_shdr): Handle dynamic symbol table.
996 * elfcode.h (elf_slurp_symbol_table): Take additional parameter
997 to select static or dynamic symbol table and return number of
998 symbols slurped or -1 on error.
999 * elfcode.h (elf_get_symtab): Set bfd symcount from
1000 elf_slurp_symbol_table result.
1001 * elfcode.h (elf_get_dynamic_symtab_upper_bound,
1002 elf_canonicalize_dynamic_symtab): New functions to handle dynamic
1003 symbol table.
1004 * elf32-target.h, elf64-target.h (BFD_JUMP_TABLE_DYNAMIC):
1005 Change to handle dynamic symbol table, provide default definitions
1006 for dynamic relocs.
1007 * aoutx.h (howto_table_std, NAME(aout,swap_std_reloc_out),
1008 NAME(aout,swap_std_reloc_in), aout_link_input_section_std,
1009 aout_link_reloc_link_order): Handle r_jmptable and r_relative
1010 relocations.
1011
6c534df0
ILT
1012Thu Apr 21 11:58:19 1994 Ian Lance Taylor ([email protected])
1013
1eff2af3
ILT
1014 Clean up uses of _bfd_dummy_target (from Peter Schauer).
1015 * libbfd.c (_bfd_dummy_target): Set bfd_error_wrong_format.
1016 * nlm-target.h (nlm_core_file_p): Define as _bfd_dummy_target, not
1017 NULL.
1018 * srec.c (srec_vec): Use _bfd_dummy_target, not NULL, in
1019 _bfd_check_format.
1020 (symbolsrec_vec): Likewise.
1021 * tekhex.c (tekhex_vec): Likewise.
1022
6c534df0
ILT
1023 * libnlm.h (struct nlm_obj_tdata): Add nlm_cygnus_section_hdr
1024 field.
1025 (nlm_cygnus_section_header): New accessor macro.
1026 * nlmcode.h (nlm_object_p): Free new tdata structure if failure.
1027 Add fixed sections before swapping in auxiliary headers. After
1028 adding sections, treat errors as real, not as wrong format.
1029 (nlm_swap_auxiliary_headers_in): Swap in the sections header; add
1030 sections to the BFD for each section it describes.
1031 (nlm_swap_auxiliary_headers_out): Swap out the sections header.
1032 (nlm_compute_section_file_positions): Account for the size of the
1033 sections header.
1034
71363c41
KR
1035Wed Apr 20 16:45:51 1994 Ken Raeburn ([email protected])
1036
4a5bfdbc
KR
1037 * coff-sparc.c (sparccoff_vec): Change minimum alignment power to
1038 2, so that stab sections can be multiples of 4 bytes only.
1039
71363c41
KR
1040 * hosts/i386aix.h: Changes to avoid prototypes conflicts with the
1041 ones defined in stdlib.h. (From Minh Tran-Le.)
1042
476d01f0 1043Wed Apr 20 14:15:21 1994 Ian Lance Taylor ([email protected])
476d01f0
ILT
1044
1045 * nlm32-ppc.c: Complete rewrite for new version of PowerPC
1046 NetWare. Old code still present, but ifdeffed out.
476d01f0
ILT
1047
1048 * nlmcode.h (nlm_swap_auxiliary_headers_in): Don't assume a
1049 particular format for the customer header. Allocate a block of
1050 memory and read it into that.
1051 (nlm_swap_auxiliary_headers_out): Write out the block of memory.
1052 (nlm_compute_section_file_positions): Include length of customer
1053 header when computing its size.
1054
69478700
JL
1055Mon Apr 18 14:27:17 1994 Jeffrey A. Law ([email protected])
1056
1057 * som.c (som_prep_headers): Get the space's number from the
1058 backend private section data rather than target_index.
1059 (bfd_som_set_section_attributes): Store the space's number
1060 in the backend private section data rather than target_index.
1061
1062 * som.h (som_copyable_section_data_struct): Add space_number.
1063
2ec2e6a9
ILT
1064Fri Apr 15 12:22:07 1994 Ian Lance Taylor ([email protected])
1065
09ed3666
ILT
1066 * coff-a29k.c (reloc_processing): Always set the address of a
1067 R_IHCONST reloc to that of the immediately preceding R_IHIHALF.
1068 gas does this anyhow, but some other assemblers seem to leave
1069 garbage in the R_IHCONST address field.
1070
97ea252e
ILT
1071 * bfd/archive.c: Consistently use ARFMAG; from
1072 [email protected] (Andreas Schwab).
1073 (_bfd_write_archive_contents): Use ARFMAG rather than '`' and
1074 '\012'.
1075 (bsd_write_armap): Likewise.
1076 (coff_write_armap): Likewise.
1077
ef79dba3
ILT
1078 * coff-mips.c (mips_relocate_section): When relaxing, adjust local
1079 relocs against the .text section as required.
1080 * ecofflink.c (bfd_ecoff_debug_accumulate): When relaxing, adjust
1081 PDR addresses as required.
1082
2ec2e6a9
ILT
1083 * ecoff.c (ecoff_emit_aggregate): Take fdr argument. Map fdr
1084 index through rfd map if it exists. Check for a couple of cases
1085 which gdb handles specially. Change all callers.
1086 (ecoff_type_to_string): Take fdr argument rather than aux_ptr and
1087 bigendian argument. Change all callers.
1088 (ecoff_print_symbol): Handle stStruct, stUnion and stEnum.
1089
4f996613
ILT
1090Thu Apr 14 13:05:10 1994 Ian Lance Taylor ([email protected])
1091
1092 * coff-mips.c (mips_howto_table): Add dummy entries to account for
1093 numbering changes in include/coff/mips.h. Add entries for
1094 MIPS_R_RELHI and MIPS_R_RELLO.
1095 (mips_ecoff_swap_reloc_in): Handle an extra bit for the reloc type
1096 when little endian. Treat internal MIPS_R_RELLO or MIPS_R_RELHI
1097 relocs like MIPS_R_SWITCH, and convert r_offset from 24 to 32
1098 bits.
1099 (mips_ecoff_swap_reloc_out): Likewise.
1100 (mips_adjust_reloc_in): Handle internal MIPS_R_RELLO or
1101 MIPS_R_RELHI relocs like MIPS_R_SWITCH.
1102 (mips_adjust_reloc_out): Likewise.
1103 (mips_relhi_addr, mips_relhi_addend): New static variables.
1104 (mips_relhi_reloc, mips_rello_reloc): New functions.
1105 (mips_bfd_reloc_type_lookup): Turn BFD_RELOC_PCREL_HI16_S into
1106 MIPS_R_RELHI and turn BFD_RELOC_PCREL_LO16 into MIPS_R_RELLO.
1107 (mips_relocate_hi): Rename from mips_relocate_refhi, and add pcrel
1108 argument. Changed all callers.
1109 (mips_relocate_section): Rename got_reflo to got_lo and
1110 reflo_int_rel to lo_int_rel. Handle MIPS_R_RELLO and MIPS_R_RELHI
1111 relocs.
1112 (mips_relax_section): Adjust MIPS_R_RELHI/MIPS_R_RELLO pairs when
1113 expanding a PC relative call.
1114
1115 * reloc.c (bfd_reloc_code_real_type): Add BFD_RELOC_PCREL_HI16_S
1116 and BFD_RELOC_PCREL_LO16.
1117 * bfd-in2.h: Rebuilt.
1118
1a000744
SS
1119Wed Apr 13 11:50:07 1994 Stan Shebs ([email protected])
1120
1121 * coff-sparc.c (sparccoff_vec): Set minimum alignment power to 3.
1122
41194a4a
JL
1123Tue Apr 12 13:36:20 1994 Jeffrey A. Law ([email protected])
1124
1125 * som.c (som_write_fixups): Always emit at least
1126 one relocation for any non-bss section.
1127
bf08d1e2
ILT
1128Mon Apr 11 14:41:44 1994 Ian Lance Taylor ([email protected])
1129
1130 * elfcode.h (assign_file_positions_except_relocs): Don't require
1131 the file alignment to correspond to the page size when linking
1132 with -N.
1133
9a5334e5
JL
1134Sun Apr 10 01:02:24 1994 Jeffrey A. Law ([email protected])
1135
1136 * elfcode.h (write_relocs): For rela relocations, adjust the
1137 addend for relocations involving section symbols to account
1138 for the lossage of 1:1 mapping from input section symbols to
1139 output section symbols.
1140
e48f985c
ILT
1141Fri Apr 8 12:22:02 1994 Ian Lance Taylor ([email protected])
1142
ec6b18c4
ILT
1143 * aoutx.h (NAME(aout,make_sections)): New function.
1144 (NAME(aout,some_aout_object_p)): Call NAME(aout,make_sections)
1145 rather than making sections inline.
1146 (NAME(aout,mkobject)): Don't make any sections.
1147 (NAME(aout,adjust_sizes_and_vmas)): Call NAME(aout,make_sections).
1148 (NAME(aout,final_link)): Don't dereference obj_textsec (abfd) or
1149 obj_datasec (abfd) if they are NULL.
1150 * libaout.h (NAME(aout,make_sections)): Declare.
1151 * bout.c (b_out_mkobject): Don't make any sections.
1152 (b_out_write_object_contents): Call aout_32_make_sections.
1153 (b_out_set_section_contents): Likewise.
1154 * i386os9k.c (os9k_mkobject): Don't make any sections.
1155 (os9k_write_object_contents): Call aout_32_make_sections.
1156 (os9k_set_section_contents): Likewise.
1157
e48f985c
ILT
1158 * aoutx.h (NAME(aout,new_section_hook)): Don't set N_EXT in target
1159 index.
1160
06863047
PS
1161Wed Apr 6 20:44:56 1994 Peter Schauer ([email protected])
1162
1163 * config.bfd, configure.host: Add mips-*-sysv4* support.
1164
dabf906e
ILT
1165Thu Apr 7 14:23:05 1994 Ian Lance Taylor ([email protected])
1166
1167 * coff-mips.c (mips_howto_table): Add entry for MIPS_R_SWITCH.
1168 (mips_ecoff_swap_reloc_in): For MIPS_R_SWTICH, copy r_symndx into
1169 r_offset and set r_symndx to RELOC_SECTION_TEXT.
1170 (mips_ecoff_swap_reloc_out): For MIPS_R_SWITCH, get the r_symndx
1171 value from the r_offset field.
1172 (mips_adjust_reloc_in): Maximum r_type value is now MIPS_R_SWITCH.
1173 For MIPS_R_SWITCH, copy the r_offset field into the addend field.
1174 (mips_adjust_reloc_out): For MIPS_R_SWITCH, copy the addend field
1175 into the r_offset field.
1176 (mips_switch_reloc): New function.
1177 (mips_bfd_reloc_type_lookup): Translate BFD_RELOC_GPREL32 into
1178 MIPS_R_SWITCH.
1179 (mips_relocate_section): Handle MIPS_R_SWITCH.
1180 (mips_relax_section): Adjust MIPS_R_SWITCH offset if necessary.
1181
99a6c761
JL
1182Thu Apr 7 11:10:51 1994 Jeffrey A. Law ([email protected])
1183
1184 * elfcode.h (elf_set_section_contents): Support calling the backend
1185 function elf_backend_begin_write_processing when just beginning to
1186 write an object file.
1187
1188 * libelf.h (elf_backend_begin_write_processing): Declare.
1189
1190 * elf{32,64}-target.h (elf_backend_begin_write_processing): Provide
1191 a default definition.
1192 (elf{32,64}_bed): Add elf_backend_begin_write_processing.
1193
1194 * elf32-hppa.h (elf_hppa_tc_symbol): Delete extern declaration.
1195 (elf_hppa_tc_make_sections): Likewise.
1196
1197 * elf32-hppa.c (symext_chain_built): Delete.
1198 (symext_chain_size): Renamed from symextn_contents_real_size.
1199 (elf32_hppa_backend_{begin,final}_write_processing): New functions.
1200 (add_entry_to_symext_chain): New function.
1201 (hppa_elf_set_section_contents): Ignore writes to the symbol extension
1202 section until it's been rebuilt internally.
1203 (hppa_elf_get_section_contents): Symbol extension section is no
1204 longer special.
1205 (elf_backend_{begin,final}_write_processing): Define.
1206 (elf_hppa_tc_make_sections): Simplify now that much code has
1207 migrated into elf32_hppa_backend_{being,final}_write_processing.
1208
6812b607
ILT
1209Wed Apr 6 17:24:14 1994 Ian Lance Taylor ([email protected])
1210
dfc1c006
ILT
1211 Add new target vectors to read the dynamic symbols and dynamic
1212 relocs. Change a.out to use these rather than reading the dynamic
1213 symbols and relocs along with the normal symbols and relocs.
1214 * targets.c (bfd_target): Add fields
1215 _bfd_get_dynamic_symtab_upper_bound,
1216 _bfd_canonicalize_dynamic_symtab,
1217 _bfd_get_dynamic_reloc_upper_bound,
1218 _bfd_canonicalize_dynamic_reloc.
1219 (BFD_JUMP_TABLE_DYNAMIC): Define.
1220 * libbfd-in.h (_bfd_nodynamic_get_dynamic_symtab_upper_bound):
1221 Define.
1222 (_bfd_nodynamic_canonicalize_dynamic_symtab): Define.
1223 (_bfd_nodynamic_get_dynamic_reloc_upper_bound): Define.
1224 (_bfd_nodynamic_canonicalize_dynamic_reloc): Define.
1225 * bfd.c (bfd_get_dynamic_symtab_upper_bound): Define.
1226 (bfd_canonicalize_dynamic_symtab): Define.
1227 (bfd_get_dynamic_reloc_upper_bound): Define.
1228 (bfd_canonicalize_dynamic_reloc): Define.
1229 * sunos.c (MY_read_dynamic_symbols): Don't define.
1230 (MY_read_dynamic_relocs): Don't define.
1231 (MY_get_dynamic_symtab_upper_bound): Define.
1232 (MY_canonicalize_dynamic_symtab): Define.
1233 (MY_get_dynamic_reloc_upper_bound): Define.
1234 (MY_canonicalize_dynamic_reloc): Define.
1235 (struct sunos_dynamic_info): Change type of dynsym_count and
1236 dynrel_count to long. Add fields canonical_dynsym and
1237 canonical_dynrel.
1238 (sunos_read_dynamic_info): Check that BFD had DYNAMIC flag set.
1239 Clear info->canonical_dynsym and info->canonical_dynrel.
1240 (MY(read_dynamic_symbols)): Removed.
1241 (MY(read_dynamic_relocs)): Removed.
1242 (sunos_get_dynamic_symtab_upper_bound): New function.
1243 (sunos_canonicalize_dynamic_symtab): New function.
1244 (sunos_get_dynamic_reloc_upper_bound): New function.
1245 (sunos_canonicalize_dynamic_reloc): New function.
1246 * libaout.h: Declare struct reloc_ext_external and
1247 reloc_std_external to avoid prototype problems.
1248 (struct aout_backend_data): Remove fields read_dynamic_symbols and
1249 read_dynamic_relocs.
1250 (NAME(aout,translate_symbol_table)): Declare.
1251 (NAME(aout,swap_ext_reloc_in)): Declare.
1252 (NAME(aout,swap_std_reloc_in)): Declare.
1253 * aoutx.h (NAME(aout,translate_symbol_table)): Renamed from
1254 translate_symbol_table and made non-static. Changed all callers.
1255 (NAME(aout,slurp_symbol_table)): Don't read dynamic symbols.
1256 (NAME(aout,slurp_reloc_table)): Don't read dynamic relocs.
1257 (NAME(aout,get_reloc_upper_bound)): Don't count dynamic relocs.
1258 * aoutf1.h (aout_32_sunos4_write_object_contents): Don't bother to
1259 remove dynamic symbols and relocs. They will no longer be
1260 present.
1261 (MY_read_dynamic_symbols): Don't define.
1262 (MY_read_dynamic_relocs): Don't define.
1263 (sunos4_aout_backend): Don't initialize dynamic entry points.
1264 * aout-target.h (MY_read_dynamic_symbols): Don't define.
1265 (MY_read_dynamic_relocs): Don't define.
1266 (MY(backend_data)): Don't initialize dynamic entry points.
1267 (MY_get_dynamic_symtab_upper_bound): If not defined, define to
1268 _bfd_nodynamic version.
1269 (MY_canonicalize_dynamic_symtab): Likewise.
1270 (MY_get_dynamic_reloc_upper_bound): Likewise.
1271 (MY_canonicalize_dynamic_reloc): Likewise.
1272 * All backends: Added BFD_JUMP_TABLE_DYNAMIC to target vector.
1273 * bfd-in2.h: Rebuilt.
1274 * libbfd.h: Rebuilt.
1275
1276 * cf-m68klynx.c: Include sysdep.h.
1277
1278 * hp300hpux.c: Removed some spaces in uses of NAME to avoid
1279 problems with traditional C compilers.
1280
6812b607
ILT
1281 * targets.c (bfd_target): Rearranged fields in target vector.
1282 Removed _bfd_debug_info_start, _bfd_debug_info_end and
1283 _bfd_debug_info_accumulate, which were never used.
1284 (BFD_JUMP_TABLE_GENERIC, BFD_JUMP_TABLE_COPY): Defined.
1285 (BFD_JUMP_TABLE_CORE, BFD_JUMP_TABLE_ARCHIVE): Defined.
1286 (BFD_JUMP_TABLE_SYMBOLS, BFD_JUMP_TABLE_RELOCS): Defined.
1287 (BFD_JUMP_TABLE_WRITE, BFD_JUMP_TABLE_LINK): Defined.
1288 * All backends: Changed to use the new BFD_JUMP_TABLE_* macros
1289 rather than the single JUMP_TABLE macro. Removed many of the
1290 weird macro definitions needed to support the monolithic
1291 JUMP_TABLE.
1292 * bfd-in.h (JUMP_TABLE): Removed.
1293 * libbfd-in.h: Define a bunch of macros, and declare a few
1294 functions, for use with the new BFD_JUMP_TABLE_* macros.
1295 * libbfd.c (_bfd_dummy_new_section_hook): Removed.
1296 (bfd_false): Set bfd_error_invalid_operation.
1297 (bfd_nullvoidptr): Likewise.
1298 (bfd_n1): New function.
1299 (_bfd_nocore_core_file_matches_executable_p): Renamed from
1300 _bfd_dummy_core_file_matches_executable_p.
1301 (_bfd_nocore_core_file_failing_command): Similar rename. Set
1302 bfd_error_invalid_operation.
1303 (_bfd_nocore_core_file_failing_signal): Likewise.
1304 (_bfd_generic_get_section_contents): Renamed from
1305 bfd_generic_get_section_contents. Changed all callers.
1306 (_bfd_generic_set_section_contents): Similar rename.
1307 * ieee.c: #if 0 out ieee_bfd_debug_info_start,
1308 ieee_bfd_debug_info_end, ieee_bfd_debug_info_accumulate. They
1309 were never called.
1310 * bfd-in2.h: Rebuilt.
1311 * libbfd.h: Rebuilt.
1312
65b1ef49
JL
1313Tue Apr 5 22:10:04 1994 Jeffrey A. Law ([email protected])
1314
1315 * Crude support for examining dynamic libraries.
1316 * som.c (som_object_setup): Set DYNAMIC flag for SHL_MAGIC and
1317 DL_MAGIC objects.
1318 (som_prep_headers): Preserve the system_id for DYNAMIC objects.
1319 Use SHL_MAGIC as the magic number of the DYNAMIC flag is set.
1320 Write exec headers for DYNAMIC objects.
1321 (som_begin_writing): DYNAMIC objects have the same alignment
1322 restrictions as D_PAGED objects.
1323 (bfd_section_from_som_symbol): Treat DYNAMIC objects like EXEC_P
1324 objects.
1325 (object_flags): Add DYNAMIC.
1326
08a43162
SS
1327Tue Apr 5 17:48:52 1994 Stan Shebs ([email protected])
1328
1329 * i386lynx.c, sparclynx.c (NAME): Remove embedded whitespace in
1330 macro uses, confuses some non-ANSI compilers.
1331
b2452d39
JL
1332Tue Apr 5 15:50:01 1994 Jeffrey A. Law ([email protected])
1333
1334 * som.c (som_bfd_free_cached_info): Add missing PARAMS decl.
1335 Don't free anything if we don't have a bfd_object.
1336 (som_close_and_cleanup): Call som_bfd_free_cached_info.
1337
b3cee0a9
ILT
1338Tue Apr 5 11:22:38 1994 Ian Lance Taylor ([email protected])
1339
856613c4
ILT
1340 * elf32-mips.c (mips_elf_final_link): Don't remove empty sections.
1341 It turns out not to be required on Irix 5, and it causes problems
1342 if the sections happen to contain symbols.
1343
1344 * elfcode.h (write_shdrs_and_ehdr): Correct bfd_write check.
1345
b3cee0a9
ILT
1346 * aoutx.h (NAME(aout,canonicalize_reloc)): Don't error out if
1347 section->relocation is NULL; malloc might have returned NULL when
1348 given a zero size if there were no relocations.
1349 * bout.c (b_out_canonicalize_reloc): Likewise.
1350 * coffcode.h (coff_canonicalize_reloc): Likewise.
1351 * ecoff.c (ecoff_canonicalize_reloc): Likewise.
1352 * elfcode.h (elf_canonicalize_reloc): Likewise.
1353 * mipsbsd.c (MY(canonicalize_reloc)): Likewise.
1354 * i386lynx.c (NAME(lynx,canonicalize_reloc)): Likewise.
1355 * nlmcode.h (nlm_canonicalize_reloc): Likewise.
1356 * som.c (som_canonicalize_reloc): Likewise.
1357 * hp300hpux.c (MY(slurp_reloc_table)): Likewise. Also, if malloc
1358 returns NULL, don't report an error if we asked for zero bytes.
1359 * i386lynx.c (NAME(lynx,slurp_reloc_table)): If malloc returns
1360 NULL, don't report an error if we asked for zero bytes.
1361 * nlmcode.h (nlm_slurp_reloc_fixups): Likewise.
1362
f3a14a9e
ILT
1363Mon Apr 4 15:30:49 1994 Ian Lance Taylor ([email protected])
1364
c4dd531f
ILT
1365 * aoutx.h (NAME(aout,bfd_free_cached_info)): Don't free anything
1366 if we don't have a bfd_object.
1367
4002f18a
ILT
1368 Made sure that every call to bfd_read, bfd_write, and bfd_seek
1369 checks the return value and handled bfd_error correctly. These
1370 changes are not itemised. Also:
1371 * aoutx.h (emit_strtab): Change return type to boolean, and return
1372 errors.
1373 (NAME(aout,write_syms)): Check emit_strtab return value.
1374 (NAME(aout,final_link)): Likewise.
1375 * coffcode.h (coff_write_relocs): Change return type to boolean,
1376 and return errors.
1377 (coff_write_object_contents): Check coff_write_relocs return
1378 value.
1379 * i386os9k.c (os9k_swap_exec_header_in): Change return type to
1380 boolean.
1381 (os9k_object_p): Check os9k_swap_exec_header_in return value.
1382 * oasys.c (oasys_read_record): Change return type to boolean.
1383 (oasys_slurp_symbol_table: Check oasys_read_record return value.
1384 (oasys_object_p, oasys_slurp_section_data): Likewise.
1385 (oasys_write_record): Change return type to boolean.
1386 (oasys_write_syms): Likewise. Also, check oasys_write_record
1387 return value.
1388 (oasys_write_sections): Check oasys_write_record return value.
1389 (oasys_write_header): Change return type to boolean. Check
1390 oasys_write_record return value.
1391 (oasys_write_end, oasys_write_data): Likewise.
1392 (oasys_write_object_contents): Check return values of
1393 oasys_write_header, oasys_write_syms, oasys_write_data, and
1394 oasys_write_end.
1395 * srec.c (srec_write_record): Change return type to boolean.
1396 (srec_write_header): Likewise. Also, check srec_write_record
1397 return value.
1398 (srec_write_section, srec_write_terminator): Likewise.
1399 (srec_write_symbols): Change return type to boolean.
1400 (internal_srec_write_object_contents): Check return value of
1401 srec_write_symbols, srec_write_header, srec_write_section, and
1402 srec_write_terminator.
1403
f3a14a9e
ILT
1404 * Makefile.in: Rebuilt dependencies.
1405
3e2993b6
PS
1406Mon Apr 4 10:56:45 1994 Peter Schauer ([email protected])
1407
1408 * aix386-core.c (aix386_bfd_is_local_label): Correct cast from
1409 asection to asymbol.
1410 * ptrace-core.c (ptrace_unix_bfd_is_local_label): Correct cast from
1411 bfd to asymbol.
1412 * trad-core.c (trad_unix_bfd_is_local_label): Correct cast from
1413 asection to asymbol.
1414
1f46bba3
JL
1415Sun Apr 3 18:27:29 1994 Jeffrey A. Law ([email protected])
1416
1417 * som.c (som_slurp_string_table): Use malloc to allocate space
1418 for the cached copy of the native string table.
1419 (som_slurp_symbol_table): Likewise for the native symbol table.
1420 (som_slurp_reloc_table): Likewise for the native and generic
1421 relocation tables.
1422 (som_bfd_free_cached_info): Free the cached native strings,
1423 symbols, and relocations. Also free the canonical cached
1424 relocations.
1425
9deaaaf1
ILT
1426Fri Apr 1 12:40:58 1994 Ian Lance Taylor ([email protected])
1427
d6d6b18a
ILT
1428 * aoutx.h (aout_link_write_symbols): If keep_memory is false, make
1429 sure the symbol name is stored in permanent memory before adding
1430 it to the string table.
1431
dfe09c49
ILT
1432 * archive.c (_bfd_write_archive_contents): Once we've found an
1433 object, don't bother to look for more when deciding whether to
1434 build a map.
1435 (compute_and_write_armap): After adding the symbols for a BFD,
1436 call bfd_free_cached_info on it.
1437
1438 Add bfd_free_cached_info support to a.out backends.
1439 * aoutx.h (aout_get_external_symbols): Renamed from
1440 aout_link_get_symbols. Read strings even if symbols have been
1441 read. Store string size in obj_aout_string_size.
1442 (NAME(aout,slurp_symbol_table)): Call aout_get_external_symbols to
1443 read the symbols. Allocate the cached symbols with malloc, not
1444 bfd_alloc.
1445 (NAME(aout,slurp_reloc_table)): Allocate the cached relocs with
1446 malloc, not bfd_alloc.
1447 (NAME(aout,bfd_free_cached_info)): New function; free cached
1448 symbols and relocs.
1449 * libaout.h (struct aoutdata): Add external_string_size field.
1450 (obj_aout_external_string_size): New accessor macro.
1451 (NAME(aout,close_and_cleanup)): Don't declare.
1452 (NAME(aout,bfd_free_cached_info)): Declare.
1453 (aout_32_close_and_cleanup): Don't define.
1454 (aout_64_close_and_cleanup): Don't define.
1455 * aout-target.h (MY_bfd_free_cached_info): If not already defined,
1456 define as NAME(aout,free_cached_info).
1457 (MY_close_and_cleanup): If not already defined, define as
1458 MY_bfd_free_cached_info.
1459 * aout-adobe.c (aout_32_close_and_cleanup): Define.
1460 (aout_32_bfd_free_cached_info): Don't define.
1461 * bout.c (aout_32_close_and_cleanup): Define.
1462 (aout_32_bfd_free_cached_info): Don't define.
1463 * hp300hpux.c (MY_bfd_free_cached_info): Define as bfd_true.
1464 (MY_close_and_cleanup): Don't define.
1465 * i386lynx.c (NAME(lynx,slurp_reloc_table)): Allocate the cached
1466 relocs with malloc, not bfd_alloc.
1467 * i386os9k.c (aout_32_close_and_cleanup): Define.
1468 (aout_32_bfd_free_cached_info): Don't define.
1469
1470 Add a new entry point to free memory cached by a BFD.
9deaaaf1
ILT
1471 * targets.c (bfd_target): Add _bfd_free_cached_info field.
1472 * bfd.c (bfd_free_cached_info): Define.
1473 * bfd-in.h (JUMP_TABLE): Add _bfd_free_cached_info.
1474 * bfd-in2.h: Rebuilt.
1475 * All backends: Initialize bfd_free_cached_info entry point to
1476 bfd_true.
1477
1478 * elf32-hppa.c (elf_hppa_reloc_type_lookup): Correct type of
1479 first, unused, argument.
1480 (hppa_elf_is_local_label): Declare instead of
1481 som_bfd_is_local_label.
1482
1483 * coff-a29k.c (a29k_reloc): Add reloc_entry->address to value of
1484 absolute R_IREL reloc.
1485
bfe8224f
ILT
1486Thu Mar 31 11:52:15 1994 Ian Lance Taylor ([email protected])
1487
f8ee1ebb
ILT
1488 Added some support for Irix 4 shared libraries.
1489 * ecoff.c (ecoff_new_section_hook): Set SEC_SHARED_LIBRARY for a
1490 .lib section.
1491 (ecoff_sec_to_styp_flags): Set SEC_SHARED_LIBRARY if
1492 STYP_ECOFF_LIB bit is set.
1493 (ecoff_compute_section_file_positions): Round the contents of a
1494 .lib section up to the next page boundary.
1495 (ecoff_set_section_contents): If we see a .lib section, increment
1496 the vma by one to count the number of shared libraries we have.
1497 (ecoff_write_object_contents): Don't crash if we see a
1498 STYP_ECOFF_LIB section, and don't adjust text_start or data_start
1499 or bss_size either.
1500
492d52cc
ILT
1501 * coffcode.h (CALC_ADDEND): Change to fetch original symbol value
1502 from original BFD, rather than using value of current BFD symbol.
1503 Needed for new linker.
1504 * coff-sparc.c (CALC_ADDEND): Likewise.
1505
1788b1bd
ILT
1506 * ecoff.c (ecoff_write_object_contents): Set the text_start and
1507 data_start entries in the optional header correctly even if a text
1508 or data section starts at location zero.
1509
e9c6595d
ILT
1510 * reloc.c (bfd_reloc_code_real_type): Added BFD_RELOC_26 (from sef
1511 and raeburn).
1512 * bfd-in2.h: Rebuilt.
1513
3af0f479
ILT
1514 * nlm32-i386.c (nlm_i386_read_import): Null terminate the symbol
1515 name.
1516 * nlm32-alpha.c (nlm_alpha_read_import): Likewise.
1517 * nlm32-sparc.c (nlm_sparc_read_import): Likewise.
1518
bfe8224f
ILT
1519 * coffgen.c (coff_write_symbol): Reindented. Changed to return
1520 boolean, and changed written to unsigned int *. Check error
1521 returns from called functions.
1522 (coff_write_alien_symbol): Likewise.
1523 (coff_write_native_symbol): Likewise.
1524 (coff_write_symbols): Likewise. Reworked checks on whether to
1525 write symbol name to string table for clarity and to avoid core
1526 dumping when given a non COFF symbol.
1527 * libcoff-in.h (coff_write_symbols): Declare as returning boolean.
1528 * libcoff.h: Rebuilt.
1529 * coffcode.h (coff_write_object_contents): Check return value of
1530 coff_write_symbols.
1531
326e32d7
ILT
1532Wed Mar 30 16:25:41 1994 Ian Lance Taylor ([email protected])
1533
1534 Changes to let BFD return an error indication from
1535 get_symtab_upper_bound, bfd_canonicalize_symtab,
1536 bfd_get_reloc_upper_bound, and bfd_canonicalize_reloc. They now
1537 return long instead of unsigned int, and use -1 to indicate an
1538 error. Along the way, rename get_symtab_upper_bound to
1539 bfd_get_symtab_upper_bound.
1540 * bfd.c (bfd_get_reloc_upper_bound): Return long, and -1 on
1541 errors.
1542 (bfd_canonicalize_reloc): Likewise.
1543 * syms.c (bfd_get_symtab_upper_bound): Renamed from
1544 get_symtab_upper_bound.
1545 * targets.c (bfd_target): Renamed _get_symtab_upper_bound to
1546 _bfd_get_symtab_upper_bound, and changed it and
1547 _bfd_canonicalize_symtab and _get_reloc_upper_bound and
1548 _bfd_canonicalize_reloc to all return long.
1549 * aoutx.h (NAME(aout,get_symtab)): Return long, and -1 on errors.
1550 (NAME(aout,canonicalize_reloc)): Likewise.
1551 (NAME(aout,get_reloc_upper_bound)): Likewise.
1552 (NAME(aout,get_symtab_upper_bound)): Likewise.
1553 * bout.c (b_out_canonicalize_reloc): Likewise.
1554 (b_out_get_reloc_upper_bound): Likewise.
1555 * coffcode.h (coff_canonicalize_reloc): Likewise.
1556 * coffgen.c (coff_get_symtab_upper_bound): Likewise.
1557 (coff_get_symtab): Likewise.
1558 (coff_get_reloc_upper_bound): Likewise.
1559 * ecoff.c (ecoff_get_symtab_upper_bound): Likewise.
1560 (ecoff_get_symtab): Likewise.
1561 (ecoff_canonicalize_reloc): Likewise.
1562 * elfcode.h (elf_get_symtab_upper_bound): Likewise.
1563 (elf_get_reloc_upper_bound): Likewise.
1564 (elf_canonicalize_reloc): Likewise.
1565 (elf_get_symtab): Likewise.
1566 * hp300hpux.c (MY(get_symtab)): Likewise.
1567 (MY(get_symtab_upper_bound)): Likewise.
1568 (MY(canonicalize_reloc)): Likewise.
1569 * i386lynx.c (NAME(lynx,canonicalize_reloc)): Likewise.
1570 * ieee.c (ieee_slurp_external_symbols): Change return type to
1571 boolean. Check for errors from get_symbol.
1572 (ieee_slurp_symbol_table): Change return type to boolean. Check
1573 for errors from ieee_slurp_external_symbols.
1574 (ieee_get_symtab_upper_bound): Return long, and -1 on errors.
1575 (ieee_get_symtab): Likewise.
1576 (ieee_get_reloc_upper_bound): Likewise.
1577 (ieee_canonicalize_reloc): Likewise.
1578 * mipsbsd.c (MY(canonicalize_reloc)): Likewise.
1579 * nlmcode.h (nlm_get_symtab_upper_bound): Likewise.
1580 (nlm_get_symtab): Likewise.
1581 (nlm_get_reloc_upper_bound): Likewise.
1582 (nlm_canonicalize_reloc): Likewise.
1583 * oasys.c (oasys_get_symtab_upper_bound): Likewise.
1584 (oasys_get_symtab): Likewise.
1585 (oasys_get_reloc_upper_bound): Likewise.
1586 (oasys_canonicalize_reloc): Likewise.
1587 * som.c (som_get_symtab_upper_bound): Likewise.
1588 (som_get_symtab): Likewise.
1589 (som_get_reloc_upper_bound): Likewise.
1590 (som_canonicalize_reloc): Likewise.
1591 * srec.c (srec_get_symtab_upper_bound): Likewise.
1592 (srec_get_symtab): Likewise.
1593 (srec_get_reloc_upper_bound): Define as bfd_0l.
1594 (srec_canonicalize_reloc): Likewise.
1595 * tekhex.c (tekhex_get_symtab): Return long, and -1 on errors.
1596 (tekhex_get_symtab_upper_bound): Likewise.
1597 (tekhex_get_reloc_upper_bound): Define as bfd_0l.
1598 (tekhex_canonicalize_reloc): Likewise.
1599 * libaout.h (NAME(aout,get_symtab_upper_bound)): Change
1600 declaration to return long.
1601 (NAME(aout,get_symtab)): Likewise.
1602 (NAME(aout,canonicalize_reloc)): Likewise.
1603 (NAME(aout,get_reloc_upper_bound)): Likewise.
1604 * libcoff-in.h (coff_get_symtab_upper_bound): Likewise.
1605 (coff_get_symtab): Likewise.
1606 (coff_get_reloc_upper_bound): Likewise.
1607 * libecoff.h (ecoff_get_symtab_upper_bound): Likewise.
1608 (ecoff_get_symtab): Likewise.
1609 (ecoff_canonicalize_reloc): Likewise.
1610 * libelf.h (bfd_elf32_get_symtab_upper_bound): Likewise.
1611 (bfd_elf32_get_symtab): Likewise.
1612 (bfd_elf32_get_reloc_upper_bound): Likewise.
1613 (bfd_elf32_canonicalize_reloc): Likewise.
1614 (bfd_elf64_get_symtab_upper_bound): Likewise.
1615 (bfd_elf64_get_symtab): Likewise.
1616 (bfd_elf64_get_reloc_upper_bound): Likewise.
1617 (bfd_elf64_canonicalize_reloc): Likewise.
1618 * libnlm.h (nlmNAME(get_symtab_upper_bound)): Likewise.
1619 (nlmNAME(get_symtab)): Likewise.
1620 (nlmNAME(get_reloc_upper_bound)): Likewise.
1621 (nlmNAME(canonicalize_reloc)): Likewise.
1622 * archive.c (compute_and_write_armap): Use error_return and
1623 no_memory_return labels rather than freeing information in various
1624 places. Change storage, symcount and src_count to long. Check
1625 errors from bfd_get_symtab_upper_bound and
1626 bfd_canonicalize_symtab.
1627 * bout.c (b_out_relax_section): Change reloc_size to long. Check
1628 for errors from bfd_get_reloc_upper_bound and
1629 bfd_canonicalize_reloc.
1630 (b_out_get_relocated_section_contents): Likewise.
1631 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
1632 Likewise.
1633 * elf32-mips.c: Likewise.
1634 * elf32-hppa.c (hppa_elf_stub_finish): Likewise.
1635 (hppa_look_for_stubs_in_section): Check for errors from
1636 bfd_get_symtab_upper_bound, bfd_canonicalize_symtab, and
1637 bfd_canonicalize_reloc.
1638 * ecofflink.c (bfd_ecoff_debug_accumulate_other): Check for errors
1639 from bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
1640 * linker.c (generic_link_read_symbols): Likewise.
1641 (_bfd_generic_final_link): Check for errors from
1642 bfd_get_reloc_upper_bound and bfd_canonicalize_reloc.
1643 * reloc.c (bfd_generic_get_relocated_section_contents): Likewise.
1644 * reloc16.c (bfd_coff_reloc16_relax_section): Likewise.
1645 (bfd_coff_reloc16_get_relocated_section_contents): Likewise.
1646 * libbfd.c (bfd_0l): New function.
1647 * libbfd-in.h (bfd_0l): Declare.
1648 * aix386-core.c: Change get_symtab_upper_bound, get_symtab,
1649 get_reloc_upper_bound, and canonicalize_reloc to use bfd_0l rather
1650 than bfd_0u.
1651 * cisco-core.c, hppabsd-core.c, hpux-core.c: Likewise.
1652 * irix-core.c, osf-core.c, ptrace-core.c, trad-core.c: Likewise.
1653 * bfd-in2.h: Rebuilt.
1654 * libbfd.h: Rebuilt.
1655 * libcoff.h: Rebuilt.
1656
1657 * nlm32-sparc.c (nlm_sparc_read_reloc): Remove unused variables
1658 temp and name.
1659
c2c818bc
JK
1660Wed Mar 30 08:33:04 1994 Jim Kingdon ([email protected])
1661
1662 * hosts/dpx2.h: Define POSIX_UTIME.
1663
bdf1b511
PS
1664Wed Mar 30 00:31:49 1994 Peter Schauer ([email protected])
1665
1666 * i386dynix.c, config/i386-dynix.mt: New files, handling Dynix
1667 variant of a.out.
1668 * configure.in, config.bfd: Use them for Dynix.
1669 * Makefile.in: Add dependencies for i386dynix.o.
1670 * targets.c: Add definition for i386dynix_vec.
1671 * hosts/symmetry.h: Do not define TRAD_CORE_USER_OFFSET for Dynix.
1672 Define HOST_DATA_START_ADDR and TRAD_UNIX_CORE_FILE_FAILING_SIGNAL
1673 for Dynix. Remove inclusion of dynix3.h, Dynix bfd is now handled by
1674 i386dynix.c
1675
a8a916c8
ILT
1676Mon Mar 28 12:53:27 1994 Ian Lance Taylor ([email protected])
1677
9f37f56a
ILT
1678 * Makefile.in (BFD32_BACKENDS): Add coff-sparc.o.
1679
09a28207
ILT
1680 * coffcode.h (coff_set_flags): Handle bfd_arch_powerpc like
1681 bfd_arch_rs6000.
1682
ce8f1f60 1683 * config.bfd (powerpc-*-aix*): New target; use rs6000.mt.
34632537
ILT
1684 * config/rs6000.mt (SELECT_ARCHITECTURES): Add bfd_powerpc_arch.
1685
a8a916c8
ILT
1686 * aoutx.h (translate_from_native_sym_flags): Set SEC_RELOC flag
1687 for generated constructor section.
1688
06e6eb0e
JL
1689Sun Mar 27 16:25:22 1994 Jeffrey A. Law ([email protected])
1690
1691 * som.c (som_begin_writing): New approach at dealing with holes
1692 in executables left by the HP linker. Does not rely on subspace
1693 alignments as subspaces are *NOT* guaranteed to be properly
1694 aligned in an executable (can you believe that!).
1695
25057836
JL
1696Sat Mar 26 10:25:43 1994 Jeffrey A. Law ([email protected])
1697
f977e865
JL
1698 * som.c (som_get_section_contents): New function. Do not try
1699 to actually read data from a section that doesn't have either
1700 SEC_LOAD or SEC_DEBUGGING set (eg $BSS$) just return true.
1701
25057836
JL
1702 * libbfd.c (bfd_read): Set bfd_error as appropriate for a short
1703 read. (bfd_error_system_call or bfd_error_file_truncated).
1704
1705 * som.c: Do not blindly set bfd_error_system_call after a
1706 failing bfd_read, bfd_write, or bfd_seek. In a few places
1707 (like som_object_p) override the error status set by bfd_read.
1708
1709 * aix386-core.c, aout-encap,c archive.c, bout.c: Likewise.
1710 * coff-rs6000.c, coffgen.c ecoff.c, elf.c: Likewise.
1711 * elf32-hppa.c, elfcode.h, hp300hpux.c, i386lynx.c: Likewise.
1712 * nlm32-alpha.c, nlm32-i386.c, nlm32-sparc.c: Likewise.
1713
1714 * som.c: Check return values from several bfd_{seek,read,write}
1715 calls that we just assumed were not failing.
1716
471c3c3f
JK
1717Fri Mar 25 11:44:06 1994 Jim Kingdon ([email protected])
1718
1719 * hosts/sysv4.h (HAVE_PROCFS): Add comments about ptx4.
1720 * config/sysv4.mh: Add comment.
1721 * config/symmetry.mh: Change comment.
1722 * configure.host: Use sysv4, not symmetry, for i[34]86-sequent-sysv4*.
1723
ec099b4b
ILT
1724Fri Mar 25 17:10:45 1994 Ian Lance Taylor ([email protected])
1725
a3a33af3 1726 Changes to support linker relaxing of embedded MIPS PIC code to
471c3c3f 1727 use a five instruction sequence for function calls which are out of
a3a33af3
ILT
1728 range of the bal instruction.
1729 * libecoff.h (struct ecoff_section_tdata): Define.
1730 (ecoff_section_data): Define.
1731 (ecoff_bfd_relax_section): Don't define.
1732 * ecoff.c (ecoff_final_link_debug_accumulate): Don't read or free
1733 the debugging information if it has already been read.
1734 (ecoff_indirect_link_order): Handle _cooked_size being different
1735 from _raw_size. Don't reread the contents or the relocs if they
1736 have already been read in.
1737 * coff-mips.c (mips_howto_table): Change bitsize of PCREL16 from
1738 18 to 16.
1739 (PCREL16_EXPANSION_ADJUSTMENT): Define.
1740 (mips_relocate_refhi): Take adjust argument.
1741 (mips_relocate_section): Handle reloc offsets stored in section
1742 used_by_bfd field. Call mips_relax_pcrel16 to handle details of
1743 expanding an out of range PCREL16. Keep trace of adjustments
1744 required by expansions. Set s and unset h when converting a reloc
1745 from undefined to section. Change handling of PC relative relocs:
1746 if against a section, they are correct in the object file, if
1747 against an external symbol they are pcrel_offset.
1748 (mips_relax_section): New function.
1749 (mips_relax_pcrel16): New function.
1750 (ecoff_bfd_relax_section): Define.
1751 * coff-alpha.c (ecoff_bfd_relax_section): Define.
1752 * ecofflink.c (bfd_ecoff_debug_accumulate): Handle adjustments
1753 built by mips_relax_section when writing out addresses.
1754 * elf32-mips.c (mips_elf_read_ecoff_info): Clear adjust field.
1755
ec099b4b
ILT
1756 * aoutx.h (NAME(aout,find_nearest_line)): The caller expects
1757 functionname_ptr to be set to a symbol name, so prepend
1758 symbol_leading_char.
1759
47e70c54
SC
1760Thu Mar 24 11:33:46 1994 Steve Chamberlain ([email protected])
1761
1762 * coff-h8300.c (h8300_reloc16_extra_cases): Add relaxing info
1763 for 16bit relative branches.
1764 * coff-h8500.c (r_high8, r_low16, r_high16): Don't complain on
1765 overflow.
1766
9d7f682f
JL
1767Thu Mar 24 09:21:13 1994 Jeffrey A. Law ([email protected])
1768
1769 * som.c (som_bfd_prep_for_ar_write): Ignore non-SOM objects.
1770 (som_bfd_ar_write_symbol_stuff, som_write_armap): Likewise.
1771
1772Wed Mar 23 14:29:31 1994 David J. Mackenzie ([email protected])
1773
1774 * netbsd386.c (N_SET_FLAGS): Delete the old definition.
1775
456961d1
ILT
1776Wed Mar 23 14:58:44 1994 Ian Lance Taylor ([email protected])
1777
1778 Clean up the relaxing code for the new linker.
1779 * targets.c (_bfd_relax_section): Take boolean *again argument
1780 rather than asymbol list.
1781 * bfd.c (bfd_relax_section): Change name of fourth argument from
1782 symbols to again.
1783 * reloc.c (bfd_generic_relax_section): Take boolean *again
1784 argument rather than asymbol list. Always return true.
1785 * bout.c: Include genlink.h.
1786 (aligncode, perform_slip): Declare.
1787 (perform_slip): Take BFD argument rather than asymbol list.
1788 Changed all callers. Get the symbols from the BFD. Change the
1789 hash table entry value as well as the symbol value.
1790 (abs32code): Take BFD argument rather than asymbol list. Changed
1791 all callers.
1792 (aligncode): Likewise.
1793 (b_out_relax_section): Take boolean *again argument rather than
1794 asymbol list. Only return false if an error occurred. Set *again
1795 to false. Get symbols from BFD.
1796 * reloc16.c: Include genlink.h.
1797 (bfd_perform_slip): Take BFD argument rather than asymbol list.
1798 Get the symbols from the BFD. Change the hash table entry value
1799 as well as the symbol value.
1800 (bfd_coff_reloc16_relax_section): Take boolean *again argument
1801 rather than asymbol list. Only return false if an error occurred.
1802 Set *again to false. Get symbols from BFD.
1803 * coffcode.h (bfd_coff_backend_data): Change
1804 _bfd_coff_reloc16_estimate to take BFD argument rather than
1805 asymbol list.
1806 (bfd_coff_reloc16_estimate): Corresponding change.
1807 (dummy_reloc16_estimate): Corresponding change.
1808 * libcoff-in.h (bfd_coff_reloc16_relax_section): Change
1809 declaration to take boolean * rather than asymbol list.
1810 (bfd_perform_slip): Change declaration to take BFD rather than
1811 asymbol list.
1812 * coff-h8300.c (h300_reloc16_estimate): Take BFD argument rather
1813 than asymbol list. Changed calls to bfd_perform_slip.
1814 * bfd-in2.h: Rebuilt.
1815 * libbfd.h: Rebuilt.
1816 * libcoff.h: Rebuilt.
1817 * Makefile.in: Rebuilt dependencies.
1818
1819 * genlink.h (_bfd_generic_link_get_symbols): Define.
1820 (_bfd_generic_link_get_symcount): Define.
1821 * linker.c (generic_link_read_symbols): New function.
1822 (generic_link_add_object_symbols): Use it. Use
1823 _bfd_generic_link_get_symbols and _bfd_generic_link_get_symcount
1824 to get the symbols from the BFD.
1825 (generic_link_check_archive_element): Likewise.
1826 (_bfd_generic_final_link): Likewise.
1827 (_bfd_generic_link_output_symbols): Likewise.
1828 (default_indirect_link_order): Likewise.
1829 (generic_link_add_symbol_list): Store pointer to hash table entry
1830 in asymbol udata field.
1831
4335ce64
ILT
1832Tue Mar 22 13:09:44 1994 Ian Lance Taylor ([email protected])
1833
c031ba0b
ILT
1834 * coff-mips.c (mips_howto_table): Add entry for new MIPS_R_PCREL16
1835 reloc, used in embedded PIC code.
1836 (mips_adjust_reloc_in): Change sanity check to permit new reloc.
1837 (mips_bfd_reloc_type_lookup): Turn BFD_RELOC_16_PCREL_S2 into
1838 MIPS_R_PCREL16.
1839
4335ce64
ILT
1840 * elf32-mips.c (mips_elf_final_link): Account for link_order
1841 relocs when allocating space for relocations. Set SEC_RELOC flag
1842 for any section which has relocs. Handle link_order relocs in
1843 link_order loop. Use _bfd_generic_link_add_symbols_collect for
1844 add_symbls entry point.
1845
1846 * linker.c (_bfd_generic_final_link): Set reloc_count to 0 before
1847 counting relocs. Set SEC_RELOC flag for any section which has
1848 relocs.
1849
1850 * linker.c (_bfd_default_link_order): Handle bfd_data_link_order.
1851
1852 * linker.c (_bfd_generic_link_add_symbols): Just call
1853 generic_link_add_symbols.
1854 (_bfd_generic_link_add_symbols_collect): New function, like
1855 _bfd_generic_link_add_symbols but also collect constructors and
1856 destructors by name as collect2 does.
1857 (generic_link_add_symbols): New function, like old
1858 _bfd_generic_link_add_symbols but with collect argument.
1859 (generic_link_add_object_symbols): Take collect argument.
1860 (generic_link_check_archive_element_no_collect): New function.
1861 (generic_link_check_archive_element_collect): New function.
1862 (generic_link_check_archive_element): Take collect argument.
1863 (generic_link_add_symbol_list): Take collect argument.
1864 (_bfd_generic_link_add_one_symbol): Rename constructor argument to
1865 collect.
1866 * libbfd-in.h (_bfd_generic_link_add_symbols_collect): Declare.
1867 * libbfd.h: Rebuilt.
1868
9d92fe0a
JL
1869Tue Mar 22 10:04:00 1994 Jeffrey A. Law ([email protected])
1870
1871 * archive.c (bfd_construct_extended_name_table): Use ar_padchar
1872 for first character in an extended name.
1873 (_bfd_write_archive_contents): If ar_padchar == '/', then use
1874 "//" as the name of the special archive member holding the
1875 extended name table.
1876
f1cca647
ILT
1877Mon Mar 21 12:28:19 1994 Ian Lance Taylor ([email protected])
1878
1879 Support for link_order types which generate relocs in order to
1880 support -Ur in the linker.
1881 * linker.c (generic_link_add_symbol_list): Remove bitsize argument
1882 from call to _bfd_generic_link_add_one_symbol.
1883 (_bfd_generic_link_add_one_symbol): Remove bitsize argument.
1884 Don't pass bitsize to constructor call back. Pass BFD_RELOC_CTOR
1885 instead of bitsize to add_to_set call back.
1886 (_bfd_generic_final_link): Account for link_order relocs when
1887 allocating space for relocations. Handle them in link_order loop.
1888 (_bfd_generic_reloc_link_order): New function.
1889 (_bfd_default_link_order): If a reloc_link_order is seen here,
1890 abort.
1891 (_bfd_count_link_order_relocs): New function.
1892 * libbfd-in.h (_bfd_generic_link_add_one_symbol): Remove bitsize
1893 argument from declaration.
1894 (_bfd_generic_reloc_link_order): Declare.
1895 (_bfd_count_link_order_relocs): Declare.
1896 * libbfd.h: Rebuilt.
1897 * aoutx.h (aout_link_add_symbols): Remove bitsize argument from
1898 call to _bfd_generic_link_add_one_symbol.
1899 (NAME(aout,final_link)): Account for link_order relocs when
1900 allocating space for relocations. Handle them after handling all
1901 input BFDs.
1902 (aout_link_reloc_link_order): New function.
1903 * ecoff.c (ecoff_link_add_externals): Remove bitsize argument from
1904 call to _bfd_generic_link_add_one_symbol.
1905 (ecoff_bfd_final_link): Account for link_order relocs when
1906 allocating space for relocations. Handle them in link_order loop.
1907 (ecoff_link_write_external): Set the storage class of a defined
1908 linker created symbol based on the section it is in. Correct
1909 bfd_link_hash_weak case to use .sc rather than .st.
1910 (ecoff_reloc_link_order): New function.
1911 * coff-alpha.c (alpha_bfd_reloc_type_lookup): Handle
1912 BFD_RELOC_CTOR.
1913 * coff-mips.c (mips_bfd_reloc_type_lookup): Likewise.
1914
1915 * sunos.c (sunos_read_dynamic_info): Remove unused locals dynsym
1916 and buf.
1917
1918 * cisco-core.c (cisco_core_file_p): Only pass one argument to
1919 bfd_zmalloc. Free a pointer, not a union.
1920 (cisco_bfd_is_local_label): Correct cast from asection to asymbol.
1921
142f59f4
JL
1922Sun Mar 20 09:24:36 1994 Jeffrey A. Law ([email protected])
1923
17e64ad3
JL
1924 * bfd/som.c (som_begin_writing): Fix thinko (off by one error).
1925
c2e1207b
JL
1926 * som.c (bfd_section_from_som_symbol): Only to do the value
1927 comparison for function symbols within executables.
1928
c05d2d43
JL
1929 * som.c (bfd_section_from_som_symbol): Renamed from
1930 som_section_from_subspace_index. Pass in a native SOM symbol.
1931 For executables, iterate through the sections to find out
1932 which contains the symbol's address rather than using the
1933 symbol_info field. (symbol_info has a different meaning for
1934 dynamicly linked executables.)
1935
61bcbf40
JL
1936 * trad-core.c (trad_unix_core_file_p): Don't pass abfd to
1937 bfd_zmalloc.
1938
517a6af6
JL
1939 * som.c (som_begin_writing): Fix braino (one call to align
1940 space/subspace data was done unconditionally rather than
1941 just for executables.)
1942
142f59f4
JL
1943 * som.c (som_begin_writing): Align text in all executables to
1944 make HPUX kernel happy. Fixes strip/objcopy for shared
1945 executables.
1946
00806436
JL
1947Sat Mar 19 07:06:59 1994 Jeffrey A. Law ([email protected])
1948
1949 * som.c (som_begin_writing): Account for alignment needs of
1950 subspaces too when writing executables. Never request a negative
1951 bss size. Fixes some problems with demand paged executables,
1952 still having problems with pure executables and shared executables.
1953
f3f29240
JK
1954Fri Mar 18 19:12:47 1994 Jim Kingdon ([email protected])
1955
1956 * trad-core.c (trad_unix_core_file_p): Call bfd_zmalloc not
1957 bfd_zalloc for rawptr, because later on we may call free, not
1958 bfd_release, on it.
1959
1960 * bfd.c (struct _bfd): Add cisco_core_struct to tdata union.
1961 * libbfd.c (bfd_read, bfd_seek): Add comments regarding errors.
1962 * cisco-core.c: New file.
47dc9b52
JK
1963 * Makefile.in: Change accordingly.
1964 * configure.in: Recognize cisco_core_vec.
1965 * config/m68k-aout.mt (SELECT_VECS): Add cisco_core_vec.
1966 * targets.c: Add cisco_core_vec.
f3f29240
JK
1967 * bfd-in2.h: Rebuilt.
1968
3b499495
JL
1969Fri Mar 18 18:13:49 1994 Jeffrey A. Law ([email protected])
1970
15766917
JL
1971 * som.h (som_copyable_section_data_struct): New structure
1972 containing all the private section information which needs
1973 to be copied from input section to output section during
1974 objcopy or strip.
1975 (som_section_data_struct): Remove several fields now in
1976 som_copyable_section_data_struct. Make the space and
1977 subspace dictionaries be pointers (to save space when
1978 only reading objects).
1979
1980 * som.c (bfd_som_set_section_attributes): Now returns a boolean;
1981 some references changed. Allocate a copyable data stucture if
1982 none exists. Store info into the copyable data structure.
1983 (bfd_som_set_subsection_attributes): Likewise.
1984 (som_is_space, som_is_subspace, som_is_container): New functions.
1985 Use these instead of directly accessing private data.
1986 (som_prep_headers): Allocate space and subspace headers here.
1987 Fill in some fields in the space/subspace headers from the
1988 copyable data.
1989 (som_bfd_copy_private_section_data): Only copy the stuff
1990 that we really need to make objcopy and strip work. Allocate
1991 the copy_data structure for the output bfd before copying.
1992
4359a7ef
JL
1993 * som.h (struct som_exec_data): New structure to hold exec
1994 info that must be preserved when running objcopy/strip.
1995 (struct somdata): Add new "exec_data" field and accessor
1996 macro. Add some comments on how the various fields are used.
1997 (som_section_data_struct): Make is_space and is_subspace bitfields.
1998 Delete unused subspace_index. All references now use the
1999 target_index field within the section structure itself.
2000
2001 * som.c (make_unique_section): Delete unused declaration.
2002 (som_bfd_copy_private_bfd_data): New function.
2003 (som_object_setup): Allocate space for and save exec information
2004 that needs to be copied during objcopy/strip.
2005 (som_mkobject): Do not allocate space for a file header here.
2006 It is not used when only reading SOM objects.
2007 (som_prep_headers): Allocate space for and attach a file header
2008 to the output bfd. For executables, use the saved system_id
2009 value rather than trying to guess the right value. Do not abort
2010 wwhen setting file_hdr->entry* for executables.
2011 (som_begin_writing): For executables, set the exec_entry and
2012 exec_flags fields.
2013 (som_copy_private_backend_section_data): Always return a value.
2014
08b3c4f9
JL
2015 * libhppa.h (PA_PAGESIZE): Define.
2016
2017 * som.c (SOM_ALIGN): Define.
2018 (som_begin_writing): If writing an executable, initialize all
2019 fields in the exec header to zero. Update fields in the exec
2020 header as sizes of loadable subspaces are computed. Carefully
2021 preserve alignments when building executables. Actually write the
2022 exec after all the fields are filled in.
2023
3b499495
JL
2024 * Better long-filename handling. Reads SOM ABI compliant extended
2025 names, but doesn't quite write compliant extended names yet.
2026 * som.c (som_slurp_extended_name_table): Delete function. The
2027 generic code will handle things correctly.
2028 (som_slurp_armap): Seek to the beginning of the next member.
2029 (normalize): New function.
2030 (som_bfd_ar_write_symbol_stuff): Take the size of the extended
2031 name table into account when computing the file offsets in the
2032 SOM dictionary. Make sure to align to an even boundary.
2033 (som_write_armap): Initialize the checksum to zero.
2034 (ar_maxchars): Fix. Opps.
2035
ff978570
KR
2036Fri Mar 18 20:35:24 1994 Ken Raeburn ([email protected])
2037
2038 * aoutx.h (reloc_type_lookup): Handle BFD_RELOC_CTOR on a 64-bit
2039 machine. Handle BFD_RELOC_SPARC13 and BFD_RELOC_SPARC_BASE13.
2040
6f4aac6c
KR
2041Thu Mar 17 18:26:46 1994 Ken Raeburn ([email protected])
2042
5a66538b
KR
2043 * bfd-in.h (BFD_VERSION): Use @VERSION@.
2044 * Makefile.in (bfd.h): Replace it with contents of VERSION file.
2045 * bfd-in2.h: Regenerated.
2046
6f4aac6c
KR
2047 * trad-core.c (trad_unix_bfd_is_local_label): Fixed typo where
2048 this was also named trad_unix_bfd_copy_private_bfd_data.
2049
8eb5d4be
JK
2050Thu Mar 17 10:37:07 1994 Jim Kingdon ([email protected])
2051
2052 * aoutx.h, elfcode.h, coff-alpha.c, bout.c, ecoff.c, ecofflink.c,
2053 elf32-hppa.c, elf32-mips.c, linker.c, som.c, sunos.c: If malloc(0)
2054 returns NULL, it is not an error. It's possible that some of
2055 these checks are not necessary (because the size can never be
2056 zero), but putting in the checks is the conservative thing to do
2057 in light of the fact that some of these malloc calls replaced
2058 unchecked alloca calls, in which a zero argument would work fine.
2059
1c6042ee
ILT
2060Thu Mar 17 11:44:45 1994 Ian Lance Taylor ([email protected])
2061
7838792b
ILT
2062 * osf-core.c (osf_core_bfd_copy_private_bfd_data): Remove
2063 duplicate definition.
2064 (osf_core_bfd_is_local_label): Define.
2065
4bbf7a49
ILT
2066 * reloc.c (bfd_generic_get_relocated_section_contents): Don't fail
2067 if malloc (0) fails. bfd_canonicalize_reloc returning 0 is not a
2068 failure indication, it merely means there are no relocs.
2069
1c6042ee
ILT
2070 * elfcode.h (NAME(bfd_elf,write_object_contents)): Don't use space
2071 after NAME, since SunOS /bin/cc can't handle it.
2072
ae6710bc
DM
2073Wed Mar 16 16:43:33 1994 David J. Mackenzie ([email protected])
2074
2075 * netbsd386.c (N_SET_FLAGS): Don't nuke the machine id field.
2076 From [email protected] (Tasuki Hirata).
2077
2078Wed Mar 16 07:55:54 1994 Jim Kingdon ([email protected])
2079
2080 * aoutf1.h (4 places): Use a simple #if on ARCH_SIZE, rather than
2081 all that convoluted stuff with NAME, CAT3, etc. The convoluted
2082 stuff broke for SunOS4 /bin/cc (due to DEFUN elimination, I guess).
2083
35ac8aac
JL
2084Wed Mar 16 00:02:05 1994 Jeffrey A. Law ([email protected])
2085
2086 * som.c (som_prep_for_fixups): Detect section symbols based
2087 on either the lack of private data or the symbol flags. Do not
2088 munge section symbol names anymore -- they no longer confuse GDB.
2089 (som_begin_writing): Leave space for an exec header if writing
2090 an executable.
2091 (som_slurp_symbol_table): Recognize both forms of section symbol
2092 names "L$0\002" and "$<FOO>$". Change the name of "L$0\002"
2093 section symbols to be the name of the section they represent.
2094 Debugging symbols begin with "L$0\001", not just "L$".
2095
5b3577cb
JL
2096Tue Mar 15 22:58:28 1994 Jeffrey A. Law ([email protected])
2097
2098 * bfd-in2.h, libbfd.h, libcoff.h: Rebuilt.
2099
2100 * bfd-in.h (JUMP_TABLE): Add new entries to the jump table
2101 for bfd_copy_private_section_data, bfd_copy_private_bfd_data,
2102 and bfd_is_local_label.
2103
2104 * targets.c: Add new entries to the bfd_target structure.
2105
2106 * bfd.c (bfd_copy_private_bfd_data): New definition.
2107
2108 * section.c (bfd_copy_private_section_data): New definition.
2109
2110 * syms.c (bfd_is_local_label): New definition.
2111
2112 * libbfd-in.h (bfd_generic_is_local_label): Declare.
2113
2114 * libbfd.c (bfd_generic_is_local_label): New function.
2115
2116 * *-core.c: Provide default definitions for new functions in
2117 the target vector which all point to bfd_false.
2118
2119 * aout-target.h, coffcode.h, elf32-target.h elf64-target.h, ieee.c
2120 libaout.h, libecoff.h, nlm-target.h, oasys.c, srec.c, tekhex.c
2121 Default new vectors for copying private backend data to bfd_true.
2122 Default new vector for determining if a symbol is a local label
2123 to bfd_generic_is_local_label.
2124
2125 * som.c (som_bfd_copy_private_section_data): New function.
2126 (som_bfd_is_local_label): New function.
2127 (som_bfd_copy_private_bfd_data): For now default to bfd_true.
2128
2129 * elf32-hppa.c (hppa_elf_is_local_label): New function.
2130
0069bd06
ILT
2131Tue Mar 15 23:55:47 1994 Ian Lance Taylor ([email protected])
2132
2133 * cf-m68klynx.c (CALC_ADDEND): Use _bfd_m68klynx_howto_table.
2134
57a1867e
DM
2135Tue Mar 15 04:41:13 1994 David J. Mackenzie ([email protected])
2136
2137 * Most files:
2138 Replace DEFUN and DEFUN_VOID with K&R-style function definition.
2139 Indent some of them to GNU standards.
2140
2141 * aout32.c, archures.c, core.c, cpu-h8300.c, cpu-i960.c,
2142 cpu-m68k.c, cpu-m88k.c, cpu-mips.c, cpu-vax.c, ctor.c, demo64.c,
2143 elf32-hppa.h, gen-aout.c, host-aout.c, init.c, libhppa.h,
2144 libieee.h, liboasys.h, newsos3.c, som.h, stab-syms.c, sunos.c:
2145 Update copyright years.
2146
ec743cef
JL
2147Mon Mar 14 11:41:23 1994 Jeffrey A. Law ([email protected])
2148
baef2065
JL
2149 * som.c (som_prep_for_fixups): A relocation involving the section
2150 symbol for the *ABS* section is really a relocation involving
2151 no symbol.
2152 (som_slurp_symbol_table): Do not set BSF_GLOBAL or BSF_EXPORT for
2153 undefined symbols. Correctly distinguish between debugger symbols
2154 and section symbols.
2155
b486fb13
JL
2156 * som (setup_sections): Set SEC_DEBUGGING and the section attributes
2157 for spaces and subspaces.
2158
4c9db344
JL
2159 * som.c (som_bfd_count_ar_symbols): Fix typo.
2160
ec743cef
JL
2161 * som.c (som_object_setup): Set EXEC_P, D_PAGED, WP_TEXT, and
2162 HAS_RELOC based on the object's magic number.
2163 (make_unique_section): Delete function. BFD and its users are
2164 prepared to handle multiple sections with the same name.
2165 (setup_sections): Allocate space on the BFD's obstack to hold
2166 section names. Use bfd_make_setion_anyway rather than the
2167 obsolete make_unique_section.
2168 (som_prep_headers): Choose the correct SOM magic number based
2169 on the BFD's flags.
2170 (som_bfd_fill_in_ar_symbols): Return false, not NULL on error.
2171
45ccfd58
ILT
2172Sat Mar 12 09:46:09 1994 Ian Lance Taylor ([email protected])
2173
2174 * elf32-ppc.c: Renamed from elf32-powerpc.c.
45ccfd58 2175 * nlm32-ppc.c: Renamed from nlm32-powerpc.c.
45ccfd58
ILT
2176 * Makefile.in, configure.in: Corresponding changes.
2177
92177c52
ILT
2178Fri Mar 11 22:27:19 1994 Ian Lance Taylor ([email protected])
2179
2180 * elf32-powerpc.c: Extensive changes to update to preliminary ABI.
2181
3e0b5554
PS
2182Fri Mar 11 00:34:59 1994 Peter Schauer ([email protected])
2183
2184 * sunos.c (sunos_read_dynamic_info): Assume that dynamic info
2185 is always located at the start of the data section to allow
2186 recovery of the dynamic info from a stripped executable.
2187 * ecoff.c (ecoff_styp_to_sec_flags): Handle STYP_PDATA, STYP_XDATA
2188 and STYP_COMMENT.
2189
80425e6c
JK
2190Wed Mar 9 17:17:53 1994 Jim Kingdon ([email protected])
2191
2192 * libbfd-in.h: Remove alloca cruft. It was missing some necessary
2193 cruft (like the #pragma alloca for AIX).
2194 In addition to that problem, the C alloca calls xmalloc, which
2195 means checking for being out of memory can't work right. The
2196 following changes remove all uses of alloca from BFD.
2197 * hosts/solaris2.h: Remove alloca cruft.
2198 * som.c: Replace alloca with a fixed size auto array.
2199 * aoutx.h, elfcode.h, nlmcode.h, bout.c, coff-alpha.c, ecoff.c,
d7fb4531
JK
2200 ecofflink.c, elf32-hppa.c, elf32-mips.c, linker.c, reloc.c, som.c,
2201 sunos.c: Replace alloca with malloc and appropriate error checking and
80425e6c
JK
2202 freeing.
2203 * linker.c: Replace alloca with obstack_alloc.
2204 * libbfd.h: Rebuilt.
2205
1404c365
ILT
2206Tue Mar 8 12:10:38 1994 Ian Lance Taylor ([email protected])
2207
2208 * coff-mips.c (mips_relocate_section): Handle MIPS_R_LITERAL like
2209 MIPS_R_GPREL.
2210
25677b5b
PS
2211Sat Mar 5 14:08:54 1994 Peter Schauer ([email protected])
2212
2213 * elf32-hppa.h, elfcode.h: Replace uses of Elf*_Half, Elf*_Word,
2214 Elf*_Off typedefs by their expansion, the typedefs have been
2215 removed from include/elf/internal.h.
802f4fe2
PS
2216 * elfcode.h (bfd_section_from_shdr): Handle SHT_DYNAMIC section like
2217 SHT_PROGBITS section.
25677b5b 2218
7b5f6e48
JL
2219Thu Mar 3 20:03:39 1994 Jeffrey A. Law ([email protected])
2220
2221 * som.h (_PA_RISC_ID): Treat HOST_HPPAOSF just like HOST_HPPABSD.
2222
baf200d4
JK
2223Wed Mar 2 13:28:06 1994 Jim Kingdon ([email protected])
2224
2225 * configure.host: Recognize i[34]86-sequent-*.
2226
2227 * trad-core.c (trad_unix_core_file_p): A non-zero, not zero,
2228 return from bfd_seek indicates an error.
2229 New macro TRAD_CORE_DSIZE_INCLUDES_TSIZE to replace
2230 TRAD_CORE_STACK_OFFSET.
2231 * hosts/symmetry.h: Define TRAD_CORE_DSIZE_INCLUDES_TSIZE and
2232 TRAD_CORE_USER_OFFSET but not HOST_STACK_OFFSET.
2233
44fd6622
JL
2234Wed Mar 2 11:57:03 1994 Jeffrey A. Law ([email protected])
2235
4e64845c
JL
2236 * som.[ch]: Do not include libhppa.h in som.c, instead include
2237 it in som.h.
2238
2239 * elf32-hppa.[ch]: Do not include libhppa.h in elf32-hppa.c, instead
2240 include it in elf32-hppa.h.
2241
98ecc945
JL
2242 * som.c (log2): Return -1 on error rather than aborting.
2243 (setup_sections): Bubble up an error from log2.
2244
44fd6622
JL
2245 * Changes to make HP C compiler happy in both traditional
2246 and ANSI mode.
2247 * som.c (hppa_som_gen_reloc_type): Use correct enum type for
2248 field parameter.
2249 (bfd_som_set_section_attributes): Use unsigned int rather than
2250 unsigned char to avoid GNU-C extensions.
2251 (bfd_som_attach_aux_hdr): Return a boolean to indicate success
2252 or failure rather than aborting on failure.
2253
2254 * som.h (bfd_som_set_section_attributes): Fix prototype to match
2255 som.c changes.
2256 (bfd_som_attach_aux_hdr): Add prototype.
2257 (hppa_som-gen_reloc_type): Likewise.
2258
2259 * elf32-hppa.c: Add a couple casts to make HP compiler happy.
2260 (hppa_look_for_stubs_in_section): Do not return false on failure
2261 until rest of code is ready to handle it. Abort for now.
2262
d1f8b181
JK
2263Tue Mar 1 18:33:59 1994 Jim Kingdon ([email protected])
2264
2265 * bfd-in2.h: Rebuilt.
2266
85cc33c7
KH
2267Tue Mar 1 13:06:53 1994 Kung Hsu ([email protected])
2268
bb37e716
KH
2269 * i386os9k.c: use new functions bfd_set_error and bfd_get_error.
2270 * Makefile.in: delete an extra blank.
85cc33c7
KH
2271 * configure.in : Add i396os9k_vec.
2272
2f88343d
KH
2273Mon Feb 28 15:41:01 1994 Kung Hsu ([email protected])
2274
5143c305
KH
2275 * config.bfd : Add i386-os9k.
2276 * config/i386-os9k.mt : Newly add os9k target makefile.
2277
2f88343d
KH
2278 * i386os9k.c : new file to handle os9k format bfd.
2279 * Makefile.in : Handle new file i386os9k.c
2f88343d
KH
2280 * targets.c : Add bfd_target_os9k_flavour and i386os9k_vec.
2281 * cache.c : Initialize cache_sentinel to 0.
2282
6e58a4e5
JL
2283Sun Feb 27 16:30:55 1994 Jeffrey A. Law ([email protected])
2284
f3b477be
JL
2285 * elf32-hppa.c (mismatches, retval_mismatches): Fix mismatch
2286 action in case where caller specified no argument relocation.
2287 (hppa_elf_build_linker_stub): Try again to get the sym_ptr_ptr
2288 right in the original relocation and the stub's relocation.
2289
6e58a4e5
JL
2290 * elf32-hppa.h (hppa_look_for_stub_in_section): Fix typo. Delete
2291 unused symbols argument.
2292
2293 * elf32-hppa.c (hppa_elf_stub_reloc): Accept asymbol ** rather
2294 than asymbol * for original target symbol. All callers changed.
2295 Set reloc->sym_ptr_ptr appropriately.
2296 (hppa_elf_build_linker_stub): Set reloc->sym_ptr_ptr correctly.
2297 (hppa_elf_look_for_stubs_in_section): No longer need symbols
2298 argument. Use the output symbols when canonicalizing the relocs,
2299 creating them if necessary.
2300
2301 * linker.c (_bfd_generic_link_output_symbols): Do not
2302 rebuild/clobber the output symbols if they already exist.
2303
4c8d6c9f
SS
2304Sun Feb 27 15:22:36 1994 Stan Shebs ([email protected])
2305
fdfe2d14
SS
2306 * targets.c (BFD_SEND, BFD_SEND_FMT): Add debugging versions that
2307 check all the pointer dereferences. Enabled via DEBUG_BFD_SEND.
2308 * bfd-in2.h: Rebuilt.
2309
4c8d6c9f
SS
2310 * srec.c (hex_value): Always set to a size of 256 bytes.
2311 (srec_init): Cosmetic changes.
2312
e08b9ad7
JL
2313Sun Feb 27 11:18:47 1994 Jeffrey A. Law ([email protected])
2314
2315 * elf32-hppa.c: Second half of major cleanup. More comments,
2316 PARAMize and staticize rest of functions. Delete unused
2317 functions. Delete unused/unnecessary arguments to some functions.
2318 Group static vars together. Abort for bad errors until we have
2319 error code propogation working. Work on spacing and indention.
2320 Add FIXMEs for unresolved problems. Use enums rather than
2321 #defines for lots of things. Merge two functions which build
2322 linker stubs into a single function (so they can easily share a
2323 ton of common code).
2324
68241b2b
ILT
2325Sat Feb 26 10:00:45 1994 Ian Lance Taylor ([email protected])
2326
2327 * reloc.c (_bfd_relocate_contents): Adjust handling of overflow to
2328 avoid depending upon right shifts of signed numbers, and to
2329 correct handling of src_mask with lower bits zero.
2330
2331 * aoutx.h, archive.c: Add casts to avoid warnings from SVR4 cc.
2332 * ecoff.c, ecofflink.c, ecoffswap.h, srec.c: Likewise.
2333 * elf32-i386.c: Likewise.
2334 * elfcode.h (bfd_section_from_shdr): Make i unsigned; remove old
2335 #if 0 code.
2336 (elf_write_phdrs): Make i unsigned.
2337 (map_program_segments): Make i and n_left unsigned.
2338 (assign_file_positions_except_relocs): Make i unsigned.
2339 (write_shdrs_and_ehdr): Make count unsigned.
2340 (assign_file_positions_for_relocs): Make i unsigned.
2341 (NAME(bfd,elf_write_object_contents)): Make count unsigned.
2342 (section_from_elf_index): Make index argument unsigned.
2343
96db3187
ILT
2344Fri Feb 25 21:34:58 1994 Ian Lance Taylor ([email protected])
2345
2346 * elfcode.h: Don't include assert.h.
2347 (swap_out_syms): Use BFD_ASSERT rather than assert.
2348
2349 * linker.c (_bfd_generic_link_write_global_symbol): Add missing
2350 break in switch.
2351
2352 * hosts/i386v4.h (qsort, strtol): Remove incorrect and useless
2353 declarations.
2354
d6439785
JL
2355Fri Feb 25 16:35:57 1994 Jeffrey A. Law ([email protected])
2356
f5bfdacd
JL
2357 * libhppa.h (hppa_rebuild_insn): Moved here from elf32-hppa.c.
2358
2359 * elf32-hppa.h (elf_hppa_tc_symbol): Add new arguments.
2360 (elf_hppa_tc_make_sections): Likewise.
2361 (elf_hppa_final_processing): Add extern decl.
2362
2363 * elf32-hppa.c: First half of major cleanup. Add/cleanup lots of
2364 comments. PARAMize some static functions. Delete unused functions.
2365 Delete unused/unnecessary arguments to many functions. Group
2366 static vars together. Collapse common case statements together
2367 in many places. Use default case when possible instead of listing
2368 each case separately. Abort for bad errors until we get error
2369 code propogation working. Work on spacing and indention problems.
2370 Add FIXMEs for some unresolved problems. Delete hopelessly broken
2371 COMPLEX relocation support (it's never used anyway).
2372 (hppa_elf_rebuild_insn): Delete. Moved into libhppa.h.
2373 (elf_hppa_tc_symbol): Accept and use new arguments (symext chains).
2374 (elf_hppa_tc_make_sections): Likewise.
2375
43ebdfcf
JL
2376 * format.c (bfd_check_format_matches): Initialize matching_vector
2377 to keep gcc -Wall quiet.
2378
2379 * elfcode.h (elf_slurp_reloca_table): Fix typo.
2380
d6439785
JL
2381 * som.c (som_get_symtab_upper_bound): Use "sizeof (asymbol *)"
2382 not "sizeof (som_symbol_type *)".
2383
2384 * elfcode.h (elf_get_symtab_upper_bound): Use "sizeof (asymbol *)"
2385 not "sizeof (asymbol"). Opps.
2386
fbb8fe5c
ILT
2387Fri Feb 25 13:19:04 1994 Ted Lemon ([email protected])
2388
2389 * bfd.c (bfd_get_gp_size): Can't return gp value on an archive.
2390 (bfd_set_gp_size): Can't set gp value on an archive.
2391
5e808126
SC
2392Fri Feb 25 12:57:00 1994 Steve Chamberlain ([email protected])
2393
2394 * srec.c (pass_over): Don't skip too many characters when
2395 end of line seen.
2396
626f883f
ILT
2397Fri Feb 25 11:41:57 1994 Ian Lance Taylor ([email protected])
2398
2399 * ecoff.c (ecoff_sizeof_headers): Align result to 16 byte
2400 boundary.
2401
2402Thu Feb 24 07:13:22 1994 Jeffrey A. Law ([email protected])
2403
2404 * som.c (som_bfd_derive_misc_symbol_info): Derive symbol_info
2405 field for absolute symbols in the same manner as undefined
2406 and common symbols.
2407
a69b39f0
PS
2408Thu Feb 24 04:29:19 1994 Peter Schauer ([email protected])
2409
2410 * elfcode.h (elf_core_file_p): Check for core file e_machine match
2411 like in elf_object_p.
2412
2e7b92cf
JL
2413Wed Feb 23 18:28:37 1994 Jeffrey A. Law ([email protected])
2414
2415 * elfcode.h (alloca): Delete declaration.
4f42757e
JL
2416
2417 * som.c (som_prep_headers): Use CPU_PA_RISC1_0 for magic
2418 number rather than HP9000S800_ID. Note som.c is careful
2419 to make sure CPU_PA_RISC1_0 is always defined.
2420
891dc727
SS
2421Mon Feb 21 10:12:02 1994 Stan Shebs ([email protected])
2422
2423 * Makefile.in (targets.o, archures.o): Use ALL_CFLAGS to supply
2424 flags to explicit compile actions.
2425
22a71fef
ILT
2426Mon Feb 21 09:50:06 1994 Ian Lance Taylor ([email protected])
2427
2f0deb19
ILT
2428 * ecofflink.c (ecoff_write_symhdr): Set symhdr->magic here.
2429 * ecoff.c (ecoff_write_object_contents): Make sure .bss section
2430 ends on a page boundary if there is no symbol table.
2431 (ecoff_bfd_final_link): Don't set symhdr->magic here.
2432
aaca79a8
ILT
2433 * hosts/hp300.h: Include <stdlib.h>; don't declare free.
2434
2ab0b7f3
ILT
2435 * som.c (som_bfd_count_ar_symbols): Use a pointer and alloca
2436 rather than an array of variable size.
2437 (som_bfd_fill_in_ar_symbols): Likewise.
2438 (som_bfd_ar_write_symbol_stuff): Likewise.
2439
22a71fef
ILT
2440 * coff-alpha.c (alpha_relocate_section): Rewrite mask and shift
2441 operation to avoid OSF 1.3 cc bug.
2442 * ecoff.c (ecoff_write_object_contents): Make text_size, data_size
2443 and bss_size bfd_size_type instead of unsigned long. Make
2444 text_start and data_start bfd_vma instead of unsigned long.
2445 * ecofflink.c (ecoff_add_string): Remove incorrect cast of return
2446 value.
2447
037ce95a
ILT
2448Sun Feb 20 16:06:54 1994 Ian Lance Taylor ([email protected])
2449
2450 * linker.c (_bfd_generic_link_add_archive_symbols): Consider
2451 symbols in the order they appear in the archive map.
2452
3a1de3cc
PS
2453Sat Feb 19 03:17:32 1994 Peter Schauer ([email protected])
2454
2455 * coff-alpha.c (reloc_nil): Add forward declaration, add missing
2456 error_message argument.
2457 * coff-sparc.c (bfd_coff_generic_reloc): Add forward declaration,
2458 add missing error_message argument.
2459 * mipsbsd.c (mips_fix_hi16_s): Add forward declaration, add missing
2460 error_message argument.
2461
99ec1f66
ILT
2462Fri Feb 18 11:41:58 1994 Ian Lance Taylor ([email protected])
2463
99ec1f66 2464 Support for PowerPC NetWare.
92177c52 2465 * nlm32-powerpc.c: New file.
99ec1f66
ILT
2466 * config.bfd (powerpc-*-netware*): New target; use ppc-nlm.
2467 * config/ppc-nlm.mt: New file.
2468 * configure.in (nlm32_powerpc_vec): New target vector; use
2469 nlm32-powerpc.o, nlm32.o, nlm.o.
2470 * targets.c (nlm32_powerpc_vec): Declare.
2471 * Makefile.in (BFD32_BACKENDS): Add nlm32-powerpc.o.
7ce8b9d1 2472 (CFILES): Add nlm32-powerpc.c.
99ec1f66
ILT
2473
2474 Initial support for PowerPC ELF. Done without an ABI, and
2475 probably to be changed when I get an ABI.
2476 * config.bfd (powerpc-*-sysv4*): New target; use ppc-elf.
2477 * config/ppc-elf.mt: New file.
2478 * configure.in (bfd_elf32_powerpc_vec): New target vector; use
2479 elf32-powerpc.o, elf32.o, elf.o.
2480 * elf32-powerpc.c: New file.
2481 * elfcode.h (prep_headers): Add bfd_arch_powerpc case.
2482 (elf_set_arch_mach): Likewise.
2483 * targets.c (bfd_elf32_powerpc_vec): Declare.
2484 * Makefile.in (BFD32_BACKENDS): Add elf32-powerpc.o.
2485 (CFILES): Add elf32-powerpc.c.
2486 Rebuilt dependencies.
2487
42f62ead
ILT
2488Thu Feb 17 15:29:55 1994 Ian Lance Taylor ([email protected])
2489
2490 * coffgen.c (coff_write_linenumbers): Always return a value.
2491
2492 * elfcode.h (elf_slurp_symbol_table): Handle zero symbols
2493 reasonably. Allocate x_symp using alloca.
2494
2495 * elfcode.h (map_program_segments): ELF program header entries
2496 must be sorted by load address. This used to generate the entries
2497 in reverse order.
2498
2499 * section.c (SEC_IN_MEMORY): Define.
2500 (asection): Rename unused field otheruserdata to contents, and
2501 make it char *.
2502 (bfd_make_section_anyway): Initialize contents field to NULL.
2503 (bfd_get_section_contents): If SEC_IN_MEMORY is set, get section
2504 contents from contents field rather than from file.
2505 * bfd-in2.h: Rebuilt.
2506
d1ad85a6
DM
2507Thu Feb 17 08:30:53 1994 David J. Mackenzie ([email protected])
2508
2509 * bfd.c (bfd_get_error, bfd_set_error): New functions.
2510 (bfd_error): Make static.
2511 (bfd_error_type): Renamed from bfd_ec. Prepend "bfd_error_" to
2512 all values.
2513 * bfd-in2.h: Regenerated.
2514 * aix386-core.c, aout-adobe.c, aout-encap.c, aout-target.h,
2515 aoutf1.h, aoutx.h, archive.c, archures.c,
2516 bfd.c, bout.c, cache.c, coff-alpha.c, coff-mips.c,
2517 coff-rs6000.c, coffcode.h, coffgen.c, core.c, ctor.c,
2518 ecoff.c, ecofflink.c, elf.c, elf32-hppa.c, elf32-mips.c,
2519 elfcode.h, format.c, hash.c, hp300hpux.c, hppabsd-core.c,
2520 i386lynx.c, ieee.c, libbfd.c, libelf.h, linker.c,
2521 lynx-core.c, nlm.c, nlm32-alpha.c, nlm32-i386.c,
2522 nlm32-sparc.c, nlmcode.h, oasys.c, opncls.c, osf-core.c,
2523 ptrace-core.c, reloc16.c, rs6000-core.c, section.c, som.c,
2524 srec.c, sunos.c, syms.c, targets.c, tekhex.c,
2525 trad-core.c: Change callers.
2526
7430a991
JL
2527Tue Feb 15 22:27:27 1994 Jeffrey A. Law ([email protected])
2528
2529 * som.c: Remove FIXMEs for things which have been dealt with.
2530
54196ea1
KR
2531Tue Feb 15 19:39:24 1994 Ken Raeburn ([email protected])
2532
2533 * section.c (bfd_get_section_contents): Since this function reads
2534 unrelocated contents, the section's raw size is always the one to
2535 use for bounds checking.
2536
2537 * linker.c (default_indirect_link_order): In assertion, compare
2538 link_order size field against cooked size, not raw size, of input
2539 section.
2540
2541 * bout.c (b_out_get_reloc_upper_bound): For BSS section, just
2542 return 0.
2543 (aligncode): When shrinking, the addend should be set to the
2544 current offset in the section plus the number of bytes of padding
2545 that will actually be retained.
2546 (b_out_relax_section): If a section contains no relocations, don't
2547 bother processing them.
2548 (b_out_get_relocated_section_contents): Set reloc_done. Assert
2549 that bfd_get_section_contents returns true. Check that relocs are
2550 properly ordered.
2551 (b_out_get_relocated_section_contents, case ALIGNDONE): Assert
2552 that reloc->addend falls between the current source offset and the
2553 raw size of the input section.
2554
2555 * config.bfd: Support i960 vxworks versions > 5.0 with coff, not
2556 bout. Default with no version number is still bout. Support
2557 explicit i960-coff target too.
2558
2559 * bout.c: Changed some indentation, deleted trailing whitespace,
2560 fixed some comments, removed some "#if 1" lines.
2561 (output_addr): New macro.
2562 (calljx_callback, callj_callback, get_value, abs32code, aligncode,
2563 b_out_get_relocated_section_contents): Use it for readability.
2564
c6cdb69a
JL
2565Tue Feb 15 09:00:16 1994 Jeffrey A. Law ([email protected])
2566
2567 * som.c (som_bfd_prep_for_ar_write): Iterate through the SOM
2568 symbols, not the BFD symbols.
2569 (som_bfd_ar_write_symbol_stuff): Likewise.
2570
6e033f86
JL
2571Mon Feb 14 22:55:20 1994 Jeffrey A. Law ([email protected])
2572
24a1f6a0
JL
2573 * som.c (som_slurp_symbol_table): Do not die if a BFD doesn't
2574 have any symbols.
2575
6e033f86
JL
2576 * Finish basic read-write support for SOM archive libraries. Bugs
2577 surely remain as this hasn't been tested all that much.
2578 * som.c (SOM_LST_HASH_SIZE, SOM_LST_MODULE_LIMIT): Define.
2579 (struct som_misc_symbol_info): New structure to hold info necessary
2580 to build both normal and library symbol tables.
2581 (som_derive_misc_symbol_info): New function to derive info necessary
2582 to build both normal and library symbol tables.
2583 (som_build_and_write_symbol_table): Use new function to derive misc
2584 symbol information.
2585 (som_slurp_symbol_table): Update backend private data for symbols
2586 appropriately.
2587 (som_bfd_prep_for_ar_write): New function.
2588 (som_bfd_ar_symbol_hash): New function.
2589 (som_bfd_ar_write_symbol_stuff): New function.
2590 (som_write_armap): Flesh out.
2591 (som_vec): Fix ar padding character.
2592
2593 * som.c: Consistently use memset rather than bzero.
2594
8b8ddedb
SG
2595Mon Feb 14 17:02:28 1994 Stu Grossman (grossman at cygnus.com)
2596
2597 * coff-rs6000.c: Add Lynx core file support, use HOST_AIX, where
2598 appropriate.
2599 * rs6000-core.c: Use HOST_AIX instead of COREFILES_PLEASE.
2600 * config/rs6000.mh: Remove defs of ARCHIVES_PLEASE and
2601 COREFILES_PLEASE.
2602 * config/rs6000lynx.mh: Turn on Lynx core file support.
2603 * hosts/rs6000.h: #define HOST_AIX.
5cf354ef 2604 * hosts/rs6000lynx.h: Create this to enable Lynx host support.
8b8ddedb 2605
6863eb4b
JL
2606Sun Feb 13 14:30:00 1994 Jeffrey A. Law ([email protected])
2607
50c5c4ad
JL
2608 * som.h (som_symbol_data): Safely access backend private data
2609 for BFD symbols. All callers changed.
2610
6e033f86 2611 * Read-only SOM archive support.
3c37f9ca
JL
2612 * som.c (som_bfd_count_ar_symbols): New helper function.
2613 (som_bfd_fill_in_ar_symbols): New helper function.
2614 (som_slurp_armap): New function to read a SOM LST.
2615
6863eb4b
JL
2616 * som.h: Include <lst.h> and <ar.h>.
2617
5e829a34
JL
2618Sat Feb 12 22:34:14 1994 Jeffrey A. Law ([email protected])
2619
2620 * elfcode.h (elf_map_symbols): Fix typo.
2621 (write_object_contents): Check return values from prep_headers and
2622 elf_compute_section_file_positions.
2623 (set_section_contents): Likewise.
2624
a15691a5
DM
2625Fri Feb 11 16:56:50 1994 David J. Mackenzie ([email protected])
2626
2627 * archive.c (normalize) [VMS]: Call malloc, not bfd_xmalloc.
2628 (bfd_construct_extended_name_table): Check result of normalize.
2629
9783e04a
DM
2630Tue Feb 8 08:57:31 1994 David J. Mackenzie ([email protected])
2631
2632 Make all callers of malloc or realloc (including via obstacks)
2633 check the result for NULL. Most set bfd_error to no_memory and
2634 return in that case; a few are harder to fix, and are marked
2635 with "FIXME <return type>".
2636
2637 * elf32-hppa.c (hppa_elf_build_arg_reloc_stub
2638 hppa_elf_build_long_branch_stub): Check bfd_make_empty_symbol return.
2639 * linker.c (_bfd_generic_link_output_symbols
2640 _bfd_generic_link_write_global_symbol): Ditto
2641 * section.c (bfd_make_section_anyway): Ditto.
2642
2643 * tekhex.c (find_chunk tekhex_mkobject): Check bfd_alloc.
2644 (first_phase): Ditto. FIXME void
2645 (tekhex_make_empty_symbol): Check bfd_zalloc.
2646
2647 * sunos.c (sunos_read_dynamic_info): Check bfd_zalloc.
2648 (MY(read_dynamic_symbols) MY(read_dynamic_relocs)): Check bfd_alloc.
2649
2650 * stringhash.c (_bfd_stringtab_hash_newfunc): Check bfd_hash_allocate.
2651
2652 * srec.c: Indent.
2653 (fillup_symbols): Check bfd_alloc. FIXME void
2654 (srec_mkobject srec_get_section_contents
2655 srec_set_section_contents): Check bfd_alloc.
2656 (srec_make_empty_symbol): Check bfd_zalloc.
2657
2658 * som.c (hppa_som_gen_reloc_type): Check bfd_alloc_by_size_t.
2659 (make_unique_section): Check bfd_alloc.
2660 (som_new_section_hook): Check bfd_zalloc.
2661 (bfd_som_attach_aux_hdr): Ditto. FIXME void
2662
2663 * rs6000-core.c (rs6000coff_core_p): Check bfd_zalloc.
2664
2665 * osf-core.c (osf_core_make_empty_symbol): Check bfd_zalloc.
2666 (osf_core_core_file_p): Check bfd_alloc.
2667
2668 * oasys.c (oasys_slurp_symbol_table oasys_archive_p
2669 oasys_mkobject oasys_object_p oasys_new_section_hook
2670 oasys_set_section_contents): Check bfd_alloc.
2671 (oasys_slurp_section_data): Check bfd_zalloc and bfd_alloc.
2672 (oasys_make_empty_symbol): Check bfd_zalloc.
2673
2674 * nlmcode.h (nlm_make_empty_symbol): Check bfd_zalloc.
2675 (nlm_slurp_symbol_table): Check bfd_zalloc and bfd_alloc.
2676
2677 * nlm32-sparc.c (nlm_sparc_read_import): Check bfd_alloc.
2678
2679 * nlm32-i386.c (nlm_i386_read_import): Check bfd_alloc.
2680
2681 * nlm32-alpha.c (nlm_alpha_read_import): Check bfd_alloc.
2682
2683 * linker.c (_bfd_link_hash_newfunc
2684 (generic_link_hash_newfunc
2685 (archive_hash_newfunc
2686 (_bfd_generic_link_add_one_symbol): Check bfd_hash_allocate.
2687 (_bfd_generic_final_link
2688 (_bfd_generic_link_output_symbols
2689 (default_indirect_link_order): Check bfd_alloc.
2690 (bfd_new_link_order): Check bfd_alloc_by_size_t.
2691
2692 * irix-core.c (irix_core_make_empty_symbol): Check bfd_zalloc.
2693
2694 * ieee.c: Indent.
2695 (read_id get_symbol get_section_entry ieee_archive_p ieee_object_p
2696 ieee_slurp_section_data ieee_new_section_hook): Check bfd_alloc.
2697 (do_one): Check bfd_alloc. Return a boolean.
2698 (ieee_slurp_section_data): Check it.
2699 (init_for_output): Check bfd_alloc. Return a boolean.
2700 (ieee_set_section_contents): Check it.
2701 (do_with_relocs): Check bfd_alloc. Return a boolean.
2702 (ieee_bfd_debug_info_accumulate): Ditto. FIXME void.
2703 (ieee_mkobject): Check bfd_zalloc.
2704 (ieee_make_empty_symbol): Check bfd_zmalloc.
2705
2706 * hpux-core.c (hpux_core_make_empty_symbol): Check
2707 bfd_zalloc.
2708
2709 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Check
2710 bfd_zalloc.
2711 (hppabsd_core_core_file_p): Check bfd_zalloc.
2712
2713 * hp300hpux.c (MY(slurp_symbol_table)): Check bfd_alloc.
2714
2715 * elfcode.h (elf_new_section_hook): Check bfd_alloc.
2716 (bfd_section_from_phdr): Ditto.
2717 (write_relocs): Ditto. FIXME void
2718 (elf_map_symbols assign_section_numbers map_program_segments):
2719 Ditto. Return a boolean.
2720 (swap_out_syms): Ditto. Check elf_map_symbols.
2721 (elf_slurp_symbol_table): Check bfd_zalloc.
2722 (elf_slurp_reloca_table): Check bfd_alloc.
2723 (elf_slurp_reloc_table): Ditto.
2724 (elf_compute_section_file_positions): Check assign_section_numbers.
2725 (assign_file_positions_except_relocs): Return a boolean.
2726 Check map_program_segments.
2727 (elf_compute_section_file_positions): Check it.
2728
2729 * elf32-mips.c (mips_elf_final_link): Check bfd_alloc.
2730
2731 * elf32-hppa.c (hppa_elf_stub_branch_reloc): Check bfd_zmalloc and
2732 realloc.
2733 (hppa_elf_stub_reloc): Ditto.
2734 (hppa_elf_build_arg_reloc_stub): Check bfd_zalloc.
2735 (hppa_elf_build_long_branch_stub): Ditto.
2736 (elf32_hppa_backend_symbol_table_processing): Ditto.
2737
2738 * ecoff.c (ecoff_set_symbol_info): Check bfd_alloc. Return a boolean.
2739 (ecoff_slurp_symbol_table): Check it.
2740 (ecoff_slurp_armap): Check bfd_alloc.
2741 (ecoff_write_armap): Check bfd_zalloc.
2742 (ecoff_link_hash_newfunc): Check bfd_hash_allocate and
2743 _bfd_link_hash_newfunc.
2744 (ecoff_link_add_externals): Check bfd_alloc.
2745
2746 * ctor.c (bfd_constructor_entry): Check bfd_alloc.
2747
2748 * coffgen.c (coff_real_object_p): Check bfd_alloc.
2749 (coff_renumber_symbols): Check bfd_alloc_by_size_t. Return a boolean.
2750 (coff_write_symbol): Check bfd_alloc. FIXME int
2751 (coff_write_linenumbers): Check bfd_alloc. Return a boolean.
2752 (coff_section_symbol): Check bfd_alloc_by_size_t.
2753 (coff_get_normalized_symtab): Check bfd_alloc.
2754 (coff_bfd_make_debug_symbol): Check bfd_zalloc.
2755 * libcoff-in.h: Change decls of coff_renumber_symbols,
2756 coff_write_linenumbers.
2757 * libcoff.h: Rebuilt.
2758 * coffcode.h (coff_write_object_contents): Check
2759 coff_renumber_symbols, coff_write_linenumbers.
2760
2761 * coffcode.h: Indent.
2762 (coff_add_missing_symbols): Check bfd_alloc_by_size_t. Return a
2763 boolean.
2764 (coff_write_object_contents): Check it.
2765
2766 * coff-alpha.c (alpha_relocate_section): Check bfd_alloc.
2767 * coff-mips.c (mips_relocate_section): Ditto.
2768
2769 * archive.c (bfd_slurp_bsd_armap_f2): Check bfd_alloc value.
2770 (do_slurp_bsd_armap): Ditto.
2771 (compute_and_write_armap): Check bfd_realloc value.
2772
2773 * aoutx.h (translate_from_native_sym_flags): Check bfd_alloc
2774 return value. Return boolean value.
2775 (NAME(aout,make_empty_symbol)): Check bfd_zalloc return value.
2776 (NAME(aout,slurp_symbol_table)): Check bf_alloc and bfd_zalloc
2777 return value.
2778 (add_to_stringtab): Ditto. FIXME void
2779 (aout_link_hash_newfunc): Check bfd_hash_allocate return value.
2780 (aout_link_add_symbols): Check bfd_alloc value.
2781 (translate_symbol_table): Check translate_from_native_sym_flags.
2782 * hp300hpux.c (MY(slurp_symbol_table)): Ditto.
2783 * aoutx.h (aout_link_hash_newfunc): Check _bfd_link_hash_newfunc.
2784
2785 * opncls.c (bfd_zalloc bfd_realloc): Check result of bfd_alloc.
2786
2787 * opncls.c (obstack_chunk_alloc): Define as malloc, not
2788 bfd_xmalloc_by_size_t.
2789 (_bfd_new_bfd): Check obstack_begin for 0 return.
2790
2791 * ieee.c (obstack_chunk_alloc): Define as malloc, not
2792 bfd_xmalloc_by_size_t.
2793 (ieee_archive_p): Check obstack_begin for 0 return and
2794 obstack_finish for NULL return.
2795
2796 * hash.c (obstack_chunk_alloc): Define as malloc, not
2797 bfd_xmalloc_by_size_t.
2798 (bfd_hash_table_init_n): Check obstack_begin for 0 return and
2799 obstack_finish for NULL return.
2800 (bfd_hash_lookup): Check obstack_alloc for NULL return.
2801
2802 * ecofflink.c (obstack_chunk_alloc): Define as malloc, not
2803 bfd_xmalloc_by_size_t.
2804 bfd_ecoff_debug_accumulate
2805 bfd_ecoff_debug_accumulate_other): Check obstack_alloc.
2806 (add_file_shuffle add_memory_shuffle): Check obstack_alloc for
2807 NULL return. Return boolean, not void.
2808 (bfd_ecoff_debug_init): Check obstack_begin for 0 return.
2809 (bfd_ecoff_debug_accumulate): Check add_file_shuffle
2810 and add_memory_shuffle return.
2811 (string_hash_newfunc): Check bfd_hash_allocate and bfd_hash_newfunc.
2812 (bfd_ecoff_debug_accumulate): Check bfd_alloc.
2813 (ecoff_add_string): Check add_memory_shuffle return.
2814
2815 * libbfd-in.h (xmalloc, bfd_xmalloc, bfd_xmalloc_by_size_t):
2816 Remove decls.
2817 * libbfd.h: Rebuilt.
2818
30e441ca
SG
2819Fri Feb 11 15:35:32 1994 Stu Grossman (grossman at cygnus.com)
2820
2821 * configure.host: Add Lynx/rs6000 support.
2822 * config/i386-nlm.mt: Enable a.out file support.
2823 * config/rs6000lynx.mh: Lynx/rs6000 host support.
2824
5ee3886b
ILT
2825Fri Feb 11 17:25:58 1994 Ian Lance Taylor ([email protected])
2826
2827 * archive.c (compute_and_write_armap): Rewrite somewhat to improve
2828 memory usage.
2829
9a793780
SS
2830Fri Feb 11 13:10:42 1994 Stan Shebs ([email protected])
2831
2832 * archive.c: Change all references to '\n' in archive magic
2833 to '\012', for greater portability.
2834 * ecoff.c (ecoff_write_armap): Ditto.
2835
2836Thu Feb 10 12:58:48 1994 Ian Lance Taylor ([email protected])
2837
2838 * aoutx.h (aout_link_write_other_symbol): Check strip settings to
2839 see whether symbol should be output.
2840 * genlink.h (struct generic_write_global_symbol_info): Added info
2841 field.
2842 * linker.c (_bfd_generic_final_link): Initialize wginfo.info.
2843 (_bfd_generic_link_write_global_symbol): Check strip settings to
2844 see whether symbol should be output.
2845 * elf32-mips.c (mips_elf_final_link): Initialize wginfo.info.
2846
a62dd44f
JL
2847Wed Feb 9 21:34:58 1994 Jeffrey A. Law ([email protected])
2848
9a793780
SS
2849 * som.c (som_reloc_queue_find): Do not examine a NULL queue entry.
2850
a62dd44f
JL
2851 * som.c: Cast return values from BFD memory allocation routines to
2852 avoid warnings from the HP compiler.
2853
945f125b
ILT
2854Wed Feb 9 12:55:02 1994 Ian Lance Taylor ([email protected])
2855
0d634116
ILT
2856 * coff-alpha.c (alpha_relocate_section): Accept a LITERAL
2857 reloc on an "ldl" instruction too.
2858
945f125b
ILT
2859 * archive.c (bfd_ar_hdr_from_filesystem): Cast status elements
2860 when passing them to sprintf. Use %ld instead of %d.
2861
2862 * coff-rs6000.c (rs6000coff_mkarchive): Return false.
2863 (rs6000_coff_snarf_ar_hdr): Don't declare errno; it's not used.
2864 Also removed unused variable namelen.
2865 (rs6000coff_write_armap): Declare orl_count and stridx parameters.
2866
2867Tue Feb 8 18:00:34 1994 Ian Lance Taylor ([email protected])
2868
2869 * libbfd-in.h (xmalloc): Don't declare parameter type, to avoid
2870 conflicts.
2871 * libbfd.h: Rebuilt.
2872
fa965415
KR
2873Tue Feb 8 15:55:50 1994 Ken Raeburn ([email protected])
2874
2875 * coff-alpha.c (reloc_nil): New function.
2876 (alpha_howto_table): Use it as special_function to prevent certain
2877 relocs from being adjusted by bfd_perform_relocation. IGNORE
2878 reloc should be partial_inplace.
2879 (alpha_ecoff_get_relocated_section_contents): Accept a LITERAL
2880 reloc on an "ldl" instruction too.
2881
7c202d37
PS
2882Tue Feb 8 00:32:28 1994 Peter Schauer ([email protected])
2883
2884 * elf32-hppa.c (CURRENT_STUB_OFFSET, hppa_elf_build_arg_reloc_stub,
2885 hppa_elf_build_long_branch_stub): Cast to char * instead of int
2886 before performing pointer arithmetic.
2887
9ed21f0e
JL
2888Mon Feb 7 20:56:27 1994 Jeffrey A. Law ([email protected])
2889
2890 * config.bfd (hppa*-*-osf*): Use bfd_name hppaosf for this
2891 configuration.
2892 (hppa*-*-*elf*): This configuration used hppa-elf now.
2893
2894 * som.c: This file is also used for HOST_HPPAOSF.
2895
2896 * targets.c (bfd_target_vector): Enable som_vec for HOST_HPPAOSF.
2897
2898 * hosts/hppaosf.h: New host configuration file.
2899
2900 * config/hppabsd.mt (SELECT_VECS): Add bfd_elf32_hppa_vec as
2901 BSD handles both SOM and ELF object files.
2902
2903 * config/hppaosf.mh (HDEFINES): Delete. No longer needed.
2904 (RANLIB): Doesn't do anything, define it to be "echo".
2905
2906 * config/hppaosf.mt: New target makefile fragment for a PA running
2907 OSF1.
2908
bf969135
ILT
2909Mon Feb 7 15:02:06 1994 Ian Lance Taylor ([email protected])
2910
66f1cff5
ILT
2911 * archures.c (enum bfd_architecture): Added bfd_arch_powerpc.
2912 (archures_init_table): If SELECT_ARCHITECTURES is not defined,
2913 added bfd_powerpc_arch.
2914 * bfd-in2.h: Rebuilt.
2915 * cpu-powerpc.c: New file.
2916 * Makefile.in (ALL_MACHINES, CFILES): Added cpu-powerpc.c.
2917 Rebuilt dependencies.
2918
bf969135
ILT
2919 * elfcode.h (bfd_section_from_shdr): Get vma and alignment_power
2920 of an SHT_STRTAB section from sh_addr and sh_addralign, rather
2921 than just setting them to zero.
2922
b9d5cdf0
DM
2923Sun Feb 6 20:04:10 1994 David J. Mackenzie ([email protected])
2924
2925 * elfcode.h (prep_headers, swap_out_syms): Check for NULL return
2926 from bfd_new_strtab.
2927 (elf_compute_section_file_positions): Check for false return from
2928 swap_out_syms.
2929
2930 * linker.c (default_indirect_link_order): Check for NULL return
2931 from bfd_get_relocated_section_contents.
2932
2933 * syms.c: Make example application in doc call xmalloc, not
2934 bfd_xmalloc.
2935
2936 * aoutx.h (NAME(aout,slurp_symbol_table),
2937 aout_link_get_symbols, NAME(aout,link_hash_table_create)):
2938 * bout.c (b_out_slurp_reloc_table, b_out_squirt_out_relocs):
2939 * ecoff.c (ecoff_bfd_link_hash_table_create):
2940 * ecofflink.c (bfd_ecoff_debug_init):
2941 * format.c (bfd_check_format_matches):
2942 * linker.c (_bfd_generic_link_hash_table_create):
2943 (_bfd_generic_final_link):
2944 * reloc16.c (bfd_coff_reloc16_relax_section):
2945 (bfd_coff_reloc16_get_relocated_section_contents):
2946 * elf32-hppa.c (hppa_elf_build_arg_reloc_stub):
2947 * elf32-mips.c (mips_elf_final_link):
2948 * elfcode.h (bfd_new_strtab):
2949 (bfd_add_2_to_strtab):
2950 (elf_slurp_symbol_table):
2951 (elf_corefile_note):
2952 * libbfd.c (bfd_zmalloc):
2953 Use malloc and check the result, instead of bfd_xmalloc.
2954
6b054519
JK
2955Sat Feb 5 12:39:28 1994 Jim Kingdon ([email protected])
2956
2957 * config.bfd: Put m68*-*-sysv* line after m68*-*-sysv4*.
2958
bf430317
PS
2959Sat Feb 5 05:32:44 1994 Peter Schauer ([email protected])
2960
2961 * srec.c (srec_write_record): Put CONST keyword for "src" before
2962 "unsigned", some compilers don't like it after "unsigned".
2963 * libcoff.h, libcoff-in.h (bfd_perform_slip): Rename "value" to
2964 "val" in prototype declaration because some compilers don't like
2965 arguments whose names are the same as types.
2966
9b39ed6b
ILT
2967Sat Feb 5 01:14:38 1994 Ian Lance Taylor ([email protected])
2968
2969 * aoutx.h (aout_link_check_ar_symbols): Correct test for whether
2970 object file defines symbol. Also, if skipping a symbol, skip the
2971 second symbol of a N_WARNING or N_INDR symbol as well.
2972
d352be4f
ILT
2973Fri Feb 4 23:55:44 1994 Ian Lance Taylor ([email protected])
2974
2975 Add basic support for writing RS/6000 XCOFF files.
2976 * coff-rs6000.c (dummy_reloc): Removed.
2977 (rs6000coff_howto_table): Defined XCOFF relocs.
2978 (RTYPE2HOWTO): Defined to use rs6000coff_rtype2howto.
2979 (rs6000coff_rtype2howto): New function.
2980 (coff_bfd_reloc_type_lookup): Defined to use
2981 rs6000coff_reloc_type_lookup.
2982 (rs6000coff_reloc_type_lookup): New function.
2983 (SELECT_RELOC): Defined to set r_type and r_size fields.
2984 (COFF_LONG_FILENAMES): Defined.
2985 * coffcode.h (combined_entry_type): Changed fix_tag and fix_end
2986 fields to bitfields. Added fields fix_value and fix_scnlen.
2987 (sec_to_styp_flags): If STYP_DEBUG is defined, use it rather than
2988 STYP_INFO for the type of a section named .debug.
2989 (coff_add_missing_symbols): Don't define if RS6000COFF_C.
2990 (coff_write_object_contents): If RS6000COFF_C, don't call
2991 coff_add_missing_symbols.
2992 (coff_slurp_symbol_table): If RS6000COFF_C, then if the last aux
2993 entry has type STY_LD change the x_scnlen into a pointer to a
2994 symbol and set fix_scnlen. Also, for a C_BSTAT symbol, change the
2995 value into a pointer to a symbol and set fix_value.
2996 * libcoff.h: Rebuilt.
2997 * coffgen.c (coff_mangle_symbols): Reindent. If fix_value is set,
2998 get the symbol offset. Likewise for fix_scnlen.
2999 (string_size): Change type to bfd_size_type.
3000 (debug_string_size, debug_string_section): New static variables.
3001 (coff_fix_symbol_name): If bfd_coff_symname_in_debug returns true,
3002 write the symbol name into the .debug section; assume that the
3003 section has already been created with the right size.
3004 (coff_write_symbols): Initialize debug_string_size to 0. If
3005 bfd_coff_symname_in_debug returns true, don't put symbol name in
3006 usual string table. After writing out all symbols, if
3007 debug_string_size is not 0, check that it matches the size of the
3008 .debug section.
3009 (coff_get_normalized_symtab): Clear new fix_value and fix_scnlen
3010 fields. If the string offset is 0, always use an empty string as
3011 the name.
3012 (coff_make_empty_symbol): Zero out the symbol structure.
3013 * reloc.c (bfd_perform_relocation): Work around one gross hack
3014 with another: actually look at the target name to avoid the broken
3015 COFF check.
3016 (bfd_reloc_code_real_type): Add BFD_RELOC_PPC_B26,
3017 BFD_RELOC_PPC_BA26 and BFD_RELOC_PPC_TOC16.
3018 * bfd-in2.h: Rebuilt.
3019
0ee34272
DM
3020Fri Feb 4 17:28:32 1994 David J. Mackenzie ([email protected])
3021
3022 * libbfd.c (bfd_zmalloc): Call bfd_xmalloc instead of malloc.
3023 (bfd_xmalloc, bfd_xmalloc_by_size_t): Functions deleted.
3024 * libbfd-in.h: Define them as macros calling xmalloc and declare
3025 xmalloc.
3026 * libbfd.h: Rebuilt.
0ee34272 3027
fa2302b8
ILT
3028Thu Feb 3 16:49:35 1994 Ian Lance Taylor ([email protected])
3029
cbc174e7
ILT
3030 * ecofflink.c (bfd_ecoff_debug_externals): If a small undefined
3031 symbol has a value in the ECOFF symbol but not in the BFD symbol,
3032 keep the value in the ECOFF symbol. This helps gas.
3033
5072b8e5
ILT
3034 * linker.c (_bfd_generic_link_output_symbols,
3035 _bfd_generic_link_write_global_symbol): Don't require that all
3036 references to a common symbol be themselves common symbols.
3037
fa2302b8
ILT
3038 * aoutx.h (aout_reloc_index_to_section): Handle N_UNDF.
3039
96ad107b
JK
3040Wed Feb 2 20:37:19 1994 Jim Kingdon ([email protected])
3041
3042 * libbfd.c, bfd-in.h, hosts/alphaosf.h, hosts/sparc-ll.h, aoutf1.h,
3043 sparclynx.c, Makefile.in: Change HOST_64_BIT to BFD_HOST_64_BIT.
0324156c 3044 * bfd-in2.h: Rebuilt.
96ad107b 3045
192d8ee8
ILT
3046Wed Feb 2 12:30:13 1994 Ian Lance Taylor ([email protected])
3047
38e1f0ce
ILT
3048 * coffswap.h (coff_swap_reloc_out): If RS6000COFF_C, handle type
3049 and size correctly.
3050 (coff_swap_aux_in): If RS6000COFF_C, change x_csect.x_scnlen to
3051 x_csect.x_scnlen.l to match change in coff/internal.h.
3052 (coff_swap_aux_out): Likewise.
3053
ebf3b4cd
ILT
3054 * coff-mips.c (mips_ecoff_backend_data), coff-alpha.c
3055 (alpha_ecoff_backend_data): Change casts of aux_in and aux_out
3056 fields to match yesterday's changes.
3057
192d8ee8
ILT
3058 * coffcode.h (coff_write_relocs): If SELECT_RELOC is defined, pass
3059 in the internal_reloc itself, not the type.
3060 * coff-apollo.c, coff-h8300.c, coff-h8500.c, coff-i386.c,
3061 coff-m68k.c, coff-sh.c, coff-we32k.c, coff-z8k.c: Changed
3062 definition of SELECT_RELOC accordingly.
3063
330595d0
ILT
3064Tue Feb 1 12:05:44 1994 Ian Lance Taylor ([email protected])
3065
3066 * coffcode.h (bfd_coff_backend_data): Added new arguments to
3067 _bfd_coff_swap_aux_in and _bfd_coff_swap_aux_out: aux index number
3068 and number of aux entries.
3069 (bfd_coff_swap_aux_in, bfd_coff_swap_aux_out): Changed
3070 accordingly.
3071 * libcoff.h: Rebuilt.
3072 * coffswap.h (coff_swap_aux_in, coff_swap_aux_out): Accept new
3073 arguments. If RS6000COFF_C, only treat C_EXT and C_HIDEXT
3074 specially if this is the last aux entry.
3075 * coffgen.c (coff_write_symbol, coff_get_normalized_symtab): Pass
3076 new arguments to swap_aux functions.
3077
4e810849
KR
3078Sun Jan 30 15:14:36 1994 Ken Raeburn ([email protected])
3079
3080 * gen-aout.c (main): Set DEFAULT_ARCH based on preprocessor macros
3081 (only testing for m68k and vax at the moment); do verify that the
3082 preprocessor didn't trash the arch name inside the string version.
3083 Don't print out "pagesize =" line that prevents output from
3084 compiling. Derive BYTES_IN_WORD and ARCH values from sizeof
3085 results.
3086 * Makefile.in (aout-params.h): Pass gen-aout a dummy target name.
26b572e4
KR
3087 (check, installcheck): Identify directory in "no testsuites"
3088 message.
4e810849 3089
2edc8357
ILT
3090Sun Jan 30 13:25:28 1994 Ian Lance Taylor ([email protected])
3091
3092 * aoutx.h (aout_link_write_symbols): Write out correct value for
3093 object file symbol.
3094
098630a0
KR
3095Fri Jan 28 18:34:05 1994 Ken Raeburn ([email protected])
3096
3097 * hosts/vaxbsd.h (HOST_STACK_END_ADDR): Vax BSD doesn't define
3098 KERNBASE, so hard-code 0x80000000 instead.
3099
c3156966
ILT
3100Thu Jan 27 13:54:08 1994 Ian Lance Taylor ([email protected])
3101
3102 * linker.c (generic_link_add_symbol_list): If symbol is common,
3103 set the BSF_OLD_COMMON flag.
3104
d6d4e4c3
DM
3105Wed Jan 26 13:47:15 1994 David J. Mackenzie ([email protected])
3106
3107 * format.c (bfd_check_format_matches): Put the new entry in the
3108 correct element of matching_vector.
3109
09f70549
JK
3110Tue Jan 25 11:43:28 1994 Jim Kingdon ([email protected])
3111
3112 * som.c, som.h (bfd_som_set_section_attributes,
3113 bfd_som_set_subsection_attributes): Change parameters from char
3114 to int. Following a prototype with an old-style function definition
3115 in the presence of widened parameters is a GCC-ism not supported
3116 by the HP compiler in ANSI mode.
3117
a927c32d
ILT
3118Tue Jan 25 11:46:46 1994 Ian Lance Taylor ([email protected])
3119
8638431e
ILT
3120 * reloc.c (bfd_get_reloc_size): Size of type -2 is 4 bytes, not 2.
3121
3b490cdd
ILT
3122 * hp300hpux.c (MY(write_object_contents)): Write out the symbols
3123 before writing out the relocs, so that the right symbol indices
3124 are used.
3125
71d58b59
ILT
3126 * archive.c (do_slurp_bsd_armap, bfd_slurp_bsd_armap_f2): Do not
3127 try to overlay the internal carsyms on the external symdefs. That
3128 can not work if the size of a host pointer is larger than 4 bytes.
3129
3130 * format.c (bfd_check_format_matches): Cast result of
3131 bfd_xmalloc_by_size_t.
3132 * opncls.c (_bfd_new_bfd): Avoid ANSI C prototype.
3133
a927c32d
ILT
3134 * archive.c: Reindented to GNU standards.
3135
aabda2da
DM
3136Mon Jan 24 14:41:23 1994 David J. Mackenzie ([email protected])
3137
f4bd7a8f
DM
3138 * opncls.c (_bfd_new_bfd, _bfd_new_bfd_contained_in): Add
3139 "_bfd_" to function names.
3140 * archive.c (_bfd_create_empty_archive_element_shell),
3141 libbfd-in.h: Change callers.
3142
3143 * libbfd.c (bfd_zmalloc): Renamed from zalloc.
3144 * libbfd.c (bfd_add_to_string_table),
3145 trad-core.c (trad_unix_core_file_p),
3146 targets.c (bfd_target_list),
3147 ptrace-core.c (ptrace_unix_core_file_p),
3148 opncls.c (new_bfd), libbfd-in.h,
3149 ieee.c (ieee_make_empty_symbol),
3150 elf32-hppa.c (hppa_elf_stub_branch_reloc),
3151 (hppa_elf_stub_reloc): Change callers.
3152 * libbfd.h: Regenerated.
3153
3154 * archive.c (_bfd_look_for_bfd_in_cache): Add "_bfd_" to name.
3155 (_bfd_get_elt_at_filepos),
3156 coff-rs6000.c (rs6000coff_get_elt_at_filepos), libbfd-in.h:
3157 Change callers.
3158
3159 * format.c (bfd_check_format_matches), libbfd-in.h, targets.c,
3160 elfcode.h (elf_object_p): Rename target_vector to bfd_target_vector
3161 and default_vector to bfd_default_vector.
3162 * libbfd.h: Regenerated.
3163
aabda2da
DM
3164 * format.c (bfd_check_format_matches): New function.
3165 (bfd_check_format): Call it.
3166 (bfd_matching_formats): Function removed.
3167 * targets.c: Replace the vector added on Jan 21 with a count of
3168 entries in default_vector.
3169 * bfd-in2.h: Regenerated.
3170
ca1c6bec
ILT
3171Mon Jan 24 12:38:54 1994 Ian Lance Taylor ([email protected])
3172
3f048f7f
ILT
3173 * coff-alpha.c (alpha_ecoff_object_p): New function. Set size of
3174 .pdata section based on lnnoptr field, not section header.
3175 (alpha_relocate_section): Don't bother to check if r_symndx >= 0,
3176 since it is unsigned.
3177 (ecoffalpha_little_vec): Use alpha_ecoff_object_p rather than
3178 coff_object_p.
3179 * ecoff.c (ecoff_new_section_hook): Set alignment_power field of
3180 .pdata section to 3.
3181 (ecoff_compute_section_file_positions): Save the size of the
3182 .pdata section in the line_filepos field, and actually align the
3183 .pdata section to an alignment power of 4.
3184 (ecoff_compute_reloc_file_positions): Set output_has_begun after
3185 calling ecoff_compute_section_file_positions.
3186 (ecoff_write_object_contents): Set s_lnnoptr for the .pdata
3187 section from the line_filepos field. Set vstamp for the optional
3188 header from the vstamp of the symbolic header.
3189 (ecoff_bfd_final_link): Set vstamp of the symbolic header to the
3190 vstamp used by the first object file in the link.
3191
3192 * ecofflink.c (ecoff_align_debug): Align RFDs to debug_align.
3193
a20bdb43
ILT
3194 * linker.c (generic_link_check_achive_element): Set SEC_ALLOC flag
3195 for a created common section.
3196 (_bfd_generic_link_add_one_symbol): Likewise.
3197
3198 * elfcode.h (swap_out_syms): Use elf_section_from_bfd_section to
3199 get the index of a common section, rather than always using
3200 SHN_COMMON (MIPS has multiple common sections).
3201
7a60ed8c
ILT
3202 * elf32-hppa.c (hppa_elf_gen_reloc_type): Typo (== for =).
3203
4991ebb9
ILT
3204 * bfd/aoutx.h (aout_link_input_section_std,
3205 aout_link_input_section_ext): Pass additional arguments to
3206 reloc_overflow callback.
3207 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents,
3208 alpha_relocat_section): Likewise.
3209 * coff-h8300.c (h8300_reloc16_extra_cases): Likewise.
3210 * coff-h8500.c (extra_case): Likewise.
3211 * coff-mips.c (mips_relocate_section): Likewise.
3212 * coff-z8k.c (extra_case): Likewise.
3213 * elf32-hppa.c (hppa_elf_stub_finish): Likewise.
3214 * reloc.c (bfd_generic_get_relocated_section_contents): Likewise.
3215
1cedfe03
ILT
3216 * bout.c (calljx_callback, callj_callback): Use get_value to get
3217 the symbol value and check for undefined symbols.
3218 (get_value): If the symbol is undefined, look it up in the linker
3219 hash table.
3220 (b_out_get_relocated_section_contents): For PCREL24 and PCREL13
3221 use get_value to get the symbol value and check for undefined
3222 symbols.
3223 * reloc16.c (bfd_coff_reloc16_get_value): If the symbol is
3224 undefined, look it up in the linker hash table.
3225
ca1c6bec
ILT
3226 * aoutx.h (translate_symbol_table): The string index 0 has a
3227 special meaning for normal symbols, but not for dynamic symbols.
3228
3f2255e7
SG
3229Sat Jan 22 12:26:01 1994 Stu Grossman (grossman at cygnus.com)
3230
3231 * sparclynx.c: Setup appropriate macros to enable core file
3232 support.
3233
0f8f509c
DM
3234Fri Jan 21 16:25:35 1994 David J. Mackenzie ([email protected])
3235
3b31740c
DM
3236 * targets.c: Add a vector of matching format names.
3237 * format.c (bfd_matching_formats): New function to return it.
3238 (bfd_check_format): Set it.
3239 * bfd-in2.h: Regenerated.
3240
0f8f509c
DM
3241 * bfd-in.h: Remove decls of bfd_ec type and error printing functions.
3242 Remove decl of type symclass; wasn't used.
3243 * bfd.c: Document error handling, including code fragments
3244 containing the error decls that were in bfd-in.h.
3245 Remove DEFUNs.
3246 * bfd-in2.h: Regenerated.
3247
27814aa6 3248Fri Jan 21 14:11:16 1994 Sean Fagan ([email protected])
4733517b
JK
3249
3250 * nlmcode.h, liblnm.h, nlm32-alpha.c nlm32-i386.c nlm32-sparc.c:
3251 The sparc (and possibly other?) NLM format requires a different
3252 way to write exports, so add a write_export field to the backend
3253 data (and set it to NULL for everything but the sparc).
e7cc9a2e 3254
3f40d101
DM
3255Fri Jan 21 14:11:16 1994 Jim Kingdon ([email protected])
3256
e7cc9a2e
JK
3257 * sunos.c (MY(read_dynamic_relocs)): Compare info->dynrel with NULL,
3258 not (struct external_nlist *) NULL. info->dynrel is a PTR, not
3259 a struct external_nlist *.
3260
6de49562
DM
3261Fri Jan 21 09:29:01 1994 David J. Mackenzie ([email protected])
3262
74788cf0 3263 * bfd.c: Remove error strings for errors removed below.
6de49562
DM
3264 * aoutx.h (translate_to_native_sym_flags), bfd-in.h (bfd_ec),
3265 oasys.c (oasys_write_sections): Rename
3266 bfd_error_nonrepresentable_section to nonrepresentable_section.
3267 None of the other bfd error names start with "bfd_error".
3268 Remove errors symbol_not_found and no_relocation_info, which seem
3269 to be unused.
3270 * bfd-in2.h: Regenerated.
3271
0ee75d02
ILT
3272Fri Jan 21 01:11:55 1994 Ian Lance Taylor ([email protected])
3273
fcc41f68
ILT
3274 * bfd.c (bfd_get_gp_size): Added support for ELF.
3275
0ee75d02
ILT
3276 * syms.c (BSF_DYNAMIC): New symbol flag.
3277 (bfd_print_symbol_vandf): Print it.
3278 * bfd-in2.h: Rebuilt.
3279 * libaout.h (struct aout_backend_data): New read_dynamic_symbols
3280 and read_dynamic_relocs fields.
3281 (struct aoutdata): New dynamic_info field.
3282 (obj_aout_dynamic_info): New accessor macro.
3283 * sunos.c (struct sunos_dynamic_info): New structure.
3284 (sunos_read_dynamic_info, MY(read_dynamic_symbols),
3285 MY(read_dynamic_relocs)): New functions to read dynamic symbols
3286 and relocs.
3287 * aoutx.h (NAME(aout,some_aout_object_p)): If the object is
3288 dynamically linked, set SEC_RELOC for both the .text and .data
3289 sections.
3290 (translate_from_native_sym_flags): Don't set BSF_LOCAL for an
3291 undefined symbol.
3292 (translate_symbol_table): New function, split out of
3293 slurp_symbol_table; set the BSF_DYNAMIC flag appropriately.
3294 (NAME(aout,slurp_symbol_table)): Read dynamic symbols, if any.
3295 (NAME(aout,slurp_reloc_table)): Read dynamic relocs, if any.
3296 (NAME(aout,get_reloc_upper_bound)): Include dynamic reloc count in
3297 return value.
3298 * aoutf1.h (NAME(aout,sunos4_write_object_contents)): Don't write
3299 out dynamic symbols or relocs against reloc symbols, since they
3300 are already in the .text section and we wouldn't know where to
3301 write them anyhow.
3302 (sunos4_aout_backend): Initialize read_dynamic_symbols and
3303 read_dynamic_relocs fields.
3304 * aout-target.h (MY(backend_data)): Initialize
3305 read_dynamic_symbols and read_dynamic_relocs fields.
3306
dc3da58f
KR
3307Thu Jan 20 20:57:27 1994 Ken Raeburn ([email protected])
3308
3309 * hosts/alphaosf.h (uint64e_type, uint64_type, int64_type): Delete
3310 typedefs, since HOST_64_BIT will take care of defining them in
3311 bfd.h.
3312
7e7fb4a8
KR
3313Wed Jan 19 17:28:59 1994 Ken Raeburn ([email protected])
3314
3315 * config/alphaosf.mh (HDEFINES): Don't define HOST_64_BIT here;
3316 that's dealt with elsewhere.
3317 * hosts/alphaosf.h (sprintf_vma, fprintf_vma): New macros.
3318 (uint64_typeHIGH, uint64_typeLOW): Comment with HOST_64_BIT so
3319 they get copied to bfd.h.
3320
3321 * reloc.c (enum bfd_reloc_code_real): Add some Alpha relocation
3322 types. Reorganized some of the existing ones.
3323 * coff-alpha.c (alpha_howto_table): Construct 64-bit negative one
3324 values in case of compilation on a 32-bit machine. Fix pcrel
3325 fields of some reloc types.
3326 (alpha_bfd_reloc_type_lookup): Handle more relocation types.
3327
3328 * bfd-in.h (uint64_typeHIGH, uint64_typeLOW): Supply default
3329 definitions when not defined, regardless of whether uint64_type is
3330 a defined macro or not.
3331 (fprintf_vma, sprintf_vma): Define only if fprintf_vma is not
3332 already defined.
3333
d7e34f67
ILT
3334Wed Jan 19 00:02:54 1994 Ian Lance Taylor ([email protected])
3335
3336 * aoutx.h (translate_to_native_sym_flags): Set the type of a
3337 BSF_WARNING symbol to N_WARNING.
3338
53155af1
ILT
3339Tue Jan 18 16:43:19 1994 Ian Lance Taylor ([email protected])
3340
3341 * aoutx.h (aout_link_add_symbols): Increment sym_hash as well as p
3342 for an indirect or warning symbol.
3343 (aout_link_write_symbols): Update sym_hash with the target of an
3a5b50f4
ILT
3344 indirect or warning symbol. If an indirect symbol is defined,
3345 output the calculated value and don't output the target symbol.
53155af1 3346
0c205af2
DM
3347Tue Jan 18 03:54:59 1994 David J. Mackenzie ([email protected])
3348
3349 * aoutx.h (translate_from_native_sym_flags): Give warning symbols
3350 an (unused) nonzero section value, needed for check below.
3351
964affdc
DM
3352Mon Jan 17 15:12:07 1994 David J. Mackenzie ([email protected])
3353
3354 * aoutx.h (translate_from_native_sym_flags,
3355 aout_link_add_symbols): Treat N_SET[ABDT] | N_EXT like
3356 N_SET[ABDT].
3357
38a5f510
ILT
3358Fri Jan 14 16:45:43 1994 Ian Lance Taylor ([email protected])
3359
3360 * elfcode.h (elf_object_p): If there is a SHT_DYNAMIC section, set
3361 the DYNAMIC flag for the BFD.
3362 (NAME(bfd_elf,write_object_contents)): Don't try to write out a
3363 BFD with the DYNAMIC flag set, since we don't generate the program
3364 header table correctly.
3365
3366Fri Jan 14 01:04:36 1994 Peter Schauer ([email protected])
3367
3368 * elfcode.h (elf_slurp_symbol_table): Free x_symp at the end
3369 of the function to avoid storage leak.
3370
75919b3b
ILT
3371Thu Jan 13 23:07:32 1994 Ian Lance Taylor ([email protected])
3372
3373 * ecoff.c (ecoff_link_write_external): An ifd can be -1.
3374
39961154
JL
3375Thu Jan 13 12:33:27 1994 Jeffrey A. Law ([email protected])
3376
9558d13f
JL
3377 * som.c (som_set_reloc_info): Provide a default symbol for
3378 relocations which don't actually have an associated symbol.
3379
39961154
JL
3380 * som.c (hppa_som_reloc): Add new "error message" argument.
3381
32476597
PS
3382Wed Jan 12 13:36:43 1994 Peter Schauer ([email protected])
3383
3384 Enable gdb to write to core files on more core file readers.
3385 * libbfd.c (bfd_generic_set_section_contents): Remove range check
3386 for section size, it is already done in bfd_set_section_contents
3387 with bfd_get_section_size_now.
3388 * aix386-core.c, hppabsd-core.c, hpux-core.c, irix-core.c,
3389 osf-core.c, ptrace-core.c, trad-core.c (*_set_section_contents):
3390 Use bfd_generic_set_section_contents instead of bfd_false.
3391
92f345b9
ILT
3392Wed Jan 12 15:31:57 1994 Ian Lance Taylor ([email protected])
3393
39961154
JL
3394 * linker.c: Added initial documentation.
3395
92f345b9
ILT
3396 * linker.c (default_indirect_link_order): Don't expect space for
3397 output relocations if there aren't any input relocations.
3398
fed872d3
ILT
3399Tue Jan 11 14:37:12 1994 Ian Lance Taylor ([email protected])
3400
c5481a5e
ILT
3401 * aoutx.h (NAME(aout,final_link)): Set a_entry before computing
3402 file offsets.
3403
fed872d3
ILT
3404 * elfcode.h (swap_out_syms): A common symbol is STT_OBJECT, not
3405 STT_NOTYPE.
3406
b36b8a6e
JK
3407Tue Jan 11 09:10:56 1994 Jim Kingdon ([email protected])
3408
3409 * config.bfd: Use ELF, not COFF for m88*-*-dgux*.
3410 Combine m88k-*-* and m88110-*-* cases into m88*-*-*.
3411
cf286547
ILT
3412Tue Jan 11 00:07:19 1994 Ian Lance Taylor ([email protected])
3413
3414 * ecofflink.c: Extensive changes to compress and merge debugging
3415 information, and to write some of out directly rather than saving
3416 it in memory. Several new functions and structures, and new
3417 arguments to existing functions.
3418 * ecoff.c (ecoff_compute_reloc_file_positions): Compute
3419 sym_filepos as well.
3420 (ecoff_get_extr): Use ifdmap instead of ifdbase.
3421 (ecoff_write_object_contents): Don't compute sym_filepos here.
3422 Only output symbols if outsymbols is not NULL.
3423 (ecoff_bfd_final_link): Adjust for changes in ecoff_debug_info and
3424 bfd_ecoff_debug functions. Write out debugging information here.
3425 (ecoff_final_link_debug_accumulate): Adjust for changes in
3426 bfd_ecoff_debug functions.
3427 (ecoff_link_write_external): Use ifdmap rather than ifdbase.
3428 * elf32-mips.c (mips_elf_read_ecoff_info): Read external symbols
3429 first, to put them in the first memory buffer. Clear fdr field.
3430 (mips_elf_get_extr): Use pointer to unswapped external symbol.
3431 (mips_elf_final_link): Adjust for changes in bfd_ecoff functions.
3432 Preserve .text, .data and .bss even if they are empty. Save
3433 pointer to unswapped external symbol rather than copying it.
3434 Don't free up the external symbols.
3435 * libelf.h (elf_symbol_type): Change mips_extr to PTR.
3436 * bfd-in.h (bfd_ecoff_debug_init, bfd_ecoff_debug_free): Declare.
3437 (bfd_ecoff_debug_accumulate): Update declaration.
3438 (bfd_ecoff_debug_accumulate_other): Rename declaration from
3439 bfd_ecoff_debug_link_other and update.
3440 (bfd_ecoff_write_accumulated_debug): Declare.
3441 * bfd-in2.h: Rebuilt.
3442 * Makefile.in: Rebuilt dependencies.
3443
2c96ba79
JK
3444Mon Jan 10 20:46:53 1994 Jim Kingdon ([email protected])
3445
3446 * Makefile.in (install): Remove "@" which follows a backslash. In
3447 this position it just causes errors, not suppresses echoes.
3448
2304e1e8
JL
3449Mon Jan 10 09:06:21 1994 Jeffrey A. Law ([email protected])
3450
3451 * som.c (hppa_som_gen_reloc_type): Fix handling of LT and RT
3452 field selectors.
3453
fb4cf140
KR
3454Sun Jan 9 04:32:25 1994 Ken Raeburn ([email protected])
3455
3456 * config/i386-netbsd.mt (SELECT_VECS): Include i386bsd_vec.
3457
d44b2ddb
DM
3458Fri Jan 7 10:27:27 1994 David J. Mackenzie ([email protected])
3459
5330499f
DM
3460 * aoutx.h (adjust_z_magic): Don't merge the start of bss with the
3461 end of data if they are not contiguous.
3462
d44b2ddb
DM
3463 * aoutf1.h (sunos4_aout_backend): Comment the fields' meanings.
3464
a5a835ff
ILT
3465Fri Jan 7 15:40:16 1994 Ian Lance Taylor ([email protected])
3466
3467 * ecoff.c (ecoff_mkobject_hook): Don't set SEC_SHARED_LIBRARY flag
3468 for .reginfo section here.
3469 (ecoff_new_section_hook): Set it here instead.
3470
442da995
SS
3471Fri Jan 7 10:29:27 1994 Stan Shebs ([email protected])
3472
3473 * bfd-in.h: (bfd_boolean): Add workaround for systems that also
3474 define true and false as enums.
3475 (ALMOST_STDC): Add as alternative to __STDC__.
3476 * bfd-in2.h: Rebuilt.
3477 * syms.c (bfd_print_symbol_vandf): Convert a PTR to FILE*.
3478
6f56c941
DM
3479Thu Jan 6 14:24:44 1994 David J. Mackenzie ([email protected])
3480
3481 * aoutx.h (translate_to_native_sym_flags): Catch the case where
3482 there is no output section.
3483
2f84ec0d
ILT
3484Thu Jan 6 14:37:42 1994 Ian Lance Taylor ([email protected])
3485
90d58284
ILT
3486 * nlmcode.h (nlm_object_p): If we can't read the fixed header,
3487 count it as a wrong format error, not a system call error, since
3488 the object file might simply be too small.
3489
3490 * targets.c (target_vector): Added nlm32_alpha_vec inside #ifdef
3491 BFD64.
3492 * Makefile.in (BFD32_BACKENDS): Remove nlm32-alpha.o.
3493 (BFD64_BACKENDS): Add nlm32-alpha.o. It depends on 64 bit
3494 support, even though it is for an Alpha in 32 bit mode.
3495 * configure.in (nlm32_alpha_vec): Set target64 to true.
3496
3497 * nlm32-gen.c, nlm64-gen.c: Removed. All nlm targets are
3498 different, so there is no point to providing a generic one.
3499 * libnlm.h: Don't bother to check for nlm_backend(bfd) being NULL
3500 in the backend accessor macros; that should no longer be possible.
3501 * targets.c (target_vector): Removed nlm32_big_generic_vec,
3502 nlm64_big_generic_vec, nlm64_little_generic_vec.
3503 * configure.in (nlm32_big_generic_vec, nlm32_little_generic_vec,
3504 nlm64_big_generic_vec, nlm64_little_generic_vec): Removed.
3505 * Makefile.in: Rebuilt dependencies, and
3506 (BFD32_BACKENDS): Removed nlm32-gen.o.
3507 (BFD64_BACKENDS): Removed nlm64-gen.o.
3508 (CFILES): Removed nlm32-gen.c and nlm64-gen.c.
3509
559d5074
ILT
3510 * hp300hpux.c (ARCH_SIZE): Define before including aoutx.h.
3511
2f84ec0d
ILT
3512 * linker.c (_bfd_generic_link_add_one_symbol): Add constructor and
3513 bitsize arguments. Changed all callers (aoutx.h).
3514 * libbfd-in.h (_bfd_generic_link_add_one_symbol): Add constructor
3515 and bitsize arguments to declaration.
3516 * libbfd.h: Rebuilt.
3517
3518 * ecoff.c: First cut at new style of linker backend for
3519 ECOFF--added a bunch of functions. Also:
3520 (ecoff_sec_to_styp_flags): Set flags for .pdata and .xdata.
3521 (ecoff_slurp_symbolic_header): New function.
3522 (ecoff_slurp_symbolic_info): Call ecoff_slurp_symbolic_header.
3523 (ecoff_compute_reloc_file_positions): New function.
3524 (ecoff_set_section_contents): Get out quickly if count is zero.
3525 Check errors better.
3526 (ecoff_write_object_contents): Put .xdata section in data segment.
3527 Call ecoff_compute_reloc_file_positions. Don't output relocs or
3528 external symbols if outsymbols is NULL.
3529 (ecoff_bfd_final_link): Completely rewritten.
3530 * libecoff.h: Include bfdlink.h.
3531 (struct ecoff_backend_data): Add relocate_section field.
3532 (ecoff_data_type): Add sym_hashes and symndx_to_section fields.
3533 (struct ecoff_link_hash_entry): Define.
3534 (struct ecoff_link_hash_table): Define.
3535 (ecoff_bfd_link_add_symbols): Declare as function, not macro.
3536 (ecoff_bfd_link_hash_table_create): Likewise.
3537 * ecofflink.c (bfd_ecoff_debug_one_external): New function.
3538 (bfd_ecoff_debug_externals): Call bfd_ecoff_debug_one_external.
3539 * bfd-in.h (bfd_ecoff_debug_one_external): Declare.
3540 * bfd-in2.h: Rebuilt.
3541 * coff-alpha.c (alpha_howto_table): Mark BRADDR as
3542 partial_inplace, and set the src_mask to 0x1fffff.
3543 (alpha_ecoff_get_relocated_section_contents): Remove unused
3544 variable gp_warned.
3545 (alpha_convert_external_reloc): New static function.
3546 (alpha_relocate_section): New static function.
3547 (alpha_ecoff_backend_data): Initialize relocate_section field.
3548 * coff-mips.c (mips_relocate_refhi): New static function.
3549 (mips_relocate_section): New static function.
3550 (mips_ecoff_backend_data): Initialize relocate_section field.
3551
3552 * reloc.c (_bfd_relocate_contents): Corrected signed overflow
3553 checking when there is an addend.
3554
3555 * aoutx.h (NAME(aout,final_link)): Don't abort when trying to link
3556 a non a.out file, just pass it to _bfd_default_link_order.
3557 (aout_link_input_section_std): When doing a final PC relative link
3558 against a section symbol, subtract the VMA of the input section.
3559 (aout_link_input_section_ext): Likewise.
3560
3561 * linker.c (default_indirect_link_order): Renamed from
3562 _bfd_generic_indirect_link_order and made static.
3563 (_bfd_generic_final_link): Don't switch on link_order type, just
3564 call _bfd_default_link_order.
3565 (_bfd_default_link_order): Handle bfd_indirect_link_order type.
3566 * genlink.h: Removed declaration of
3567 _bfd_generic_indirect_link_order.
3568 * elf32-mips.c (mips_elf_final_link): Don't switch on link_order
3569 type, just call _bfd_default_link_order.
3570
3571Tue Jan 4 21:23:37 1994 Ian Lance Taylor ([email protected])
3572
3573 * linker.c (generic_link_check_archive_element): Base the name of
3574 the created common section on the name of the section the symbol
3575 came from.
3576 (_bfd_generic_link_add_one_symbol): (case BIG): A common symbol
3577 must have a section, so don't bother to create one.
3578
83acd9a2
DM
3579Mon Jan 3 15:32:16 1994 David J. Mackenzie ([email protected])
3580
3581 * aout-target.h (MY(vec)): Add DYNAMIC to mask of object flags.
3582 * aoutf1.h (NAME(aout,sunos4_write_object_contents)):
3583 If the DYNAMIC flag is set, set it in the exec header.
3584 * aoutx.h (NAME(aout,some_aout_object_p)): If the object is
3585 dynamically linked, set the DYNAMIC flag in the BFD.
3586 * libaout.h (N_SET_DYNAMIC): New macro.
3587 (N_DYNAMIC): Add missing 0 in mask.
3588
031534b0
ILT
3589Mon Jan 3 11:41:45 1994 Ian Lance Taylor ([email protected])
3590
2f84ec0d
ILT
3591 * ecoff.c (ecoff_get_extr): Don't output section symbols as
3592 external symbols.
3593
85d73944
ILT
3594 * bfd-in.h, hash.c: Change bfd_hash_allocate argument from size_t
3595 to unsigned int, because size_t may not be defined in bfd.h.
3596 * bfd-in2.h: Rebuilt.
3597
8120aa8f
ILT
3598 * bfd-in.h (bfd_get{b,l}[_signed_]{16,32,64}): Declare argument to
3599 be a const pointer.
3600 * bfd-in2.h: Rebuilt.
3601 * libbfd.c (bfd_get{b,l}[_signed_]{16,32,64}): Declare argument to
3602 be a const pointer.
3603 * targets.c (bfd_target): Change swap function pointers
3604 accordingly.
3605 * archive.c (do_slurp_coff_armap): Change swap accordingly.
3606 * aix386-core.c: Change NO_GET and NO_GETS accordingly.
3607 * hppabsd-core.c, hpux-core.c, irix-core.c, osf-core.c,
3608 ptrace-core.c, trad-core.c: Change NO_GET and NO_SIGNED_GET
3609 accordingly.
3610
b59f0276
ILT
3611 * libbfd-in.h (struct artdata): Added tdata field.
3612 (_bfd_add_bfd_to_archive_cache): Declare.
2af2b7c4 3613 (_bfd_get_elt_at_filepos): Declare.
b59f0276
ILT
3614 (_bfd_snarf_ar_hdr): Renamed from snarf_ar_hdr.
3615 * libbfd.h: Rebuilt.
3616 * archive.c: Cleaned up some more.
3617 (_bfd_generic_mkarchive, bfd_generic_archive_p): Initialize
3618 pointer elements of artdata.
3619 (_bfd_add_bfd_to_archive_cache): Renamed from add_bfd_to_cache.
3620 (_bfd_snarf_ar_hdr): Renamed from snarf_ar_hdr.
2af2b7c4
ILT
3621 (_bfd_get_elt_at_filepos): Renamed from get_elt_at_filepos.
3622 (get_extended_arelt_filename, bfd_construct_extended_name_table,
3623 bfd_ar_hdr_from_filesystem, compute_and_write_armap): Made static.
b59f0276
ILT
3624 * ecoff.c: Some comment changes.
3625 (ecoff_slurp_armap): Handle rename of snarf_ar_hdr. Set
3626 ardata->tdata to raw_armap.
3627 (ecoff_archive_p): Initialize pointer elements of artdata.
3628 * coff-rs6000.c (rs6000coff_get_elt_at_filepos): Handle rename of
3629 add_bfd_to_cache.
3630
031534b0
ILT
3631 * hash.c: Added some documentation.
3632
3f99570e
JK
3633Mon Jan 3 11:09:28 1994 Jim Kingdon ([email protected])
3634
3635 * aout-target.h, netbsd386.c: Replace NO_SWAP_MAGIC with SWAP_MAGIC,
3636 and do the swapping here rather than calling ntohl from the N_*
3637 macros. This cleans up assumptions about the size of a host long,
3638 the existence to ntohl, etc.
3639
e38bcbdb
RS
3640Sat Jan 1 13:50:05 1994 Rob Savoye ([email protected])
3641
3642 * config.bfd: Add support for VSTa micro-kernel. It currently uses
3643 i386-aout.
3644
f4d7c848
DM
3645Sat Jan 1 10:18:54 1994 David J. Mackenzie ([email protected])
3646
00fe3f53 3647 * hosts/i386mach3.h (HOST_SEGMENT_SIZE): Fix value.
f4d7c848
DM
3648 * i386mach3.c (SEGMENT_SIZE): Fix value.
3649
728472f1
ILT
3650Fri Dec 31 16:23:43 1993 Ian Lance Taylor ([email protected])
3651
3652 Minor cleanups suggested by CodeCenter.
3653 * aoutx.h, coffgen.c, ecoff.c, ecofflink.c, elf.c, libbfd.c,
3654 linker.c, reloc.c, section.c, srec.c: Added /*ARGSUSED*/ as
3655 appropriate.
3656 * aoutx.h (struct external_exec): Removed unnecessary declaration.
3657 (NAME(aout,some_aout_object_p)): Set some tdata pointers to NULL.
3658 (adjust_z_magic): Removed useless variable data_vma.
3659 (stringtab_init): Initialize hash_zero.
3660 (add_to_stringtab): Removed unused fourth argument.
3661 (NAME(aout,swap_std_reloc_out)): Removed useless variable
3662 r_addend.
3663 (aout_link_input_section): Added some casts.
3664 * archive.c (get_extended_arelt_filename, do_slurp_coff_armap,
3665 bfd_ar_hdr_from_filesystem, bsd_write_armap, coff_write_armap):
3666 Minor code rewriting to make it more C like.
3667 (do_slurp_bsd_armap): Added some casts.
3668 * ecoff.c (ecoff_write_object_contents): Removed useless variable
3669 scn_base.
3670 (ecoff_write_armap): Added some casts. Use "" rather than "\0".
3671 * ecofflink.c (bfd_ecoff_write_debug): Added a cast.
3672 * libaout.h (struct internal_exec): Removed unnecessary
3673 declaration.
3674 * linker.c (_bfd_generic_indirect_link_order): Added a cast.
3675 * opncls.c (new_bfd): Removed a cast.
3676 * reloc.c (bfd_generic_get_relocated_section_contents): Added
3677 some casts.
3678 * srec.c (internal_srec_write_object_contents): Removed useless
3679 variable bytes_written.
3680
696df58f
DM
3681Fri Dec 31 11:46:13 1993 David J. Mackenzie ([email protected])
3682
3683 * i386mach3.c (N_TXTADDR): Don't define after all.
3684 (TEXT_START_ADDR): Don't include exec header size in value.
3685
e450eb45
DM
3686Thu Dec 30 15:47:54 1993 David J. Mackenzie ([email protected])
3687
3688 * i386mach3.c (N_TXTADDR): Define.
3689
4c3721d5
ILT
3690Thu Dec 30 13:37:24 1993 Ian Lance Taylor ([email protected])
3691
3692 Extensive changes to move the bulk of the linker into BFD so that
3693 more efficient backend code can be written for specific object
3694 files. Only existing efficient backend is a.out.
3695 * seclet.c, seclet.h: Removed.
3696 * hash.c, linker.c, genlink.h: New files.
3697 * bfd-in.h: Removed bfd_error_vector. Declared hash table
3698 structures and functions.
3699 (JUMP_TABLE): Removed bfd_seclet_link, added
3700 bfd_link_hash_table_create, bfd_link_add_symbols and
3701 bfd_final_link.
3702 * All backends: Changed accordingly.
3703 * bfd-in2.h: Rebuilt.
3704 * bfd.c (struct _bfd): Added link_next and archive_pass fields.
3705 Removed ld_symbols field.
3706 (bfd_nonrepresentable_section, bfd_undefined_symbol,
3707 bfd_reloc_value_truncated, bfd_reloc_is_dangerous,
3708 bfd_error_vector): Removed.
3709 (bfd_default_error_trap, bfd_error_trap,
3710 bfd_error_nonrepresentabltrap): Removed.
3711 (bfd_get_relocated_section_contents): Pass link_info. Pass
3712 link_order instead of seclet. Pass symbols.
3713 (bfd_relax_section): Pass link_info.
3714 (bfd_seclet_link): Removed.
3715 (bfd_link_hash_table_create, bfd_link_add_symbols,
3716 bfd_final_link): New macros.
3717 * libbfd-in.h: If __GNUC__ is defined and alloca is not, define
3718 alloca as __builtin_alloca. Declare internal linking functions.
3719 * libbfd.h: Rebuilt.
3720 * libbfd.c (bfd_seek): Comment out fseek assertion. It's worked
3721 for months.
3722 * reloc.c (reloc_howto_type): Added error_message argument to
3723 special_function field. Changed all callers and all definitions.
3724 (bfd_get_reloc_size): Make argument a const pointer.
3725 (bfd_perform_relocation): Add error_message argument to hold
3726 string set if return value if bfd_reloc_dangerous. Changed all
3727 callers.
3728 (_bfd_final_link_relocate, _bfd_relocate_contents): New functions.
3729 * section.c (asection): Renamed seclets_head and seclets_tail to
3730 link_order_head and link_order_tail.
3731 * targets.c (bfd_target): Replaced seclet argument with link_info
3732 and link_order and symbols arguments in
3733 bfd_get_relocated_section_contents. Added symbols argument to
3734 bfd_relax_section. Removed bfd_seclet_link. Added
3735 bfd_link_hash_table_create, bfd_link_add_symbols and
3736 bfd_final_link.
3737 * libaout.h (struct aoutdata): Added external_syms,
3738 external_sym_count, external_strings, sym_hashes fields.
3739 (obj_aout_external_syms, obj_aout_external_sym_count,
3740 obj_aout_external_strings, obj_aout_sym_hashes): New accessor
3741 macros.
3742 (WRITE_HEADERS): Only output symbols if outsymbols is not NULL.
3743 * aoutx.h: Wrote new back end linker routines.
3744 (translate_to_native_sym_flags): Return boolean value. Don't use
3745 bfd_error_vector.
3746 (NAME(aout,write_syms)): Return boolean value. Check return value
3747 of translate_to_native_sym_flags and bfd_write.
3748 * aout-target.h (final_link_callback): New function.
3749 (MY_bfd_final_link): New function.
3750 * aout-adobe.c (aout_adobe_write_object_contents): Check return
3751 value of aout_32_write_syms.
3752 * hp300hpux.c (MY(write_object_contents)): Likewise.
3753 * i386lynx.c (WRITE_HEADERS): Likewise.
3754 * libaout.h (WRITE_HEADERS): Likewise.
3755 * bout.c: Changed functions to use link_info->callbacks rather
3756 than bfd_error_vector, and link_orders rather than seclets.
3757 * coff-alpha.c: Likewise.
3758 * coff-h8300.c: Likewise.
3759 * coff-h8500.c: Likewise.
3760 * coff-sh.c: Likewise.
3761 * coff-z8k.c: Likewise.
3762 * elf32-hppa.c: Likewise.
3763 * reloc16.c: Likewise.
3764 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Look
3765 up _gp in the hash table rather than in outsymbols.
3766 * coff-a29k.c (a29k_reloc): Pass errors back in new error_message
3767 argument rather than printing them.
3768 * coffcode.h (bfd_coff_reloc16_extra_cases): Take link_info and
3769 link_order arguments rather than seclet. Changed all uses and
3770 definitions.
3771 (bfd_coff_reloc16_estimate): Pass link_info arguments. Changed
3772 all uses and definitions.
3773 * libcoff.h: Rebuilt.
3774 * ecoff.c (ecoff_get_extr): If symbol is defined by linker, but
3775 not by ECOFF, make it scAbs.
3776 (ecoff_bfd_final_link): Renamed from ecoff_bfd_seclet_link and
3777 rewritten.
3778 * elf32-mips.c (mips_elf_final_link): Renamed from
3779 mips_elf_seclet_link and rewritten.
3780 * elf32-hppa.c (elf32_hppa_stub_description): Added link_info
3781 field.
3782 (new_stub, add_stub_by_name, hppa_elf_build_arg_reloc_stub,
3783 hppa_elf_build_long_branch_stub, hppa_look_for_stubs_in_section):
3784 Added link_info arguments. Changed all callers.
3785 * elfcode.h (elf_slurp_symbol_table): Don't quit if outsymbols is
3786 not NULL.
3787 * oasys.c (oasys_write_sections): Return boolean value rather than
3788 using bfd_error_vector.
3789 (oasys_write_object_contents): Check return value of
3790 oasys_write_sections.
3791 * hosts/std-host.h: Don't declare qsort or strtol.
3792 * Makefile.in: Rebuild dependencies.
3793 (BFD_LIBS): Removed seclet.o. Added hash.o and linker.o.
3794 (CFILES): Removed seclet.c. Added hash.c and linker.c.
3795 (HFILES): Removed seclet.h. Added genlink.h.
3796
1adbf662
PS
3797Thu Dec 30 07:41:36 1993 Peter Schauer ([email protected])
3798
3799 * section.c (bfd_get_section_contents): Return zero filled buffer
3800 if section has no contents.
3801
d1b44e83
ILT
3802Tue Dec 28 12:43:54 1993 Ian Lance Taylor ([email protected])
3803
3804 * elf.c (bfd_elf_generic_reloc): If this is not an inplace reloc,
3805 then skip bfd_perform_relocation even if the addend is non-zero.
3806
a2805287
KR
3807Tue Dec 21 09:22:19 1993 Ken Raeburn ([email protected])
3808
3809 * coffcode.h (coff_write_relocs) [SWAP_OUT_RELOC_OFFSET]: Copy
3810 addend to r_offset field.
3811
3812 * Makefile.in (CFILES): Added coff-sparc.c. Rebuild dependencies.
3813
3814 * coff-sparc.c (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET,
3815 CALC_ADDEND): Define.
3816
3817 * aix386-core.c (aix386_core_file_p): Use cd_regs[0] for computing
3818 the offsetof because AIX /bin/cc does not like to take the address
3819 of an array. (From Minh Tran-Le.)
3820
277b2d2b
JL
3821Thu Dec 16 13:06:32 1993 Jeffrey A. Law ([email protected])
3822
a2805287
KR
3823 * Thu Dec 16 15:41:06 1993 Peter Hoogenboom ([email protected])
3824
3825 * elf32-hppa.c (hppa_elf_build_arg_reloc_stub): Make sure to copy
3826 the return pointer into %r2 if no jump-in-call-delay-slot
3827 optimization was done.
3828
277b2d2b
JL
3829 * hosts/hp300bsd.h: Correctly identify 4.3BSD vs 4.4BSD.
3830
f8af9b40
DM
3831Wed Dec 15 08:04:16 1993 David J. Mackenzie ([email protected])
3832
3833 * hosts/std-host.h: (time): Don't declare; conflicts on Mach3.
3834
3835 * hosts/i386mach3.h (HOST_PAGE_SIZE): Set to 1 to avoid padding.
3836 (HOST_SEGMENT_SIZE): Set to 0 for same reason.
3837
3838 * i386mach3.c (PAGE_SIZE, SEGMENT_SIZE): Same changes as above.
3839 (TEXT_START_ADDR): Correct.
3840 (MY_backend_data): Define.
3841
3842 * aoutx.h (adjust_o_magic, adjust_z_magic, adjust_n_magic):
3843 New functions; code moved from aout_<size>_adjust_sizes_and_vmas.
3844
c97ae6e4
JL
3845Tue Dec 14 21:48:33 1993 Jeffrey A. Law ([email protected])
3846
3847 * som.c (som_begin_writing): Fix thinkos in auxiliary header
3848 support.
3849 (bfd_som_attach_aux_hdr): Likewise.
3850
a36b6f1d
JL
3851Mon Dec 13 23:34:48 1993 Jeffrey A. Law ([email protected])
3852
3853 * elf32-hppa.c (hppa_elf_gen_reloc_type): Handle 'T' field
3854 selectors for PIC code.
3855
3856 * som.c (hppa_som_gen_reloc_type): Handle 'T' field selectors.
3857 (som_write_fixups): Handle R_DLT_REL, R_FSEL, R_RSEL, R_LSEL
3858 relocations needed by PIC.
3859
9e6f2498
SG
3860Tue Dec 7 15:47:51 1993 Stu Grossman (grossman at cygnus.com)
3861
3862 * nlmcode.h: Fixes to avoid compiler warnings...
3863
900e6d96
ILT
3864Tue Dec 7 15:10:54 1993 Ian Lance Taylor ([email protected])
3865
3866 * libnlm.h (nlm_backend_data): Removed macro definition.
3867 (nlm_alpha_backend_data): Adjusted accordingly.
3868
017a52d7
JL
3869Sun Dec 5 19:32:08 1993 Jeffrey A. Law ([email protected])
3870
f6c2300b
JL
3871 * som.c (som_begin_writing): Flesh out code for handling simple
3872 auxiliary headers.
3873 (bfd_som_attach_aux_hdr): New function.
3874
3875 * som.h (struct somdata): Add fields for attaching version and
3876 copyright headers. Add accessor macros.
3877
744069b8
JL
3878 * som.c (R_DLT_REL, R_AUX_UNWIND, R_SEC_STMT): Add protected
3879 definitions for old versions of HPUX which fail to define them.
3880 (som_hppa_howto_talbe): Add R_DLT_REL, R_AUX_UNWIND, and R_SEC_STMT
3881 now that they're safe. Delete bogus R_STATEMENT relocations.
3882
017a52d7
JL
3883 * som.c (som_hppa_howto_table): Add missing R_END_TRY. Delete
3884 extra R_DATA_OVERRIDE.
3885 (hppa_som_gen_reloc_type): Generate a relocation for the rounding
3886 mode selector if needed.
3887 (som_write_fixups): Handle requests for a change in the default
3888 rounding mode. Rounding modes do not consume input bytes, but
3889 are just markers much like R_ENTRY and R_EXIT.
3890
48eb5281
JL
3891Sat Dec 4 19:40:32 1993 Jeffrey A. Law ([email protected])
3892
3893 Fri Dec 3 09:55:17 1993 Pete Hoogenboom ([email protected])
3894
017a52d7
JL
3895 * elf32-hppa.c: (hppa_elf_reloc): Do not do code reordering when
3896 the branch instruction as originally been nullified.
3897 hppa_elf_reloc): Avoid useless call to bfd_put_32 () in the
3898 case of no code reordering due to an LDO instruction in the
3899 delay slot of the branch. Make sure to relocate the correct
3900 instruction. Do not perform instruction reordering for millicode
3901 calls.
3902 (hppa_elf_build_arg_reloc_stub): Change the relocation type
3903 to R_HPPA_STUB_CALL_17 when special processing might be needed.
3904 (hppa_elf_build_long_branch_stub): Prevent code reordering on
3905 a call from a linker stub to another linker stub and for millicode
3906 calls. Do not trash the return register for calls from one linker
3907 stub to a second linker stub.
3908
4861ac76
JL
3909 * elf32-hppa.c: (elf_hppa_howto_table): PLABEL and DLT
3910 relocations are not pc-relative.
3911
48eb5281
JL
3912 * hppa_stubs.h: (BLE_N_XXX_0_31): New instruction used in
3913 linker stub code.
3914 (COPY_2_31): Likewise.
3915
ecb2d887
ILT
3916Fri Dec 3 18:40:58 1993 Ian Lance Taylor ([email protected])
3917
3918 * config/solaris2.mh (HDEFINES): Remove -Dconst=
3919 * hosts/solaris.h: If not __GNUC__, define const as empty.
3920
800748cd
ILT
3921Thu Dec 2 15:43:32 1993 Ian Lance Taylor ([email protected])
3922
4919d3ab
ILT
3923 * ecoff.c: Added various casts for 32/64 bit cross targeting.
3924 (ecoff_mkobject_hook): Set SEC_SHARED_LIBRARY for the .reginfo
3925 section so that the linker ignores it.
3926 * ecofflink.c: Added various casts for 32/64 bit cross targeting.
3927 (ecoff_add_bytes): Changed need argument to size_t.
3928 (bfd_ecoff_debug_link_other): Check return value of
3929 ecoff_add_string.
3930
3931 * libbfd-in.h (new_bfd): Use void rather than an empty parameter
3932 list.
3933 * libbfd.h: Rebuilt.
3934
800748cd
ILT
3935 * libnlm.h (struct nlm_obj_tdata): New field backend_data.
3936 (nlm_backend_data, nlm_alpha_backend_data): New accessor macros.
3937 (struct nlm_backend_data): New field no_uninitialized_data.
3938 (nlm_no_uninitialized_data): New accessor macro.
3939 * nlmcode.h (nlm_compute_section_file_positions): Handle
3940 no_uninitialized_data.
3941 (nlm_external_reloc_compare): Sort relocs by address for a
3942 particular symbol, to make the sort more stable.
3943 (nlm_write_object_contents): Cast the arguments to qsort. Get the
3944 value of a debugging symbol the same way we get the value of a
3945 normal symbol.
3946 * nlm32-alpha.c: Various changes. Write out GP and .lita relocs.
3947 Set no_uninitialized_data to true.
3948 * nlm32-i386.c (nlm32_i386_backend), nlm32-sparc.c
3949 (nlm32_sparc_backend): Set no_uninitialized_data field false.
3950 * nlmswap.h (nlm_swap_fixed_header_out): Zero out destination
3951 before filling it in.
3952
a7f6a456
JL
3953Wed Dec 1 21:47:58 1993 Jeffrey A. Law ([email protected])
3954
3955 * som.c (som_section_type, som_decode_symcalss): New functions.
3956 (som_get_symbol_info): Use them.
3957 (som_slurp_symbol_table): Set the section of common and undefined
3958 symbols correctly.
3959
848ace96
KR
3960Wed Dec 1 14:15:10 1993 Ken Raeburn ([email protected])
3961
3962 * elfcode.h (write_relocs): Initialize local var LAST_SYM_IDX, to
3963 make gcc happy.
3964
3965 * mipsbsd.c: Changes from Ralph Campbell:
3966 (mips_howto_table_ext): MIPS_RELOC_LO16 should use
3967 complain_overflow_dont.
3968 (aout_mips_*_vec): Make name use "a.out" instead of "aout", to
3969 make gdb happy.
3970
3971 * bfd.c (bfd_errmsgs): Reword invalid-target message.
3972
3973 * config.bfd: For sparc*-*-coff, use sparc-coff.
3974 * configure.in: Handle sparccoff_vec.
3975 * targets.c (sparccoff_vec): Declare.
3976
3977 * reloc.c (bfd_get_reloc_size): New function.
3978 (struct reloc_howto_type): Update documentation of size field.
3979
2f555d79
ILT
3980Wed Dec 1 14:39:05 1993 Ian Lance Taylor ([email protected])
3981
68eaffda
ILT
3982 * nlm32-alpha.c: New file; preliminary Alpha NetWare support.
3983 * config.bfd (alpha-*-netware*): New target; use alpha-nlm.
3984 * config/alpha-nlm.mt: New file.
3985 * configure.in (nlm32_alpha_vec): New vector; use nlm32-alpha.o,
3986 nlm32.o, and nlm.o.
3987 * Makefile.in (BFD32_BACKENDS): Added nlm32-alpha.o.
3988 (CFILES): Added nlm32-alpha.c.
3989 Rebuilt dependencies.
3990 * targets.c (nlm32_alpha_vec): Declare.
3991
3992 * libnlm.h (struct nlm_backend_data): New fields
3993 optional_prefix_size, nlm_backend_object_p, nlm_write_prefix,
3994 nlm_set_public_section, nlm_get_public_offset. Removed unused
3995 nlm_write_reloc field. Changed nlm_write_import to remove
3996 unnecessary symbol argument. Renamed nlm_write_externals to
3997 nlm_write_external, and changed cound argument from bfd_vma to
3998 bfd_size_type.
3999 (nlm_optional_prefix_size, nlm_backend_object_p_func,
4000 nlm_write_prefix_func, nlm_set_public_section_func,
4001 nlm_get_public_offset_func): New accessor macros.
4002 (nlm_write_reloc_func): Removed.
4003 (nlm_write_external_func): Adjusted for field renaming.
4004 * nlm32-i386.c (nlm_i386_write_import): Renamed from
4005 nlm_i386_write_reloc. Removed old nlm_i386_write_import which
4006 just called old nlm_i386_write_reloc.
4007 (nlm_i386_write_external): Renamed from nlm_i386_write_externals.
4008 Declared. Changed second argument from bfd_vma to bfd_size_type.
4009 (nlm32_i386_backend): Adjusted for changes to fields and names.
4010 * nlm32-sparc.c (nlm_sparc_mangle_relocs): Removed unused,
4011 ifdeffed out code.
4012 (nlm_sparc_write_import): Removed second argument.
4013 (nlm_sparc_write_external): Renamed from
4014 nlm_sparc_write_externals. Changed second argument from bfd_vma
4015 to bfd_size_type.
4016 (nlm32_sparc_backend): Adjusted for changes to fields and names.
4017 * nlmcode.h: Removed some unused code.
4018 (nlm_object_p): Don't destroy tdata pointer. Call
4019 backend_object_p function if it exists.
4020 (nlm_slurp_symbol_table): Removed unused variable rcount. Call
4021 set_public_section_func if it exists instead of checking
4022 NLM_HIBIT.
4023 (nlm_compute_section_file_positions): Account for
4024 optional_prefix_size.
4025 (nlm_write_object_contents): Account for optional_prefix_size.
4026 Removed useless variable write_reloc_func. Changed declaration
4027 and call of write_import_func. Call write_prefix_func if it
4028 exists. Removed unused variables len and temp. Call
4029 get_public_offset_func if it exists rather than setting NLM_HIBIT.
4030 * nlmswap.h: Declare functions.
4031
2f555d79
ILT
4032 * bfd-in.h (uint64_typeLOW, uint64_typeHIGH): Fully parenthesize
4033 for clarity.
4034 (fprintf_vma, sprintf_vma): Use %lx, not %x.
4035 * bfd-in2.h: Rebuilt.
4036 * hosts/alphaosf.h (uint64_typeLOW, uint64_typeHIGH): Cast results
4037 to unsigned long.
4038
4039 * config.bfd: Don't set target64 here, as the setting is ignored.
4040 * configure.in (ecoffalpha_little_vec): Set target64.
4041
4042 * config/alphaosf.mt (TDEFINES): Removed; setting host parameters
4043 in TDEFINES is wrong.
4044
4045 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
4046 Remove unused variable output_section.
4047
7cd39d69
ILT
4048Tue Nov 30 16:45:23 1993 Ian Lance Taylor ([email protected])
4049
4050 * irix-core.c: New file for Irix 4 and Irix 5 core support.
4051 Functions taken out of coff-mips.c. Handle vmap type VMAPFILE.
4052 * coff-mips.c: Irix 4 core file support moved to irix-core.c.
4053 * targets.c: If IRIX_CORE defined, include irix_core_vec in
4054 target_vector.
4055 * config/irix4.mh (HDEFINES): Add -DIRIX_CORE.
4056 (HDEPFILES): Define to be irix-core.o.
4057 * config/irix5.mh (HDEFINES): Define to be -DIRIX_CORE.
4058 (HDEPFILES): Define to be irix-core.o.
4059 * Makefile.in (OPTIONAL_BACKENDS): Added irix-core.o. Removed
4060 sco-core.o, which no longer exists.
4061 (CFILES): Added all *-core.c files.
4062 Rebuilt dependencies.
4063
8d12f138
ILT
4064Wed Nov 24 02:02:41 1993 Ian Lance Taylor ([email protected])
4065
6c35a16d
ILT
4066 * elfcode.h (map_program_segments): Restore check of file_size !=
4067 mem_size, but only if SHT_PROGBITS.
4068
8d12f138
ILT
4069 * ecofflink.c: New file to hold ECOFF debug information linking
4070 routines.
4071 * ecoff.c (ecoff_clear_output_flags, ecoff_rel, ecoff_dump_seclet,
4072 ecoff_add_string, ecoff_get_debug): Removed. Functionality now in
4073 ecofflink.c.
4074 (ecoff_get_extr, ecoff_set_index): New functions.
4075 (ecoff_slurp_symbolic_info): Don't save raw_size.
4076 (ecoff_bfd_seclet_link): Rewrote to use ecofflink.c functions.
4077 (ecoff_compute_section_file_positions): Don't set EXEC_P just
4078 because there is a start address.
4079 (ecoff_write_object_contents): Handle external symbols here. Use
4080 ecofflink.c functions to write out debugging information.
4081 * elf32-mips.c (mips_elf_read_ecoff_info, mips_elf_get_extr,
4082 mips_elf_set_index): New functions.
4083 (mips_elf_seclet_link): Discard empty sections, the .options
4084 section and .gptab sections. Handle linking .mdebug section.
4085 * libecoff.h (ecoff_data_type): Removed raw_size and ifdbase.
4086 * libelf.h (elf_symbol_type): Added mips_extr to tc_data union.
4087 * bfd-in.h: Added prototypes for routines in ecofflink.c (some are
4088 called by gas, so they are public).
4089 * bfd-in2.h: Rebuilt.
4090 * Makefile.in (BFD_LIBS): Added ecofflink.o.
4091 (CFILES): Added ecofflink.c.
4092 (ecofflink.o): New target. Rebuilt dependencies.
4093
abb324b2
JL
4094Mon Nov 22 22:26:42 1993 Jeffrey A. Law ([email protected])
4095
4096 * som.c (hppa_object_p): Also recognize SHARED_MAGIC_CNX as
4097 a valid magic number if it's been defined.
4098
8f45f604
ILT
4099Mon Nov 22 14:17:36 1993 Ian Lance Taylor ([email protected])
4100
4101 * ecoff.c (ecoff_mkobject): Don't create .scommon section; linker
4102 no longer requires it.
4103 (ecoff_bfd_seclet_link, ecoff_sizeof_headers,
4104 ecoff_write_object_contents): Don't treat .scommon section
4105 specially.
4106
c236d8b3
FF
4107Mon Nov 22 10:54:27 1993 Fred Fish ([email protected])
4108
4109 Merged changes from [email protected] (Kevin A. Buettner):
4110 * bfd/config/delta88.mh (HDEFINES): Define this to be -DPTRACE_CORE.
4111 * bfd/config/delta88.mh (HDEPFILES): Defined to be ptrace-core.o.
4112 * bfd/ptrace-core.c: New file for dealing with core files with
4113 start with the ptrace_user structure found on BCS compliant systems.
4114 * bfd/targets.c (ptrace_core_vec): New vector.
4115
36456a67
JL
4116Mon Nov 22 02:33:12 1993 Jeffrey A. Law ([email protected])
4117
4118 * Minimal support for reading SOM fixup streams. Allows
4119 objdump -r to do something reasonable.
4120 * som.c (som_get_reloc_upper_bound): Implement.
4121 (som_canonicalize_reloc): Implement.
4122 (som_set_reloc_info, som_slurp_reloc_table): New functions.
4123
8d12f138
ILT
4124Sun Nov 21 13:46:55 1993 Ken Raeburn ([email protected])
4125
4126 * hosts/lynx.h (FPRINTF_ALREADY_DECLARED): Define.
4127 * hosts/sparclynx.h: Include lynx.h instead of duplicating it.
4128
a1bff336
ILT
4129Fri Nov 19 14:34:04 1993 Ian Lance Taylor ([email protected])
4130
533af031
ILT
4131 * coff-a29k.c (a29k_reloc): For R_IREL, don't left shift
4132 signed_value before sign extending it. Don't subtract out
4133 reloc_entry->address. This makes it compatible with what gas is
4134 generating.
4135
a1bff336
ILT
4136 * elfcode.h (elf_fake_sections): Accept .sbss as the name for a
4137 SHT_NOBITS sections.
4138 (map_program_segments): Don't leave the loop after the first
4139 SHT_NOBITS section.
4140 (assign_file_positions_except_relocs): Only force sh_offset and
4141 sh_addr to match modulo maxpagesize for a section which is not
4142 SHT_NOBITS. Changed the method used to force page alignment after
4143 a SHT_NOBITS section to only do it for the last such consecutive
4144 section, and to really force page alignment.
4145
96be1f52
KR
4146Fri Nov 19 04:02:01 1993 Ken Raeburn ([email protected])
4147
4c01d9b5
KR
4148 * coffcode.h (coff_slurp_symbol_table): Print more verbose message
4149 in the case of an unknown (or unhandled) storage class.
4150
96be1f52
KR
4151 * config/i386-lynx.mt (TDEFINES): FPRINTF_ALREADY_DECLARED should
4152 not be defined here, since it is a host attribute, not a target
4153 one.
4154 * config/m68k-lynx.mt, config/sparc-lynx.mt: Ditto.
4155
4156 * coffcode.h (coff_bfd_reloc_type_lookup): Don't define if already
4157 defined.
4158
4159 * coff-sparc.c: Define some relocations, based on ELF relocations.
4160 (enum reloc_type, bfd_coff_generic_reloc, coff_sparc_howto_table,
4161 struct coff_reloc_map, sparc_reloc_map,
4162 coff_sparc_reloc_type_lookup): Borrowed from elf32-sparc.c and
4163 elf.c, renamed.
4164 (coff_bfd_reloc_type_lookup): Define to be coff_sparc_reloc_....
4165 (rtype2howto): Index into coff_sparc_howto_table using
4166 dst->r_type.
4167
f8944f84
ILT
4168Thu Nov 18 11:45:39 1993 Ian Lance Taylor ([email protected])
4169
4170 * config.bfd (mips*-*-irix5*): New target; use mipsbelf.
4171 * configure.host (mips-sgi-irix5*) New host; use irix5 (no
4172 hosts/irix5.h created; just use std-host.h).
4173 * config/irix5.mh: New file; like irix4.mh, but don't use -G or
4174 -lmalloc.
4175 * Makefile.in: Rebuilt dependencies.
4176
4177 * ecoffswap.h: Changed type of internal pointers for swap out
4178 functions to const *.
4179
4180 * elf32-mips.c (mips_elf_got16_reloc): New function. Handle GOT16
4181 correctly for assembler, but linker support not implemented.
4182 (elf_mips_howto_table): Use mips_elf_got16_reloc for GOT16.
4183 (mips_elf_sym_is_global): New function; at least on Irix 5, all
4184 non section symbols are considered global.
4185 (elf_backend_sym_is_global): Define.
4186 (mips_elf_final_write_processing): New function. Set the MIPS
4187 architecture level correctly.
4188 (elf_backend_final_write_processing): Define.
4189 (mips_elf_section_from_shdr): Handle SHT_MIPS_OPTIONS.
4190 (mips_elf_fake_sections): Set entsize of .mdebug or .reginfo
4191 section to 1. Handle .options section.
4192 (mips_elf_acom_section, mips_elf_acom_symbol,
4193 mips_elf_acom_symbol_ptr): New static variables, used to build a
4194 generic .acommon section to hold SHN_MIPS_ACOMMON symbols.
4195 (mips_elf_symbol_processing): Handle SHN_MIPS_ACOMMON symbols by
4196 putting them all in a global .acommon section.
4197
4198 * elfcode.h (bfd_section_from_shdr): Don't dump core if target
4199 section has no ELF section data.
4200 (elf_make_sections): Set addralign of reloc section to 4.
4201 (elf_fake_sections): Likewise.
4202 (map_program_segments): Don't consider section 0.
4203 (assign_file_positions_except_relocs): Don't consider section 0.
4204 In the main loop, skip the symtab and strtab sections, since their
4205 positions are set elsewhere.
4206 (swap_out_syms): Set addralign of symtab section to 4. Set
4207 addralign of strtab sections to 1.
4208 (assign_file_positions_for_relocs): Don't consider section 0.
4209 (write_object_contents): Don't write out section 0.
4210
4211 * libelf.h (struct elf_backend_data): Added fields
4212 elf_backend_sym_is_global and elf_backend_final_write_processing.
4213 * elf32-target.h (elf32_bed): Added corresponding initializers.
4214 * elf64-target.h (elf64_bed): Likewise.
4215 * elfcode.h (sym_is_global): Take abfd argument. Call
4216 elf_backend_sym_is_global if it is not NULL.
4217 (elf_map_symbols): Pass abfd to sym_is_global.
4218 (write_object_contents): Call elf_backend_final_write_processing
4219 if it is defined.
4220
c9668c58
ILT
4221Wed Nov 17 18:43:28 1993 Ian Lance Taylor ([email protected])
4222
4223 * libecoff.h: Include coff/ecoff.h.
4224 (struct ecoff_backend_data): Move external debugging information
4225 fields into a single field pointing to an ecoff_debug_swap
4226 structure.
4227 (ecoff_data_type): Move debugging information fields into a single
4228 field pointing to an ecoff_debug_info structure.
4229 * coff-alpha.c, coff-mips.c, ecoff.c: Corresponding changes.
4230
2f555d79
ILT
4231Wed Nov 17 17:38:58 1993 Sean Eric Fagan ([email protected])
4232
4233 * nlmswap.h: New file to swap fixed header. Included by NLM
4234 backends.
4235 * libnlm.h (struct reloc_and_sec): Define.
4236 (struct nlm_backend_data): Add fields fixed_header_size,
4237 nlm_read_import, nlm_write_import, nlm_swap_fhdr_in,
4238 nlm_swap_fhdr_out.
4239 (nlm_fixed_header_size, nlm_read_import_func,
4240 nlm_write_import_func, nlm_swap_fixed_header_in_func,
4241 nlm_swap_fixed_header_out_func, nlm_write_external_func): New
4242 accessor macros.
4243 * nlmcode.h: Use new functions.
4244 * nlm32-i386.c: Provide new functions.
4245 * nlm32-sparc.c: New file; SPARC NLM backend.
4246
55ff7aef
SS
4247Wed Nov 17 13:56:10 1993 Stan Shebs ([email protected])
4248
4249 * i386lynx.c (swap_std_reloc_in, swap_ext_reloc_in): Ignore
4250 garbage bits appearing in the upper end of symbolnums.
4251
4252 * config/sparc-lynx.mt (TDEFINES): Add -DFPRINTF_ALREADY_DECLARED.
4253
343c1a96
SG
4254Tue Nov 16 17:03:41 1993 Stu Grossman (grossman at cygnus.com)
4255
4256 * lynx-core.c (lynx_core_file_p): Change bfd_zalloc to bfd_alloc.
4257 * m68klynx.c: Define core file macros.
4258 * hosts/i386lynx.h, hosts/m68klynx.h, hosts/lynx.h: Move all
4259 non-architecture specific stuff into lynx.h.
4260
794057a7
JK
4261Tue Nov 16 15:45:54 1993 Jim Kingdon ([email protected])
4262
4263 * i386linux.c: Define new macro ZMAGIC_DISK_BLOCK_SIZE to 1024, and
4264 change PAGE_SIZE to 4096.
4265
4266Mon Nov 15 11:48:08 1993 Ken Raeburn ([email protected])
4267
4268 * Makefile.in (diststuff): New target.
4269
4270 * VERSION: Updated.
4271
09796011
JL
4272Sun Nov 14 23:33:01 1993 Jeffrey A. Law ([email protected])
4273
3be54498
JL
4274 * som.c (som_object_setup): Do not create dummy ".text", ".data",
4275 and ".bss" sections.
4276 (setup_sections): Do not set SEC_HAS_CONTENTS if a section's size
4277 is zero. Recognize BSS type sections and turn off SEC_LOAD and
4278 SEC_DATA (so binutils/size works). Set the correct value for
4279 a section's _raw_size.
4280 (som_slurp_symbol_table): Program entry points, and millicode are
4281 also functions. Mark them as such. Also mark L$* symbols as
4282 debugging symbols.
4283
09796011
JL
4284 * bfd-in2.h: Rebuilt.
4285
aff97790
JL
4286Sat Nov 13 15:27:15 1993 Jeffrey A. Law ([email protected])
4287
91c0bcbb
JL
4288 * som.c (som_bfd_reloc_type_lookup): Add missing prototype. Returns
4289 a pointer to constant data. Delete bogus #define which made the
4290 function useless.
4291
aff97790 4292 * som.c (som_prep_for_fixups): New function.
9d0dea6f 4293 (som_write_fixups): New function.
0b35f7ec 4294 (som_write_space_strings): New function.
6eb64408
JL
4295 (som_write_symbol_strings): New function.
4296 (som_begin_writing): New function.
aff97790 4297
40249bfb
JL
4298Fri Nov 12 15:29:36 1993 Jeffrey A. Law ([email protected])
4299
980bac64
JL
4300 * som.c (som_write_object_contents): Do not abort. Flesh out.
4301 (som_set_section_contents): Do not abort. Flesh out.
4302
efc0df7c
JL
4303 * som.c (som_write_headers): New function.
4304 (som_prep_headers): New function.
713de7ec 4305 (som_build_and_write_symbol_table): New function.
7057b78f 4306
2212ff92
JL
4307 * som.c (som_sizeof_headers): Add missing prototype.
4308 (som_set_arch_mach): Do not abort.
4309
5532fc5a
JL
4310 * som.c (som_count_spaces): New function.
4311 (som_count_subspaces): New function.
4312 (compare_syms): New function.
4313 (som_compute_checksum): New function.
4314
32619c58
JL
4315 * som.c (hppa_som_gen_reloc_type): New function.
4316 (som_bfd_reloc_type_lookup): New function.
4317
54bbfd37
JL
4318 * som.c (try_prev_fixup): New function.
4319 (som_reloc_skip): New function.
4320 (som_reloc_addend): New function.
efc0df7c 4321 (som_reloc_call): New function.
54bbfd37 4322
d125665c
JL
4323 * som.c (som_initialize_reloc_queue): New function.
4324 (som_reloc_queue_insert): Likewise.
4325 (som_reloc_queue_fix): Likewise.
4326 (som_reloc_queue_find): Likewise.
4327
fcb0c846
JL
4328 * som.c (som_hppa_howto_table): SOM howto relocation table.
4329 (hppa_som_reloc): New function.
4330
4fdb66cd
JL
4331 * som.c (struct reloc_queue): New structure to keep track of
4332 the last four multibyte relocations emitted.
4333 (enum pa_symbol_type): Type to fully describe the symbol types
4334 associated with .import/.export assembler directives.
4335
70f1d738
JL
4336 * som.c: Include libhppa.h
4337
40249bfb
JL
4338 * som.c (bfd_som_set_section_attributes): New function.
4339 (bfd_som_set_subsection_attributes): Likewise.
4340 (bfd_som_set_symboL_type): Likewise.
4341 (bfd_som_attach_unwind_info): Likewise.
4342 * som.h: Declare new exported functions.
4343
4344 * som.h (struct som_symbol): Add new fields to hold additional
4345 information needed to build/write symbol tables and fixup streams.
4346 (struct som_section_data_struct): Add new fields to hold additional
4347 information needed to build/write space and subspace headers.
4348 (som_symbol_data): New accessor macro for SOM symbol information.
4349 (R_HPPA_*): Basic relocation types to be used by the assembler.
4350
115f7430
JK
4351Fri Nov 12 11:00:28 1993 Jim Kingdon ([email protected])
4352
4353 * trad-core.c (trad_unix_core_file_p): If new hook
4354 TRAD_CORE_ALLOW_ANY_EXTRA_SIZE defined, then skip the check for the
4355 corefile being too big.
4356 * hosts/i386sco.h: Define it.
4357
3e80841e
JL
4358Thu Nov 11 15:16:28 1993 Jeffrey A. Law ([email protected])
4359
8a71bf96
JL
4360 * bfd.c (struct _bfd): Add hppabsd_core_data.
4361 * targets.c (target_vector): Add hppabsd_core_vec.
4362 * hpux-core.c (hpux_core_core_file_p): Fail if an unknown core
4363 section is encountered during core section scanning.
4364 * hppabsd-core.c: New file.
4365 * config/hppabsd.mh: Enable HPPA BSD core files.
4366
3e80841e
JL
4367 * elf32-hppa.c (hppa_elf_reloc): Remove DEFUN crud. Remove code
4368 which is either commented out or ifdef'd out. Add, update and
4369 clean comments. Fix various indention and spacing problems. Handle
4370 problems related to using "ble" to jump to a stub rather than "bl"
4371 (%r31 is trashed by "ble", but not by "bl").
4372 (NEW_INSTRUCTION): Put inside curly braces.
4373 (CURRENT_STUB_OFFSET): Fix indention problems.
4374 (hppa_elf_build_arg_reloc_stub): Fix indention and spacing problems.
4375 Add, update and clean comments. Handle "ble" %r31 lossage problems.
4376 (hppa_elf_build_long_branch_stub): Likewise.
4377 (hppa_look_for_stubs_in_section): Likewise.
4378 (hppa_elf_stub_check): Remove obsolete function.
4379
4380 * hppa_stubs.h: Add new instructions to deal with %r31 lossage
4381 problems. Delete unused instructions.
4382
0f5bc783
SS
4383Tue Nov 9 11:40:27 1993 Stan Shebs ([email protected])
4384
4385 * m68klynx.c (TARGET_IS_BIG_ENDIAN_P): Define.
4386
95469b02
ILT
4387Tue Nov 9 11:26:05 1993 Ian Lance Taylor ([email protected])
4388
346f0414
ILT
4389 * elfcode.h (elf_object_p): Rather than looking through an array
4390 of architectures, get the ELF EM_xxx code from the backend
4391 information. Let the generic ELF target match any EM_xxx code not
4392 matched by another ELF target. Call elf_backend_object_p to let
4393 the backend do more checks and set global information.
4394 * libelf.h (struct elf_backend_data): Added elf_machine_code and
4395 elf_backend_object_p fields.
4396 (struct bfd_elf_arch_map): Removed.
4397 (bfd_elf_arch_map, bfd_elf_arch_map_size): Don't declare.
4398 * elf32-target.h, elf64-target.h: Initialize elf_machine_code
4399 field with ELF_MACHINE_CODE. Initialize elf_backend_object_p
4400 field with elf_backend_object_p (if it is defined).
4401 * elf32-gen.c, elf32-hppa.c, elf32-i386.c, elf32-i860.c,
4402 elf32-m68k.c, elf32-m88k.c, elf32-mips.c, elf32-sparc.c,
4403 elf64-gen.c (ELF_MACHINE_CODE): Defined.
4404 * elf32-mips.c: Include ecoffswap.h to get ECOFF swapping
4405 routines.
4406 (mips_elf_object_p): Set the right machine number.
4407 (mips_elf_ecoff_debug_swap): Defined.
4408 (elf_backend_object_p): Defined to be mips_elf_object_p.
4409 (elf_backend_ecoff_debug_swap): Defined to be
4410 mips_elf_ecoff_debug_swap.
4411 * elf.c (bfd_elf_arch_map, bfd_elf_arch_map_size): Removed.
4412
4413 * libbfd-in.h (target_vector, default_vector): Declare.
4414 * libbfd.h: Rebuilt.
4415 * format.c (target_vector, default_vector): Don't declare.
4416
4417 * elf32-mips.c (elf_mips_howto_table): Don't complain on overflow
4418 for R_MIPS_26. Correct overflow detection requires matching the
4419 upper four bits of the destination against the PC. From Ted Lemon
4420 <[email protected]>.
4421
4422 * bout.c (b_out_reloc_type_lookup): Return type should point to
4423 const data.
4424 * coff-i960.c (coff_i960_reloc_type_lookup): Likewise.
4425 * elf32-hppa.c (elf_hppa_reloc_type_lookup): Likewise.
4426 * mipsbsd.c (MY(reloc_howto_type_lookup)): Likewise.
4427 * coff-i386.c (coff_i386_reloc): Made howto const.
4428 * oasys.c (oasys_write_data): Made how const.
4429
95469b02
ILT
4430 * libelf.h: Added some comments.
4431 (struct elf_backend_data): Added elf_backend_ecoff_debug_swap
4432 field. Removed unused write_relocs field.
4433 * elf32-target.h: Adjusted elf_backend_data initialization
4434 accordingly.
4435 * elf64-target.h: Corrected elf_backend_data initialization to
4436 fill in all fields and to set elf_64_p to 1.
4437
e2756048
ILT
4438Mon Nov 8 18:13:14 1993 Ian Lance Taylor ([email protected])
4439
7b8106b4
ILT
4440 * elfcode.h (bfd_section_from_shdr): Remove duplicate assignment
4441 to filepos in SHT_STRTAB case.
4442 (assign_file_position_for_section): Set BFD section filepos as
4443 well as ELF section sh_offset.
4444
e2756048
ILT
4445 * reloc.c: Use const instead of CONST.
4446 (bfd_perform_relocation): Make variable howto a const pointer.
4447 * bfd-in2.h, libbfd.h: Rebuilt.
4448
4449Mon Nov 8 12:19:15 1993 Jim Kingdon ([email protected])
4450
4451 * Makefile.in (realclean): Don't remove generated headers. Reverts
4452 change of 2 Jul 1993.
4453
007455de
DHW
4454Mon Nov 8 06:08:31 1993 D. V. Henkel-Wallace ([email protected])
4455
4456 * configure.bfd: make unixware equivalent to sysv4.
4457
4458 * config/i386-nlm.mt: bring in elf config; make it the default.
4459
1d3e8847
JL
4460Sun Nov 7 20:21:38 1993 Jeffrey A. Law ([email protected])
4461
4462 * libbfd.c (bfd_put_8): Add parens around reference to "val"
4463 argument.
4464
2ccb88c0
DM
4465Fri Nov 5 21:45:09 1993 David J. Mackenzie ([email protected])
4466
4467 * hosts/i386mach3.h (HOST_SEGMENT_SIZE),
4468 i386mach3.c (SEGMENT_SIZE, TEXT_START_ADDR): Correct values (?).
4469
0f396d2a
ILT
4470Fri Nov 5 15:17:57 1993 Ian Lance Taylor ([email protected])
4471
4472 * coffcode.h (coff_write_object_contents): Zero out internal_a.
4473
c188b0be
DM
4474Fri Nov 5 10:41:07 1993 David J. Mackenzie ([email protected])
4475
4476 * aoutx.h, archive.c, archures.c, bfd.c, cache.c, coffcode.h,
4477 core.c, ctor.c, format.c, init.c, libbfd.c, opncls.c, reloc.c,
4478 section.c, syms.c, targets.c:
4479 Doc cleanup (spelling, punctuation, grammar, formatting).
4480 * bfd-in2.h, libbfd.h: Rebuild.
c188b0be 4481
baf205c4
JG
4482Thu Nov 4 14:46:14 1993 John Gilmore ([email protected])
4483
4484 * bfd-in.h (bfd_get_cacheable, bfd_set_cacheable): New accessors.
4485 * bfd.c, opncls.c: Improve comments on file descriptor cacheing.
4486
fa8e8648
JL
4487Thu Nov 4 08:54:30 1993 Jeffrey A. Law ([email protected])
4488
4489 * From Pete Hoogenboom ([email protected])
4490 * elf32-hppa.c (hppa_elf_get_section_contents): Fix logic error
4491 in last change. Always rebuild symbol extension section the first
4492 time though if output sections exist (fixes ld -r problems).
4493
d5d53b0a
JW
4494Thu Nov 04 08:08:46 1993 Jeffrey Wheat ([email protected])
4495
4496 * Makefile.in: Add .PHONY for check and installcheck rules.
4497
4498Tue Nov 2 14:42:27 1993 Bill Cox ([email protected])
4499
4500 * libbfd-in.h (artdata): Use long, not time_t for portability, at
4501 least to HPUX. File below is a derived file.
4502
31eb3ead
BC
4503Tue Nov 2 14:42:27 1993 Bill Cox ([email protected])
4504
4505 * libbfd.h (artdata): Use long, not time_t for portability, at
4506 least to HPUX.
4507
242f60e2
JK
4508Tue Nov 2 09:32:25 1993 Jim Kingdon ([email protected])
4509
4510 * config.bfd: Use bigmips for mips*-*-bsd*.
4511
55d5b62d
ILT
4512Mon Nov 1 14:30:09 1993 Ian Lance Taylor ([email protected])
4513
f2e945df
ILT
4514 * elfcode.h (elf_slurp_reloca_table, elf_slurp_reloc_table):
4515 Handle symbol number of zero.
4516
7386c3b7
ILT
4517 * reloc.c (enum bfd_reloc_code_real): Added
4518 BFD_RELOC_MIPS_LITERAL, BFD_RELOC_MIPS_GOT16,
4519 BFD_RELOC_MIPS_CALL16, BFD_RELOC_MIPS_GPREL32.
4520 * bfd-in2.h: Rebuilt.
4521 * coff-mips.c (mips_bfd_reloc_type_lookup): Handle
4522 BFD_RELOC_MIPS_LITERAL.
4523 * elf32-mips.c (mips_reloc_map): Handle new relocs.
4524 (mips_elf_hi16_reloc, mips_elf_lo16_reloc): Rearrange _gp_disp
4525 checks slightly.
4526
55d5b62d
ILT
4527 * aout-target.h (MY_bfd_debug_info_start, MY_bfd_debug_info_end,
4528 MY_bfd_debug_info_accumulat [sic]): Remove unused definitions.
4529 (MY_bfd_get_relocated_section_contents, MY_bfd_relax_section,
4530 MY_bfd_seclet_link): Define.
4531 (MY_bfd_reloc_type_lookup): Rename from
4532 MY_reloc_howto_type_lookup.
4533 (MY_bfd_make_debug_symbol): Rename from MY_make_debug_symbol.
4534 (MY(vec)): Use JUMP_TABLE rather than listing functions.
4535 * hp300hpux.c (MY_get_symtab, MY_get_symtab_upper_bound,
4536 MY_canonicalize_reloc, MY_write_object_contents): Don't define in
4537 terms of MY, because that causes a recusive invocation of CAT when
4538 expanded within JUMP_TABLE, and ANSI compilers don't expand
4539 recursive macros.
4540 * mipsbsd.c (MY_bfd_reloc_type_lookup): Rename from
4541 MY_reloc_howto_type_lookup, and don't define in terms of MY.
4542 (MY_canonicalize_reloc): Don't define in terms of MY.
4543 (aout_mips_little_vec, aout_mips_big_vec): Use JUMP_TABLE rather
4544 than listing functions.
4545
6198b7a1
JK
4546Mon Nov 1 09:12:25 1993 Jim Kingdon ([email protected])
4547
4548 * config.bfd: Use m68k-elf for m68*-*-sysv4*.
4549
ceeca31c 4550See file ChangeLog.1
e6d739eb 4551
41126f15
JK
4552\f
4553Local Variables:
4554mode: indented-text
4555left-margin: 8
6ec3bb6a
ILT
4556fill-column: 74
4557version-control: never
4558End:
This page took 0.759597 seconds and 4 git commands to generate.