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