]> Git Repo - binutils.git/blame - bfd/ChangeLog
* linker.c (bfd_wrapped_link_hash_lookup): New function.
[binutils.git] / bfd / ChangeLog
CommitLineData
a10d3dec
ILT
1Tue Mar 12 12:41:17 1996 David Mosberger-Tang <[email protected]>
2
3 * coff-alpha.c (alpha_relocate_section): Use
4 info->callbacks_warning, rather than _bfd_error_handler, for
5 "multiple gp" warning.
6
ea2488ad
ILT
7Tue Mar 12 12:10:55 1996 Ian Lance Taylor <[email protected]>
8
8881b321
ILT
9 * linker.c (bfd_wrapped_link_hash_lookup): New function.
10 (_bfd_generic_link_add_one_symbol): Remove BFD_ASSERT on hash
11 table string. Use bfd_wrapped_link_hash_lookup.
12 (_bfd_generic_link_write_global_symbol): Remove BFD_ASSERT on hash
13 table string.
14 * aoutx.h (aout_link_write_symbols): Use the name from the hash
15 table, if any, when writing out symbols.
16 (aout_link_input_section_std): Use the name from the hash table,
17 if any, when reporting undefined symbols.
18 (aout_link_input_section_ext): Likewise.
19 (aout_link_reloc_link_order): Use bfd_wrapped_link_hash_lookup.
20 * bout.c (get_value): Likewise.
21 * cofflink.c (_bfd_coff_reloc_link_order): Likewise.
22 * ecoff.c (ecoff_reloc_link_order): Likewise.
23 * elflink.h (elf_link_add_object_symbols): Likewise.
24 (elf_reloc_link_order): Likewise.
25 * linker.c (_bfd_generic_link_output_symbols): Likewise.
26 (_bfd_generic_reloc_link_order): Likewise.
27 (default_indirect_link_order): Likewise.
28 * reloc16.c (bfd_coff_reloc16_get_value): Likewise.
29 * sunos.c (sunos_add_one_symbol): Likewise.
30 * xcofflink.c (xcoff_link_add_symbols): Likewise.
31 (bfd_xcoff_link_count_reloc): Likewise.
32 (xcoff_reloc_link_order): Likewise.
33
34 * ecoffswap.h (ecoff_swap_fdr_in): If ECOFF_64, turn 0xffffffff
35 into -1 for intern->rss.
36
ea2488ad
ILT
37 * configure: Rebuild with autoconf 2.8.
38
c189fdfb
ILT
39Mon Mar 11 12:28:31 1996 Ian Lance Taylor <[email protected]>
40
41 * stab-syms.c (__define_stab_duplicate): Define.
42 (bfd_get_stab_name): Rename from aout_stab_name. Rewrite to use a
43 switch.
44 * bfd-in.h (bfd_get_stab_name): Declare.
45 * bfd-in2.h: Rebuild.
46 * Makefile.in: Rebuild dependencies.
47 (BFD_LIBS): Add stab-syms.o.
48 (BFD_LIBS_CFILES): Add stab-syms.c.
49 (BFD32_BACKENDS): Remove stab-syms.o.
50 (BFD32_BACKENDS_CFILES): Remove stab-syms.c.
51 * configure.in: Don't list stab-syms.o in bfd_backends.
52 * configure: Rebuild.
53 * libaout.h (aout_stab_name): Don't declare.
54 * aoutx.h (NAME(aout,get_symbol_info)): Call bfd_get_stab_name,
55 not aout_stab_name.
56
57Fri Mar 8 11:26:20 1996 Ian Lance Taylor <[email protected]>
58
59 * elf.c (assign_file_positions_for_segments): Adjust file offset
60 for section alignment even if SEC_LOAD is not set.
61
c5bde1ef
ILT
62Tue Mar 5 12:02:23 1996 Ian Lance Taylor <[email protected]>
63
8f218e05
ILT
64 * configure.in: Don't set SHLIB or SHLINK to an empty string,
65 since they appear as targets in Makefile.in.
66 * configure: Rebuild.
67
c5bde1ef
ILT
68 * sunos.c (sunos_scan_ext_relocs): If not making a shared library,
69 don't fiddle with a symbol which is not defined anywhere.
70
cb84f028
ILT
71Mon Mar 4 12:49:16 1996 Ian Lance Taylor <[email protected]>
72
4e59f523
ILT
73 * xcofflink.c (xcoff_mark): Treat undefined imported symbols as
74 though they are defined in a shared library.
75 (xcoff_build_ldsyms): Likewise.
76
ea2504d5
ILT
77 * coffgen.c (coff_find_nearest_line): Don't look at the line
78 numbers for the section if section->lineno is NULL.
79
cb84f028
ILT
80 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Print a useful error
81 message rather than calling BFD_ASSERT.
82 * elfcode.h (write_relocs): Check return value of
83 _bfd_elf_symbol_from_bfd_symbol.
84
6e036cf7
MM
85Fri Mar 1 09:42:59 1996 Michael Meissner <[email protected]>
86
87 * elf32-ppc.c (ppc_elf_add_symbol_hook): Don't set SEC_LOAD flag
88 for .sbss section.
89
d08435de
JL
90Wed Feb 28 11:25:47 1996 Jeffrey A Law ([email protected])
91
92 * libhppa.h (hppa_reloc_field_selector_type): Add R_HPPA_NLSEL
93 and R_HPPA_NLRSEL.
94 (e_nsel, e_nlsel, e_nlrsel): Undefine. Add to
95 hppa_reloc_field_selector_type_alt.
96 (hppa_field_adjust): Handle e_nlsel, e_nlrsel. Fix e_nsel handling.
97 * som.c (hppa_som_gen_reloc_type): Handle N', NL' NLR' field
98 selectors.
99 (som_write_fixups): Finish handling of R_N0SEL and R_N1SEL.
100
09609415
ILT
101Wed Feb 28 11:00:24 1996 Ian Lance Taylor <[email protected]>
102
103 * elf.c (assign_file_positions_for_segments): Adjust the segment
104 memory size for the alignment of a SEC_ALLOC section, not just a
105 SEC_LOAD section.
106
55626bf0
ILT
107Tue Feb 27 14:17:31 1996 Andreas Schwab <[email protected]>
108
109 * m68klinux.c: New file.
110 * hosts/m68klinux.h: New file.
111 * config.bfd (m68*-*-linuxaout*, m68*-*-linux*): New targets.
112 * configure.in (m68*-*-linux*): New native host.
113 (m68klinux_vec): New vector.
114 * configure: Rebuild.
115 * targets.c (m68klinux_vec): Declare.
116 * i386linux.c (bfd_i386linux_size_dynamic_sections): Renamed from
117 bfd_linux_size_dynmic_sections to avoid clash with m68klinux.c.
118 * bfd-in.h (bfd_i386linux_size_dynamic_sections): Rename
119 declaration from bfd_linux_size_dynamic_sections.
120 (bfd_m68klinux_size_dynamic_sections): Declare.
121 * bfd-in2.h: Rebuild.
122 * Makefile.in: Rebuild dependencies.
123 (BFD32_BACKENDS): Add m68klinux.o.
124 (BFD32_BACKENDS_CFILES): Add m68klinux.c.
125
6c7b3090
JL
126Tue Feb 27 11:31:34 1996 Jeffrey A Law ([email protected])
127
128 * libhppa.h (pa_arch): Add pa20.
129 (hppa_reloc_field_selector_type): Add R_HPPA_NSEL.
130 (e_nsel): Undefine. Add to hppa_reloc_field_selector_type_alt.
131 (hppa_field_adjust): Handle e_nsel.
132 * som.c: Provide default definitions for many new relocs found only
133 in hpux10 include files.
134 (som_fixup_formats): Add several new relocs from hpux10.
135 (som_hppa_howto_table): Add hpux10 relocs.
136 (som_write_fixups): Handle R_N0SEL and R_N1SEL hpux10 relocs.
137
14fd4616
SS
138Mon Feb 26 12:52:48 1996 Stan Shebs <[email protected]>
139
140 * mpw-make.sed: Edit out recent shared library support, and
141 rules to rebuild .h files using doc/chew.
142
3d9f042c
ILT
143Mon Feb 26 14:48:39 1996 David Mosberger-Tang <[email protected]>
144
145 * ecoff.c (ecoff_compute_section_file_positions): Adjust the file
146 size even of sections with no contents.
147
bdec6228
ILT
148Mon Feb 26 14:01:13 1996 Ian Lance Taylor <[email protected]>
149
88358469
ILT
150 * cofflink.c (_bfd_coff_link_input_bfd): When merging, skip names
151 starting with '$' the way we skip names starting with '.'. When
152 updating x_endndx, don't be fooled by an index which has been
153 merged.
154
bdec6228
ILT
155 * cofflink.c (_bfd_coff_link_input_bfd): Don't try to optimize a
156 struct/union/enum type with no elements.
157
053ae1d7
ILT
158Sat Feb 24 11:38:58 1996 Ian Lance Taylor <[email protected]>
159
15f4406c
ILT
160 * bfd.c (bfd_errmsg): Handle a NULL return from strerror.
161
c8435133
ILT
162 * archive.c (bfd_generic_archive_p): If the first file in the
163 archive can not be recognized as an object, don't assume that this
164 is the wrong format.
165
053ae1d7
ILT
166 * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
167 format is not bfd_object.
168 (bfd_elf_get_dt_soname): Likewise.
169
ea74d979
ILT
170Wed Feb 21 13:58:04 1996 Ian Lance Taylor <[email protected]>
171
172 * coff-sh.c (sh_relax_delete_bytes): Correct range of R_SH_USES
173 reloc.
174
871a3f3b
C
175Tue Feb 20 16:22:44 1996 J.T. Conklin <[email protected]>
176
177 * bfd.c (tdata): Add netbsd_core_data.
178 * bfd-in2.h: Regenerated.
179
180Tue Feb 20 16:50:02 1996 Ian Lance Taylor <[email protected]>
181
fe6fc35f
ILT
182 * sunos.c (SUNOS_CONSTRUCTOR): Define.
183 (sunos_add_one_symbol): Don't let a symbol from a dynamic object
184 override a constructor symbol. Set SUNOS_CONSTRUCTOR when
185 appropriate.
186
871a3f3b
C
187 * bout.c (b_out_squirt_out_relocs): Use udata.i rather than flags
188 to get the symbol index, matching 14 Jul 95 change.
189
d3785301
FF
190Tue Feb 20 08:26:27 1996 Fred Fish <[email protected]>
191
192 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
193 Remove duplicate definition of gp.
194
60a49e7f
ILT
195Mon Feb 19 12:37:41 1996 Ian Lance Taylor <[email protected]>
196
81bdcecf
ILT
197 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Don't
198 assume that we can set the GP value and then get the same value,
199 since it won't be true if the output file is neither ELF nor
200 ECOFF.
201 * coff-mips.c (mips_adjust_reloc_in): Don't bother to use
202 _bfd_get_gp_value here.
203 (mips_gprel_reloc): Don't assume we can set and get the GP value.
204 * elf32-mips.c (mips_elf_hi16_reloc): Get gp value from
205 mips_elf_final_gp.
206 (mips_elf_lo16_reloc): Likewise.
207 (mips_elf_final_gp): Add pgp parameter. Set it to the GP value.
208 Don't require that the BFD be ELF.
209 (mips_elf_gprel16_reloc): Get gp value from mips_elf_final_gp.
210 (mips_elf_gprel32_reloc): Likewise.
211 (mips_elf_relocate_section): Don't assume we can set and get the
212 GP value.
213 (mips_elf_finish_dynamic_symbol): Don't bother to use
214 _bfd_get_gp_value here.
215
216 * elf32-mips.c (mips_elf_create_procedure_table): Initialize sv.
217 Don't change epdr between malloc and free. Be careful not to free
218 NULL pointers. Zero out the first RPDR.
219
7b61165a
ILT
220 * configure.host: On Linux, only pass -rpath option if $(libdir)
221 is neither /lib nor /usr/lib. From Alan Modra
222 <[email protected]>.
223
60a49e7f
ILT
224 * elf-bfd.h (struct elf_obj_tdata): Rename dt_needed_name to
225 dt_name.
226 (elf_dt_name): Rename from elf_dt_needed_name.
227 * elf.c (bfd_elf_set_dt_needed_name): Use elf_dt_name, not
228 elf_dt_needed_name.
229 (bfd_elf_get_dt_soname): New function.
230 * elflink.h (elf_link_add_object_symbols): Use elf_dt_name, not
231 elf_dt_needed_name. Save the SONAME back in elf_dt_name.
232 * bfd-in.h (bfd_elf_get_dt_soname): Declare.
233 * bfd-in2.h: Rebuild.
234
b268e261
DE
235Mon Feb 19 02:50:23 1996 Doug Evans <[email protected]>
236
237 * elf32-sparc.c (elf32_sparc_reloc_type_lookup): Renamed from
238 _bfd_sparc_elf_reloc_type_lookup.
239 (bfd_elf32_bfd_reloc_type_lookup): Update.
240 * elf64-sparc.c (SPARC64_OLD_RELOCS): Define.
241 (sparc64_elf_howto_table): Define.
242 (sparc_reloc_map): Define.
243 (sparc64_elf_reloc_type_lookup): New function.
244 (sparc_elf_wdisp16_reloc): New function.
245 (elf_info_to_howto): Use sparc64_elf_howto_table.
246 (sparc64_elf_relocate_section): Likewise.
247 (bfd_elf64_bfd_reloc_type_lookup): Update.
248
9e2ef098
ILT
249Sun Feb 18 15:02:25 1996 Ian Lance Taylor <[email protected]>
250
251 * configure.host: Check for 'do not mix' from native linker before
252 trying to use -rpath.
253
4c70373f
ILT
254Fri Feb 16 12:46:18 1996 Ian Lance Taylor <[email protected]>
255
cba3f8a9
ILT
256 * bfd.c (_bfd_get_gp_value): New function.
257 (_bfd_set_gp_value): New function.
258 * libbfd-in.h (_bfd_get_gp_value): Declare.
259 (_bfd_set_gp_value): Declare.
260 * libbfd.h: Rebuild.
261 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
262 _bfd_get_gp_value and _bfd_set_gp_value rather than referring
263 directly to the fields in the tdata information.
264 (alpha_relocate_section): Likewise.
265 * coff-mips.c (mips_adjust_reloc_in): Likewise.
266 (mips_gprel_reloc): Likewise.
267 (mips_relocate_section): Likewise.
268 * elf32-mips.c (mips_elf_hi16_reloc): Likewise.
269 (mips_elf_lo16_reloc): Likewise.
270 (mips_elf_final_gp): Likewise.
271 (mips_elf_gprel16_reloc): Likewise.
272 (mips_elf_gprel32_reloc): Likewise.
273 (mips_elf_relocate_section): Likewise.
274 (mips_elf_finish_dynamic_symbol): Likewise.
275
4c70373f
ILT
276 * bout.c (b_out_set_arch_mach): Recognize bfd_mach_i960_jx.
277
a0a2dd54
ILT
278Thu Feb 15 11:29:13 1996 Ian Lance Taylor <[email protected]>
279
f54c7482 280 * configure.in: Call AC_PROG_CC before configure.host.
65eed095
ILT
281 * configure: Rebuild.
282 * configure.host: Don't set information which autoconf should
283 figure out, namely CC, CFLAGS, LDFLAGS, AR, and RANLIB.
65eed095 284
14293419
ILT
285 * configure.host: Remove go32 and win32 host information, since it
286 should no longer be needed.
287
edf3fe48
ILT
288 * elf.c (map_sections_to_segments): If we have a .dynamic section,
289 then start a new segment rather than put a writable section in a
290 readonly segment.
291
b5e4f369
ILT
292 * configure.host: Set RPATH_ENVVAR.
293
f2e33e27
ILT
294 * Makefile.in: Rebuild dependencies.
295
a0a2dd54
ILT
296 * elflink.c (_bfd_elf_create_linker_section): Remove unused
297 zero_section variable.
298
52c6bc4d
ILT
299Thu Feb 15 10:39:17 1996 H.J. Lu <[email protected]>
300
301 * Makefile.in ($(srcdir)/bfd-in2.h): Rename target from bfd-in2.h.
302 ($(srcdir)/libbfd.h): Rename from libbfd.h.
303 ($(srcdir)/libcoff.h): Rename from libcoff.h.
304
c9e5279f
ILT
305Wed Feb 14 16:29:07 1996 Martin Anantharaman <[email protected]>
306
cb50baea
ILT
307 * ieee.c (ieee_write_expression): Only use an R variable for a
308 local symbol. Don't output a zero offset. Handle a zero address.
309 (SRC_MASK, PCREL_OFFSET): Define based on KEEPMINUSPCININST.
310 (rel32_howto, rel16_howto, rel8_howto): Use SRC_MASK and
311 PCREL_OFFSET.
312 (parse_expression): Don't try to handle multiple occurrences of a
313 P variable. Handle I variables differently from X variables. Fix
314 the order of minus expressions.
315 (ieee_slurp_external_symbols): Generate an I variable for an NN
316 record. Fix handling of ATI and ATX records.
317 (ieee_slurp_sections): Only set minimal section attributes.
318 Adjust them later, based on the section contents.
319 (ieee_object_p): Read in the file until just after the ME record.
320 Call ieee_slurp_section_data to set the section flags.
321 (do_one): Add iterations parameter. Only repeat the first load
322 item. Set the section and file reloc flags.
323 (ieee_slurp_section_data): Set section flags. Pass iterations to
324 do_one.
325 (ieee_canonicalize_reloc): Handle I variables.
326 (do_with_relocs): Only emit relocation size when necessary.
327 Increase MAXRUN to 127. Change ov to be assigned, and take
328 src_mask and pcrel_offset into account.
329 (ieee_write_data_part): Skip sections that are not loaded.
330 (ieee_write_external_part): Don't output optional last entry of WX
331 records.
332 (ieee_write_me_part): Make setting of me_record neater.
333 (ieee_generic_stat_arch_elt): Get the size of an archive element.
334
c9e5279f
ILT
335 * syms.c (stt): Add entries for zerovars, vars, and code.
336
337 * elfcode.h (validate_reloc): New static function.
338 (write_relocs): Call validate_reloc for non ELF relocs.
339
340 * elfxx-target.h (elf_symbol_leading_char): Define if not defined.
341 (TARGET_BIG_SYM): Use elf_symbol_leading_char.
342 (TARGET_LITTLE_SYM): Likewise.
343
344 * config.bfd (m68*-*-psos*): New target.
345
d9d65be6
ILT
346Tue Feb 13 15:56:22 1996 Bryan Ford <[email protected]>
347
348 * i386msdos.c: Remove some #if 0 code.
349 (msdos_write_object_contents): Don't include empty sections in the
350 size computation, regardless of their address.
351
352Tue Feb 13 15:36:37 1996 Michael Meissner <[email protected]>
353
354 * elf32-ppc.c (ppc_elf_relocate_section): Don't segfault if dynboj
355 is NULL, ie, the -r switch is used.
356
db5970c7
ILT
357Tue Feb 13 14:35:15 1996 Ian Lance Taylor <[email protected]>
358
e9f03cd4
ILT
359 * reloc.c (BFD_RELOC_MIPS_GOT_HI16): Define.
360 (BFD_RELOC_MIPS_GOT_LO16): Define.
b7384d22 361 (BFD_RELOC_MIPS_CALL_HI16, BFD_RELOC_MIPS_CALL_LO16): Define.
e9f03cd4
ILT
362 * bfd-in2.h, libbfd.h: Rebuild.
363 * elf32-mips.c (mips_reloc_map): Map new relocs.
364
fe7c066a
ILT
365 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
366
1ab628e4
ILT
367 * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not
368 $(SHLINK).
369
db5970c7
ILT
370 * ieee.c (get_symbol): Set the section to bfd_abs_section.
371 (do_with_relocs): If EXEC_P is set and there are no relocs, use a
372 simple number for the section address, rather than an expression.
373 Limit the number of bytes between relocs to MAXRUN.
374 (ieee_write_me_part): Set me_record to the file offset after the
375 start address.
376 (ieee_write_processor): New static function.
377 (ieee_write_object_contents): Use ieee_write_processor.
378
318b7c18
ILT
379Fri Feb 9 10:53:00 1996 Ian Lance Taylor <[email protected]>
380
db5970c7
ILT
381 * configure.host: Use ${CC-gcc} when testing for -rpath on SunOS.
382
383 * coff-aux.c: Change include of aux.h to aux-coff.h.
318b7c18 384
56b64690
ILT
385Thu Feb 8 14:01:03 1996 Andreas Schwab <[email protected]>
386
387 * elf32-m68k.c (elf_m68k_relocate_section): For a R_68K_RELATIVE
388 relocation put the addend both in the reloc entry and the data.
389 (elf_m68k_finish_dynamic_symbol): Likewise. Mask out marker in
390 GOT offset value.
391
392 * elf32-m68k.c (elf_m68k_relocate_section): If -Bsymbolic, resolve
393 a R_68K_PCxx reloc against a defined global symbol directly.
394 (elf_m68k_check_relocs): Don't count such a reloc.
395
396 * elf32-m68k.c (elf_m68k_check_relocs): Don't record a symbol with
397 a PLTxx reloc as dynamic. Disallow PLTxxO reloc against a local
398 symbol for now, otherwise always record the symbol as dynamic.
399 (elf_m68k_adjust_dynamic_symbol): If a symbol with a PLTxx reloc
400 is not referenced by a dynamic object, and we are not making a
401 shared object, then don't make a PLT entry. If we do make a PLT
402 entry, make sure the symbol has been recorded as dynamic.
403
5d649ca8
ILT
404Wed Feb 7 13:56:06 1996 Ian Lance Taylor <[email protected]>
405
406 * configure.host: When making a shared library, set HLDFLAGS to
407 pass an appropriate -rpath option. Use the make variable SONAME
408 as the shared library soname, rather than computing it here. On
409 SunOS, build stamp-tshlink in place of $(SHLINK).
410 * Makefile.in (SONAME): New variable.
411 ($(SHLINK)): Make a link to the transformed name, as well.
412 (stamp-tshlink): New target.
413 (install): Skip stamp-tshlink during install.
414
8cc98cd5
MM
415Wed Feb 7 13:37:39 1996 Michael Meissner <[email protected]>
416
56b64690
ILT
417 * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not assume that the
418 linker sections have been set up yet.
419
8cc98cd5
MM
420 * elf.c (make_mapping): Add an additional argument to suppress
421 making the first section include the program headers.
422 (map_sections_to_segments): If the user used -Ttext such that the
423 program headers are on a different page, do not set the flags
424 saying that this section includes the program headers.
425
fe16107d
C
426Tue Feb 6 14:04:49 1996 J.T. Conklin <[email protected]>
427
428 * configure.in (*-*-netbsd*): Set COREFILE to netbsd-core.c.
429 don't define TRAD_HEADER.
430 * configure: Rebuild.
431
432 * netbsd-core.c: New file, support for NetBSD core files.
433 * hosts/*nbsd.h: Removed.
434
f1783016
DE
435Tue Feb 6 11:47:49 1996 Doug Evans <[email protected]>
436
437 * reloc.c (BFD_RELOC_SPARC_[567]): New reloc types.
438 (BFD_RELOC_SPARC_LO7 reloc type): Deleted.
439 * libbfd.h, bfd-in2.h: Regenerated.
440 * elf32-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Renamed from
441 bfd_elf32_bfd_reloc_type_lookup.
442 (reloc_type{,_names}): Deleted.
443 (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
444 Add sparc64 relocs.
445 (sparc_reloc_map): Add sparc64 relocs.
446 (sparc_elf_notsupported_reloc): New static function.
447 (sparc_elf_wdisp16_reloc): New static function.
448 (elf32_sparc_check_relocs): Handle R_SPARC_WDISP{16,19}.
449 (elf32_sparc_relocate_section): Likewise.
450 (bfd_elf32_bfd_reloc_type_lookup): Define.
451 * elf64-sparc.c (sparc64_elf_wdisp16_reloc): Deleted.
452 (reloc_type{,_names}): Deleted.
453 (elf_sparc_howto_table): Deleted.
454 (sparc_reloc_map): Deleted.
455 (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
456 (bfd_elf64_bfd_reloc_type_lookup): Change from function to #define.
457
48fd00b6
ILT
458Tue Feb 6 12:12:22 1996 Ian Lance Taylor <[email protected]>
459
2300e217
ILT
460 * configure.host: Make SHLIB_CFLAGS include $(PICFLAG) on a
461 *-*-hpux* host.
462
48fd00b6
ILT
463 * Makefile.in (program_transform_name): New variable.
464 (install): Transform library name before installing it.
465
8adca582
ILT
466Mon Feb 5 10:38:27 1996 Ian Lance Taylor <[email protected]>
467
cbe75cb6
ILT
468 * archures.c (bfd_mach_i960_hx): Define.
469 * bfd-in2.h: Rebuild.
470 * cpu-i960.c (scan_960_mach): Accept machine "hx".
471 (MATRIX): Expand entries for HX.
472 (arch_info_struct): Add i960:hx entry.
473 * bout.c (b_out_set_arch_mach): Handle bfd_mach_i960_hx.
474 * coffcode.h (coff_set_arch_mach_hook): Handle F_I960HX.
475 (coff_set_flags): Handle bfd_mach_i960_hx.
476
44f795f7
ILT
477 Support for building as a shared library, based on patches from
478 Alan Modra <[email protected]>:
479 * configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib.
480 New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC,
481 SHLIB_CFLAGS, COMMON_SHLIB, PICLIST, SHLINK.
482 * configure: Rebuild.
483 * configure.host: If --enable-shared, adjust shared library stuff
484 based on the host. If the host is SunOS, and the linker supports
485 -rpath, set HLDFLAGS to use it.
486 * Makefile.in (ALLLIBS): New variable.
487 (PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables.
488 (COMMON_SHLIB, SHLINK): New variables.
489 (.c.o): If PICFLAG is set, compile twice, once PIC, once normal.
490 (STAGESTUFF): Remove variable.
491 (all): Depend upon $(ALLLIBS) and @PICLIST@ rather than
492 $(TARGETLIB).
493 (stamp-ofiles): New target, like old ofiles target, but build
494 using a temporary file and move-if-change, and touch stamp-ofiles
495 when done.
496 (ofiles): Just depend upon stamp-ofiles.
497 (stamp-piclist, piclist): New targets.
498 ($(SHLIB), $(SHLINK)): New targets.
499 (targets.o, archures.o): Build twice if PICFLAG is set.
500 (do_mostlyclean): Remove pic/*.o.
501 (do_clean): Remove stamp-ofiles, $(SHLIB), $(SHLINK), piclist, and
502 stamp-piclist.
503 (do_distclean): Remove pic and stamp-picdir.
504 (install): Install shared libraries.
505 ($(OFILES)): Depend upon stamp-picdir.
506 (stamp-picdir): New target.
507
cb62d2bc
ILT
508 * libcoff-in.h: Add comment reminding people that libcoff.h is a
509 generated file.
510 * libcoff.h: Rebuild.
511
8adca582
ILT
512 * elflink.h (elf_adjust_dynamic_symbol): Don't try to get the
513 flavour of a section with no owner.
514
515 * elf32-mips.c (mips_elf_create_dynamic_sections): Clear
516 ELF_LINK_NON_ELF flag.
517 (mips_elf_create_got_section): Likewise.
518
519 * elf.c: Revert last change, since it breaks dynamic linking.
520 * elf-bfd.h (struct elf_backend_data): Remove want_hdr_in_seg
521 field.
522 * elf32-mips.c (elf_backend_want_hdr_in_seg): Don't define.
523 * elfxx-target.h (elf_backend_want_hdr_in_seg): Don't define.
524 (elfNN_bed): Don't initialize want_hdr_in_seg field.
525
526Sun Feb 4 20:45:13 1996 Michael Meissner <[email protected]>
527
528 * elf.c (assign_file_positions_for_segments): If the backend does
529 not want the elf header or the program headers in the address
530 space, do not include them in the calculations.
531
532 * elf32-ppc.c (ppc_elf_additional_program_headers): New hook
533 function to determine if we need additional program headers.
534 (ppc_elf_modify_segment_map): Define as a NOP function for now.
535 (ppc_elf_create_linker_section): .sdata2 is a read-only section.
536
0f09ddd4
ILT
537Sat Feb 3 23:00:03 1996 Ian Lance Taylor <[email protected]>
538
539 * coffcode.h: Move today's libcoff.h change into coffcode.h.
540
b48f10ba
FF
541Sat Feb 3 15:43:44 1996 Fred Fish <[email protected]>
542
0f09ddd4
ILT
543 * libcoff.h (bfd_coff_link_add_one_symbol): Combine macro args
544 back into one line. Some compilers (sunos 4.1.3 for example)
545 won't accept args split across more than one line.
b48f10ba 546
50761d3b
SC
547Fri Feb 2 11:42:15 1996 Steve Chamberlain <[email protected]>
548
549 * aclocal.m4 (BFD_BINARY_FOPEN): Understand cygwin32.
550 * configure: Regenerate.
551
9dce8260
JL
552Fri Feb 2 12:12:16 1996 Jeffrey A Law ([email protected])
553
554 * elf32-hppa.c (elf32_hppa_backend_symbol_table_processing): Don't
555 try to do arithmetic on a void *, cast it to a unsigned char * first.
556
6c55897c
ILT
557Thu Feb 1 16:04:06 1996 Ian Lance Taylor <[email protected]>
558
869b7d80
ILT
559 * elf-bfd.h (ELF_LINK_NON_ELF): Define.
560 * elf.c (_bfd_elf_link_hash_newfunc): Set elf_link_hash_flags to
561 ELF_LINK_NON_ELF.
562 * elflink.h (elf_link_add_object_symbols): Reset ELF_LINK_NON_ELF
563 flag for a newly defined symbol.
564 (NAME(bfd_elf,record_link_assignment)): Likewise.
565 (elf_adjust_dynamic_symbol): If ELF_LINK_NON_ELF is set, try to
566 set the DEF or REF_REGULAR flags correctly.
567
6f6956c6
ILT
568 * Makefile.in (bfd-in2.h): Make bfd.h, not protos, in docdir.
569 (libbfd.h, libcoff.h): Corresponding change.
570
6c55897c
ILT
571 * elf32-i386.c (elf_i386_check_relocs): Don't record a symbol with
572 a PLT32 reloc as dynamic.
573 (elf_i386_adjust_dynamic_symbol): If a symbol with a PLT32 reloc
574 is not referenced by a dynamic object, and we are not making a
575 shared object, then don't make a PLT entry. If we do make a PLT
576 entry, make sure the symbol has been recorded as dynamic.
577
b06136f2
SC
578Wed Jan 31 17:23:32 1996 Steve Chamberlain <[email protected]>
579
580 * coff-i386.c (coff_i386_reloc_type_lookup): Add BFD_RELOC_32_PCREL.
581 * config.bfd (i[345]86-*-win32): Becomes i[345]86-*-cygwin32.
582 (powerpcle-*-cygwin32): New.
583 * peicode.h (add_data_entry): Get address from vma.
584
5c867ecd
MM
585Wed Jan 31 16:23:57 1996 Michael Meissner <[email protected]>
586
587 * elflink.c (_bfd_elf_create_linker_section): If the symbol
588 attached to the section has already been created as an undefined
589 symbol, treat it as if it hasn't been created yet.
590
28c16b55
ILT
591Wed Jan 31 16:16:53 1996 Ian Lance Taylor <[email protected]>
592
593 * elflink.h (elf_bfd_final_link): Don't output initial dummy
594 symbol or section symbols if stripping all symbols and this is not
595 a relocateable link. Don't output the symbol string table if
596 there are no symbols.
597 (elf_link_flush_output_syms): Don't do anything if there are no
598 symbols to flush.
599
d19df9b5
ILT
600Wed Jan 31 12:55:49 1996 Richard Henderson <[email protected]>
601
602 * coff-aux.c: New file.
603 * hosts/m68kaux.h: New file.
604 * config.bfd (m68*-apple-aux*): New target.
605 * configure.in (m68*-apple-aux*): New native host.
606 (m68kaux_coff_vec): New vector.
607 * configure: Rebuild.
608 * targets.c (m68kaux_coff_vec): Declare.
609 * coffcode.h (bfd_coff_backend_data): Add field
610 _bfd_coff_link_add_one_symbol.
611 (bfd_coff_link_add_one_symbol): Define.
612 (compare_arelent_ptr): New static function if TARG_AUX.
613 (coff_write_relocs): If TARG_AUX, sort the relocs.
614 (coff_write_object_contents): Set A/UX aouthdr magic number.
615 (coff_link_add_one_symbol): Define if not defined.
616 (bfd_coff_std_swap_table): Initialize new field.
617 * libcoff.h: Rebuild.
618 * cofflink.c (coff_link_add_symbols): Call
619 bfd_coff_link_add_one_symbol rather than
620 _bfd_generic_link_add_one_symbol.
621 * coff-m68k.c (COFF_PAGE_SIZE): Don't define if already defined.
622 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
623 * coff-mips.c (mips_ecoff_backend_data): Likewise.
624 * Makefile.in: Rebuild dependencies.
625 (BFD32_BACKENDS): Add coff-aux.o.
626 (BFD32_BACKENDS_CFILES): Add coff-aux.c.
627
a796aafd
ILT
628Wed Jan 31 11:37:46 1996 Andreas Schwab <[email protected]>
629
630 * elf32-m68k.c (elf_m68k_relocate_section): Fix R_68K_GOT*
631 relocation; ignore addend with R_68K_{GOT,PLT}*O relocation.
632
a8763553
ILT
633Tue Jan 30 12:09:04 1996 Ian Lance Taylor <[email protected]>
634
66761e59
ILT
635 * Makefile.in (do_maintainer_clean): Remove $(srcdir)/bfd-in2.h,
636 $(srcdir)/libbfd.h and $(srcdir)/libcoff.h.
637 (maintainer-clean): Warn about deleting special files.
638 (bfd-in2.h, libbfd.h, libcoff.h): New targets.
639
cf5138e3
ILT
640 * elf32-hppa.c (elf32_hppa_relocate_section): Handle indirect and
641 warning symbols correctly.
642 * elf32-i386.c (elf_i386_relocate_section): Likewise.
643 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
644 * elf32-mips.c (mips_elf_relocate_section): Likewise.
645 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
646 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
647 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
648
a8763553
ILT
649 * syms.c (_bfd_stab_section_find_nearest_line): Add casts to avoid
650 warnings.
651
bdd2e7f1
KK
652Mon Jan 29 14:27:24 1996 Kim Knuttila <[email protected]>
653
654 * libcoff-in.h: aligned newly exported names with bfd naming
655 conventions. Removed an erroneous define of POWERPC_LE_PE.
656 * libcoff.h: Rebuild.
657 * cofflink.c, coff-ppc.c: the above function name changes
658
d2bb6c79
ILT
659Mon Jan 29 13:06:28 1996 Ian Lance Taylor <[email protected]>
660
eb5bc1f3
ILT
661 From Basim Kadhim <[email protected]>:
662 * ecoff.c (struct extsym_info): Define.
663 (_bfd_ecoff_bfd_final_link): Pass a pointer to struct extsym_info
664 to ecoff_link_write_external.
665 (ecoff_link_write_external): Accept a struct extsym_info pointer.
666 Strip symbols when appropriate.
667
052b35d2
ILT
668 Based on patches from Ronald F. Guilmette <[email protected]>:
669 * syms.c (BSF_OBJECT): Define.
670 (bfd_print_symbol_vandf): Print 'O' for BSF_OBJECT.
671 * bfd-in2.h: Rebuild.
672 * elfcode.h (elf_slurp_symbol_table): Set BSF_OBJECT for an
673 STT_OBJECT symbol.
674 * elf.c (swap_out_syms): Only set type to STT_OBJECT if BSF_OBJECT
675 is set.
676
53787b23
ILT
677 * elf32-i386.c (elf_i386_relocate_section): If -Bsymbolic, when
678 copying relocs into a shared object, treat a defined global symbol
679 as a local symbol.
680 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
681 * elf32-mips.c (mips_elf_relocate_section): Likewise.
682 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
683
d2bb6c79
ILT
684 * elflink.h (elf_link_add_object_symbols): Only set weakdef to a
685 real defined symbol, not to a weak defined symbol.
686
13d1a4dd
KK
687Mon Jan 29 11:34:36 1996 Kim Knuttila <[email protected]>
688
689 * cofflink.c: removed the POWERPC_LE_PE hack, promoted some types
690 and made a few static functions externs.
691
692 * coff-ppc.c (ppc_bfd_coff_final_link): new function, replaces the
693 POWERPC_LE_PE hack in cofflink.
694
695 * libcoff-in.h: promoted the following from cofflink.c to allow
696 _bfd_coff_final_link to be overridden - STRING_SIZE_SIZE,
697 coff_debug_merge_element, struct coff_debug_merge_type,
698 coff_debug_merge_hash_entry, coff_debug_merge_hash_table,
699 coff_debug_merge_hash_table_init, coff_debug_merge_hash_table_free,
700 coff_debug_merge_hash_lookup, coff_link_section_info,
701 coff_final_link_info, coff_debug_merge_hash_newfunc,
702 coff_write_global_sym, coff_link_input_bfd, coff_reloc_link_order.
703
704 * libcoff.h: re-gen'd
705
86aac8ea
ILT
706Fri Jan 26 18:33:35 1996 Ian Lance Taylor <[email protected]>
707
708 * syms.c: Include "bfdlink.h".
709 (struct stab_find_info): Define.
710 (_bfd_stab_section_find_nearest_line): New function.
711 * libbfd-in.h (_bfd_stab_section_find_nearest_line): Declare.
712 * libbfd.h: Rebuild.
713 * elf-bfd.h (struct elf_obj_tdata): Add line_info field.
714 * elf.c (_bfd_elf_find_nearest_line): Try calling
715 _bfd_stab_section_find_nearest_line before searching the ELF
716 symbol table. Find the closest STT_FUNC symbol, not the last one.
717 * libcoff-in.h (coff_data_type): Add line_info field.
bdd2e7f1 718 * libcoff.h: Rebuild.
86aac8ea
ILT
719 * coffgen.c (coff_find_nearest_line): Try calling
720 _bfd_stab_section_find_nearest_line before searching the COFF
721 symbol table.
722 * Makefile.in: Rebuild dependencies.
723
724Fri Jan 26 16:11:19 1996 Michael Meissner <[email protected]>
725
726 * elf32-ppc.c (R_PPC_EMB_SDA21 relocations): Make relocation size
727 4 bytes, so we get the correct value when updating the register
728 field in little endian mode.
729
43d36aad
ILT
730Thu Jan 25 12:14:16 1996 Ian Lance Taylor <[email protected]>
731
f0a97077
ILT
732 * libcoff-in.h (struct xcoff_tdata): Remove toc_section and
733 entry_section fields. Add sntoc and snentry fields.
734 * libcoff.h: Rebuild.
735 * coffcode.h (coff_mkobject_hook): Initialize sntoc and snentry,
736 not toc_section and entry_section (the COFF file does not have any
737 sections at this point).
738 (coff_write_object_contents): Set o_snentry and o_sntoc from
739 snentry and sntoc rather than entry_section and toc_section.
740 * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy sntoc and
741 snentry, not toc_section and entry_section.
742 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't set
743 entry_section from hentry.
744 (xcoff_link_input_bfd): If a defined symbol has XCOFF_ENTRY set,
ea2504d5 745 set snenty.
f0a97077
ILT
746 (xcoff_link_input_bfd): Set sntoc, not toc_section.
747 (xcoff_write_global_symbol): Get toc_section from sntoc, rather
748 than using toc_section directly.
749
9b4598d0
ILT
750 * archures.c: Add missing `.' in enum bfd_architecture.
751 * bfd-in2.h: Rebuild.
752
43d36aad
ILT
753 * config.bfd (i[345]86-*-sco*elf*): Use bfd_elf32_i386_vec. From
754 Robert Lipe <[email protected]>.
755
eb82bc60
MM
756Thu Jan 25 12:08:51 1996 Michael Meissner <[email protected]>
757
758 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Add .rela.sdata{,2}
759 to sections we allocate. Use bfd_zalloc to allocate initialial
760 sections, not bfd_alloc.
761 (ppc_elf_check_relocs): Remove BFD_ASSERTs for !shared from
762 SDA{,2}I16 relocations.
763 (ppc_elf_add_symbol_hook): Use the value of -G nn to determine
764 whether to put something in .sbss or not.
765 (ppc_elf_relocate_section): Add support for more relocations. Add
c1e65e24
MM
766 in sec->output_offset where appropriate. Make error messages
767 include the symbol name.
eb82bc60
MM
768
769 * elflink.c (_bfd_elf_create_linker_section): Lookup symbol before
770 trying to add it to the symbol table, so _GLOBAL_OFFSET_TABLE_
771 doesn't get redefined messages if -shared.
772
773 * elflink.h (elf_create_pointer_linker_section) Only bump RELA
774 section if the rel_section field has been set up.
775
9d621c7d
MM
776Wed Jan 24 20:40:26 1996 Michael Meissner <[email protected]>
777
778 * elf32-ppc.c (ppc_elf_relocate_section): Fix typo in eabi
779 relocations.
780
75c9ddc9
DE
781Wed Jan 24 10:38:34 1996 Doug Evans <[email protected]>
782
783 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Delete checking
784 of flags, only flags used are controlled by mach number. Bump up
785 output file mach number to highest of input file mach numbers.
786 (elf32_sparc_object_p): Watch for EF_SPARC_SUN_US1.
787 (elf32_sparc_final_write_processing): Set EF_SPARC_SUN_US1 if v8plusa.
788
72c513bc
DE
789 * config.bfd (sparc64-*-{sysv4*,solaris2*}): Comment out
790 bfd_elf64_sparc_vec support.
791
3cbe19d2
MM
792Tue Jan 23 14:33:05 1996 Michael Meissner <[email protected]>
793
794 * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Don't complain if
795 the embedded bit is set on some objects and not on others. Just
796 or it together.
d8fd85ad
MM
797 (ppc_elf_relocate_section): Implement R_PPC_EMB_{SDA21,RELSDA}
798 relocations.
3cbe19d2 799
5eb83ede
ILT
800Tue Jan 23 14:22:45 1996 Ian Lance Taylor <[email protected]>
801
4a3d3b42
ILT
802 * coffcode.h (coff_new_section_hook): Don't try to align the
803 .stabstr section.
804
5eb83ede
ILT
805 * coffcode.h (coff_set_section_contents): Fix the handling of the
806 .lib section to work even if the entire section contents are
807 written at once. From Gvran Uddeborg <[email protected]> and
808 Robert Lipe <[email protected]>.
809
05f927dd
MM
810Mon Jan 22 18:45:51 1996 Michael Meissner <[email protected]>
811
812 * elflink.h (elf_finish_pointer_linker_section): Don't allocate
813 memory here for contents.
814
815 * elf32-ppc.c (ppc_elf_relocate_section): Bump up _SDA_BASE_ and
816 _SDA2_BASE_ by 32768.
817 (ppc_elf_size_dynamic_sections): #if out PLT code which we haven't
818 started using. Allocate contents for .sdata and .sdata2 sections
819 also.
820 (ppc_elf_check_relocs): Use bfd_get_section_name in debug message,
821 rather than _name.
822 (ppc_elf_finish_dynamic_symbol): Remove code that attempted to
823 size _SDA{,2}_BASE_.
824 (ppc_elf_relocate_section): Change how sdata{,2} relocations are
825 done.
826
5bc513b4
DE
827Mon Jan 22 08:52:04 1996 Doug Evans <[email protected]>
828
5a5bac64
DE
829 * elflink.h (elf_finish_pointer_linker_section): Fix typo.
830
5bc513b4 831 * archures.c (bfd_mach_sparc_v9): Renamed from bfd_mach_sparc64.
5bc513b4 832 (bfd_mach_sparc_{v8plus,v8plusa}): Define.
5bc513b4 833 (bfd_mach_sparc_v9a): Define.
049f3d4c 834 (bfd_mach_sparc_v9_p): Define.
5bc513b4
DE
835 * bfd-in2.h: Regenerated.
836 * aoutx.h (aout,machine_type): bfd_mach_sparc64 renamed to
837 bfd_mach_sparc_v9.
d3366d23 838 * elf64-sparc.c (sparc64_elf_object_p): Likewise.
5bc513b4
DE
839 * config.bfd (sparc64-*-sysv4*,sparc64-*-solaris2*): Set targ_defvec
840 to bfd_elf32_sparc_vec.
841 * cpu-sparc.c (arch_info_struct): Renamed from sparc_arch_info.
5bc513b4 842 Add v8plus{,a} support.
5bc513b4 843 Add v9a support.
768b8ade 844 (sparc_compatible): New function.
5bc513b4 845 * elf32-sparc.h: #include "elf/sparc.h".
75c9ddc9 846 (elf32_sparc_merge_private_bfd_data, elf32_sparc_object_p,
5bc513b4 847 elf32_sparc_final_write_processing): New functions.
75c9ddc9 848 (bfd_elf32_bfd_merge_private_bfd_data, elf_backend_object_p,
5bc513b4 849 elf_backend_final_write_processing): Define.
5bc513b4 850
3b3753b8
MM
851Mon Jan 22 11:21:51 1996 Michael Meissner <[email protected]>
852
853 * elf-bfd.h (struct elf_link_hash_entry): Add
854 linker_section_pointer field.
855 (enum elf_linker_section_enum): Enumeration for new way of
856 creating linker dynamic sections and symbols.
857 (elf_linker_section{,_pointers}): New structures for creating
858 dynamic sections and symbols.
859 (elf_obj_tdata): Add linker_section_pointers and linker_section
860 fields.
861 (elf_local_ptr_offsets,elf_linker_section): New accessor macros.
862 (_bfd_elf_create_linker_section): New declarations.
863 (_bfd_elf_find_pointer_linker_section): Ditto.
864 (bfd_elf{32,64}_{create,finish}_pointer_linker_section): Ditto.
865 (_bfd_elf_make_linker_section_rela): Ditto.
866
867 * elf.c (_bfd_elf_link_hash_newfunc): Initialize new fields.
868
869 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Delete.
870 (ppc_elf_create_linker_section): New function to create the
871 sections .got, .sdata, and .sdata2.
872 (ppc_elf_size_dynamic_sections): Zap .rela.{sdata,sdata2} if
873 needed.
874 (ppc_elf_check_relocs): Support more of the eabi relocations.
875 (ppc_elf_relocate_section): Ditto.
876 (ppc_elf_finish_dynamic_symbols): Adjust _SDA{,2}_BASE_ by 32768
877 if the .sdata{,2} + .sbss{,2} section size is > 32k.
878
879 * elflink.h (elf_create_pointer_linker_section): New function to
880 create initialized pointers in dynamic linker sections.
881 (elf_finish_pointer_linker_section): Actually intialize the
882 pointers created above.
883
884 * elfcode.h (bfd_elf{32,64}_create_pointer_linker_section): New
885 macros to provide both 32 and 64 bit versions of
886 elf_create_pointer_linker_section.
887 (bfd_elf{32,64}_finish_pointer_linker_section): New macros to
888 provide both 32 and 64 bit versions of
889 elf_finish_pointer_linker_section.
890
891 * elflink.c (_bfd_elf_create_linker_section): New function to
892 create a linker section.
893 (_bfd_elf_find_pointer_linker_section): Find a unique pointer to a
894 given address in the linker pointer offsets created for a given
895 symbol.
896 (_bfd_elf_make_linker_section_rela): Make a RELA section
897 corresponding to the generated linker section.
898
6b3eb07e
DE
899Sat Jan 20 08:36:10 1996 Doug Evans <[email protected]>
900
901 * elf32-sparc.c (ELF_MACHINE_ALT1): Define.
902
e7894f6b
KK
903Thu Jan 18 18:25:34 1996 Kim Knuttila <[email protected]>
904
905 * coff-ppc.c (coff_ppc_relocate_section): changed TOCDEFN relocs.
906 (coff_ppc_relocate_section): Handle special values for gcc built dlls.
907 (dump_toc): fix diagnosing code to identify out-of-toc-bounds entries.
908 Also begin the toc at 4 as an eye catcher ('31313131' marks the first
909 toc entry in an objdump) for now.
910 (ppc_do_last, ppc_get_last): New function - needed to save processing
911 the toc owner to the end.
912 (ppc_coff_swap_sym_in_hook): Removed an incorrect hack for doing the
913 toc owner last.
914
915 * cofflink.c (_bfd_coff_final_link): Added a new hack to keep the
916 toc owner from being done till last. Must define POWERPC_LE_PC
917 to enable it.
918
919 * coffcode.h (coff_set_alignment_hook): alignment setting for .stab
920
921 * peicode.h (coff_swap_scnhdr_out): set section flags for stab/str
922 to INFO.
923 (coff_swap_aouthdr_out): Removed a non-working hack for computing the
924 SizeOfImage for PowerPC. Ignore the size of the .junk section.
925
80b99ca0
ILT
926Thu Jan 18 17:42:12 1996 Ian Lance Taylor <[email protected]>
927
928 * elfcore.h: Include <signal.h> before <sys/procfs.h>.
929
df96df4c
ILT
930Wed Jan 17 12:40:14 1996 Ian Lance Taylor <[email protected]>
931
932 * cpu-powerpc.c (arch_info_struct): Change last entry to not point
933 back to first.
934 (bfd_powerpc_arch): Point at first entry in arch_info_struct.
935
d49ddb85
ILT
936Tue Jan 16 15:10:49 1996 Ian Lance Taylor <[email protected]>
937
938 * elf.c (assign_file_positions_for_segments): Don't increment file
939 offset for a segment which contains no loadable sections.
940
4500a112
MM
941Mon Jan 15 17:46:27 1996 Michael Meissner <[email protected]>
942
943 * reloc.c: Add new PowerPC relocations.
944 * {bfd-in2,libbfd}.h: Regenerate.
945
946 * elf32-ppc.c (ppc_elf_howto_raw): Add more PPC relocations.
947 (ppc_elf_reloc_type_lookup): Lookup new relocations.
948
252239f8
ILT
949Mon Jan 15 14:29:44 1996 Ian Lance Taylor <[email protected]>
950
20ab764e
ILT
951 * aoutx.h (howto_table_ext): Fix RELOC_BASE10 and RELOC_BASE22
952 entries.
953
0a4ffa2d
ILT
954 * sunos.c (sunos_scan_ext_relocs): Don't fail assert if
955 info->shared.
956
45ca3195
ILT
957 * coffgen.c (coff_find_nearest_line): Don't try to cache
958 information in sections that are not owned by a BFD. From Richard
959 Henderson <[email protected]>.
960
252239f8
ILT
961 * elf32-mips.c: Numerous changes to dynamic linking code, mostly
962 from Kazumoto Kojima <[email protected]>.
963 * elflink.h (elf_link_output_extsym): Remove special check for
964 _rld_new_interface.
965
966 * ecoffswap.h: Add prototypes for static functions.
967
bd2d10c0
MM
968Sun Jan 14 21:36:08 1996 Michael Meissner <[email protected]>
969
970 * elf32-ppc.c (ppc_elf_{unsupported,std}_reloc): Remove functions.
971 (ppc_elf_howto_raw): Remove ppc_elf_{unsupported,std}_reloc
972 references.
973 (ppc_elf_relocate_section): No longer allow .sdata/.sbss sections
974 to satisfy a TOC16 relocation. Rewrite unsupported relocation
975 support. Begin support for R_PPC_SDA{2,}REL.
976
1c3a295b
MM
977Sat Jan 13 09:36:52 1996 Michael Meissner <[email protected]>
978
979 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New function to
980 create the .got and .got.neg sections.
981 (ppc_elf_size_dynamic_sections): Call it.
982 (ppc_elf_check_relocs): Call it.
983 (ppc_elf_size_dynamic_sections): Support .got.neg, just like .got.
984 (ppc_elf_check_relocs): Add error messages for relocations we
985 don't yet support. Do not include R_PPC_SDAREL16 like a GOT
986 relocation.
987
57081126
MM
988Fri Jan 12 15:27:59 1996 Michael Meissner <[email protected]>
989
990 * elf32-ppc.c (ppc_elf_fake_sections): Define, and handle the new
991 section flags for V.4 and eabi.
992
3c38b3df
ILT
993Fri Jan 12 13:59:16 1996 Ian Lance Taylor <[email protected]>
994
14899eb7
ILT
995 * elf.c (assign_file_positions_for_segments): If a segment
996 contains no sections, don't mark it as readable.
997
98bb57ad
ILT
998 * elf-bfd.h (_bfd_elf_section_from_bfd_section): Declare.
999 * elfcode.h (_bfd_elf_section_from_bfd_section): Don't declare.
1000
02fcd126
ILT
1001 * elf.c (_bfd_elf_print_private_bfd_data): Dump contents of
1002 dynamic section, if there is one.
1003 * elf-bfd.h (struct elf_size_info): Add swap_dyn_in field.
1004 (bfd_elf32_swap_dyn_in): Change type of second parameter to PTR.
1005 (bfd_elf64_swap_dyn_in): Likewise.
1006 * elfcode.h (elf_swap_dyn_in): Change type of second parameter to
1007 PTR.
1008 (NAME(_bfd_elf,size_info)): Initialize swap_dyn_in field.
1009
3c38b3df
ILT
1010 * elf32-i386.c (elf_i386_size_dynamic_sections): Don't create a
1011 DT_TEXTREL entry because of .rel.plt. From Martin Pirker
1012 <[email protected]>.
1013
83f4323e
MM
1014Thu Jan 11 17:06:14 1996 Michael Meissner <[email protected]>
1015
1016 * section.c (SEC_{EXCLUDE,SORT_ENTRIES}): New section flags for
1017 PowerPC V.4 and eabi.
1018 * bfd-in2.h: Regenerate.
1019 * libfd.h: Regenerate.
1020
1021 * elfxx-target.h (TARGET_{BIG,LITTLE}_SYM): Add new flags.
1022
1023 * elf32-ppc.c (ppc_elf_section_from_shdr): Support SHT_ORDERED
1024 section type and SHF_EXCLUDE section flag, turning them into the
1025 appropriate bfd section flag.
1026
a0271667
ILT
1027Thu Jan 11 11:23:30 1996 Ian Lance Taylor <[email protected]>
1028
c9746fb6
ILT
1029 * xcofflink.c (xcoff_link_add_symbols): Create the special
1030 sections if we see a DYNAMIC object, in case that is the only
1031 XCOFF input object we see.
1032
5b3b9ff6
ILT
1033 * elf32-mips.c: Extensive changes for a start at dynamic linking
1034 support, from Kazumoto Kojima <[email protected]>.
1035
1036 * elf-bfd.h (struct elf_backend_data): Add type_change_ok field.
1037 (struct elf_backend_data): Remove
1038 elf_backend_create_program_headers field. Add
1039 elf_backend_additional_program_headers and
1040 elf_backend_modify_segment_map fields.
1041 * elfxx-target.h (elf_backend_type_change_ok): Define if not
1042 defined.
1043 (elf_backend_additional_program_headers): Likewise.
1044 (elf_backend_modify_segment_map): Likewise.
1045 (elf_backend_create_program_headers): Don't define.
1046 (elfNN_bed): Change to account for field changes.
1047 * elf.c (assign_file_positions_for_segments): Call new
1048 modify_segment_map backend function. Don't call old
1049 create_program_headers backend function.
1050 (get_program_header_size): Call additional_program_headers rather
1051 than create_program_headers.
1052 * elflink.h (elf_link_add_object_symbols): Initialize
1053 type_change_ok from new backend field.
1054 (elf_link_output_extsym): Don't warn if _rld_new_interface is
1055 defined.
1056 (elf_reloc_link_order): Treat a reloc against a defined symbol as
1057 a reloc against the appropriate section.
1058
761f377f
ILT
1059 * elf-bfd.h (struct bfd_elf_section_data): Add tdata field.
1060 (struct elf_obj_tdata): Rename ppc_flags_init field to flags_init.
1061 (elf_flags_init): Rename from elf_ppc_flags_init.
1062 * elf32-ppc.c (ppc_elf_set_private_flags): Use elf_flags_init, not
1063 elf_ppc_flags_init.
1064 (ppc_elf_copy_private_bfd_data): Likewise.
1065 (ppc_elf_merge_private_bfd_data): Likewise.
1066
a0271667
ILT
1067 * elf32-m68k.c (howto_table): Change src_mask to 0 for all
1068 relocation entries.
1069
64d5f5d0
ILT
1070Tue Jan 9 15:22:53 1996 David Mosberger-Tang <[email protected]>
1071
1072 * coff-alpha.c (alpha_relocate_section): During final link, allow
1073 output .lita section to be bigger than 64k by adjusting gp value
1074 on a per-input section basis.
1075 * libecoff.h (struct ecoff_tdata): Add issued_multiple_gp_warning
1076 field.
1077 (struct ecoff_section_tdata): Add gp field.
1078
c40d9c77
ILT
1079Tue Jan 9 12:00:36 1996 Ian Lance Taylor <[email protected]>
1080
64d5f5d0
ILT
1081 Handle Alpha ECOFF changes in OSF/1 3.2.
1082 * libecoff.h (struct ecoff_backend_data): Add get_elt_at_filepos
1083 field.
1084 * coff-alpha.c: Include "aout/ar.h".
1085 (alpha_ecoff_get_relocated_section_contents): Don't require an
1086 ALPHA_R_IGNORE reloc after an ALPHA_R_GPDISP reloc, since OSF/1
1087 3.2 doesn't generate one.
1088 (alpha_relocate_section): Likewise.
1089 (alpha_ecoff_slurp_armap): Define.
1090 (alpha_ecoff_slurp_extended_name_table): Define.
1091 (alpha_ecoff_construct_extended_name_table): Define.
1092 (alpha_ecoff_truncate_arname): Define.
1093 (alpha_ecoff_write_armap): Define.
1094 (alpha_ecoff_generic_stat_arch_elt): Define.
1095 (alpha_ecoff_update_armap_timestamp): Define.
1096 (ARFZMAG): Define.
1097 (alpha_ecoff_read_ar_hdr): New static function.
1098 (alpha_ecoff_get_elt_at_filepos): New static function.
1099 (alpha_ecoff_openr_next_archived_file): New static function.
1100 (alpha_ecoff_get_elt_at_index): New static function.
1101 (alpha_ecoff_backend_data): Initialize get_elt_at_filepos field.
1102 (ecoffalpha_little_vec): Change BFD_JUMP_TABLE_ARCHIVE from
1103 _bfd_ecoff to alpha_ecoff.
1104 * ecoff.c (ecoff_link_add_archive_symbols): Use get_elt_at_filepos
1105 field from backend structure, rather than always calling
1106 _bfd_get_elt_at_filepos.
1107 * coff-mips.c (mips_ecoff_backend_data): Initialize
1108 get_elt_at_filepos field.
1109 * archive.c (_bfd_generic_read_ar_hdr_mag): New function, copied
1110 from _bfd_generic_read_ar_hdr with minor changes.
1111 (_bfd_generic_read_ar_hdr): Use _bfd_generic_read_ar_hdr_mag.
1112 * libbfd-in.h (_bfd_generic_read_ar_hdr_mag): Declare.
1113 * libbfd.h: Rebuild.
1114
1115 * bfd-in.h (BFD_IN_MEMORY): Define.
1116 * libbfd-in.h (struct bfd_in_memory): Define.
1117 * libbfd.c (bfd_read): Handle BFD_IN_MEMORY flag.
1118 (bfd_get_file_window): Don't try to map a BFD_IN_MEMORY file.
1119 (bfd_write, bfd_stat): Abort if BFD_IN_MEMORY is set.
1120 (bfd_tell, bfd_flush, bfd_seek): Handle BFD_IN_MEMORY flag.
1121 * bfd.c (struct _bfd): Change iostream field from char * to PTR.
1122 (bfd_get_size): Handle BFD_IN_MEMORY flag.
1123 * cache.c (bfd_cache_close): Ignore BFD_IN_MEMORY files.
1124 (bfd_open_file): Cast to PTR, not char *, when setting iostream.
1125 (bfd_cache_lookup_worker): Abort if BFD_IN_MEMORY is set.
1126 * opncls.c (bfd_fdopenr): Cast to PTR, not char *, when setting
1127 iostream.
1128 (bfd_openstreamr): Likewise.
1129 * aoutx.h (NAME(aout,some_aout_object_p)): Only fstat iostream if
1130 BFD_IN_MEMORY is not set.
1131 * riscix.c (riscix_some_aout_object_p): Likewise.
1132 * bfd-in2.h, libbfd.h: Rebuild.
1133
1134 * targets.c (bfd_target): Add _bfd_get_elt_at_index field.
1135 (BFD_JUMP_TABLE_ARCHIVE): Add _get_elt_at_index.
1136 (bfd_get_elt_at_index): Define.
1137 * archive.c (_bfd_generic_get_elt_at_index): Rename from
1138 bfd_get_elt_at_index. Change index parameter from int to
1139 symindex.
1140 * libbfd-in.h (_bfd_generic_get_elt_at_index): Declare.
1141 (_bfd_noarchive_get_elt_at_index): Define.
1142 (_bfd_archive_bsd_get_elt_at_index): Define.
1143 (_bfd_archive_coff_get_elt_at_index): Define.
1144 * bfd-in2.h, libbfd.h: Rebuild.
1145 * aout-target.h (MY_get_elt_at_index): Define if not defined.
1146 * coff-rs6000.c (xcoff_get_elt_at_index): Define.
1147 * ieee.c (ieee_get_elt_at_index): Define.
1148 * libecoff.h (_bfd_ecoff_get_elt_at_index): Define.
1149 * oasys.c (oasys_get_elt_at_index): Define.
1150 * som.c (som_get_elt_at_index): Define.
1151
c40d9c77
ILT
1152 * ecoff.c (_bfd_ecoff_find_nearest_line): Don't restrict line
1153 numbers to the .text section.
1154
efa77952
ILT
1155Mon Jan 8 17:00:57 1996 Ian Lance Taylor <[email protected]>
1156
1157 * ieee.c (ieee_write_debug_part): Change return type to boolean.
1158 If there is a SEC_DEBUGGING section, get the contents of the debug
1159 information part from it.
1160 (ieee_set_section_contents): Store the contents of a SEC_DEBUGGING
1161 section in memory.
1162 (ieee_write_object_contents): Check ieee_write_debug_part return.
1163
767f22d5
FF
1164Thu Jan 4 17:12:37 1996 Fred Fish <[email protected]>
1165
1166 * config.bfd (i[345]86-*-freebsd*): Add target.
1167 * configure.in (i386freebsd_vec): Add vec.
1168 * configure: Regenerate.
1169 * Makefile.in (BFD32_BACKENDS): Add i386freebsd.o.
1170 (BFD32_BACKENDS_CFILES): Add i386freebsd.c.
1171 Rebuild dependencies..
1172 * freebsd.h: New file.
1173 * i386freebsd.c: New file.
1174 * targets.c (i386freebsd_vec): Declare.
1175 (bfd_target_vector): Add i386freebsd_vec.
1176 * i386linux.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
1177 * i386netbsd.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
1178
f8254a3c
ILT
1179Thu Jan 4 16:27:46 1996 Ian Lance Taylor <[email protected]>
1180
1181 * ieee.c (ieee_slurp_debug): New static function.
1182 (ieee_object_p): Call it.
1183 (ieee_slurp_section_data): Skip debugging sections.
1184 (ieee_get_reloc_upper_bound): Likewise.
1185 (ieee_get_section_contents): Likewise.
1186 (ieee_canonicalize_reloc): Likewise.
1187 (ieee_write_section_part): Likewise.
1188 (ieee_write_debug_part): Likewise.
1189 (ieee_write_data_part): Likewise.
1190 (init_for_output): Likewise.
1191
07a159db
MM
1192Wed Jan 3 19:42:47 1996 Michael Meissner <[email protected]>
1193
1194 * elf32-ppc.c (ppc_elf_relocate_section): Make @GOT relocations
1195 work.
1196 (ppc_elf_howto_raw): Just use bfd_elf_generic_reloc for all howto
1197 relocs, since ppc_elf_relocate_section handles the linker case.
1198 (ppc_elf_{addr16_ha,got16,toc16,brtaken}_reloc): Delete, no longer
1199 used.
1200 (ppc_elf_{addr16_ha,got16,toc16,brtaken}_inner): Merge these into
1201 ppc_elf_relocate_section since that is now the only caller.
1202 (ppc_elf_relocate_section): Ditto.
1203
d812945a
ILT
1204Wed Jan 3 15:11:30 1996 Ian Lance Taylor <[email protected]>
1205
1206 * coffcode.h (coff_write_object_contents): If we don't know the
1207 section of the entry point for an XCOFF executable, always set the
1208 entry address to -1.
1209
3a56d0b4
MM
1210Tue Jan 2 14:17:15 1996 Michael Meissner <[email protected]>
1211
1212 * elf.c (bfd_section_from_shdr): Add support for note sections.
1213
c4406e50
ILT
1214Tue Jan 2 13:10:25 1996 Ian Lance Taylor <[email protected]>
1215
d812945a
ILT
1216 * bfd-in.h (struct _symbol_info): Add stab_type field.
1217 * bfd-in2.h: Rebuild.
1218 * aoutx.h (NAME(aout,get_symbol_info)): Set stab_type.
1219
c4406e50
ILT
1220 * elf32-ppc.c: Remove trailing newline from calls to
1221 _bfd_error_handler.
1222 (ppc_elf_merge_private_bfd_data): Only warn about endianness
1223 difference if target endianness is known.
1224
08556813
MM
1225Thu Dec 21 12:43:49 1995 Michael Meissner <[email protected]>
1226
1227 * elf32-ppc.c (ppc_elf_howto_raw): Add a phony reloc to handle the
1228 old style TOC16 references without using R_PPC_GOT.
1229 (ppc_reloc_type): Ditto.
1230 (ppc_elf_reloc_type_lookup): Add support for TOC16.
1231 (ppc_elf_toc16_inner): Renamed from ppc_elf_got16_inner.
1232 (ppc_elf_toc16_reloc): Renamed from ppc_elf_toc16_reloc.
1233 (ppc_elf_got16_{inner,reloc}): Stubs for real GOT support.
1234 (ppc_elf_check_relocs): New function for GOT/PLT support that is
1235 work in progress.
1236 (ppc_elf_adjust_dynamic_symbol): Ditto.
1237 (ppc_elf_adjust_dynindx): Ditto.
1238 (ppc_elf_size_dynamic_sections): Ditto.
1239 (ppc_elf_finish_dynamic_symbol): Ditto.
1240 (ppc_elf_finish_dynamic_sections): Ditto.
1241 (ELF_DYNAMIC_INTERPRETER): Define.
1242
86587dd4
KR
1243Wed Dec 20 19:14:18 1995 Ken Raeburn <[email protected]>
1244
1245 * elf.c (copy_private_bfd_data): When attaching sections to
1246 segments ignore sections that won't be allocated. Patch from
1247 Andreas Schwab.
1248
bf7f243f
KR
1249Tue Dec 19 20:01:43 1995 Ken Raeburn <[email protected]>
1250
1251 * config.bfd: Match on m68k-cbm-* only if OS doesn't match
1252 anything else.
1253
d9518e2e
ILT
1254Tue Dec 19 16:38:59 1995 Ian Lance Taylor <[email protected]>
1255
1256 * coff-i960.c (CALC_ADDEND): Define.
1257 (coff_i960_relocate_section): Add the input section VMA to the
1258 addend for PC relative relocs.
1259
1260Sun Dec 17 20:11:55 1995 Kim Knuttila <[email protected]>
1261
1262 * peicode.h (pe_print_pdata): Must test the entire entry for zero
1263 to correctly terminate.
1264
010a405a
ILT
1265Fri Dec 15 12:05:57 1995 Ian Lance Taylor <[email protected]>
1266
dc092b6b
ILT
1267 * targets.c (enum bfd_endian): Define.
1268 (bfd_target): Rename byteorder_big_p to byteorder, and change it
1269 from boolean to enum bfd_endian. Change header_byteorder_big_p
1270 correspondingly.
1271 * bfd-in.h (bfd_big_endian, bfd_little_endian): New macros.
1272 (bfd_header_big_endian, bfd_header_little_endian): New macros.
1273 * bfd-in2.h: Rebuild.
1274 * All targets: Change initialization of byteorder and
1275 header_byteorder to use enum bfd_endian values rather than
1276 booleans.
1277 * All files: Change all references to byteorder_big_p and
1278 header_byteorder_big_p to use new bfd_*_endian macros.
1279
010a405a
ILT
1280 * coffgen.c (make_a_section_from_file): Set lma to s_paddr, not
1281 s_vaddr.
1282 * coffcode.h (coff_write_object_contents): Set s_paddr to lma, not
1283 vma.
1284 * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
1285
fcb43906
SC
1286Fri Dec 15 07:32:09 1995 steve chamberlain <[email protected]>
1287
1288 * pe[i]-i386.c (TARGET_UNDERSCORE): Define to '_'.
1289
0d709d31
ILT
1290Thu Dec 14 13:45:37 1995 Ian Lance Taylor <[email protected]>
1291
14578105
ILT
1292 * ieee.c: Lots of minor cleanups. Make many functions return
1293 errors rather than calling abort. Also:
1294 (ieee_write_twobyte): Remove; change callers to call existing
1295 ieee_write_2bytes function.
1296 (ieee_write_expression): Don't output the section twice when
1297 outputting a local symbol. Don't emit an extraneous zero if there
1298 is only one term.
1299 (ieee_slurp_sections): Set the lma as well as the vma.
1300 (ieee_archive_p): Use bfd_alloc_grow rather than an obstack.
1301
0d709d31
ILT
1302 * ihex.c (ihex_set_arch_mach): Don't accept any architecture, just
1303 a recognized one or bfd_arch_unknown.
1304 (ihex_get_symtab_upper_bound): Define as bfd_0l, to permit objcopy
1305 to succeed.
1306 (ihex_get_symtab): Likewise.
1307
14dc2f77
ILT
1308Wed Dec 13 15:44:06 1995 Ian Lance Taylor <[email protected]>
1309
1310 * aoutx.h: Include <ctype.h>.
1311 (struct aout_link_includes_table): Define.
1312 (struct aout_link_includes_totals): Define.
1313 (struct aout_link_includes_entry): Define.
1314 (aout_link_includes_lookup): Define macro.
1315 (struct aout_final_link_info): Add includes field.
1316 (aout_link_includes_newfunc): New static function.
1317 (NAME(aout,final_link)): Initialize includes hash table.
1318 (aout_link_write_symbols): Eliminate duplicate N_BINCL entries.
1319
480ccad5
SS
1320Wed Dec 13 10:52:14 1995 Stan Shebs <[email protected]>
1321
1322 * mpw-config.in: Match on mips-*-* instead of mips-idt-ecoff.
1323
3920d9c9
KK
1324Wed Dec 13 11:07:45 1995 Kim Knuttila <[email protected]>
1325
1326 * coff-ppc.c (coff_ppc_relocate_section): removed debugging code.
1327
207345f2
KK
1328Tue Dec 12 17:42:06 1995 Kim Knuttila <[email protected]>
1329
1330 * peicode.h (pe_print_reloc): New function to dump the .reloc section.
1331 (pe_print_private_bfd_data): call pe_print_reloc.
1332 * coffcode.h (coff_set_alignment_hook): .reloc section alignment.
1333 * coff-ppc.c (in_reloc_p): Added missing non-eligible relocs. Spiffed
1334 up some debugging as well.
1335
273c019e
ILT
1336Tue Dec 12 11:34:23 1995 Ian Lance Taylor <[email protected]>
1337
1338 * config.bfd: Handle sparc-*-elf*. From Ronald F. Guilmette
1339 <[email protected]>.
1340
010d9f2d
ILT
1341Fri Dec 8 17:47:07 1995 Ian Lance Taylor <[email protected]>
1342
1343 * elflink.h (elf_link_add_object_symbols): Set section_count to 0
1344 when setting sections to NULL.
1345
4a4a66bd
ILT
1346Wed Dec 6 17:05:37 1995 Ian Lance Taylor <[email protected]>
1347
1348 * xcofflink.c (struct xcoff_loader_info): Add export_defineds
1349 field.
1350 (bfd_xcoff_size_dynamic_sections): Add export_defineds parameter.
1351 (xcoff_build_ldsyms): If export_defineds is set, set XCOFF_EXPORT
1352 for all symbols.
1353 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
1354 * bfd-in2.h: Rebuild.
1355
545bf026
KK
1356Mon Dec 4 16:40:47 1995 Kim Knuttila <[email protected]>
1357
1358 * coffcode.h (coff_set_alignment_hook): Removed some debugging printf's
1359
1f4ae0d6
ILT
1360Mon Dec 4 11:25:39 1995 Ian Lance Taylor <[email protected]>
1361
55cac920
ILT
1362 * ihex.c (ihex_scan): Handle record types 4 and 5.
1363 (ihex_object_p): Permit types 4 and 5.
1364 (ihex_set_section_contents): Remove check for out of range
1365 addresses.
1366 (ihex_write_object_contents): Generate types 4 and 5.
1367
1f4ae0d6
ILT
1368 * elflink.h (elf_link_output_extsym): Just ignore warning and
1369 indirect references to symbols which don't really exist.
1370
53d45489
KK
1371Sun Dec 3 19:00:27 1995 Kim Knuttila <[email protected]>
1372
1373 * peicode.h (pe_print_idata): Minor format fixes
1374 (pe_print_edata): New function. Under private printing, this formats
1375 the edata section of a PE file.
1376 (pe_print_private_bfd_data): Added call to pe_print_edata.
1377
361e8876
DE
1378Sun Dec 3 16:46:54 1995 Richard Earnshaw ([email protected])
1379
1380 * aout-arm.c (MY_swap_std_reloc_out): Use KEEPIT to get the symbol
1381 index, don't call stoi.
1382
58142f10
ILT
1383Fri Dec 1 14:46:51 1995 Ian Lance Taylor <[email protected]>
1384
ffd15489
ILT
1385 * srec.c (srec_scan): Set lma as well as vma.
1386
1387 * ihex.c: New file; support for Intel Hex format.
1388 * targets.c (enum bfd_flavour): Add bfd_target_ihex_flavour.
1389 (ihex_vec): Declare.
1390 (bfd_target_vector): Always include ihex_vec.
1391 * bfd.c (struct _bfd): Add ihex_data field to tdata union.
1392 * Makefile.in: Rebuild dependencies.
1393 (BFD_LIBS): Add ihex.o
1394 (BFD_LIBS_CFILES): Add ihex.c.
1395 * bfd-in2.h: Rebuild.
1396
ae0a6bea
ILT
1397 * elf.c (assign_file_positions_for_segments): Sort the sections in
1398 each segment.
1399 (get_program_header_size): Return the right size if segment_map is
1400 not NULL.
1401 (copy_private_bfd_data): Don't bother to sort the sections.
1402
1403 * bfd.c (bfd_record_phdr): New function.
1404 * bfd-in.h (bfd_record_phdr): Declare.
1405 * bfd_in2.h: Rebuild.
1406
ce0ee4bf
ILT
1407 * elf32-sparc.c (elf32_sparc_relocate_section): Remove bogus
1408 BFD_ASSERT.
1409
58142f10
ILT
1410 * libbfd.c (bfd_malloc, bfd_realloc): New functions.
1411 (bfd_zmalloc): Return PTR, not char *. Take size_t, not
1412 bfd_size_type.
1413 * libbfd-in.h (bfd_malloc, bfd_realloc): Declare.
1414 (bfd_zmalloc): Change declaration.
1415 * libbfd.h: Rebuild.
1416 * Many files: Use bfd_malloc and bfd_realloc rather than malloc
1417 and realloc. Don't set bfd_error_no_memory if they fail.
1418
59066248
KK
1419Thu Nov 30 19:32:26 1995 Kim Knuttila <[email protected]>
1420
1421 * coff-ppc.c: Added macros to tidy up toc cell treatment. Numerous
1422 uses as well. Added a new howto to deal with TOCREL16 relocs that
1423 are TOCDEFN as well.
1424 (coff_ppc_relocate_section): Expanded treatment of ADDR32NB relocs
1425 to handle RVA relocs from dlltool.
1426 (ppc_coff_rtype2howto): TOCDEFN reloc addition.
1427 (coff_ppc_rtype_to_howto): TOCDEFN reloc addition.
1428 (ppc_coff_reloc_type_lookup): TOCDEFN reloc addition.
1429
1430 * coffcode.h (coff_set_alignment_hook): check idata$X sections
1431 to get the right section alignment.
1432
6933148a
ILT
1433Thu Nov 30 16:48:18 1995 Ian Lance Taylor <[email protected]>
1434
1435 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
1436 p_paddr if p_paddr is zero.
1437 (make_mapping): Set includes_filehdr and includes_phdrs for first
1438 PT_LOAD segment.
1439 (map_sections_to_segments): Set includes_phdrs for PT_PHDR
1440 segment.
1441 (assign_file_positions_for_segments): Handle includes_filehdr and
1442 includes_phdrs. Remove special handling of PT_PHDR and first
1443 PT_LOAD segments.
1444 (copy_private_bfd_data): Set includes_filehdr and includes_phdr
1445 when appropriate. Remove special handling of PT_PHDR segment.
1446 Use a more complex condition for when a section is included in a
1447 segment to handle Solaris linker oddities.
1448
f62fed1c
ILT
1449Thu Nov 30 11:17:33 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <[email protected]>
1450
1451 * coff-m88k.c (howto_table): Reformatted for easier reading;
1452 special_function now points to new function m88k_special_reloc.
1453 (howto_hvrt16): Function previously used for handling HVRT16 relocs
1454 removed.
1455 (rtype2howto): Do not add reloc's r_offset to the addend, this will
1456 be done correctly by m88k_special_reloc.
1457 (reloc_processing): New function to be used by RELOC_PROCESSING.
1458 (RELOC_PROCESSING): Define to call reloc_processing.
1459
64ecde46
ILT
1460Wed Nov 29 12:42:36 1995 Ian Lance Taylor <[email protected]>
1461
b00c57ec
ILT
1462 * peicode.h (pe_print_idata): Call malloc rather than xmalloc.
1463 (pe_print_pdata): Likewise.
1464
a9713b91
ILT
1465 * opncls.c (bfd_alloc_by_size_t): Set bfd_error_no_memory if
1466 obstack_alloc fails.
1467 (bfd_alloc_finish): Set bfd_error_no_memory if obstack_finish
1468 fails.
1469 * libbfd.c (bfd_zmalloc): Set bfd_error_no_memory if malloc fails.
1470 * Many files: don't set bfd_error_no_memory if one of the above
1471 routines fails.
1472
3dbf33ee
ILT
1473 * elf.c (assign_file_positions_for_segments): Don't adjust p_paddr
1474 if p_paddr_valid is set.
1475 (copy_private_bfd_data): New static function.
1476 (_bfd_elf_copy_private_section_data): Call copy_private_bfd_data.
1477
44ef8897
ILT
1478 * elf.c (assign_file_positions_for_segments): Fix case where extra
1479 program headers were allocated.
1480
27fb8f29
ILT
1481 * elf.c (_bfd_elf_print_private_bfd_data): New function.
1482 * elf-bfd.h (_bfd_elf_print_private_bfd_data): Declare.
1483 * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define to
1484 _bfd_elf_print_private_bfd_data.
1485
64ecde46
ILT
1486 * coff-alpha.c (alpha_ecoff_swap_reloc_in): Don't abort if
1487 r_symndx is RELOC_SECTION_NONE for an ALPHA_R_IGNORE reloc.
1488 Change a RELOC_SECTION_LITA symndx to RELOC_SECTION_ABS.
1489 (alpha_ecoff_swap_reloc_out): Change RELOC_SECTION_ABS to
1490 RELOC_SECTION_LITA for ALPHA_R_IGNORE.
1491 (alpha_adjust_reloc_out): For ALPHA_R_IGNORE, don't change
1492 RELOC_SECTION_ABS to RELOC_SECTION_NONE.
1493
fd0198f0
ILT
1494Tue Nov 28 16:59:50 1995 Ian Lance Taylor <[email protected]>
1495
1496 * elf-bfd.h (struct elf_obj_tdata): Add segment_map field.
1497 * elf.c (make_mapping): New static function.
1498 (map_sections_to_segments): New static function.
1499 (elf_sort_sections): New static function.
1500 (assign_file_positions_for_segments): New static function.
1501 (map_program_segments): Remove.
1502 (get_program_header_size): Remove sorted_hdrs, count, and
1503 maxpagesize parameters. Simplify.
1504 (assign_file_positions_except_relocs): When generating an
1505 executable, use assign_file_positions_for_segments.
1506 (elf_sort_hdrs): Remove.
1507 (_bfd_elf_sizeof_headers): Remove eliminated parameters from call
1508 to get_program_header_size.
1509
3b3f7625
ILT
1510Mon Nov 27 12:27:46 1995 Ian Lance Taylor <[email protected]>
1511
1ff0461b
ILT
1512 * hp300hpux.c (MY(callback)): Set lma as well as vma.
1513
80c8485c
ILT
1514 * configure, config.in: Regenerate with autoconf 2.7.
1515
3b3f7625
ILT
1516 * elf32-i386.c (elf_backend_plt_readonly): Set correctly, to 1.
1517 * elf32-sparc.c (elf_backend_plt_readonly): Set correctly, to 0.
1518
fa63d1ef
ILT
1519Wed Nov 22 12:02:09 1995 Ian Lance Taylor <[email protected]>
1520
a877f591
ILT
1521 * ecoff.c (_bfd_ecoff_new_section_hook): Handle .rconst section.
1522 (ecoff_sec_to_styp_flags): Likewise.
1523 (_bfd_ecoff_styp_to_sec_flags): Handle STYP_RCONST.
1524 (ecoff_set_symbol_info): Handle scRConst.
1525 (ecoff_slurp_reloc_table): Handle RELOC_SECTION_RCONST.
1526 (ecoff_compute_section_file_positions): Handle .rconst section.
1527 (_bfd_ecoff_write_object_contents): Likewise.
1528 (ecoff_link_check_archive_element): Handle scRConst.
1529 (ecoff_link_add_externals): Likewise.
1530 (ecoff_link_write_external): Handle .rconst section.
1531 (ecoff_reloc_link_order): Likewise.
1532 * ecofflink.c (bfd_ecoff_debug_accumulate): Handle scRConst.
1533 * coff-alpha.c (alpha_convert_external_reloc): Handle .rconst
1534 section.
1535 (alpha_relocate_section): Handle RELOC_SECTION_RCONST.
1536
fa63d1ef
ILT
1537 * sunos.c (sunos_scan_dynamic_symbol): Only set written if the
1538 DEF_DYNAMIC flag is set.
1539
25bada65
KR
1540Tue Nov 21 13:25:29 1995 Ken Raeburn <[email protected]>
1541
1542 * host-aout.c: If TRAD_HEADER is defined, include it.
1543
7938b4cb
ILT
1544Tue Nov 21 13:03:57 1995 Ian Lance Taylor <[email protected]>
1545
85e493f0
ILT
1546 * aclocal.m4 (AC_PROG_CC): Remove local definition.
1547 (BFD_BINARY_FOPEN): Require AC_CANONICAL_SYSTEM.
1548 (BFD_NEED_DECLARATION): New function.
1549 * configure.in: Use BFD_NEED_DECLARATION.
bd77213b
ILT
1550 * acconfig.h: Put NEED_DECLARATION_* in @TOP@ section.
1551 * configure, config.in: Rebuild with autoconf 2.6.
85e493f0 1552
83dcdc61
ILT
1553 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Clear
1554 special_sections before returning when called with a non XCOFF
1555 BFD.
1556
7938b4cb
ILT
1557 * coffgen.c (coff_renumber_symbols): Sort common symbols with
1558 global symbols.
1559
1560 * coffcode.h (coff_compute_section_file_positions): Only pad the
1561 previous section to force file alignment when creating an
1562 executable.
1563
b5403ad7
ILT
1564Mon Nov 20 14:54:09 1995 Ian Lance Taylor <[email protected]>
1565
a418e05d
ILT
1566 * coffcode.h (coff_compute_section_file_positions): If
1567 RS6000COFF_C, set up the .debug section.
1568
b5403ad7
ILT
1569 * xcofflink.c (xcoff_link_input_bfd): Adjust the TOC anchor value
1570 if it is not large enough to accomodate the entire TOC area with
1571 signed 16 bit offsets.
1572 (xcoff_write_global_symbol): Handle negative TOC offsets in global
1573 linkage code.
1574 (_bfd_ppc_xcoff_relocate_section): Adjust relocations against a
1575 TOC anchor to use the TOC value used in the output file.
1576
90a7abbc
ILT
1577Sat Nov 18 18:01:41 1995 Ian Lance Taylor <[email protected]>
1578
1579 * coffgen.c (_bfd_coff_get_external_symbols): Cast malloc return.
1580 (_bfd_coff_read_string_table): Likewise.
1581
177b1932
DE
1582Sat Nov 18 19:43:04 1995 Richard Earnshaw ([email protected])
1583
1584 * pe-arm.c: Fix typos.
1585 * coff-arm.c: Likewise.
1586
1587Fri Nov 17 16:22:04 1995 Kim Knuttila <[email protected]>
1588
1589 * coff-ppc.c (list_ele): Added "cat"egory member.
1590 (record_toc): New category parameter (priv or pub).
1591 (ppc_record_toc_entry): Check to see if toc bounds exceeded.
1592 (ppc_process_before_allocation): Removed embrionic data-in-toc from
1593 the mainline. It addes extra toc cells in error.
1594 (ppc_coff_swap_sym_in_hook): Added some documentation.
1595 (dump_toc): Can now diagnose "virtual toc" chicanery.
1596
e34314c4
ILT
1597Fri Nov 17 10:41:25 1995 Philippe De Muyter <[email protected]>
1598
1599 * elf-bfd.h (struct elf_link_hash_table): Change type of
1600 dynsymcount and bucketcount fields from size_t to bfd_size_type.
1601
73a68447
ILT
1602Fri Nov 17 10:02:58 1995 Ian Lance Taylor <[email protected]>
1603
535e9e29
ILT
1604 * coffcode.h (coff_pointerize_aux_hook): I960 version: don't
1605 pointerize C_LEAFSTAT or C_LEAFEXT entries.
1606
73a68447
ILT
1607 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Only create
1608 DT_INIT and DT_FINI entries if the _init or _fini symbol is
1609 defined or mentioned in a regular file.
1610
cd2b2402
KK
1611Thu Nov 16 15:16:42 1995 Kim Knuttila <[email protected]>
1612
1613 * coff-ppc.c (ppc_record_data_in_toc_entry): new function
1614 (coff_ppc_relocate_section): Handle TOCDEFN attribute
1615 (coff_ppc_relocate_section): Correct REL24 handling
1616 (ppc_process_before_allocation): Correct TOCDEFN handling
1617
1618 * peicode.h (dir_names): Added name descriptions
1619
b218076e
KR
1620Thu Nov 16 03:38:03 1995 Ken Raeburn <[email protected]>
1621
1622 * VERSION: Updated to cygnus-2.6.
1623
1624Wed Nov 15 19:30:07 1995 Ken Raeburn <[email protected]>
1625
1626 * targets.c (m68k4knetbsd_vec): Declare.
1627
e9f30616
ILT
1628Wed Nov 15 18:05:52 1995 Ian Lance Taylor <[email protected]>
1629
1630 * targets.c (bfd_target): Change type of second argument to
1631 _bfd_print_private_bfd_data from void * to PTR.
1632 * libbfd-in.h (_bfd_generic_bfd_print_private_bfd_data): Cast
1633 using PTR rather than void *.
1634 * bfd-in2, libbfd.h: Rebuild.
1635 * peicode.h (pe_print_private_bfd_data): Change vfile from void *
1636 to PTR.
1637 * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define as
1638 _bfd_generic_bfd_print_private_bfd_data rather than casting
1639 bfd_true.
1640
ae75c4a4
KR
1641Wed Nov 15 04:09:14 1995 Ken Raeburn <[email protected]>
1642
1643 * Makefile.in (.dep1): Fix stupid typo in last change. Remove any
1644 "DO NOT DELETE" lines or blank lines that mkdep writes on some
1645 systems.
1646 (BFD_LIBS_CFILES, ALL_MACHINES_CFILES, BFD32_BACKENDS_CFILES,
1647 BFD64_BACKENDS_CFILES): New variables.
1648 (CFILES): Use them.
1649
bebcd3db
ILT
1650Tue Nov 14 11:52:23 1995 Ian Lance Taylor <[email protected]>
1651
4b71e164
ILT
1652 * peicode.h (coff_swap_aouthdr_out): For PPC PE, start isize at 0,
1653 not at the file position of the first section.
1654 * coffcode.h (coff_compute_section_file_positions): Avoid using
1655 unportable #elif.
1656 (coff_write_object_contents): When generating a PPC PE executable
1657 with no symbols, round up the file size to a COFF_PAGE_SIZE
1658 boundary.
1659 * cofflink.c (_bfd_coff_final_link): If there are no symbols,
1660 don't write out a string table.
1661
631b10f4
ILT
1662 * elf.c (bfd_section_from_shdr): When using a different section
1663 header, pass the new one to _bfd_elf_make_section_from_shdr.
1664 (elf_fake_sections): Don't set sh_info and sh_entsize fields.
1665 (elf_map_symbols): Add section VMA to symbol value when comparing
1666 against 0.
1667 (_bfd_elf_compute_section_file_positions): Only build symbol table
1668 if there are some symbols. Set file offset of symtab and strtab
1669 sections.
1670 (assign_file_positions_except_relocs): Remove dosyms parameter.
1671 Change all callers. Never set file offset of symtab and strtab
1672 sections.
1673 (_bfd_elf_copy_private_section_data): New function.
1674 (MAP_ONESYMTAB, MAP_DYNSYMTAB, MAP_STRTAB, MAP_SHSTRTAB): Define.
1675 (_bfd_elf_copy_private_symbol_data): New function.
1676 (swap_out_syms): Check for special mapping of st_shndx created by
1677 copy_private_symbol_data.
1678 * elfxx-target.h: Use new copy routines.
1679 * elf-bfd.h (_bfd_elf_copy_private_symbol_data): Declare.
1680 (_bfd_elf_copy_private_section_data): Declare.
1681
1682 * config.bfd (sh-*-*): Set targ_defvec to shcoff_vec.
1683
1684 * coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE, handle
1685 C_NT_WEAK.
1686
bebcd3db
ILT
1687 * coff-sh.c (shlcoff_vec): Use _bfd_generic_archive_p, not
1688 _bfd_dummy_target, matching the recent change to archive
1689 recognition.
1690
7ad4ba81
ILT
1691Mon Nov 13 13:24:38 1995 Ian Lance Taylor <[email protected]>
1692
afa67334
ILT
1693 * libbfd.c (bfd_get_file_window): Use casts to avoid doing
1694 arithmetic on PTR types.
1695
f2bd8915
ILT
1696 * aout-target.h (MY(callback)): Set the lma of the sections.
1697
7ad4ba81
ILT
1698 * ecoff.c (ecoff_reloc_link_order): Turn a reloc against a defined
1699 symbol into a reloc against the section.
1700
93b6a3f8
KK
1701Mon Nov 13 07:31:35 1995 Kim Knuttila <[email protected]>
1702
1703 * coff-ppc.c (ppc_coff_link_hash_entry): added support for inline
1704 glue for the relocs: IMGLUE and IFGLUE.
1705 (record_toc): new function - tracks toc contents
1706 (ppc_mark_symbol_as_glue): new function - supports the IMGLUE reloc
1707 (coff_ppc_relocate_section): Added support and fixes for IMGLUE/IFGLUE
1708 (ppc_coff_rtype2howto): removed invalid IMGLUE hack
1709 (coff_ppc_rtype_to_howto): removed invalid IMGLUE hack
125d37c4 1710 (ppc_record_toc_entry): Removed a debug define (duh)
93b6a3f8
KK
1711
1712 * peicode.h (coff_swap_scnhdr_out): Fixed invalid strcmp for ".reldata"
1713 (pe_print_idata): New function - formats the idata section data
1714 (pe_print_pdata): New function - formats the pdata section data
1715 (pe_print_private_bfd_data): calls to above
1716
c769947b
SS
1717Sun Nov 12 12:23:24 1995 Stan Shebs <[email protected]>
1718
1719 * Makefile.in (bfd_libs_here, etc): Provide empty definitions.
1720 * coff-rs6000.c (rs6000coff_vec): Add conditional defines
1721 TARGET_SYM and TARGET_NAME for vector and BFD name.
1722 * coff-pmac.c (pmac_xcoff_vec): Remove.
1723 (TARGET_SYM, TARGET_NAME): Define.
1724 * coffcode.h (coff_set_arch_mach_hook) [POWERMAC]: Set the
1725 machine to 0, not all PowerMacs are 601s.
1726
1727Fri Nov 10 12:10:14 1995 Ian Lance Taylor <[email protected]>
1728
1729 * elfcode.h (elf_object_p): Read in any program headers.
1730 * elf.c (_bfd_elf_make_section_from_shdr): Adjust section lma
1731 based on the program headers, if any.
1732 (elf_fake_sections): Set sh_addr from the vma, not the lma.
1733 (map_program_segments): Set p_paddr of program headers based on
1734 the lma.
1735
ee174815
ILT
1736Thu Nov 9 13:01:31 1995 Ian Lance Taylor <[email protected]>
1737
839087b7
ILT
1738 * archive.c (bfd_generic_archive_p): Preserve tdata in case of
1739 failure.
1740
922530a6
ILT
1741 * aoutx.h (NAME(aout,final_link)): Report a reasonable error when
1742 trying to do a relocateable link with a non-a.out object file.
1743
1744 * archive.c (bfd_generic_archive_p): Check the first object file
1745 in an archive even if target_defaulted is set. If the object file
1746 has the wrong xvec, reject it.
1747
a1774c51
ILT
1748 * aoutx.h (NAME(aout,set_section_contents)): If a section can not
1749 be represented, report the name via _bfd_error_handler.
1750 (translate_to_native_sym_flags): Likewise.
1751 * elf32-mips.c (mips_elf_final_link): Likewise.
1752 * oasys.c (oasys_write_sections): Likewise.
1753
4a378b13
ILT
1754 * coffcode.h (coff_set_alignment_hook): Write RS6000COFF_C version
1755 which checks for STYP_OVRFLO sections.
1756 (coff_compute_section_file_positions): If RS6000COFF_C, handle
1757 reloc and lineno count overflows.
1758 (coff_write_object_contents): Call coff_count_linenumbers before
1759 coff_compute_section_file_positions. If RS6000COFF_C, handle
1760 reloc and lineno count overflows.
1761 * xcofflink.c (_bfd_xcoff_bfd_final_link): Count line numbers and
1762 relocs before dealing with .pad sections. Count overflow section
1763 headers when handling .pad sections.
1764
7906bf87
ILT
1765 * coffcode.h (coff_write_object_contents): Set a.out vstamp to 1
1766 if RS6000COFF_C.
1767
ee174815
ILT
1768 * xcofflink.c (XCOFF_DESCRIPTOR): Define.
1769 (struct xcoff_link_hash_table): Add descriptor_section and
1770 special_sections fields.
1771 (_bfd_xcoff_bfd_link_hash_table_create): Initialize new fields.
1772 (xcoff_link_add_symbols): Set linkage section alignment. Create
1773 descriptor section. Check for magic symbol names (_text, etc.),
1774 and record them in special_sections if found. Set
1775 XCOFF_DESCRIPTOR flag for a function descriptor, and set its
1776 descriptor field to point back to the function code symbol.
1777 (xcoff_sweep): Always mark the special descriptor_section.
1778 (bfd_xcoff_export_symbol): Check whether the symbol might be a
1779 function descriptor, and mark it if it is.
1780 (bfd_xcoff_size_dynamic_sections): Add new special_sections
1781 parameter, and fill it in. Allocate space for the descriptor
1782 section.
1783 (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR flag when defining
1784 global linkage code. If an undefined function descriptor is
1785 exported, arrange to define it. Warn about any other undefined
1786 exported symbol.
1787 (_bfd_xcoff_bfd_final_link): Write out the descriptor section.
1788 (xcoff_write_global_symbol): Create a function descriptor when
1789 necessary.
1790 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
1791 * bfd-in2.h: Rebuild.
1792
0e829f18
KK
1793Thu Nov 9 08:40:23 1995 Kim Knuttila <[email protected]>
1794
1795 * coff-ppc.c (ppc_coff_link_hash_entry): new types for hashing
1796 (ppc_coff_link_hash_table): new types for hashing
1797 (ppc_coff_link_hash_newfunc): hash entry constructor
1798 (ppc_coff_link_hash_table_init): hash table initializer
1799 (ppc_coff_link_hash_table_create): hash table constructor
1800 (ppc_record_toc_entry): changed references to hash table
1801 (coff_ppc_relocate_section): changed references to hash table
1802
1803 * libcoff-in.h (coff_link_hash_entry): removed toc_offset
1804 * libcoff.h: Rebuild
1805
1806 * cofflink.c (_bfd_coff_link_hash_newfunc): removed toc_offset init
1807 (coff_link_add_symbols): removed toc_offset init
1808
7ac84736
KR
1809Thu Nov 9 04:00:38 1995 Ken Raeburn <[email protected]>
1810
b27cc4bc
KR
1811 * Makefile.in (.dep1): Make sure the file mkdep is to write exists
1812 first.
1813
7ac84736
KR
1814 * configure.in: Added new option --with[out]-mmap. Set USE_MMAP
1815 if it is given and mmep is available.
1816 * acconfig.h: Undef USE_MMAP.
1817 * configure, config.in: Regenerated.
1818 * aoutx.h: If USE_MMAP is not defined, do all symbol and string
1819 table handling the old way.
1820 (aout_get_external_symbols): Don't complain if last byte of string
1821 table is nonzero.
1822 * libbfd.c [HAVE_MADVISE]: Include sys/types.h and sys/mman.h.
1823 (bfd_free_window) [! USE_MMAP]: Don't define.
1824 (bfd_get_file_window,
1825 _bfd_generic_get_section_contents_in_window) [! USE_MMAP]: Abort.
1826
1b3b0c03
ILT
1827Wed Nov 8 20:03:44 1995 Eric Freudenthal <[email protected]>
1828
1829 * coff-a29k.c (SIGN_EXTEND_HWORD): Use ~0xffff rather than
1830 0xffff0000.
1831
092abcdf
ILT
1832Wed Nov 8 11:31:11 1995 Ian Lance Taylor <[email protected]>
1833
33698029
ILT
1834 * coff-a29k.c (a29k_reloc): Change handling of R_IREL reloc to be
1835 compatible with AMD generated COFF files. Try to support both AMD
1836 and GNU formats simultaneously.
1837 (coff_a29k_relocate_section): Likewise.
1838
0bb8ff19
ILT
1839 * libbfd.c (bfd_get_file_window): Change writable parameter from
1840 int to boolean; update all callers. Pass MAP_SHARED if not
1841 writable--it's required on Solaris. Cast fprintf argument to
1842 avoid warning.
1843 * bfd-in.h (bfd_get_file_window): Update declaration.
1844 * bfd-in2.h: Rebuild.
1845 * aoutx.h: Update calls to bfd_get_file_window.
1846
0634a431
ILT
1847 * xcofflink.c (XCOFF_DEF_DYNAMIC): Rename from XCOFF_REF_DYNAMIC.
1848 Change all uses.
1849 (xcoff_swap_ldhdr_in): New static function.
1850 (xcoff_swap_ldsym_in): New static function.
7812bf9c 1851 (xcoff_find_reloc): Handle the case of a single reloc correctly.
0634a431
ILT
1852 (xcoff_link_add_symbols): If we just created a descriptor, pass it
1853 to _bfd_generic_link_add_one_symbol, to save a hash lookup.
417acf22 1854 Handle XTY_ER/XMC_XO symbols correctly.
0634a431
ILT
1855 (xcoff_link_add_dynamic_symbols): Rewrite to read .loader symbols
1856 rather than normal symbol table.
417acf22
ILT
1857 (bfd_xcoff_import_symbol): It's not an error if the symbol is
1858 already defined with the same absolute value.
0634a431
ILT
1859 (xcoff_mark): When considering called symbols, check whether the
1860 descriptor is from a dynamic object, rather than the symbol
1861 itself.
1862 (xcoff_build_ldsyms): Likewise.
1863
092abcdf
ILT
1864 * libbfd.c (bfd_get_file_window): Change return type to boolean.
1865 Cast realloc and malloc return values. If malloc or realloc fail,
1866 set bfd_error_no_memory.
1867 * bfd-in.h (bfd_get_file_window): Change type to boolean.
1868 * bfd-in2.h: Rebuild.
1869
d6f41a7d
KK
1870Tue Nov 7 11:53:48 1995 Kim Knuttila <[email protected]>
1871
1872 * coff-ppc.c (ppc_record_toc_entry): new function.
1873 (in_reloc_p): changed return value.
1874 (coff_ppc_relocate_section): much rework.
1875 (ppc_allocate_toc_section): new function.
1876 (ppc_process_before_allocation): new function.
1877 (ppc_coff_swap_sym_in_hook): new function.
1878
1879 * cofflink.c (_bfd_coff_link_hash_newfunc): initialize toc_offset.
1880 (coff_link_add_symbols): initialize toc_offset.
1881
1882 * peicode.h (coff_swap_sym_in): Added coff_swap_sym_in_hook
1883 (coff_swap_aouthdr_out): Added more sections to the data
1884 dictionary for the pe file header. Also changed linker version
1885 number on the ppc side.
1886 (dir_names): small improvements to the dictionary printing.
1887 (pe_mkobject_hook): save the file level flags.
1888
1889 * libcoff-in.h (coff_link_hash_entry): added toc_offset field
1890 (pe_tdata): added real_flags field
1891 (coff_tdata): added local_toc_sym_map and access macro
1892
1893 * libcoff.h (coff_link_hash_entry): added toc_offset field
1894 (pe_tdata): added real_flags field
1895 (coff_tdata): added local_toc_sym_map and access macro
1896
1897 * coffcode.h (coff_set_alignment_hook): added hook for PE.
1898 (coff_mkobject): init for local_toc_sym_map
1899 (coff_write_object_contents): set the internal_a.magic to
1900 IMAGE_NT_OPTIONAL_HDR_MAGIC which appears to be what other
1901 ppc compilers use.
1902
6bc200f2
ILT
1903Tue Nov 7 13:48:58 1995 Ian Lance Taylor <[email protected]>
1904
c0971298
ILT
1905 * ecofflink.c (_bfd_ecoff_locate_line): Keep looking through stabs
1906 entries until both the line number address and the function name
1907 address are too large.
1908
6a468850
ILT
1909 * configure.in: Call AC_CHECK_PROG to find and cache AR.
1910 * configure: Rebuilt.
1911
6bc200f2
ILT
1912 * aclocal.m4 (BFD_CC_FOR_BUILD): Don't define CC_FOR_BUILD if it
1913 is defined in the environment.
1914
c44bf94c
JL
1915Tue Nov 7 10:57:24 1995 Jeffrey A Law ([email protected])
1916
1917 * som.c (som_get_section_contents_in_window): Define to use
1918 generic version.
1919
cf587de8
ILT
1920Mon Nov 6 17:13:15 1995 Harry Dolan <[email protected]>
1921
1922 * coff-i860.c: New file, based on coff-i386.c.
1923 * cpu-i860.c: New file, based on cpu-i386.c.
1924 * hosts/i860mach3.h: New file, based on hosts/i386mach3.h.
1925 * config.bfd (i860-*-mach3*, i860-*-osf1*, i860-*-coff*): New
1926 targets, using i860coff_vec.
1927 * configure.in (i860-*-mach3*, i860-*-osf1*): New hosts, using
1928 trad-core.o and hosts/i860mach3.h.
1929 (i860coff_vec): Use coff-i860.o and cofflink.o.
1930 * configure: Rebuild.
1931 * Makefile.in: Rebuild dependencies.
1932 (ALL_MACHINES): Add cpu-i860.o.
1933 (BFD32_BACKENDS): Add coff-i860.o.
1934 (CFILES): Add cpu-i860.c and coff-i860.c.
1935 * targets.c (i860coff_vec): Declare.
1936 (bfd_target_vector): Add &i860coff_vec.
1937 * archures.c (bfd_i860_arch): Declare.
1938 (bfd_archures_list): Add &bfd_i860_arch.
1939 * coffcode.h (coff_set_arch_mach_hook): Handle I860 magic number.
1940 (coff_set_flags): Handle bfd_arch_i860.
1941 (coff_write_object_contents): Handle I860 a.out magic number.
1942
83c23fca
ILT
1943Mon Nov 6 14:34:07 1995 Ian Lance Taylor <[email protected]>
1944
1945 * xcofflink.c (xcoff_link_add_symbols): Set the alignment power of
1946 the created .tc section to 2.
1947 (xcoff_mark): Don't keep a .loader reloc for a call to an
1948 undefined symbol when creating a shared library.
1949 (xcoff_build_ldsyms): When creating a shared library, generate
1950 global linkage code for a call to an undefined symbol.
1951
5d9eb9c3
KR
1952Sun Nov 5 21:44:13 1995 Ken Raeburn <[email protected]>
1953
1954 * Makefile.in (CFILES): Rebuild list from BFD_LIBS, ALL_MACHINES,
1955 BFD32_BACKENDS, BFD64_BACKENDS.
1956 (.dep1): Put mkdep output in a separate file.
1957 Rebuilt dependencies.
1958
ffacb892
KR
1959 * ecoff.c (_bfd_ecoff_slurp_armap): Cast _bfd_read_ar_hdr return
1960 value.
1961
4fe6d901
KR
1962 Permit use of mmap when available:
1963
1964 * configure.in: Check for mmap, madvise, mprotect.
1965 * config.in, configure: Regenerated.
1966
1967 * libbfd.c (struct _bfd_window_internal): Define type.
1968 (bfd_init_window, bfd_free_window, bfd_get_file_window): New
1969 functions.
1970 (ok_to_map): New static variable for debugging.
1971 (_bfd_generic_get_section_contents_in_window): New function.
1972 * bfd-in.h (bfd_window_internal): Declare type.
1973 (bfd_window): Define type.
1974 (bfd_init_window, bfd_free_window, bfd_get_file_window): Declare.
1975 * libbfd-in.h (_bfd_generic_get_section_contents_in_window):
1976 Declare.
1977
1978 * libaout.h (struct aoutdata): Add two window fields.
1979 (obj_aout_sym_window, obj_aout_string_window): New macros.
1980 * aoutx.h (some_aout_object_p): Initialize windows.
1981 (aout_get_external_symbols): Get symbol data and strings in
1982 windows instead of explicitly allocated buffers.
1983 (slurp_symbol_table): Free window instead of memory.
1984 (bfd_free_cached_info): Release windows instead of freeing storage
1985 directly.
1986 (aout_link_free_symbols): Ditto.
1987
1988 * targets.c (bfd_target): Add new field for
1989 get_section_contents_in_window.
1990 (BFD_JUMP_TABLE_GENERIC): Updated.
1991 * aout-adobe.c, aout-target.h, binary.c, bout.c, coff-alpha.c,
1992 coff-mips.c, elfxx-target.h, i386msdos.c, i386os9k.c, ieee.c,
1993 libcoff-in.h, oasys.c, srec.c, tekhex.c, versados.c: Added new
1994 macros for get_section_contents_in_window field.
1995
d9e771e3
FF
1996Sat Nov 4 12:23:26 1995 Fred Fish <[email protected]>
1997
1998 * core.c: Renamed to corefile.c
1999 * makefile.dos (OBJS): Change core.o to corefile.o
2000 * Makefile.in (CFILES, BFD_LIBS): Use corefile.c instead of core.c
2001
bf917766
SG
2002start-sanitize-gm
2003Sat Nov 4 10:16:54 1995 Stu Grossman ([email protected])
2004
2005 * config.bfd (mips*-*-magic*): Add bfd_elf32_bigmips_vec to
2006 targ_selvecs to allow debugging under Irix-5 native.
2007
2008end-sanitize-gm
583db7a8
ILT
2009Fri Nov 3 15:54:59 1995 Ian Lance Taylor <[email protected]>
2010
2011 * xcofflink.c (xcoff_link_add_symbols): Rename local variable sub
2012 to o. Clobber and restore the list of new csects around the call
2013 to _bfd_generic_link_add_one_symbol, in case it wants to report a
2014 linker error and the linker wants to read the symbol table. Reset
2015 the line number count of a real section even if it has no relocs.
2016 (_bfd_xcoff_bfd_final_link): If shared, set the DYNAMIC flag.
2017
2018 * coffgen.c (_bfd_coff_read_string_table): Warn if the string size
2019 is too small.
2020
68aed7db
ILT
2021Thu Nov 2 23:16:39 1995 Ian Lance Taylor <[email protected]>
2022
18a9609c
ILT
2023 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Don't warn about
2024 an undefined symbol in a shared link.
2025
68aed7db
ILT
2026 * linker.c (_bfd_generic_link_add_one_symbol): Correct type of
2027 oldtype from bfd_link_order_type to bfd_link_hash_type. From
2028 [email protected] (Philippe De Muyter).
2029
7f82c7e1
ILT
2030Wed Nov 1 14:26:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <[email protected]>
2031
2032 * coff-m88k.c (rtype2howto): New static function.
2033 (RTYPE2HOWTO): Use it rather than a macro definition.
2034
2035 * coffcode.h (coff_write_object_contents): set internal_a.magic
2036 to PAGEMAGICPEXECPAGED #if defined (M68) && !defined (LYNXOS).
2037
4c8b9746 2038 * configure.in: m68*-motorola-sysv* does not use ptrace-core.o;
7f82c7e1
ILT
2039 define TRAD_HEADER to new file hosts/delta68.h.
2040 m88*-motorola-sysv*, however, does use ptrace-core.o.
2041 * hosts/delta68.h: New file.
2042
2043 * ptrace-core.c (ptrace_unix_core_file_p): change bfd_zmalloc to
2044 bfd_zalloc; provide proper parm abfd to calls to bfd_zalloc.
2045
619c7730
KR
2046Wed Nov 1 13:51:54 1995 Ken Raeburn <[email protected]>
2047
2048 * i386linux.c (MY(vec)): Declare before use.
2049
73246ff8
ILT
2050Wed Nov 1 11:45:07 1995 Ian Lance Taylor <[email protected]>
2051
e8d6d5d0
ILT
2052 * reloc16.c (bfd_coff_reloc16_get_relocated_section_contents):
2053 Pass input_bfd, not in_bfd, to bfd_coff_reloc16_extra_cases.
2054
b2193cc5
ILT
2055 * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
2056 BFD is not of the right type.
2057 (bfd_elf_get_needed_list): Likewise.
2058 * i386linux.c (bfd_linux_size_dynamic_sections): Likewise.
2059 * sunos.c (bfd_sunos_get_needed_list): Likewise.
2060 * xcofflink.c (XCOFF_XVECP): Define.
2061 (bfd_xcoff_link_record_set): Don't do anything if the BFD is not
2062 of the right type.
2063 (bfd_xcoff_import_symbol): Likewise.
2064 (bfd_xcoff_export_symbol): Likewise.
2065 (bfd_xcoff_link_count_reloc): Likewise.
2066 (bfd_xcoff_record_link_assignment): Likewise.
2067 (bfd_xcoff_size_dynamic_sections): Likewise.
2068
baabeb74
ILT
2069 * sunos.c (sunos_scan_ext_relocs): Only check the reloc symbol
2070 table index against the number of symbols for a base relative
2071 reloc.
2072
73246ff8
ILT
2073 * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Change from macro to
2074 static function.
2075 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Set
2076 full_aouthdr flag here...
2077 (_bfd_xcoff_bfd_final_link): ...not here.
2078
6ab826bd
FF
2079Tue Oct 31 12:52:02 1995 Fred Fish <[email protected]>
2080
2081 * libelf.h: Rename to elf-bfd.h to avoid conflict with
2082 systems that have a system <libelf.h>.
2083 * Makefile.in: Globally replace libelf.h with elf-bfd.h.
2084 * bfd.c, elf.c, elf32-arc.c, elf32-gen.c, elf32-hppa.c,
2085 elf32-hppa.h, elf32-i386.c, elf32-i860.c, elf32-m68k.c,
2086 elf32-m88k.c, elf32-mips.c, elf32-ppc.c, elf32-sparc.c,
2087 elf64-gen.c, elf64-sparc.c, elfcode.h, elflink.c,
2088 elfxx-target.h: Include elf-bfd.h rather than libelf.h.
2089 * elfxx-target.h: Change libelf.h reference to elf-bfd.h.
2090
999cc186
ILT
2091Tue Oct 31 15:30:07 1995 David Mosberger-Tang <[email protected]>
2092
0652d579
ILT
2093 * ecoff.c (ecoff_set_symbol_info): Add new parameter weak. If
2094 set, set BSF_WEAK in symbol. Change all callers.
2095 (ecoff_get_extr): Set weakext based on BSF_WEAK.
2096 (ecoff_link_add_externals): If weakext is set, pass BSF_WEAK to
2097 _bfd_generic_link_add_one_symbol.
2098 (ecoff_indirect_link_order): Check that the section tdata relocs
2099 are not NULL before using them.
2100
999cc186
ILT
2101 * configure.in (alpha*-*-linux*): Set COREFILE to trad-core.o and
2102 define TRAD_HEADER as hosts/alphalinux.h.
2103 * configure: Rebuild.
2104 * hosts/alphalinux.h: New file.
2105 * trad-core.c (trad_unix_core_file_p): Cast u.u_ar0 to bfd_vma,
2106 not int.
2107
e6080520
ILT
2108Tue Oct 31 12:34:11 1995 Ian Lance Taylor <[email protected]>
2109
2bd0aeb9
ILT
2110 * coffcode.h (coff_slurp_symbol_table): Accept C_BCOMM and
2111 C_ECOMM storage classes.
2112
e6080520
ILT
2113 * xcofflink.c (xcoff_mark_symbol): New static function, broken out
2114 of xcoff_mark.
2115 (xcoff_mark): Call xcoff_mark_symbol.
2116 (bfd_xcoff_export_symbol): Call xcoff_mark_symbol.
2117 (bfd_xcoff_link_count_reloc): Call xcoff_mark_symbol rather than
2118 doing it by hand.
2119 (xcoff_build_ldsyms): Build a .loader symbol for an export symbol.
2120
5fe14a9f
ILT
2121Mon Oct 30 14:53:48 1995 Ian Lance Taylor <[email protected]>
2122
f630a0a4
ILT
2123 * xcofflink.c (struct xcoff_final_link_info): Add new line_filepos
2124 field.
2125 (xcoff_find_reloc): New static function.
2126 (xcoff_link_add_symbols): Use it.
2127 (_bfd_xcoff_bfd_final_link): Set finfo.line_filepos.
2128 (xcoff_link_input_bfd): Handle C_BINCL and C_EINCL. Don't
2129 relocate the value of C_DECL.
2130
5fe14a9f
ILT
2131 * elf.c (elf_fake_sections): Remove bogus BFD_ASSERT.
2132
dff77ed7
SC
2133Sat Oct 28 01:25:34 1995 steve chamberlain <[email protected]>
2134
2135 * cofflink.c (_bfd_coff_generic_relocate_section): Make
2136 callback decide what goes in .relocs.
2137 * pe[i]-i386.c (TARGET_UNDERSCORE): Define.
2138 * peicode.h (pe_mkobject_hook): Only copy aouthdr if
2139 there is one.
2140
697a8fe8
ILT
2141Sat Oct 28 01:51:02 1995 Ian Lance Taylor <[email protected]>
2142
2143 * xcofflink.c (xcoff_link_add_symbols): Handle csects in the
2144 absolute section.
2145
2d7de17d
ILT
2146Fri Oct 27 18:14:39 1995 Ian Lance Taylor <[email protected]>
2147
2148 * xcofflink.c: More improvements, mostly to fix handling of
2149 constructors and a few other special cases.
2150 * coff-rs6000.c (rs6000coff_vec): Set symbol_leading_char back to
2151 zero, reverting yesterday's change.
2152 * bfd-in.h (bfd_xcoff_link_record_set): Declare.
2153 (bfd_xcoff_link_count_reloc): Declare.
2154 (bfd_xcoff_record_link_assignment): Declare.
2155 * bfd-in2.h: Rebuild.
2156
f552f751
NH
2157Fri Oct 27 14:42:15 1995 Niklas Hallqvist <[email protected]>
2158
2159 * PORTING, aout-arm.c, aout-encap.c, aout-rce.c, aout-target.h,
2160 aoutx.h, gen-aout.c, host-aout.c, hp300bsd.c, i386aout.c
2161 i386bsd.c, i386dynix.c, i386linux.c, i386lynx.c, i386mach3.c,
2162 i386netbsd.c, m68klynx.c, m88kmach3.c, mipsbsd.c, newsos3.c,
2163 ns32knetbsd.c, pc532-mach.c, riscix.c, sparclynx.c, sparcnetbsd.c:
2164 Change PAGE_SIZE to TARGET_PAGE_SIZE.
2165
2166 * m68knetbsd.c: Ditto as well as add support for the m68k4k object
2167 format.
2168
2169 * netbsd.h: Double ditto (incl. m68k4k support). NetBSD's text
2170 segments includes the a.out header. See to that the magic number
2171 *always* is big-endian.
2172
2173 * config.bfd: Add m68*-hp*-netbsd* case. Cross-pollinate m68k and
2174 m68k4k NetBSD configurations.
2175
2176 * configure.in, configure: Separate i386 & mips NetBSD
2177 configurations from other BSD ones. Don't assume DEC is the only
2178 thing NetBSD/mips run on. Add {m68k,ns32k,sparc}-*-netbsd*
2179 configurations. Add support for m68k4k NetBSD object format.
2180
2181 * libaout.h: Added M_68K4K_NETBSD magic.
6fd1f40d
NH
2182
2183 * m68k4knetbsd.c: New file.
f552f751
NH
2184
2185 * hosts/{m68k,sparc}nbsd.h: Don't define HOST_BIG_ENDIAN_P.
2186
2187 * hosts/nbsd.h: Define HOST_BIG_ENDIAN_P according to
2188 <machine/endian.h>.
2189
6fd1f40d
NH
2190 * hosts/mipsnbsd.h: New file.
2191
d6d44ef9
SG
2192start-sanitize-gm
2193Fri Oct 27 09:41:51 1995 Stu Grossman ([email protected])
2194
2195 * config.bfd: Add config stuff for mips*-*-magic* to set
2196 targ_defvec to ecoff_big_vec.
2197
2198end-sanitize-gm
867d923d
ILT
2199Thu Oct 26 14:16:47 1995 Ian Lance Taylor <[email protected]>
2200
2201 * xcofflink.c: Numerous changes to get closer to a working XCOFF
2202 linker.
2203 * libcoff-in.h (struct xcoff_tdata): Add full_aouthdr,
2204 toc_section, and entry_section fields.
2205 (struct xcoff_section_tdata): Remove ldrel_count field.
2206 * libcoff.h: Rebuild.
2207 * coffcode.h (coff_mkobject_hook): Initialize new xcoff_data
2208 fields.
2209 (coff_compute_section_file_positions): If RS6000COFF_C, generate
2210 full a.out header if full_aouthdr is set in xcoff_data.
2211 (coff_write_object_contents): Likewise. Set o_snentry and o_sntoc
2212 based on sections stored in xcoff_data.
2213 * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy new xcoff_data
2214 fields.
aad2c618
ILT
2215 (xcoff_reloc_type_lookup): Handle BFD_RELOC_CTOR.
2216 (rs6000coff_vec): Set symbol_leading_char to '.'.
867d923d
ILT
2217 * coffgen.c (coff_get_symbol_info): If fix_value is set, fix the
2218 value stored in ret rather than returning a pointer value.
2219
6bd9ffdb
MM
2220Wed Oct 25 23:10:39 1995 Michael Meissner <[email protected]>
2221
2222 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Remove MAC
2223 format for now.
2224
9d14250f
JL
2225Wed Oct 25 16:19:27 1995 Jeffrey A Law ([email protected])
2226
2227 * som.c (som_slurp_string_table): Allocate the strings with malloc
2228 since they're free'd by free_cached_info.
2229 (som_slurp_symbol_table): Similarly for the symbol table.
2230
a2bd0529
PB
2231Wed Oct 25 14:59:22 1995 Per Bothner <[email protected]>
2232
2233 * Makefile.in (diststuff): Don't make headers.
2234
28a0c103
ILT
2235Wed Oct 25 11:32:54 1995 Ian Lance Taylor <[email protected]>
2236
356cd465
ILT
2237 * Makefile.in: Rebuild dependencies.
2238
1edd3a7b
ILT
2239 * sunos.c (bfd_sunos_record_link_assignment): Don't do anything if
2240 output_bfd is not SunOS.
2241 (bfd_sunos_size_dynamic_sections): Likewise. Don't scan relocs of
2242 non-SunOS input files.
2243
28a0c103
ILT
2244 * xcofflink.c: Extensive changes to support linking shared objects
2245 and generating a .loader section.
2246 * libcoff-in.h (struct xcoff_tdata): Add import_file_id field.
b73322d9
ILT
2247 (struct xcoff_section_tdata): Add lineno_count, first_symndx,
2248 last_symndx, and ldrel_count fields.
28a0c103
ILT
2249 * libcoff.h: Rebuild.
2250 * coff-rs6000.c (xcoff_howto_table): Correct reloc names.
2251 * coffcode.h (styp_to_sec_flags): Don't set any flags if STYP_PAD
2252 is set.
2253 * bfd-in.h (bfd_xcoff_import_symbol): Declare.
2254 (bfd_xcoff_export_symbol): Declare.
2255 (bfd_xcoff_size_dynamic_sections): Declare.
2256 * bfd-in2.h: Rebuild.
2257
aadf04f7
SS
2258Tue Oct 24 17:44:20 1995 Stan Shebs <[email protected]>
2259
2260 * configure.in: Add xcofflink.o to pmac_xcoff_vec.
2261 * configure: Rebuild.
2262 * mpw-config.in: Add xcofflink.c.o to powerpc-apple-macos.
2263 * coff-pmac.c: Include coff-rs6000.c instead of duplicating its
2264 contents.
2265 (pmac_xcoff_vec): Update to use new xcoff support.
2266 * coff-rs6000.c (xcoff_generic_stat_arch_elt): Make static.
2267 (xcoff_write_armap): Declare buf as unsigned char.
2268 * xcofflink.c (xcoff_link_add_symbols): Declare a local as PTR.
2269
2270 * mpw-make.sed: Generalize subdir_do edit.
2271
ddf4639b
JL
2272Tue Oct 24 10:25:01 1995 Jeffrey A Law ([email protected])
2273
2274 * hppabsd-core.c (make_bfd_asection): Initialize asect->filepos
2275 correctly. Don't initialize asect->vma.
2276
e7bedf65
KR
2277Fri Oct 20 13:23:48 1995 Ken Raeburn <[email protected]>
2278
2279 * opncls.c (_bfd_new_bfd): If _bfd_chunksize wasn't preset, use
2280 something a little less than the page size.
2281
2282Thu Oct 19 13:06:09 1995 Ian Lance Taylor <[email protected]>
2283
2284 * coff-i960.c (coff_i960_adjust_symndx): Clear *adjustedp.
2285
3a70e298
SC
2286Wed Oct 18 16:20:08 1995 steve chamberlain <[email protected]>
2287
2288 * coff-i386.c (coff_i386_reloc_type_lookup): New.
2289 * coffcode.h (coff_write_object_contents): If .bss is before
2290 .data us that as data_start.
2291 * cofflink.c (_bfd_coff_generic_relocate_section): Get reloc
2292 calc correct.
2293 * peicode.h (add_data_entry): Use _cooked_size of data directory.
2294 (coff_swap_outhdr_out): Hardwire in version number.
2295
5a2846e3
KR
2296Wed Oct 18 16:50:54 1995 Ken Raeburn <[email protected]>
2297
3c3a5268
KR
2298 * sunos.c (sunos_add_dynamic_symbols): Rename local variables
2299 major and minor to *_vno, since the former are also macros in
2300 SunOS header files. Cast result of bfd_alloc to appropriate
2301 type.
2302
5a2846e3
KR
2303 * coffgen.c (coff_find_nearest_line): Cast used_by_bfd value
2304 before assigning to sec_data.
2305
0f6c885e
ILT
2306Wed Oct 18 13:25:17 1995 Ian Lance Taylor <[email protected]>
2307
2308 * ecoff.c (_bfd_ecoff_find_nearest_line): The offset argument is
2309 now relative to the section, not absolute.
2310 * ecofflink.c (_bfd_ecoff_locate_line): Use the right symbol to
2311 get the file name when there is a N_SO directory name. When
2312 handling stabs, remember that section->vma was added to the
2313 offset.
2314
11fa6636
ILT
2315Tue Oct 17 18:24:54 1995 Ian Lance Taylor <[email protected]>
2316
2317 * sunos.c (struct sunos_link_hash_table): Add needed field.
2318 (sunos_link_hash_table_create): Call bfd_release, not free.
2319 (sunos_link_hash_table_create): Initialize needed field.
2320 (sunos_add_dynamic_symbols): Record needed objects.
2321 (bfd_sunos_get_needed_list): New function.
2322 * bfd-in.h (bfd_sunos_get_needed_list): Declare.
2323 * bfd-in2.h: Rebuild.
2324
c974e19e
SC
2325Mon Oct 16 14:43:59 1995 steve chamberlain <[email protected]>
2326
2327 * libcoff-in.h (pe_data_type.in_reloc_p): New.
2328
22a35f0b
ILT
2329Mon Oct 16 10:52:50 1995 Ian Lance Taylor <[email protected]>
2330
54406786
ILT
2331 * bfd-in.h (struct bfd_link_needed_list): Rename from
2332 bfd_elf_link_needed_list.
2333 * bfd-in2.h: Rebuild.
2334 * elf.c, elflink.h, libelf.h: Corresponding changes.
2335
dd984644
ILT
2336 Add start at AIX linker support; no shared libraries yet.
2337 * xcofflink.c: New file.
2338 * configure.in (rs600coff_vec): Use xcofflink.o.
2339 * configure: Rebuild.
2340 * libcoff-in.h (struct xcoff_tdata): Add csects and debug_indices
2341 fields.
2342 (struct xcoff_section_tdata): Define.
2343 (xcoff_section_data): Define macro.
2344 (_bfd_xcoff_bfd_link_hash_table_create): Declare.
2345 (_bfd_xcoff_bfd_link_add_symbols): Declare.
2346 (_bfd_xcoff_bfd_final_link): Declare.
2347 (_bfd_ppc_xcoff_relocate_section): Declare.
2348 * libcoff.h: Rebuild.
2349 * coff-rs6000.c: Clean up a bit.
2350 (xcoff_mkobject): Default modtype to 1L, not RE. Initialize
2351 cputype, csects, and debug_indices.
2352 (xcoff_copy_private_bfd_data): Copy cputype.
2353 (xcoff_howto_table): Rename from rs6000coff_howto_table.
2354 (xcoff_rtype2howto): Rename from rs6000coff_rtype2howto.
2355 (xcoff_reloc_type_lookup): Rename from
2356 rs6000coff_reloc_type_lookup.
2357 (coff_relocate_section): Define.
2358 (_bfd_xcoff_sizeof_headers): Define.
2359 (_bfd_xcoff_bfd_get_relocated_section_contents): Define.
2360 (_bfd_xcoff_bfd_relax_section): Define.
2361 (_bfd_xcoff_bfd_link_split_section): Define.
2362 (rs6000coff_vec): For BFD_JUMP_TABLE_LINK, use _bfd_xcoff, not
2363 coff.
2364 * coffcode.h (coff_compute_section_file_positions): If AIX,
2365 increment sofar by SMALL_AOUTSZ if not executable.
2366 (coff_write_object_contents): If AIX, always output an a.out
2367 header; if not executable, header size of SMALL_AOUTSZ.
2368 * hash.c (struct bfd_strtab_hash): Add xcoff field.
2369 (_bfd_stringtab_init): Initialize xcoff field.
2370 (_bfd_xcoff_stringtab_init): New function.
2371 (_bfd_stringtab_add): In XCOFF mode, leave two bytes for length.
2372 (_bfd_stringtab_emit): In XCOFF mode, write out length.
2373 * libbfd-in.h (_bfd_xcoff_stringtab_init): Declare.
2374 * libbfd.h: Rebuild.
2375 * Makefile.in: Rebuild dependencies.
2376 (BFD32_BACKENDS): Add xcofflink.o.
2377 (CFILES): Add xcofflink.c.
2378
22a35f0b
ILT
2379 * elf32-mips.c (mips_elf_symbol_processing): Set SEC_ALLOC, not
2380 SEC_NO_FLAGS, for .acommon section. From Peter Schauer
2381 <[email protected]>.
2382
fb417a21
MM
2383Sat Oct 14 21:36:02 1995 Michael Meissner <[email protected]>
2384
2385 * coff-ppc.c (in_reloc_p): Add, clone from coff-i386.c.
2386
2387Fri Oct 13 17:48:43 1995 Ken Raeburn <[email protected]>
2388
2389 * acconfig.h (HAVE_SYS_PROCFS_H): Undef, with comment.
2390 * config.in: Regenerated.
2391
2392 * opncls.c (getpagesize) [!HAVE_GETPAGESIZE]: Define as 2048.
2393 (_bfd_chunksize): New variable.
2394 (_bfd_new_bfd): Set it to getpagesize() if negative, and use it
2395 for obstack chunk size.
2396 * configure.in: Check for getpagesize.
2397 * configure: Regenerated.
2398
2399 Mon Sep 25 22:49:32 1995 Andreas Schwab <[email protected]>
2400
2401 * trad-core.c (rawptr): Make it a local variable of
2402 ptrace_unix_core_file_p.
2403
b1e46369
SC
2404Fri Oct 13 11:22:01 1995 steve chamberlain <[email protected]>
2405
2406 * coff-arm.c (in_reloc_p): New.
2407 * coff-i386.c (in_reloc_p): New.
2408 * coffcode.h: Allways include peicode.h if COFF_WITH_PE.
2409 (coff_write_object_contents): Only set has_reloc_section
2410 if PE_IMAGE.
2411 * cofflink.c (_bfd_coff_generic_relocate_section): Call
2412 in_reloc_p to decide if reloc should be emitted.
2413 * libcoff.h (pe_data_type.in_reloc_p): New.
2414 * peicode.h (pe_mkobject): Initialize in_reloc_p.
2415
ee9f09cd
ILT
2416Wed Oct 11 00:49:29 1995 Ian Lance Taylor <[email protected]>
2417
b1e46369
SC
2418 * cofflink.c (_bfd_coff_internal_syment_name): Move to coffgen.c.
2419 (_bfd_coff_read_internal_relocs): Likewise.
2420 * coffgen.c (_bfd_coff_internal_syment_name): Copy from coffgen.c.
2421 (_bfd_coff_read_internal_relocs): Likewise.
2422
ee9f09cd
ILT
2423 * elflink.h (elf_link_add_object_symbols): Correct conditions
2424 under which type and size change warnings are issued.
2425
78b31b6b
ILT
2426Tue Oct 10 18:32:46 1995 Ian Lance Taylor <[email protected]>
2427
2428 * coffgen.c (coff_count_linenumbers): Don't count line numbers for
2429 a symbol which is not in a real section.
2430 (coff_write_native_symbol): Corresponding change.
2431
2432 * cofflink.c (_bfd_coff_link_hash_newfunc): Rename from
2433 coff_link_hash_newfunc and make non-static.
2434 (_bfd_coff_link_hash_table_init): New function, broken out of
2435 _bfd_coff_link_hash_table_create.
2436 (_bfd_coff_link_hash_table_create): Use it.
2437 (process_embedded_commands): Make static.
2438 * libcoff-in.h ((_bfd_coff_link_hash_newfunc): Declare.
2439 (_bfd_coff_link_hash_table_init): Declare.
2440 * libcoff.h: Rebuild.
2441
2442 * coffcode.h (coff_mkobject_hook): If RS6000COFF_C, set cputype
2443 field in XCOFF tdata.
2444 (coff_set_arch_mach_hook): Check ifdef RS6000COFF_C, not ifdef
2445 U802ROMAGIC, for clarity. Try to set arch and machine correctly
2446 based on cputype stored in a.out header, or in n_type of initial
2447 .file symbol.
2448 (coff_write_object_contents): Set cputype correctly in a.out
2449 header.
2450 (coff_slurp_symbol_table): Add casts to file_ptr to avoid
2451 warnings.
2452 * coffswap.h (coff_swap_aouthdr_in): Swap in cputype field.
2453 (coff_swap_aouthdr_out): Swap out cputype field. Don't clear
2454 old resv1 field.
2455 * libcoff-in.h (struct xcoff_tdata): Add cputype field.
2456 * libcoff.h: Rebuild.
2457
2458 * cpu-rs6000.c (rs6000_compatible): New static function.
2459 (bfd_rs6000_arch): Use it.
2460 * cpu-powerpc.c (powerpc_compatible): New static function.
2461 (arch_info_struct): Define various flavours of PowerPC.
2462 (bfd_powerpc_arch): Use powerpc_compatible. Point at
2463 arch_info_struct.
2464
9dd7e56f
FF
2465Tue Oct 10 10:50:46 1995 Fred Fish <[email protected]>
2466
78b31b6b 2467 * Makefile.in (FLAGS_TO_PASS): Remove BISON.
9dd7e56f 2468
8235c112
ILT
2469Tue Oct 10 01:28:29 1995 Ian Lance Taylor <[email protected]>
2470
2471 * elflink.h (elf_link_add_object_symbols): Don't warn about
2472 changing the size or type if the old definition was weak.
2473
0322af0d
ILT
2474Mon Oct 9 11:24:08 1995 Ian Lance Taylor <[email protected]>
2475
49488f2b
ILT
2476 * coffcode.h (combined_entry_type): Add fix_line field.
2477 (coff_slurp_line_table): Warn if we try to set the lineno field of
2478 a symbol twice.
2479 (coff_slurp_symbol_table): If RS6000COFF_C, handle C_BINCL and
2480 C_EINCL by setting fix_line. Fix C_BSTAT symbol value.
2481 * coffgen.c (coff_mangle_symbols): Handle fix_line.
2482 (coff_write_symbol): Only use N_DEBUG if the symbol is in the
2483 absolute section.
2484 (coff_print_symbol): Print fix_value symbols in a useful fashion.
2485 * libcoff.h: Rebuild.
2486
5f710a3a
ILT
2487 * libcoff-in.h (struct xcoff_tdata): Define.
2488 (xcoff_data): Define.
2489 * bfd.c (struct _bfd): Add xcoff_obj_data field to tdata union.
2490 * bfd-in2.h, libcoff.h: Rebuild.
2491 * coff-rs6000.c (xcoff_mkobject): New static function.
2492 (coff_mkobject): Define.
2493 (xcoff_copy_private_bfd_data): New static function.
2494 (coff_bfd_copy_private_bfd_data): Define.
2495 (rs6000coff_howto_table): Change R_TOC complain_on_overflow from
2496 signed to bitfield.
2497 (rs6000coff_vec): Add DYNAMIC to object_flags.
2498 * coffcode.h (sec_to_styp_flags): If RS6000COFF_C, handle .pad and
2499 .loader sections specially.
2500 (coff_new_section_hook): If RS6000COFF_C, get the .text and .data
2501 section alignment from the XCOFF tdata information.
2502 (coff_mkobject_hook): If RS6000COFF_C, set DYNAMIC based on
2503 F_SHROBJ, and copy the extra a.out header information into the
2504 XCOFF tdata structure.
2505 (coff_write_object_contents): If RS6000COFF_C, set F_SHROBJ,
2506 F_DYNLOAD and the extra a.out header information.
2507 (coff_slurp_symbol_table): Set BSF_NOT_AT_END for a C_EXT or
2508 C_HIDEXT symbol with attached csect information.
2509 * coffswap.h (coff_swap_aouthdr_in): If RS6000COFF_C, swap
2510 in the o_maxdata field.
2511 (coff_swap_aouthdr_out): If RS6000COFF_C, swap extra XCOFF fields.
2512 * coffgen.c (coff_renumber_symbols): Don't move any symbol to the
2513 end if BSF_NOT_AT_END is set.
3f2c5b2d 2514
0322af0d
ILT
2515 * targets.c (bfd_target): Rename _bfd_read_ar_hdr field to
2516 _bfd_read_ar_hdr_fn.
2517 * libbfd-in.h (_bfd_read_ar_hdr): Update accordingly.
2518 * bfd-in2.h, libbfd.h: Rebuild.
2519 * archive.c (_bfd_get_elt_at_filepos): Cast _bfd_read_ar_hdr
2520 return value.
2521 (do_slurp_bsd_armap, do_slurp_coff_armap): Likewise.
2522 (bfd_slurp_bsd_armap_f2): Likewise.
2523 (_bfd_slurp_extended_name_table): Likewise.
2524
3266eaff
KR
2525Fri Oct 6 16:18:35 1995 Ken Raeburn <[email protected]>
2526
2527 Mon Sep 25 22:49:32 1995 Andreas Schwab <[email protected]>
2528
2529 * archive.c (bfd_get_next_mapent): Return BFD_NO_MORE_SYMBOLS
2530 when the symbol table is empty.
2531
2532 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Don't reserve
2533 space for section symbols, since we don't output them either.
2534 (elf_m68k_adjust_dynindx): Removed.
2535
2536 * ptrace-core.c (rawptr): Make it a local variable of
2537 ptrace_unix_core_file_p.
3266eaff 2538
249479fa
MM
2539Fri Oct 6 12:24:47 1995 Michael Meissner <[email protected]>
2540
45b5d2f0
MM
2541 * coff-rs6000.c (xcoff_write_archive_contents): Return false, not
2542 NULL.
2543
249479fa
MM
2544 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Add NT, and
2545 Mac object file formats.
2546
c53fac12
ILT
2547Fri Oct 6 12:04:02 1995 Ian Lance Taylor <[email protected]>
2548
4372f33f
ILT
2549 * coffgen.c (coff_fix_symbol_name): Don't try to set up file
2550 auxent if there isn't one.
2551 (coff_write_symbols): If there is no file auxent, use SYMNMLEN
2552 rather than FILNMLEN as the maximum name length.
2553
0fc9ada9
ILT
2554 * coffcode.h (bfd_coff_backend_data): Add new field
2555 _bfd_coff_print_aux.
2556 (bfd_coff_print_aux): New static function.
2557 (coff_pointerize_aux_hook (RS6000COFF_C version)): Pointerize the
2558 scnlen field of an XTY_LD csect aux entry.
2559 (coff_print_aux): New static function.
2560 (coff_slurp_symbol_table): Don't pointerize scnlen field; now done
2561 in coff_pointerize_aux_hook.
2562 (bfd_coff_std_swap_table): Initialize new field.
2563 * coffgen.c (coff_print_symbol): Call bfd_coff_print_aux.
2564 * libcoff.h: Rebuild.
2565 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
2566 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2567
7860fe38
ILT
2568 * coffcode.h (coff_write_object_contents): On AIX, clear F_RELFLG
2569 if there are symbols, for native AIX ld compatibility.
2570
c80cc833
ILT
2571 * coffcode.h (bfd_coff_backend_data): Add new field
2572 _bfd_coff_pointerize_aux_hook.
2573 (coff_pointerize_aux_hook): Define as a function if RS6000COFF_C
2574 or I960, and as 0 otherwise.
2575 (bfd_coff_std_swap_table): Initialize new field.
2576 * libcoff.h: Rebuild.
2577 * coffgen.c (coff_pointerize_aux): Change parameters to take
2578 symbol pointer instead of type and class, and to take aux index.
2579 Call _bfd_coff_pointerize_aux_hook if it is defined.
2580 (coff_get_normalized_symtab): Always call coff_pointerize_aux.
2581 * coff-alpha.c (alpha_ecoff_backend_data): Initialize all fields.
2582 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2583
c53fac12
ILT
2584 * coff-rs6000.c: Add full support for AIX archives. Rewrite old
2585 read-only/host-only support.
2586
2587 * coffcode.h (coff_slurp_symbol_table): Set C_HIDEXT symbols to be
2588 BSF_LOCAL.
d11e6b52
ILT
2589 (OTHER_GLOBAL_CLASS): Do not define to be C_HIDEXT if
2590 RS6000COFF_C.
c53fac12
ILT
2591
2592 * targets.c (bfd_target): Add _bfd_read_ar_hdr field. Modify
2593 BFD_JUMP_TABLE_ARCHIVE accordingly.
2594 * libbfd-in.h (_bfd_snarf_ar_hdr): Don't declare.
2595 (_bfd_compute_and_write_armap): Declare.
2596 (_bfd_generic_read_ar_hdr): Declare.
2597 (_bfd_read_ar_hdr): Define.
2598 (_bfd_noarchive_read_ar_hdr): Define.
2599 (_bfd_archive_bsd_read_ar_hdr): Define.
2600 (_bfd_archive_coff_read_ar_hdr): Define.
2601 * archive.c: Change all callers of _bfd_snarf_ar_hdr to call
2602 _bfd_read_ar_hdr instead.
2603 (_bfd_generic_read_ar_hdr): Rename from _bfd_snarf_ar_hdr.
2604 (_bfd_compute_and_write_armap): Rename from
2605 compute_and_write_armap. Make non-static. Change all callers.
2606 * ecoff.c (_bfd_ecoff_slurp_armap): Call _bfd_read_ar_hdr rather
2607 than _bfd_snarf_ar_hdr.
2608 * aout-target.h (MY_read_ar_hdr): Define if not defined.
2609 * ieee.c (ieee_read_ar_hdr): Define.
2610 * libecoff.h (_bfd_ecoff_read_ar_hdr): Define.
2611 * oasys.c (oasys_read_ar_hdr): Define.
2612 * som.c (som_read_ar_hdr): Define.
2613 * bfd-in2.h, libbfd.h: Rebuild.
2614
f8e47484
SC
2615Thu Oct 5 14:04:07 1995 steve chamberlain <[email protected]>
2616
2617 * peicode.c (coff_swap_filehdr_in): If symptr is
2618 zero, there aren't any symbols, even if nsyms is set.
2619
2b874a2d
ILT
2620Thu Oct 5 11:45:02 1995 Ian Lance Taylor <[email protected]>
2621
aca73687
ILT
2622 * libecoff.h (struct ecoff_backend_data): Add adjust_headers
2623 field.
2624 * ecoff.c (ecoff_sec_to_styp_flags): Check for various Alpha
2625 sections, and set styp correctly for them: .got, .hash, .dynamic,
2626 .liblist, .rel.dyn, .conflic, .dynstr, .dynsym, .comment.
2627 (_bfd_ecoff_styp_to_sec_flags): Check for various Alpha section
2628 types.
2629 (ecoff_sort_hdrs): New static function.
2630 (ecoff_compute_section_file_positions): Return boolean, not void.
2631 Sort the sections by VMA before looking through them. Put the
2632 first non SEC_ALLOC section on a new page. Put every SEC_ALLOC
2633 section on an appropriate boundary within the page.
2634 (ecoff_compute_reloc_file_positions): Check return value of
2635 ecoff_compute_section_file_positions.
2636 (_bfd_ecoff_set_section_contents): Likewise.
2637 (_bfd_ecoff_write_object_contents): Check for various Alpha
2638 section types when incrementing text_size and data_size. Call
2639 adjust_headers backend function if it exists.
2640 * coff-alpha.c (alpha_adjust_headers): New static function.
2641 (alpha_ecoff_backend_data): Initialize adjust_headers field.
2642 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2643
2b874a2d
ILT
2644 * hosts/i386bsd.h: Restore file incorrectly deleted on Sep 6.
2645
c780e5db
JL
2646Wed Oct 4 18:15:02 1995 Jeff Law ([email protected])
2647
2648 * rs6000-core.c (CORE_VERSION_1): Use CORE_VERSION_1 instead
2649 of ALTERNATE_AIX_CORE_FORMAT.
2650 * configure.in (aix4): No longer need CORE_FLAGS.
2651 * configure: Updated.
2652
2a01c351
KR
2653Wed Oct 4 15:36:36 1995 Ken Raeburn <[email protected]>
2654
2655 NS32k changes from Ian Dall:
2656 * aoutx.h (MY_final_link_relocate, MY_relocate_contents): New
2657 macros.
2658 (aout_link_input_section_std, aout_link_input_section_ext,
2659 aout_link_reloc_link_order): Call them instead of _bfd_*
2660 versions.
2661 * aout-target.h (MY_exec_header_not_counted): New macro, defaults
2662 to zero.
2663 (backend_data): Use it instead of hardcoded zero.
2664
2665 * aout-ns32k.c (CTOR_TABLE_RELOC_HOWTO): New macro.
2666 (MY_swap_std_reloc_out): Use udata.i for KEEPIT, don't call stoi.
2667
2668 * ns32knetbsd.c: Include bfd.h.
2669 (MY_text_includes_header, MY_bfd_reloc_type_lookup): New macros.
2670 (MY_bfd_reloc_type_lookup): Declare function too.
2671 * pc532-mach.c (set_sizes): Don't declare.
2672 (MY_text_includes_header, MY_exec_header_not_counted): Define.
2673 (backend_data, MY_backend_data): Don't define.
2674
2675 * config.bfd: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
2676 ns32k-*-lites* like ns32k-*-netbsd*.
2677
2678 * hosts/nbsd.h: Swap order of sys/vmparam.h and sys/param.h, to
2679 compile on lites.
2680
5944d75b
ILT
2681Wed Oct 4 14:15:52 1995 Ian Lance Taylor <[email protected]>
2682
2683 * coffcode.h (coff_write_object_contents): Restore setting
2684 f_timdat to 0, deleted on August 22.
2685
db344f82
SC
2686Tue Oct 3 16:28:32 1995 steve chamberlain <[email protected]>
2687
2688 * coffcode.h (coff_bfd_copy_private_symbol_data,
2689 coff_bfd_copy_private_section_data,
2690 coff_bfd_copy_private_bfd_data): ifdef to allow overrides.
2691 * peicode.h (coff_bfd_copy_private_bfd_data): New
2692 (pe_bfd_copy_private_bfd_data): New.
2693 (coff_swap_scnhdr_in): Swap bss size into the right place.
2694 (pe_print_private_bfd_data): Add some newlines.
5944d75b 2695
c780e5db 2696Tue Oct 3 11:53:04 1995 Jeff Law ([email protected])
97f1feda
JL
2697
2698 * som.c (setup_sections): Don't die if a space has no subspaces.
2699
3d7c42c9
ILT
2700Mon Oct 2 14:08:55 1995 Ian Lance Taylor <[email protected]>
2701
2702 * elflink.h (elf_link_add_object_symbols): Don't let a weak
2703 dynamic symbol override a common symbol. Don't change the size or
2704 type if they have been set and the new symbol is not a definition.
2705 Warn if the size or type changes.
2706
c780e5db 2707Sun Oct 1 01:34:41 1995 Jeff Law ([email protected])
709af562
JL
2708
2709 * som.c (som_begin_writing): Don't write the symbol table or
2710 symbol strings.
2711 (som_finish_writing): Write them here. Place them after the
2712 subspace data, but before the relocs.
2713
2714Fri Sep 29 11:01:55 1995 Ian Lance Taylor <[email protected]>
2715
2716 * sunos.c (sunos_add_one_symbol): Just pass false, not
2717 info->shared_library, to sunos_create_dynamic_sections.
2718 (sunos_scan_ext_relocs): Don't warn about a reloc in the .text
2719 section.
2720 (sunos_check_dynamic_reloc): Remove .text section assertion.
2721
7009e451
SS
2722Thu Sep 28 18:48:47 1995 Stan Shebs <[email protected]>
2723
2724 * config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*.
2725 * configure, configure.in: Add pmac_xcoff_vec case.
2726 * Makefile.in (BFD32_BACKENDS): Add coff-pmac.o.
2727 * coff-pmac.c: New file, PowerMac XCOFF support.
2728 * coffcode.h (coff_set_arch_mach_hook): Add PowerMac case.
2729 * targets.c (pmac_xcoff_vec): Declare.
2730
2731 * mpw-config.in: Various changes to be compatible with the
2732 autoconf-based configury.
2733 * mpw-make.sed: New file, sed commands to translate Unix
2734 makefile into MPW syntax.
2735 * mpw-make.in: Remove.
2736 * hosts/mpw.h: Remove.
2737 * bfd-in.h, bfd-in2.h: If MPW, include the file that defines
2738 true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED.
2739
b91537be
SC
2740Thu Sep 28 17:06:23 1995 steve chamberlain <[email protected]>
2741
2742 * binary.c (binary_get_symtab): Return an empty string on error.
2743 * opncls.c (bfd_fdpenr): Change WIN32 restriction to WINGDB.
2744
30360a6f
KK
2745Thu Sep 28 15:30:44 1995 Kim Knuttila <krk@nellie>
2746
2747 * coff-ppc.c: Reformatted according to gnu conventions
2748 Removed irrelevant "if 0" code
2749
20d1e233
ILT
2750Thu Sep 28 11:19:53 1995 Ian Lance Taylor <[email protected]>
2751
69fd4fdd
ILT
2752 * hp300hpux.c (convert_sym_type): Treat secondary symbols as weak
2753 symbols rather than as indirect symbols.
2754 (MY(slurp_symbol_table)): Don't do anything special about
2755 secondary symbols.
2756
46b5a892
ILT
2757 * coffcode.h (coff_new_section_hook): Make sure that the alignment
2758 of .ctors and .dtors sections is no larger than 2.
2759
9db59230
ILT
2760 * sunos.c (sunos_add_one_symbol): Don't change
2761 bfd_link_hash_common to bfd_link_hash_new, since it may be on the
2762 undef list.
2763 (bfd_sunos_record_link_assignment): Don't put __DYNAMIC in the
2764 dynamic symbols when creating a shared library.
2765 (sunos_scan_ext_relocs): Handle relocs correctly when creating a
2766 shared library.
2767 (sunos_scan_dynamic_symbol): Don't mark the __DYNAMIC symbol as
2768 written even if it is not defined in a regular object.
2769 (sunos_write_dynamic_symbol): Use plt_offset for the address of
2770 the jump table reloc. Add an assertion. Use RELOC_JMP_SLOT
2771 rather than the constant 22.
2772 (sunos_check_dynamic_reloc): Handle creating a shared library.
2773 (sunos_finish_dynamic_link): Set the first entry in the GOT to
2774 zero when creating a shared library.
2775 * aoutx.h (NAME(aout,final_link)): If there is a symbol __DYNAMIC,
2776 write it out at the start of the symbol table.
2777
20d1e233
ILT
2778 * Makefile.in (BFD32_BACKENDS): Add coff-arm.o.
2779
a11e10fe
DE
2780Thu Sep 28 00:58:05 1995 Doug Evans <[email protected]>
2781
2782 * config.bfd: Add arm-*-coff.
2783 * configure.in, configure: Add armcoff_{little,big}_vec.
2784 * targets.c (armcoff_{little,big}_vec): Declare.
2785 (bfd_target_vector): Add armcoff_{little,big}_vec.
2786 * coff-arm.c (armcoff_{little,big}_vec): Always define.
2787
99062cfc
ILT
2788Wed Sep 27 10:37:14 1995 Ian Lance Taylor <[email protected]>
2789
2790 * targets.c (bfd_find_target): Remove debugging code.
2791
deacbe0f
KK
2792Wed Sep 27 07:23:39 1995 Kim Knuttila <krk@nellie>
2793
2794 * coff-ppc.c, pe-ppc.c, pei-ppc.c: Initial bfd for coff/PE
2795 support on powerpc.
2796 * Makefile.in: added *-ppc files
2797 * coffcode.h: ppc MAGIC, and use peicode.h rather than coffswap.h to
2798 allow pe based .o's to be shared with other tools on ppc/NT
2799 * config.bfd: added powerpc[le]-[pe|winnt] config support
2800 * configure, configure.in: added bfd_powerpc[le]_pe[i]_vec
2801 * peicode.h: Added more section flags for PE on ppc
2802 Added coff_swap_filehdr_out to allow peicode.h to be
2803 used for non-image PE files on ppc.
2804 Check for image, or not, before copying pe_opthdr
2805 * targets.c: Added new bfd's
30360a6f
KK
2806 * targets.c: Removed two inactive bfds that shouldn't have made it this
2807 far.
deacbe0f 2808
d22b02e0
MM
2809Tue Sep 26 14:06:41 1995 Michael Meissner <[email protected]>
2810
2811 * elf32-ppc.c (ppc_reloc_type): Rename from reloc_type, and use
2812 explicit values to initialize all relocs. Change all users.
2813 (ppc_elf_brtaken_inner): New function to handle branch predicition
2814 relocs.
2815 (ppc_elf_brtaken_reloc): Ditto.
2816 (ppc_elf_howto_raw): Use new functions. Make sure all unsupported
2817 relocs use ppc_elf_unsupported_reloc.
2818 (ppc_elf_merge_private_bfd_data): Keep track of whether an error
2819 needs to be reported.
2820 (ppc_elf_relocate_section): Support branch prediction relocs.
2821
fcf490c0
ILT
2822Tue Sep 26 12:48:05 1995 Ian Lance Taylor <[email protected]>
2823
e6cb7b41
ILT
2824 * bfd.c (bfd_assert): Remove \n from string passed to
2825 _bfd_error_handler.
2826
1af85fbb
ILT
2827 * coff-i386.c: (TWO_DATA_SECS): Don't define.
2828 * coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook.
2829 (bfd_coff_make_section_hook): Don't define.
2830 (coff_make_section_hook): Remove.
2831 (sec_to_styp_flags): Remove TWO_DATA_SECS case.
2832 (styp_to_sec_flags): Likewise.
2833 (coff_write_object_contents): Likewise.
2834 (bfd_coff_std_swap_table): Don't initialize make_section_hook
2835 field.
2836 * libcoff.h: Rebuild.
2837 * coffgen.c (make_a_section_from_file): Just call
2838 bfd_make_section_anyway, not bfd_make_section or
2839 bfd_coff_make_section_hook.
2840 * ecoff.c (_bfd_ecoff_make_section_hook): Remove.
2841 * libecoff.h (_bfd_ecoff_make_section_hook): Don't declare.
2842 * coff-alpha.c (alpha_ecoff_backend_data): Don't initialize
2843 make_section_hook field.
2844 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2845
fcf490c0
ILT
2846 * aoutx.h (translate_from_native_sym_flags): Don't try to stuff
2847 pointers into value field for warning and indirect symbols; just
2848 leave the value field alone.
2849 * linker.c (generic_link_add_symbol_list): Use next symbol for
2850 warning and indirect symbols, rather than looking in symbol value.
2851 * ecoff.c (ecoff_set_symbol_info): Remove indirect_ptr_ptr
2852 parameter. Change all callers. Remove support for indirect
2853 symbols; it didn't work anyhow.
2854 (_bfd_ecoff_slurp_symbol_table): Remove indirect_ptr variable.
2855 * syms.c: Change comments about BSF_WARNING and BSF_INDIRECT.
2856 * bfd-in2.h: Rebuild.
2857
cc47d19a
MM
2858Mon Sep 25 16:04:09 1995 Michael Meissner <[email protected]>
2859
2860 * elf32-ppc.c (ppc_elf_howto_raw): For all 14-bit branch relocs,
2861 go back to telling the tools this reloc operates on 32 bits.
2862
81449d47
ILT
2863Mon Sep 25 11:48:02 1995 Ian Lance Taylor <[email protected]>
2864
7a7fbffb
ILT
2865 * aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler
2866 rather than a direct fprintf.
2867 * archive.c (_bfd_write_archive_contents): Likewise.
2868 * coffcode.h (coff_slurp_symbol_table): Likewise.
2869 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Likewise.
2870 (ppc_elf_unsupported_reloc): Likewise.
2871 (ppc_elf_relocate_section): Likewise.
2872 * i386linux.c (linux_tally_symbols): Likewise.
2873 (linux_finish_dynamic_link): Likewise.
2874 * osf-core.c (osf_core_core_file_p): Likewise.
2875 * rs6000-core.c (rs6000coff_get_section_contents): Likewise.
2876 * som.c (som_sizeof_headers): Likewise.
2877 * srec.c (srec_bad_byte): Likewise.
2878 * bfd.c (bfd_assert): Likewise. Also change file to be const.
2879 * libbfd-in.h (bfd_assert): Declare first parameter const.
2880 * libbfd.h: Rebuild.
2881 * coff-a29k.c (a29k_reloc): Don't bother to fprintf; returning
2882 bfd_reloc_overflow is enough.
2883 * coff-h8300.c (rtype2howto): Don't bother to fprintf; just abort.
2884 * coff-h8500.c (rtype2howto): Likewise.
2885 * coff-z8k.c (rtype2howto): Likewise.
2886 * coffcode.h (dummy_reloc16_extra_cases): Likewise.
2887 * elf.c (_bfd_elf_get_lineno): Likewise.
2888 (_bfd_elf_no_info_to_howto): Likewise.
2889 (_bfd_elf_no_info_to_howto_rel): Likewise.
2890 * hp300hpux.c (convert_sym_type): Likewise.
2891 (MY(swap_std_reloc_in)): Likewise.
2892 * elf.c (bfd_section_from_shdr): Remove #if 0 sections.
2893
f1c6dd5d
ILT
2894 * libaout.h (struct aoutdata): Add line_buf field.
2895 * aoutx.h (NAME(aout,find_nearest_line)): Remove statics buffer
2896 and filename_buffer. Instead, use a malloc buffer stored in the
2897 new line_buf field. Remove length restrictions.
2898
f0500a41
ILT
2899 * coffgen.c (string_size): Remove static variable.
2900 (debug_string_size, debug_string_section): Likewise.
2901 (coff_fix_symbol_name): Add string_size_p, debug_string_section_p,
2902 and debug_string_size_p parameters. Use them instead of the
2903 global variables. Change all callers.
2904 (coff_write_symbol): Likewise.
2905 (coff_write_alien_symbol, coff_write_native_symbol): Likewise.
2906 (coff_write_symbols): Add local variables to replace removed
2907 global variables.
2908
25b5a53d
ILT
2909 * libcoff-in.h (struct coff_section_tdata): Add offset, i,
2910 function, and line_base fields.
2911 * libcoff.h: Rebuild.
2912 * coffgen.c (coff_find_nearest_line): Use section tdata to cache
2913 information, rather than using static variables.
2914
641ac26a
ILT
2915 * sunos.c (sunos_read_dynamic_info): Adjust offsets in an NMAGIC
2916 file. From Peter DeWolf <[email protected]>.
2917
81449d47
ILT
2918 * init.c (initialized): Remove static variable.
2919 (bfd_init): Don't bother setting initialized.
2920 (bfd_check_init): Remove.
2921 * opncls.c (_bfd_new_bfd): Don't call bfd_check_init.
2922 * libbfd.h: Rebuild.
2923
138b9b81
PS
2924Sat Sep 23 01:22:23 1995 Peter Schauer ([email protected])
2925
2926 * rs6000-core.c (rs6000coff_core_p): Don't check the core file
2927 size for full core dumps. Copy core file header to private data.
2928 (rs6000coff_core_file_failing_command,
2929 rs6000coff_core_file_failing_signal): New functions to extract
2930 the file name and terminating signal from the core file.
2931 * coff-rs6000.c: Use them.
2932
2ffbb79a
ILT
2933Fri Sep 22 17:44:47 1995 Ian Lance Taylor <[email protected]>
2934
2935 Change arch info to be const, initialized at compile time.
2936 * archures.c: Reindent many functions. Change CONST to const.
2937 (bfd_arch_info_type): Make arch_name const. Remove disassemble;
2938 nothing set it anyhow. Make next const.
2939 (bfd_arch_info_list): Remove.
2940 (bfd_archures_list): Rename from archures_init_table. Change from
2941 a table of function pointers to a table of bfd_arch_info_type
2942 structure addresses.
2943 (bfd_scan_arch): Rewrite accordingly. Return a const pointer.
2944 (bfd_lookup_arch): Likewise.
2945 (bfd_set_arch_info): Rewrite accordingly. Change argument to be a
2946 const pointer.
2947 (bfd_default_arch_struct): Make const.
2948 (bfd_arch_init, bfd_arch_linkin): Remove.
2949 (bfd_get_arch_info): Return a const pointer.
2950 * init.c (bfd_init): Don't call bfd_arch_init.
2951 * bfd.c (struct _bfd): Make arch_info const.
2952 * bfd-in2.h: Rebuild.
2953 * libbfd.h: Rebuild.
2954 * configure.in: Put & before everything in $selarchs.
2955 * configure: Rebuild.
2956 * cpu-*.c: Change bfd_*_arch from a function which calls
2957 bfd_arch_linkin to a const structure.
2958 * ieee.c (ieee_object_p): Make arch const.
2959
02f85cda
MM
2960Fri Sep 22 16:23:18 1995 Michael Meissner <[email protected]>
2961
2962 * reloc.c (bfd_reloc_code_type): Add relocations to support all of
2963 PowerPC V.4.
2964 * bfd-in2.h: Regenerate.
2965 * libbfd.h: Regenerate.
2966
2967 * elf32-ppc.c (reloc_type): Update names to match current draft.
2968 (ppc_elf_howto_raw): Mark 14 bit relocs as short sized and PC
2969 relative. Update names to current V.4 draft.
2970 (ppc_elf_reloc_type_lookup): Add support for more relocations.
2971 (ppc_elf_relocate_section): Rename relocations to match draft.
2972
dd82c578
MM
2973Thu Sep 21 21:53:18 1995 Michael Meissner <[email protected]>
2974
2975 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Allow modules
2976 compiled with -mrelocatable-lib to be linked with either normal
2977 modules or -mrelocatable modules.
2978
f69e888e
ILT
2979Wed Sep 20 12:03:26 1995 Ian Lance Taylor <[email protected]>
2980
e18c4e8f
ILT
2981 * coffcode.h (coff_write_object_contents): Clear the vstamp field
2982 in the a.out header.
2983
f69e888e
ILT
2984 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for
2985 a reloc against a local symbol, even if it's not a section.
2986
a5655244
ILT
2987Tue Sep 19 17:02:26 1995 Ian Lance Taylor <[email protected]>
2988
2989 * targets.c (bfd_target): Remove unused align_power_min field.
2990 * bfd-in2.h: Rebuild.
2991 * All backends: Remove initialization of align_power_min.
2992
500d7394
SC
2993Tue Sep 19 14:02:21 1995 steve chamberlain <[email protected]>
2994
2995 * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right.
500d7394 2996
049df0a8
ILT
2997Mon Sep 18 14:35:01 1995 Arne H. Juul <[email protected]>
2998
2999 * config.bfd (mips-dec-netbsd*): New target.
3000 * configure.host (mips-dec-netbsd*): New host.
3001 * configure.in (mips-dec-netbsd*): New native.
3002 * configure: Rebuild.
3003
1862bbd8
ILT
3004Fri Sep 15 10:24:36 1995 Ian Lance Taylor <[email protected]>
3005
3006 Make the COFF backend linker merge common types:
3007 * cofflink.c (struct coff_debug_merge_element): Define.
3008 (struct coff_debug_merge_type): Define.
3009 (struct coff_debug_merge_hash_entry): Define.
3010 (struct coff_debug_merge_hash_table): Define.
3011 (coff_debug_merge_hash_table_init): Define.
3012 (coff_debug_merge_hash_table_free): Define.
3013 (coff_debug_merge_hash_lookup): Define.
3014 (struct coff_final_link_info): Add debug_merge field.
3015 (coff_debug_merge_hash_newfunc): New static function.
3016 (_bfd_coff_final_link): Allocate and free debug_merge table.
3017 (coff_link_input_bfd): Merge identical enum, struct and union
3018 types.
3019
a208a70f
ILT
3020Thu Sep 14 14:53:58 1995 Ian Lance Taylor <[email protected]>
3021
3022 Convert i960 COFF to use COFF backend linker.
3023 * coff-i960.c (coff_i960_relocate): Use a coff_section_data
3024 structure to store the symbol being used.
3025 (coff_i960_start_final_link): New static function.
3026 (coff_i960_relocate_section): New static function.
3027 (coff_i960_adjust_symndx): New static function.
3028 (coff_start_final_link): Define.
3029 (coff_relocate_section): Define.
3030 (coff_adjust_symndx): Define.
3031 * coffcode.h (bfd_coff_backend_data): Add new callback function
3032 _bfd_coff_start_final_link.
3033 (bfd_coff_start_final_link): Define.
3034 (coff_start_final_link): Define if not defined.
3035 (bfd_coff_std_swap_table): Add coff_start_final_link.
3036 * cofflink.c (_bfd_coff_internal_syment_name): Make globally
3037 visible.
3038 (_bfd_coff_final_link): Call bfd_coff_start_final_link if the
3039 function callback is not NULL.
3040 * libcoff-in.h (struct coff_section_tdata): Add tdata field.
3041 (_bfd_coff_internal_syment_name): Declare.
3042 * libcoff.h: Rebuild.
3043 * configure.in (icoff_big_vec): Add cofflink.o.
3044 (icoff_little_vec): Likewise.
3045 * configure: Rebuild.
3046
f0abedbe
FF
3047Wed Sep 13 17:38:23 1995 Fred Fish <[email protected]>
3048
3049 * Makefile.in (clean-info): Remove extraneous tab from line
3050 following action.
3051
aa4b3dc5
ILT
3052Wed Sep 13 13:27:53 1995 Ian Lance Taylor <[email protected]>
3053
3054 * cofflink.c (coff_link_input_bfd): Fail if a section with no
3055 contents has relocs.
3056
4ca63811 3057Thu Sep 12 12:45:34 1995 steve chamberlain <[email protected]>
beee31b1
SC
3058
3059 * coffcode.h (coff_compute_section_file_positions): Keep the
3060 raw size safe.
3061 (coff_write_object_contents): Remember if it's a relocatable
3062 file.
3063 * libcoff-in.h (pe_data_type): New member 'has_reloc_section'
3064 * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag
3065 if relocatable file. Swap out saved raw size.
3066
ae115e51
ILT
3067Tue Sep 12 12:14:33 1995 Ian Lance Taylor <[email protected]>
3068
9521bac3
ILT
3069 * Makefile.in (do_maintainer_clean): Rename from do_realclean.
3070 (maintainer-clean): Rename from realclean, passing
3071 maintainer-clean down to subdirectories, but leave realclean as a
3072 synonym.
3073
4ca63811
ILT
3074 * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
3075 warning callback.
3076
5aa4c3ff
ILT
3077 * dep-in.sed: Remove config.h from generated dependencies.
3078
396aaeb2
ILT
3079 * sunos.c (sunos_slurp_dynamic_symtab): New static function,
3080 broken out of sunos_canonicalize_dynamic_symtab.
3081 (sunos_canonicalize_dynamic_symtab): Call new function
3082 sunos_slurp_dynamic_symtab.
3083 (sunos_add_dynamic_symbols): Add three new parameters. Return the
3084 dynamic symbol table to the caller.
3085 * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols
3086 callback to override the symbols being read.
3087 * libaout.h (struct aout_backend_data): Add three new parameters
3088 to add_dynamic_symbols callback.
3089
ae115e51
ILT
3090 Extensive minor changes to avoid various gcc warnings. Also:
3091 * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
3092 * archures.c (bfd_arch_info_type): Change mach field from long to
3093 unsigned long.
3094 (bfd_lookup_arch): Change machine parameter from long to unsigned
3095 long.
3096
b088e4b2
ILT
3097Mon Sep 11 10:55:47 1995 Ian Lance Taylor <[email protected]>
3098
3099 * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
3100 a symbol with a non-zero plt_offset.
3101
1dff7902
ILT
3102Fri Sep 8 11:47:24 1995 Ian Lance Taylor <[email protected]>
3103
2b71e1e4
ILT
3104 * elfcode.h (align_file_position): Remove; not used.
3105
1dff7902
ILT
3106 * configure.in: Only check for <sys/procfs.h> on a native system,
3107 and make sure it defines prstatus_t.
3108 * configure: Rebuild.
3109
870015b1
ILT
3110Thu Sep 7 12:48:01 1995 Ian Lance Taylor <[email protected]>
3111
535c89f0
ILT
3112 * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.
3113
936b870c
ILT
3114 * config.in: Rename from config.h.in.
3115 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
a7873a6c 3116 Check for config.h:config.in when creating stamp-h.
936b870c 3117 * configure: Rebuild.
a7873a6c
ILT
3118 * Makefile.in (stamp-h): Depend upon config.in rather than
3119 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
3120 calling config.status.
936b870c 3121
870015b1
ILT
3122 * Makefile.in (do_distclean): Remove config.h and stamp-h.
3123 (Makefile): Just rebuild Makefile.
3124 (config.h, stamp-h): New targets.
3125 * configure.in: Create stamp-h when rebuilding config.h.
3126 * configure: Rebuild.
3127
b7577823
ILT
3128Wed Sep 6 15:00:33 1995 Ian Lance Taylor <[email protected]>
3129
3130 * configure.in: Call AC_CONFIG_HEADER. Substitute
3131 HOST_64BIT_LONG. Check that various header files exist. Check
3132 that fcntl exists. Call BFD_BINARY_FOPEN. Check whether malloc
3133 and/or free need to be declared. Don't make a link to sysdep.h.
3134 Define TRAD_HEADER for various hosts.
3135 * configure: Rebuild.
3136 * configure.host: Don't set my_host. Add definitions taken from
3137 host header files for various entries. Remove entries which now
3138 do nothing.
3139 * acconfig.h: New file.
3140 * config.h.in: New file, built by autoheader.
3141 * sysdep.h: New file.
3142 * Makefile.in (do_distclean): Don't remove sysdep.h.
3143 (RECONFIG): Remove.
3144 (LOCAL_H_DEPS): New variable.
3145 ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
3146 $(RECONFIG).
3147 ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise.
3148 ($(OPTIONAL_BACKENDS)): Likewise.
3149 (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than
3150 looking through sysdep.h.
3151 * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile.
3152 (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG.
3153 (fprintf_vma, sprintf_vma): Likewise.
3154 (int64_type, uint64_type): Don't define.
3155 * bfd-in2.h: Rebuild.
3156 * archures.c, bfd.c, srec.c: Include <ctype.h>.
3157 * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS.
3158 * lynx-core.c: Include stuff from old hosts/lynx.h.
3159 * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL),
3160 rather than NO_FCNTL.
3161 * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__
3162 rather than NATIVE_HPPAHPUX_COMPILER.
3163 * trad-core.c: Don't include <errno.h>. Include TRAD_HEADER if it
3164 is defined.
3165 * hosts/*.h: Remove all header files which merely include,
3166 declare, and define things. Leave header files which define
3167 information needed by trad-core.c.
3168
3169 * aclocal.m4 (BFD_BINARY_FOPEN): Define.
3170 (BFD_CC_FOR_BUILD): Define.
3171 * configure.in: Use BFD_CC_FOR_BUILD.
3172 * configure: Rebuild.
3173
7a93ebdd
ILT
3174Tue Sep 5 19:35:28 1995 Ian Lance Taylor <[email protected]>
3175
4c2e4d0e
ILT
3176 * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
3177 * configure: Rebuild.
3178
7a93ebdd
ILT
3179 * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
3180 a global symbol.
3181
866bb9e5
JM
3182Tue Sep 5 12:48:26 1995 Jason Molenda ([email protected])
3183
3184 * config.bfd: i386pe_ve -> i386pe_vec.
3185
2b79a104
ILT
3186Mon Sep 4 14:02:43 1995 Ian Lance Taylor <[email protected]>
3187
f515fb2f
ILT
3188 * configure.host: Incorporate host Makefile fragments by setting
3189 shell variables.
3190 * configure.in: Call AC_PROG_CC. Substitute CFLAGS, HDEFINES and
3191 AR. Call AC_PROG_INSTALL. Substitute CC_FOR_BUILD, choosing a
3192 value based on whether the code is being compiled by a cross
3193 compiler. Don't substitute host_makefile_frag or frags.
3194 * aclocal.m4: New file to define local AC_PROG_CC.
3195 * configure: Rebuild.
3196 * Makefile.in (INSTALL): Set to @INSTALL@.
3197 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
3198 (INSTALL_DATA): Set to @INSTALL_DATA@.
3199 (AR): Set to @AR@.
3200 (CC): Define as @CC@.
3201 (CFLAGS): Set to @CFLAGS@.
3202 (CC_FOR_BUILD): Set to @CC_FOR_BUILD@.
3203 (@host_makefile_frag@): Remove.
3204 (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@. Move $(CFLAGS)
3205 after other options.
3206 (config.status): Remove dependency upon @frags@.
3207 * config/*.mh, config/README: Remove.
3208
2b79a104
ILT
3209 * config.bfd: Rewrite to incorporate the contents of the Makefile
3210 fragments by setting shell variables, rather than merely returning
3211 the name of a Makefile fragment.
3212 * configure.in: Use shell variables set by config.bfd rather than
3213 looking at the target Makefile fragment files. Don't substitute
3214 target_makefile_frag. Do substitute TDEFINES.
3215 * configure: Rebuild.
3216 * Makefile.in (@target_makefile_frag@): Remove.
3217 (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@.
3218 * config/*.mt: Remove.
3219
2cb159a5
KR
3220Mon Sep 4 03:13:28 1995 Ken Raeburn <[email protected]>
3221
3222 * configure.in: Put changequote lines around "i[345]86" patterns
3223 section of core file support.
3224
ef07871c
JL
3225Sun Sep 3 11:31:58 1995 Jeff Law ([email protected])
3226
3227 * som.c (som_bfd_print_private_bfd_data): Define to use the
3228 generic version.
3229
1613e075
SC
3230Fri Sep 1 17:08:40 1995 steve chamberlain <[email protected]>
3231
3232 * peicode.h (coff_swap_aouthdr_in): Add ImageBase to
3233 entry, text_start and data_start.
3234
a52a3ce8
ILT
3235Fri Sep 1 18:06:28 1995 Ian Lance Taylor <[email protected]>
3236
a21227ef
ILT
3237 * Makefile.in (OFILES): Remove $(TDEPFILES).
3238 * config/apollo.mt (TDEPFILES): Remove.
3239 * config/README: Update.
3240
a52a3ce8
ILT
3241 * configure.in: For a native configuration, set COREFILE and
3242 COREFLAG based on the canonical host name.
3243 * configure: Rebuild.
3244 * Makefile.in: Rebuild dependencies.
3245 (ALL_CFLAGS): Add @COREFLAG@.
3246 (OFILES): Replace $(HDEPFILES) with @COREFILE@.
3247 * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file
3248 support routines. Check LYNX_CORE rather than HOST_LYNX.
3249 * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX.
3250 * i386lynx.c: Likewise.
3251 * m68klynx.c: Likewise.
3252 * sparclynx.c: Likewise.
3253 * rs6000-core.c: Check AIX_CORE rather than HOST_AIX.
3254 * *-core.c: Comment changes.
3255 * config/decstation.mh (HDEPFILES): Remove.
3256 (HDEFINES): Remove -DTRAD_CORE.
3257 * config/irix3.mh (RANLIB): Remove.
3258 * config/irix4.mh (HDEPFILES, RANLIB): Remove.
3259 (HDEFINES): Remove -DIRIX_CORE.
3260 * config/riscos.mh (RANLIB, HDEPFILES): Remove.
3261 (HDEFINES): Remove -DTRAD_CORE.
3262 * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove.
3263 * config/ultra3.mh (RANLIB): Remove.
3264 * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove.
3265 * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove.
3266 * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove.
3267 * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove.
3268 * config/hppahpux.mh, config/hppaosf.mh: Remove.
3269 * config/i386aix.mh, config/i386bsd.mh: Remove.
3270 * config/i386linux.mh, config/i386mach3.mh: Remove.
3271 * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove.
3272 * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove.
3273 * config/mipsmach3.mh, config/news-mips.mh: Remove.
3274 * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove.
3275 * config/rs600.mh, config/rs6000lynx.mh: Remove.
3276 * config/solaris2.mh, config/stratus.mh: Remove.
3277 * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove.
3278 * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove.
3279
d6f672b8
ILT
3280Fri Sep 1 15:18:50 1995 Kazumoto Kojima <[email protected]>
3281
3282 * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or
3283 DT_FINI entry if the appropriate symbol is not in the hash table.
3284
3285 * libelf.h (struct elf_backend_data): Add create_program_headers
3286 and want_hdr_in_seg fields.
3287 * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not
3288 defined.
3289 (elf_backend_create_program_headers): Likewise.
3290 (elfNN_bed): Initialize create_program_headers and
3291 want_hdr_in_seg.
3292 * elf.c (get_program_header_size): Call create_program_headers
3293 backend routine.
3294 (map_program_segments): Check want_hdr_in_seg backend field. Call
3295 create_program_headers backend routine.
3296
3297 * elf.c (assign_file_positions_except_relocs): Align non allocated
3298 sections when creating an executable.
3299
3300 * elfcode.h (elf_swap_phdr_in): Make non static.
3301 (elf_swap_phdr_out): Make non static.
3302 * libelf.h (bfd_elf32_swap_phdr_in): Declare.
3303 (bfd_elf32_swap_phdr_out): Declare.
3304 (bfd_elf64_swap_phdr_in): Declare.
3305 (bfd_elf64_swap_phdr_out): Declare.
3306
3307 * ecofflink.c (ecoff_collect_shuffle): New static function.
3308 (_bfd_ecoff_get_accumulated_pdr): New function.
3309 (_bfd_ecoff_get_accumulated_sym): New function.
3310 (_bfd_ecoff_get_accumulated_ss): New function.
3311 * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare.
3312 (_bfd_ecoff_get_accumulated_sym): Declare.
3313 (_bfd_ecoff_get_accumulated_ss): Declare.
3314 * libbfd.h: Rebuild.
3315
0cb70568
ILT
3316Fri Sep 1 13:20:25 1995 Ian Lance Taylor <[email protected]>
3317
d6f672b8
ILT
3318 * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo.
3319
0cb70568
ILT
3320 * elflink.h (elf_link_add_object_symbols): Handle indirect and
3321 warning symbols. If any section is named .gnu.warning.XXX, treat
3322 the contents as a warning to be issued if the symbol XXX is
3323 referenced.
3324 (elf_link_output_extsym): For an indirect or warning symbol, just
3325 output the symbol it points to.
3326
3327 * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error
3328 if bfd_hash_allocate fails, since it will already be set.
3329 (generic_link_hash_newfunc): Likewise.
3330 (archive_hash_newfunc): Likewise.
3331 (hash_entry_bfd): New static function.
3332 (_bfd_generic_link_add_one_symbol): Pass new arguments to warning
3333 callback. Allocate a new warning using the hash table newfunc.
3334 Use bfd_hash_replace to update the entry in the hash table, rather
3335 than assuming we can copy the fields with structure assignment.
3336
3337 * hash.c (bfd_hash_replace): New function.
3338 * bfd-in.h (bfd_hash_replace): Declare.
3339 * bfd-in2.h: Rebuild.
3340
f14db880
JSC
3341Fri Sep 1 08:12:50 1995 James G. Smith <[email protected]>
3342
3343 * config.bfd: Add mips*vr4300-*-elf* target.
3344 * config/mipsbvr4300.mt: Added.
3345
1613e075 3346See file ChangeLog.2
e6d739eb 3347
41126f15
JK
3348\f
3349Local Variables:
3350mode: indented-text
3351left-margin: 8
6ec3bb6a
ILT
3352fill-column: 74
3353version-control: never
3354End:
This page took 0.804801 seconds and 4 git commands to generate.