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