* libecoff.h (ecoff_data_type): Add rdata_in_text field.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
9bd65136
ILT
1Mon Jul 22 15:30:30 1996 Ian Lance Taylor <ian@cygnus.com>
2
3 * libecoff.h (ecoff_data_type): Add rdata_in_text field.
4 * ecoff.c (ecoff_compute_section_file_positions): Copy
5 rdata_in_text from backend info to tdata. Clear it if any data
6 section comes before .rdata.
7 (_bfd_ecoff_write_object_contents): Use rdata_in_text field in
8 tdata rather than backend info.
9
194141a9
ILT
10Fri Jul 19 18:15:51 1996 Ian Lance Taylor <ian@cygnus.com>
11
12 * configure.in: Fix test for whether a compiler has a 64 bit
13 type. From Jim Wilson <wilson@cygnus.com>.
14
a8a3d83a
ILT
15Thu Jul 18 15:39:10 1996 Ian Lance Taylor <ian@cygnus.com>
16
f4e14cb9
ILT
17 * configure.host (mips-sgi-irix6*): New host.
18
19 * configure.in: Set and substitute VERSION, BFD_HOST_64BIT_LONG
20 (replacing HOST_64BITLONG), BFD_HOST_64_BIT_DEFINED,
21 BFD_HOST_64_BIT, and BFD_HOST_U_64_BIT. Add bfd-in2.h:bfd-in2.h
22 to AC_OUTPUT call.
23 * configure: Rebuild.
24 * bfd-in.h (BFD_ARCH_SIZE): Define as @wordsize@, not @WORDSIZE@.
25 (BFD_HOST_64_BIT): Define conditionally.
26 (BFD_HOST_U_64_BIT): Define when BFD_HOST_64_BIT is defined.
27 (bfd_vma): Typedef as BFD_HOST_U_64_BIT.
28 (symvalue, bfd_size_type): Likewise.
29 * bfd-in2.h: Rebuild.
30 * Makefile.in (do_clean): Remove bfd-tmp.h.
31 (do_distclean): Remove bfd-in3.h.
32 (stmp-bfd.h): Just do copy-if-change bfd-in3.h bfd.h.
33 (bfd-in3.h): New target.
34
74556b94
ILT
35 * config.bfd (sparc-*-sysv4*): Don't build sunos_big_vec. From
36 Andrew Gierth <ANDREWG@microlise.co.uk>.
37
ab659fd6
ILT
38 * configure.host: Set INSTALL_SHLIB.
39 * configure.in: Call AC_SUBST (INSTALL_SHLIB).
40 * configure: Rebuild.
41 * Makefile.in (install): Use @INSTALL_SHLIB@.
42
e8c249cb
ILT
43 * config.bfd (mips*-*-irix6*): New target.
44 * configure.host: Handle Irix 6 shared library like Irix 5.
45
a8a3d83a
ILT
46 * xcofflink.c (xcoff_link_add_symbols): Don't check an XMC_TD
47 symbol for a magic name.
48 (xcoff_link_input_bfd): Don't change the reloc symbol for an
49 XMC_TD symbol.
50 (_bfd_ppc_xcoff_relocate_section): Don't get the TOC offset for an
51 XMC_TD symbol.
52
b576c7b3
SS
53Thu Jul 18 11:36:31 1996 Stan Shebs <shebs@andros.cygnus.com>
54
55 * mpw-config.in: Add ELF support to mips config, create the
56 elf32-target.h file in the object dir.
57 * mpw-make.sed: Edit elfXX-target.h refs at beginnings of lines.
58
2ba0d82d
KK
59Wed Jul 17 18:02:32 1996 Kim Knuttila <krk@cygnus.com>
60
61 * coff-ppc.c: Redid debug scheme - numerous fprintf's gone.
62 Also removed most abort calls, in favor of using bfd reporting.
63
50bd50d4 64start-sanitize-d10v
b576c7b3 65Wed Jul 17 14:51:52 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
50bd50d4 66
b576c7b3
SS
67 * Makefile.in (ALL_MACHINES): Add cpu-d10v.o.
68 (BFD32_BACKENDS) Add elf32-d10v.o.
50bd50d4
MH
69 * archures.c: Add bfd_d10v_arch.
70 * bfd-in2.h: Add bfd_d10v_arch.
71 * config.bfd (d10v-*-*): New target.
72 * configure: (bfd_elf32_d10v_vec) New vector.
73 * configure.in: (bfd_elf32_d10v_vec) New vector.
74 * cpu-d10v.c: New file.
75 * elf.c (prep_headers): Added case bfd_arch_d10v.
76 * elf32-d10v.c: New file.
77 * libbfd.h: Rebuild.
b576c7b3
SS
78 * reloc.c (BFD_RELOC_D10V_10_PCREL_R, BFD_RELOC_D10V_10_PCREL_L,
79 BFD_RELOC_D10V_18, BFD_RELOC_D10V_18_PCREL): Define.
50bd50d4
MH
80 * targets.c (bfd_elf32_d10v_vec): New vector.
81end-sanitize-d10v
82
2ce9802e
KK
83Wed Jul 17 10:58:55 1996 Kim Knuttila <krk@cygnus.com>
84
85 * coff-ppc.c (coff_ppc_relocate_section): Removed bogus fprintf
86
9676e446 87Tue Jul 16 23:49:02 1996 Stu Grossman (grossman@critters.cygnus.com)
3cc21bf6 88
9676e446
SG
89 * archures.c bfd-in2.h: Add bfd_mach_i386_i386 and
90 bfd_mach_i386_i8086 machine types.
3cc21bf6 91
f7171978
ILT
92Wed Jul 10 12:42:56 1996 Ian Lance Taylor <ian@cygnus.com>
93
94 * ecoff.c (_bfd_ecoff_new_section_hook): Set SEC_CODE for _INIT
95 and _FINI sections.
96
74e2ab38
ILT
97Wed Jul 10 11:18:21 1996 Richard Henderson <rth@tamu.edu>
98
99 * coffcode.h (coff_set_section_contents): A/UX does not require
100 special handling of the _LIB section.
101
01cfaa6b
JL
102Tue Jul 9 15:52:20 1996 Jeffrey A Law (law@cygnus.com)
103
104 * coff-h8300.c (h8300_reloc16_extra_cases): Use the correct
105 value for R_RELBYTE.
106
107 * reloc16.c (bfd_coff_reloc16_relax_section): Only "shrinks"
108 array if one was allocated.
109
eb52b9dc
ILT
110Tue Jul 9 12:21:54 1996 Ian Lance Taylor <ian@cygnus.com>
111
112 From Kazumoto Kojima <kkojima@kk.info.kanagawa-u.ac.jp>:
113 * elf32-mips.c (struct mips_elf_link_hash_table): Add new fields
114 use_rld_obj_head and rld_value.
115 (mips_elf_link_hash_table_create): Initialize new fields.
116 (mips_elf_add_symbol_hook): Mark __rld_obj_head symbol as
117 dynamic.
118 (mips_elf_create_dynamic_sections): Create .rld_map section. If
119 __rld_obj_head symbol not seen, create an __rld_map symbol.
120 (mips_elf_size_dynamic_sections): Make space in .rld_map section.
121 Create a DT_MIPS_RLD_MAP entry rather than a DT_DEBUG entry.
122 (mips_elf_finish_dynamic_symbol): Save value of __rld_map or
123 __rld_obj_head symbol.
124 (mips_elf_finish_dynamic_sections): Handle DT_MIPS_RLD_MAP.
125
56b4cbaa
ILT
126Mon Jul 8 16:18:03 1996 Ian Lance Taylor <ian@cygnus.com>
127
9b292d4c
ILT
128 * elf32-mips.c (mips_reloc_map): Remove BFD_RELOC_32_PCREL entry.
129
dab45734
ILT
130 * elf32-ppc.c (ppc_elf_howto_raw): For R_PPC_ADDR16_HA, use
131 ppc_elf_addr16_ha_reloc.
132 (ppc_elf_addr16_ha_reloc): New static function.
133
56b4cbaa
ILT
134 * coff-mips.c (struct mips_hi): Define.
135 (mips_refhi_list): New static variable.
136 (mips_refhi_addr, mips_refhi_addend): Remove.
137 (mips_refhi_reloc): Maintain a list of unmatched REFHI relocs.
138 (mips_reflo_reloc): Process mips_refhi_list.
139 (mips_relhi_list): New static variable.
140 (mips_relhi_addr, mips_relhi_addend): Remove.
141 (mips_relhi_reloc): Maintain a list of unmatched RELHI relocs.
142 (mips_rello_reloc): Process mips_relhi_list.
143 (mips_relocate_section): Permit an arbitrary number of REFHI or
144 RELHI relocs before the associated REFLO or RELLO reloc.
145
b777c6a7
ILT
146Fri Jul 5 19:27:49 1996 Ian Lance Taylor <ian@cygnus.com>
147
148 * aout-target.h (MY(callback)): Set reloc_count fields.
149
100b65dd
ILT
150Thu Jul 4 12:00:37 1996 Ian Lance Taylor <ian@cygnus.com>
151
48f3aaf3
ILT
152 * sunos.c (sunos_add_dynamic_symbols): Don't create dynamic
153 sections unless this is a SunOS link.
154
100b65dd
ILT
155 * VERSION: Set to 2.7.1.
156
157 * Released binutils 2.7.
158
a31e14f4
ILT
159Wed Jul 3 14:59:47 1996 Ian Lance Taylor <ian@cygnus.com>
160
4d3daf4f
ILT
161 * i386aout.c: Include "aout/aout64.h".
162 (i386aout_write_object_contents): New static function.
163 (MY_write_object_contents): Define.
164
a31e14f4
ILT
165 * netbsd.h (MY(write_object_contents)): Make sure that
166 adjust_sizes_and_vmas is called before fiddling with the magic
167 number.
168
d2d04f7a
ILT
169Tue Jul 2 23:30:39 1996 Ian Lance Taylor <ian@cygnus.com>
170
171 * stabs.c (_bfd_link_section_stabs): Fix casts of psinfo.
172
4f6ee760
ILT
173Sun Jun 30 13:34:33 1996 Ian Lance Taylor <ian@cygnus.com>
174
175 * libbfd-in.h (itos, stoi): Don't define.
176 * libbfd.h: Rebuild.
177 * i386lynx.c (KEEPIT): Define as udata.i.
178 (NAME(lynx,swap_std_reloc_out)): Don't use stoi.
179 (NAME(lynx,swap_ext_reloc_out)): Likewise.
180 * riscix.c (riscix_swap_std_reloc_out): Use udata.i rather than
181 flags. Don't use stoi.
182
183 * elf32-mips.c (ELF_MAGPAGESIZE): Change definition to 0x1000.
184
185 * elf.c (map_sections_to_segments): Don't start a new segment for
186 a writable section if it's on the same page as the previous
187 segment. Reset the writable variable for a readonly section.
188
dfb89b82
KK
189Sat Jun 29 16:18:51 1996 Kim Knuttila <krk@cygnus.com>
190
191 * peicode.h (coff_swap_aouthdr_in): Missing initializations of
192 first_thunk_address, thunk_size, and import_table_size.
193 * peicode.h: Improved some diagnostics regarding edata sections.
194
195 * coff-ppc.c (coff_ppc_relocate_section): Earlier error check
196 on IMGLUE relocs.
197 (coff_ppc_relocate_section): Improved diagnostic for large TOCDEFN's.
198 (TARGET_LITTLE_SYM): Added missing D_PAGED.
199
8e80606f
ILT
200Fri Jun 28 13:48:45 1996 Ian Lance Taylor <ian@cygnus.com>
201
f93fb275
ILT
202 * xcofflink.c (xcoff_link_check_ar_symbols): An undefined symbol
203 with XCOFF_DEF_DYNAMIC set is really defined.
204 (xcoff_link_check_dynamic_ar_symbols): Likewise.
205 (xcoff_link_add_symbols): Only create special sections if using an
206 XCOFF hash table.
207
8e80606f
ILT
208 * reloc.c (bfd_perform_relocation): Handle xcoff-powermac like
209 aixcoff-rs6000.
210 (bfd_install_relocation): Likewise.
211
eec2f824
ILT
212Fri Jun 28 11:17:00 1996 Richard Henderson <rth@tamu.edu>
213
214 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add flags
215 field.
216 (ALPHA_ELF_LINK_HASH_LU_ADDR): Define.
217 (ALPHA_ELF_LINK_HASH_LU_MEM): Define.
218 (ALPHA_ELF_LINK_HASH_LU_FUNC): Define.
219 (elf64_alpha_link_hash_newfunc): Initialize flags field.
220 (elf64_alpha_check_relocs): Record types of LITUSE entries that
221 are found for LITERAL relocs.
222 (elf64_alpha_adjust_dynamic_symbol): If a symbol has its address
223 taken, we cannot generate a .plt entry for the symbol.
224
5304aea9
ILT
225Thu Jun 27 11:24:29 1996 Ian Lance Taylor <ian@cygnus.com>
226
227 * configure.in: Add AC_ISC_POSIX, and check for setitimer and
228 sysconf functions (for gprof).
229 * configure, config.in: Rebuild.
230
017047d4
ILT
231Wed Jun 26 16:29:02 1996 Ian Lance Taylor <ian@cygnus.com>
232
f292bbe9
ILT
233 * ecoff.c (_bfd_ecoff_archive_p): Check the first object file in
234 an archive if it has a map. If the object file has the wrong
235 xvec, reject it.
236
566e2325
ILT
237 * coff-alpha.c (alpha_adjust_reloc_in): Set the addend for a
238 BRADDR, SREL16, SREL32, or SREL64 reloc against an external
239 symbol.
240 (alpha_relocate_section): Likewise.
241
017047d4
ILT
242 * coffswap.h (coff_swap_reloc_out): Use RELSZ, not sizeof.
243 (coff_swap_filehdr_out): Use FILHSZ, not sizeof.
244 (coff_swap_sym_out): Use SYMESZ, not sizeof.
245 (coff_swap_aux_out): Use AUXESZ, not sizeof.
246 (coff_swap_lineno_out): Use LINESZ, not sizeof.
247 (coff_swap_aouthdr_out): Use AOUTSZ, not sizeof.
248 (coff_swap_scnhdr_out): Use SCNHSZ, not sizeof.
249 * peicode.h: Corresponding changes.
250
cb73f5d7
MM
251Tue Jun 25 15:28:34 1996 Michael Meissner <meissner@tiktok.cygnus.com>
252
253 * elflink.h (elf_create_pointer_linker_section): Comment out code
254 dealing with making GOT pointers negative of the GOT symbol for
255 now.
256
297a4f1a
ILT
257Tue Jun 25 11:41:24 1996 Richard Henderson <rth@tamu.edu>
258
259 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't
260 increment the .rela.plt size until after we're done creating the
261 .plt entry.
262 (elf64_alpha_finish_dynamic_symbol): Change .plt entry to load the
263 .rela.plt offset directly rather than calculating it.
264
dbbfec07
JM
265Mon Jun 24 17:15:10 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
266
01e58ff6
JM
267 * Makefile.in, (bindir, libdir, datadir, mandir, infodir, includedir):
268 Use autoconf-set values.
269 * doc/Makefile.in (bindir, libdir, datadir, mandir, infodir,
270 includedir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set
271 values.
dbbfec07
JM
272 (docdir): Deleted.
273 * configure.in (AC_PREREQ): autoconf v2.5 or higher.
274 * configure: Rebuilt.
275
50004d8d
JL
276Mon Jun 24 22:50:35 1996 Jeffrey A Law (law@cygnus.com)
277
278 * som.c (som_write_fixups): Fix typo in R_END_TRY for exception
279 handling code > 1k away.
280
281Mon Jun 24 18:41:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
282
283 * elflink.h (elf_create_pointer_linker_section): If DEBUG is
284 defined, output whenever the symbol is updated.
285
2e0567eb
ILT
286Mon Jun 24 17:58:12 1996 Jouke Numan <jnuman@bazis.nl>
287
288 * elf.c (elf_fake_sections): Don't set sh_addr of a non SEC_ALLOC
289 section to 0 if user_set_vma is set.
290 * elflink.h (elf_bfd_final_link): Likewise.
291
292Sun Jun 23 20:42:51 1996 Doug Evans <dje@canuck.cygnus.com>
293
294 Partially undo patch of Jun 20.
295 * coffcode.h (coff_set_alignment_hook): Use COFF_IMAGE_WITH_PE.
296 (coff_compute_section_file_positions): Likewise.
297 (coff_write_object_contents): Likewise. Re-add deleted code, but
298 use #ifdef COFF_WITH_PE, not COFF_OBJ_WITH_PE.
299 * peicode.h (pe_bfd_copy_private_bfd_data): Re-add #ifdef.
300
bff4a496
ILT
301Fri Jun 21 17:38:15 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
302
303 * config.bfd: Add support for *-*-rtems* configurations.
304
7ae6550f
ILT
305Fri Jun 21 15:19:59 1996 Ian Lance Taylor <ian@cygnus.com>
306
307 * elf.c (prep_headers): Add bfd_arch_alpha case.
308
e8f46717
ILT
309Fri Jun 21 12:35:27 1996 Richard Henderson <rth@tamu.edu>
310
311 * elf64-alpha.c: New file.
312 * config.bfd (alpha-*-linuxecoff*): New target.
313 (alpha-*-linux*, alpha-*-elf*): New targets.
314 * configure.in (bfd_elf64_alpha_vec): New vector.
315 * configure: Rebuild.
316 * targets.c (bfd_elf64_alpha_vec): Declare.
317 (bfd_target_vector): Add bfd_elf64_alpha_vec if BFD64.
318 * reloc.c (BFD_RELOC_ALPHA_GPDISP): Define.
319 * bfd-in2.h, libbfd.h: Rebuild.
320 * Makefile.in: Rebuild dependencies.
321 (BFD64_BACKENDS): Add elf64-alpha.o.
322 (BFD64_BACKENDS_CFILES): Add elf64-alpha.c.
323
bacecac8
ILT
324Thu Jun 20 18:14:25 1996 Ian Lance Taylor <ian@cygnus.com>
325
326 * ecoff.c (ecoff_armap_hash): If hlog is 0, just return 0, rather
327 than relying on a right shift of 32.
328
9ca108cd
DE
329Thu Jun 20 11:00:57 1996 Doug Evans <dje@canuck.cygnus.com>
330
b9110a3c
DE
331 * coffcode.h (coff_set_alignment_hook): Change COFF_IMAGE_WITH_PE
332 ifdef to COFF_WITH_PE.
333 (coff_compute_section_file_positions): Likewise.
334 (coff_write_object_contents): Likewise. Delete COFF_OBJ_WITH_PE.
335 * pe-{arm,i386,ppc}.c (COFF_OBJ_WITH_PE): Delete.
336 * peicode.h (pe_bfd_copy_private_bfd_data): Delete ifdef
337 COFF_IMAGE_WITH_PE, always include.
338
9ca108cd
DE
339 * peicode.h (coff_swap_scnhdr_out): ".drectve" doesn't have trailing 0.
340
c2073f05
ILT
341Wed Jun 19 11:37:52 1996 Ian Lance Taylor <ian@cygnus.com>
342
7fc6a16a
ILT
343 * elf.c (map_sections_to_segments): Fix up the test for -Ttext to
344 approximate the correct answer if SIZEOF_HEADERS was not used.
345
c2073f05
ILT
346 * binary.c (binary_set_section_contents): Set section file
347 position based on LMA rather than VMA.
348
4838929e
ILT
349Wed Jun 19 11:19:25 1996 Manfred Hollstein KS/EIC5 60/3/142 #40283 <manfred@lts.sel.alcatel.de>
350
351 * linker.c (_bfd_generic_link_output_symbols): Don't output any
352 symbols if info->strip == strip_all.
353
354Tue Jun 18 15:17:36 1996 Jeffrey A. Law <law@rtl.cygnus.com>
355
356 * coff-h8300.c: Remove #if 0 code.
357 (compatable): Don't allow mixing/matching of different architectures.
358
4838929e
ILT
359 * archures.c (bfd_mach_h8300s): Add.
360 * bfd-in2.h: Rebuilt.
361 * coff-h8300.c (funcvec_hash_newfunc): Handle H8/S too.
362 (BADMAG): Likewise.
363 (h8300_reloc16_estimate): Likewise.
364 (h8300_reloc16_extra_cases): Likewise.
365 (h8300_bfd_link_add_symbols): Likewise.
366 * coffcode.h (coff_set_arch_mach_hook): Likewise.
367 (coff_set_flags): Likewise.
368 * cpu-h8300.c (h8300_scan): Likewise.
369 Add H8/S to bfd_h8300_arch list.
370
c3d8e071
ILT
371Tue Jun 18 14:42:58 1996 Klaus Kaempf <kkaempf@progis.de>
372
373 Added support for Alpha OpenVMS:
374 * evax.h, evax-alpha.c, evax-egsd.c, evax-emh.c: New files.
375 * evax-etir.c, evax-misc.c, hosts/alphavms.h: New files.
376 * config.h-vms, makefile.vms: New files.
377 * config.bfd (alpha-*-*vms*): New target.
378 * configure.in (evax_alpha_vec): New target vector.
379 * configure: Rebuild.
380 * reloc.c (BFD_RELOC_SWREL32, BFD_RELOC_SWREL64): Define.
381 (BFD_RELOC_ALPHA_LINKAGE, BFD_RELOC_ALPHA_BASEREG): Define.
382 * targets.c (bfd_target_evax_flavour): Define.
383 (evax_alpha_vec): Declare.
384 (bfd_target_vector): Add ecoffalpha_little_vec and evax_alpha_vec
385 if BFD64 is defined.
386 * bfd-in2.h, libbfd.h: Rebuild.
387 * Makefile.in: Rebuild dependencies.
388 (BFD64_BACKENDS): Add evax-alpha.o, evax-egsd.o, evax-etir.o,
389 evax-emh.o, and evax-misc.o.
390 (BFD64_BACKENDS_CFILES): Add evax-alpha.c, evax-egsd.c,
391 evax-etir.c, evax-emh.c, and evax-misc.c.
392 (HFILES): Add evax.h.
393
142aa7d9
ILT
394Tue Jun 18 13:54:18 1996 Ian Lance Taylor <ian@cygnus.com>
395
396 * coff-h8300.c (h8300_reloc16_extra_cases): Make name a const
397 pointer.
398 (h8300_bfd_link_add_symbols): Likewise.
399
b658d64d
JL
400Mon Jun 17 10:06:50 1996 Jeffrey A. Law <law@rtl.cygnus.com>
401
402 * som.h (R_HPPA_BEGIN_TRY, R_HPPA_END_TRY): Define.
403 * som.c (som_write_fixups): Handle R_BEGIN_TRY and R_END_TRY.
404
2df1e84b
ILT
405Mon Jun 17 12:49:11 1996 Ian Lance Taylor <ian@cygnus.com>
406
407 * elf32-mips.c (mips_elf_relocate_section): Don't create a reloc
408 for R_MIPS_REL32 and R_MIPS_32 relocs if no dynamic sections were
409 created.
410 (mips_elf_check_relocs): Only create .rel.dyn for R_MIPS_REL32 and
411 R_MIPS_32 relocs if creating a shared library.
412
413Thu Jun 13 20:14:51 1996 Doug Evans <dje@canuck.cygnus.com>
414
415 * peicode.h (add_data_entry): Use pei_section_data rather than
416 _cooked_size. Corresponds to May 13 change in coffcode.h.
417
8100e72c
ILT
418Thu Jun 13 10:23:40 1996 Ian Lance Taylor <ian@cygnus.com>
419
51bc9642
ILT
420 * cofflink.c (_bfd_coff_final_link): Handle long section names.
421 * coffcode.h (coff_write_object_contents): If there are long
422 section names, always set the f_symptr field, even if there are no
423 symbols.
424 * peicode.h (coff_swap_filehdr_in): Don't clear the f_symptr field
425 if there are no symbols.
426
8100e72c
ILT
427 * coffgen.c (make_a_section_from_file): Check return value of
428 _bfd_coff_read_string_table.
429 (coff_real_object_p): Check return value of
430 make_a_section_from_file.
431 (_bfd_coff_read_string_table): Check that there are some symbols
432 before trying to read the string table size.
433
0e3bd85e
ILT
434Wed Jun 12 11:16:37 1996 Ian Lance Taylor <ian@cygnus.com>
435
ed675a04
ILT
436 * xcofflink.c (xcoff_link_add_symbols): When considering whether
437 to replace a symbol in a dynamic object with a symbol from another
438 dynamic object, do the replacement if the existing symbol is
439 global linkage code.
440
49144784
ILT
441 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Check explicitly
442 for _ptrgl, and treat it as global linkage code.
443
0e3bd85e
ILT
444 * aoutx.h (NAME(aout,find_nearest_line)): Notice if we find a
445 filename or N_SO symbol past the offset, and use it to indicate
446 that there is no line number or function when appropriate.
447
a5c7acea
ILT
448Tue Jun 11 15:24:48 1996 Ian Lance Taylor <ian@cygnus.com>
449
450 * xcofflink.c (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR for a
451 common symbol defined by the linker. Don't export function code
452 even if export_defineds is set.
453
454Mon Jun 10 11:57:27 1996 Jeffrey A Law (law@cygnus.com)
455
456 * coff-h8300.c (howto_table): Add new entries for R_BCC_INV
457 and R_JMP_DEL.
458 (rtype2howto): Handle R_BCC_INV and R_JMP_DEL.
459 (h8300_symbol_address_p): New function.
460 (h8300_reloc16_estimate): Eliminate jumps made unnecessary by
461 relaxing.
462
890f5b7f
JL
463Sun Jun 9 16:30:20 1996 Jeffrey A Law (law@cygnus.com)
464
465 * coff-h8300.c (h8300_reloc16_estimate): Fix many minor spacing
466 problems.
467 (h8300_reloc16_estimate, cases R_JMP1, R_JMP2): Adjust "dot"
468 correctly for the two variants. Allow relaxing if the target
469 is 128 bytes away since after relaxation it'll be 126 bytes away.
470 (h8300_reloc16_estimate, case R_PCRWORD): Correctly adjust
471 "dot" and "value". Allow relaxing if the target is 128 bytes
472 away since after relaxation it'll be 126 bytes away.
473 * reloc16.c (bfd_coff_reloc16_relax_section): Keep relaxing
474 the given section until nothing changes.
475
0593fc16
ILT
476Thu Jun 6 15:24:45 1996 Richard Henderson <rth@tamu.edu>
477
478 * ecoff.c (_bfd_ecoff_new_section_hook): Remove the _PDATA
479 alignment hack--we can get the lnnoptr info another way without
480 suddenly increasing the alignment requirements. Set the flags for
481 the _PDATA section.
482 (ecoff_compute_section_file_positions): Do so.
483
9b263b79
ILT
484Thu Jun 6 11:24:37 1996 Ian Lance Taylor <ian@cygnus.com>
485
bbf7c335
ILT
486 * ieee.c (ieee_write_object_contents): Put a timestamp in the file
487 to keep the HP emulator database happy.
488
9b263b79
ILT
489 * config.bfd: Recognize powerpc-*-linux* and powerpcle-*-linux*.
490 From Kevin Buettner <kev@primenet.com>.
491
492Wed Jun 5 15:16:04 1996 Ian Lance Taylor <ian@cygnus.com>
493
494 * aoutx.h (translate_to_native_sym_flags): Don't try to print the
495 name of a NULL section.
496
26145b15
ILT
497Tue Jun 4 18:53:58 1996 Ian Lance Taylor <ian@cygnus.com>
498
499 * linker.c (_bfd_generic_link_add_one_symbol): If notice_all is
500 set, always call the notice callback.
501
502 * VERSION: Increment for bfdlink.h change.
503
3a2080d8
ILT
504Mon Jun 3 11:01:53 1996 Ian Lance Taylor <ian@cygnus.com>
505
9d175198
ILT
506 * coff-sh.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set to 4.
507 (sh_relax_delete_bytes): Correct handling of differently sized
508 trailing alignment reloc.
509
5a04f1bd
ILT
510 * bfd-in.h: Use #error if BFD_HOST_64_BIT can not be defined.
511 * bfd-in2.h: Rebuild.
512 * configure.in: Warn if there is no known 64 bit type.
513 * configure: Rebuild.
514
60c8b04f
ILT
515 * Makefile.in: Rebuild dependencies.
516 (BFD32_BACKENDS): Add ppcboot.o.
517 (BFD32_BACKENDS_CFILES): Add ppcboot.c.
518
3a2080d8
ILT
519 * elf32-mips.c (mips_elf_size_dynamic_sections): Initialize c.
520 From Per Fogelstrom <per.fogelstrom@mailbox200.swipnet.se>.
521
903612a2
ILT
522Sat Jun 1 21:49:58 1996 Ian Lance Taylor <ian@cygnus.com>
523
524 * elf64-mips.c (bfd_mips_elf64_swap_reginfo_in)
525 (bfd_mips_elf64_swap_reginfo_out): Move from here...
526 * elf32-mips.c (bfd_mips_elf64_swap_reginfo_in)
527 (bfd_mips_elf64_swap_reginfo_out): ...to here.
528
38893c8c
ILT
529Fri May 31 13:51:28 1996 Ian Lance Taylor <ian@cygnus.com>
530
bc05732b
ILT
531 * elf64-mips.c: Improve reloc special_functions and handling of
532 SHT_MIPS_OPTIONS section.
533 * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Rename from
534 mips_elf_hi16_reloc and make globally visible.
535 (_bfd_mips_elf_lo16_reloc): Rename from mips_elf_lo16_reloc and
536 make globally visible.
537 (_bfd_mips_elf_got16_reloc): Rename from mips_elf_got16_reloc and
538 make globally visible.
539 (_bfd_mips_elf_gprel16_reloc): Rename from mips_elf_gprel16_reloc
540 and make globally visible.
541 (gprel16_with_gp): Check howto->src_mask before using value in
542 insn.
543 (_bfd_mips_elf_gprel32_reloc): Rename from mips_elf_gprel32_reloc
544 and make globally visible.
545 (gprel32_with_gp): Check howto->src_mask before fetching value.
546 (bfd_mips_elf_swap_options_in): New function.
547 (bfd_mips_elf_swap_options_out): New function.
548 (_bfd_mips_elf_set_private_flags): Rename from
549 mips_elf_set_private_flags and make globally visible.
550 (_bfd_mips_elf_copy_private_bfd_data): Rename from
551 mips_elf_copy_private_bfd_data and make globally visible.
552 (_bfd_mips_elf_merge_private_bfd_data): Rename from
553 mips_elf_merge_private_bfd_data and make globally visible.
554 (_bfd_mips_elf_section_from_shdr): Accept .MIPS.options as a name
555 for a SHT_MIPS_OPTIONS section.
556 (mips_elf32_section_from_shdr): Handle SHT_MIPS_OPTIONS section.
557 (_bfd_mips_elf_fake_sections): Consider .MIPS.options to be the
558 name of a SHT_MIPS_OPTIONS section.
559 (_bfd_mips_elf_set_section_contents): New function.
560 (mips_elf32_section_processing): Set the GP value in a
561 SHT_MIPS_OPTIONS section.
562 (_bfd_mips_elf_find_nearest_line): Rename from
563 mips_elf_find_nearest_line and make globally visible.
564 (bfd_elf32_set_section_contents): Define.
565 * elf-bfd.h (_bfd_mips_elf_hi16_reloc): Declare.
566 (_bfd_mips_elf_lo16_reloc): Declare.
567 (_bfd_mips_elf_gprel16_reloc): Declare.
568 (_bfd_mips_elf_got16_reloc): Declare.
569 (_bfd_mips_elf_gprel32_reloc): Declare.
570 (_bfd_mips_elf_set_private_flags): Declare.
571 (_bfd_mips_elf_copy_private_bfd_data): Declare.
572 (_bfd_mips_elf_merge_private_bfd_data): Declare.
573 (_bfd_mips_elf_find_nearest_line): Declare.
574 (_bfd_mips_elf_set_section_contents): Declare.
575
38893c8c
ILT
576 * elf32-hppa.c (elf32_hppa_info_to_howto): Rename from
577 elf_info_to_howto.
578 (elf_info_to_howto): Define.
579 * elf32-sparc.c (elf32_sparc_info_to_howto): Rename from
580 elf_info_to_howto.
581 (elf_info_to_howto): Define.
582 * elf64-sparc.c (sparc64_elf_info_to_howto): Rename from
583 elf_info_to_howto.
584 (elf_info_to_howto): Define.
585
586 * coff-w65.c (h8300_reloc16_estimate): Rename R_MOVB[12] to
587 R_MOV16B[12], to match change in coff/internal.h.
588
cabd8fa0
ILT
589Thu May 30 12:38:49 1996 Ian Lance Taylor <ian@cygnus.com>
590
00176555
ILT
591 * elf64-mips.c: Extensive additions to provide better support for
592 writing files and for gas.
593 * elf32-mips.c (_bfd_mips_elf_object_p): New function, broken out
594 of mips_elf_object_p.
595 (mips_elf32_object_p): Rename from mips_elf_object_p; call
596 _bfd_mips_elf_object_p.
597 (_bfd_mips_elf_final_write_processing): Rename from
598 mips_elf_final_write_processing and make globally visible.
599 (_bfd_mips_elf_fake_sections): Rename from
600 mips_elf_fake_sections and make globally visible.
601 (_bfd_mips_elf_section_from_bfd_section): Rename from
602 mips_elf_section_from_bfd_section and make globally visible.
603 (_bfd_mips_elf_section_processing): New function, broken out of
604 mips_elf_section_processing.
605 (mips_elf32_section_processing): Rename from
606 mips_elf_section_processing; call
607 _bfd_mips_elf_section_processing.
608 (_bfd_mips_elf_symbol_processing): Rename from
609 mips_elf_symbol_processing and make globally visible.
610 (_bfd_mips_elf_read_ecoff_info): Rename from
611 mips_elf_read_ecoff_info and make globally visible.
612 (mips_elf32_ecoff_debug_swap): Rename from
613 mips_elf_ecoff_debug_swap.
614 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Use asymbol rather than
615 struct symbol_cache_entry.
616 (_bfd_elf_validate_reloc): New function, moved in from
617 elfcode.h:validate_reloc.
618 * elfcode.h (validate_reloc): Remove; moved into elf.c and renamed
619 to _bfd_elf_validate_reloc. Change all callers.
620 * elf-bfd.h (bfd_section_from_shdr): Declare.
621 (_bfd_elf_symbol_from_bfd_symbol): Declare.
622 (_bfd_elf_validate_reloc): Declare.
623 (_bfd_mips_elf_object_p): Declare.
624 (_bfd_mips_elf_fake_sections): Declare.
625 (_bfd_mips_elf_section_from_bfd_section): Declare.
626 (_bfd_mips_elf_section_processing): Declare.
627 (_bfd_mips_elf_symbol_processing): Declare.
628 (_bfd_mips_elf_read_ecoff_info): Declare.
629 (_bfd_mips_elf_final_write_processing): Declare.
630 * elfxx-target.h (bfd_elfNN_get_reloc_upper_bound): Don't define
631 if already defined.
632
cabd8fa0
ILT
633 * elf32-mips.c (mips_elf_object_p): Handle E_MIPS_ARCH_4.
634 (mips_elf_final_write_processing): Likewise.
635
d1bf45aa
ILT
636Wed May 29 16:15:29 1996 Ian Lance Taylor <ian@cygnus.com>
637
638 64-bit MIPS ELF ABI objdump support:
639 * elf64-mips.c: New file.
640 * Makefile.in: Rebuild dependencies.
641 (BFD64_BACKENDS): Add elf64-mips.o.
642 (BFD64_BACKENDS_CFILES): Add elf64-mips.c.
643 * config.bfd (mips*el-*-elf*) Add bfd_elf64_bigmips_vec and
644 bfd_elf64_littlemips_vec to targ_selvecs.
645 (mips*-*-elf*): Likewise.
646 * confingure.in: Add bfd_elf64_bigmips_vec and
647 bfd_elf64_littlemips_vec to vector switch.
648 * configure: Rebuild.
649 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): New function,
650 broken out of mips_elf_section_from_shdr.
651 (mips_elf32_section_from_shdr): Rename from
652 mips_elf_section_from_shdr. Call new function.
653 (elf_backend_section_from_shdr): Update name of renamed function.
654 * elf-bfd.h (struct elf_size_info): Change second parameter of
655 write_out_phdrs to be const. Likewise for second parameter of
656 swap_symbol_out.
657 (struct bfd_elf_section_data): Add rel_hdr2 field.
658 (bfd_elf32_swap_symbol_in): Change second parameter to be const.
659 (bfd_elf32_swap_symbol_out): Likewise.
660 (bfd_elf32_swap_reloc_in): Likewise.
661 (bfd_elf32_swap_reloc_out): Likewise.
662 (bfd_elf32_swap_reloca_in): Likewise.
663 (bfd_elf32_swap_reloca_out): Likewise.
664 (bfd_elf32_swap_phdr_in): Likewise.
665 (bfd_elf32_swap_phdr_out): Likewise.
666 (bfd_elf32_swap_dyn_in): Likewise.
667 (bfd_elf32_swap_dyn_out): Likewise.
668 (bfd_elf32_slurp_symbol_table): Declare.
669 (bfd_elf32_write_shdrs_and_ehdr): Declare.
670 (bfd_elf32_write_out_phdrs): Declare.
671 (bfd_elf64_swap_symbol_in): Change second parameter to be const.
672 (bfd_elf64_swap_symbol_out): Likewise.
673 (bfd_elf64_swap_reloc_in): Likewise.
674 (bfd_elf64_swap_reloc_out): Likewise.
675 (bfd_elf64_swap_reloca_in): Likewise.
676 (bfd_elf64_swap_reloca_out): Likewise.
677 (bfd_elf64_swap_phdr_in): Likewise.
678 (bfd_elf64_swap_phdr_out): Likewise.
679 (bfd_elf64_swap_dyn_in): Likewise.
680 (bfd_elf64_swap_dyn_out): Likewise.
681 (bfd_elf64_slurp_symbol_table): Declare.
682 (bfd_elf64_write_shdrs_and_ehdr): Declare.
683 (bfd_elf64_write_out_phdrs): Declare.
684 (_bfd_mips_elf_section_from_shdr): Declare.
685 * elf.c (bfd_section_from_shdr): Remove assertion requiring
686 SHT_REL/SHT_RELA to match use_rela_p. If there is already a reloc
687 section for the section, add the new one to rel_hdr2. Increment
688 reloc_count rather than setting it.
689 * elfcode.h (elf_slurp_symbol_table): Define name as macro.
690 Remove static declaration.
691 (elf_write_shdrs_and_ehdr): Define name as macro.
692 (elf_write_out_phdrs): Likewise.
693 (elf_swap_ehdr_in, elf_swap_ehdr_out): Declare.
694 (elf_swap_shdr_in, elf_swap_shdr_out): Declare.
695 (elf_swap_symbol_in): Change second parameter to be const.
696 (elf_swap_symbol_out): Likewise.
697 (elf_swap_ehdr_in, elf_swap_ehdr_out): Likewise.
698 (elf_swap_shdr_in, elf_swap_shdr_out): Likewise.
699 (elf_swap_phdr_in, elf_swap_phdr_out): Likewise.
700 (elf_swap_reloc_in, elf_swap_reloc_out): Likewise.
701 (elf_swap_reloca_in, elf_swap_reloca_out): Likewise.
702 (elf_write_out_phdrs): Rename from write_out_phdrs. Change second
703 parameter to be const. Make non-static.
704 (elf_write_shdrs_and_ehdr): Rename from write_shdrs_and_ehdr.
705 Make non-static.
706 (elf_slurp_symbol_table): Make non-static.
707 (NAME(_bfd_elf,size_info)): Update names of renamed functions.
708 * elfxx-target.h (elf_info_to_howto): Define if not defined.
709 (elf_backend_size_info): Likewise.
710 (elfNN_bed): Use elf_backend_size_info.
711 * targets.c (bfd_elf64_bigmips_vec): Declare.
712 (bfd_elf64_littlemips_vec): Declare.
713 (bfd_target_vector): Add bfd_elf64_bigmips_vec and
714 bfd_elf64_littlemips_vec if BFD64 is defined.
715
716 * libbfd.c (bfd_get_file_window): Add cast to fprintf argument.
717
7dd3d45a
ILT
718Tue May 28 11:42:08 1996 Ian Lance Taylor <ian@cygnus.com>
719
07692951
ILT
720 * coff-sh.c (sh_relax_delete_bytes): Insert nop instructions, not
721 zeroes, in alignment holes.
722
a4322a77
ILT
723 * configure: Rebuild with autoconf 2.10.
724
7dd3d45a
ILT
725 * aoutx.h (NAME(aout,find_nearest_line)): Make room for the
726 potential leading underscore in the allocated buffer.
727
0293d5b0
MM
728Fri May 24 14:28:38 1996 Michael Meissner <meissner@tiktok.cygnus.com>
729
730 * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not put small common
731 symbols into .sbss if this is a relocatable link.
732
a5d0cd50
ILT
733Thu May 23 12:26:24 1996 Ian Lance Taylor <ian@cygnus.com>
734
735 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Warn about
736 undefined symbols when creating a shared library.
737
738Fri May 17 13:54:15 1996 Ian Lance Taylor <ian@cygnus.com>
739
740 * coff-sh.c: Add a bunch of new code and static const arrays to
741 support aligning loads and stores on four byte memory boundaries.
742 Also:
743 (sh_coff_howtos): Add entries for R_SH_CODE, R_SH_DATA and
744 R_SH_LABEL.
745 (sh_relax_section): Look for R_SH_CODE relocs. If we find one,
746 call sh_align_loads.
747 (sh_relax_delete_bytes): Don't mark R_SH_CODE or R_SH_DATA relocs
748 as unused.
749
c403d358
ILT
750Thu May 16 16:34:13 1996 Ian Lance Taylor <ian@cygnus.com>
751
752 * cache.c (bfd_open_file): Unlink the file before opening it for
753 write. From Marty Leisner <leisner@sdsp.mc.xerox.com>.
754
755 * opncls.c (bfd_fdopenr): Set opened_once.
756
2f710e17
ILT
757Tue May 14 12:35:32 1996 Ian Lance Taylor <ian@cygnus.com>
758
ff60fc3a
ILT
759 * som.c (som_slurp_reloc_table): Clear external_relocs cache after
760 freeing it.
761
2f710e17
ILT
762 * libbfd.c: Remove #ifdef FILE_OFFSET_IS_CHAR_INDEX, and compile
763 the code unconditionally.
764
efb33f6b
ILT
765Mon May 13 19:51:37 1996 Ian Lance Taylor <ian@cygnus.com>
766
767 * libcoff-in.h (struct pei_section_tdata): Define structure.
768 (pei_section_data): Define macro.
769 * libcoff.h: Rebuild.
770 * coffcode.h (coff_set_alignment_hook): If COFF_IMAGE_WITH_PE,
771 store s_paddr field in pei_section_data.
772 (coff_compute_section_file_positions): Use pei_section_data rather
773 than _cooked_size, and don't overwrite an existing value.
774 (coff_write_object_contents): If COFF_OBJ_WITH_PE, set s_paddr to
775 0. If COFF_IMAGE_WITH_PE, set s_paddr to pei_section_data.
776 * peicode.h (coff_bfd_copy_private_section_data): Define if
777 COFF_IMAGE_WITH_PE.
778 (pe_bfd_copy_private_section_data): New static function if
779 COFF_IMAGE_WITH_PE.
780
5ecd6d7f
ILT
781Wed May 8 16:10:38 1996 Ian Lance Taylor <ian@cygnus.com>
782
db1e2aa7
ILT
783 * srec.c (srec_set_arch_mach): Write as a function rather than a
784 macro definition.
785
5ecd6d7f
ILT
786 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): If an archive has
787 no map, just check each member in turn to see whether it is
788 required.
789
aefee5c8
MM
790Wed May 8 09:17:34 1996 Michael Meissner <meissner@tiktok.cygnus.com>
791
792 * ppcboot.c (ppcboot_object_p): Check for type 0x41 in partition
793 table. Call BFD_ASSERT to validate header size, instead of
794 calling fatal.
795 (ppcboot_bfd_print_private_bfd_data): Put quotes around partition
796 name.
797
0d1fcbbb
MM
798Tue May 7 16:10:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
799
800 * ppcboot.c: New target for looking at PPCbug boot records.
801
802 * config{ure.in,.bfd}: Add support for ppcboot target.
803 * targets.c: Ditto.
804 * configure: Regenerate.
805
f4597f8c
JL
806Tue May 7 11:15:19 1996 Jeffrey A Law (law@cygnus.com)
807
808 * coff-h8300.c (howto_table): Update names to match recent
809 changes to include/coff/internal.h. Fix minor errors in the
810 existing relocs. Add R_MOVL1 and R_MOVL2.
811 (rtype2howto): Similarly.
812 (h8300_reloc16_estimate): Rewrite to simplify, fix bugs in the
813 existing relaxing code and peform more relaxing.
814 (h8300_reloc16_extra_cases): Likewise.
815
0dc70e1a
JL
816Mon May 6 18:24:09 1996 Jeffrey A Law (law@cygnus.com)
817
818 * reloc16.c (bfd_coff_reloc16_get_value): Handle common
819 symbols correctly.
820
d1b8ccb0
PS
821Sat May 4 05:08:45 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
822
823 * elfcode.h (elf_object_p): Reject generic ELF target if
824 e_machine matches an alternate machine code in a specific backend.
825
826 * netbsd-core.c (netbsd_core_vec): Remove initializer for
827 obsolete align_power_min field.
828
c9f5444e
JL
829Fri May 3 13:07:35 1996 Jeffrey A Law (law@cygnus.com)
830
831 * coff-h8300.c (reloc_howto_type): Add howto entry for
832 R_PCRWORD_B.
833 (rtype2howto): Handle R_PCRWORD_B.
834 (h8300_reloc16_extra_cases): Handle R_PCRWORD_B.
835 (h8300_reloc_16_estimate): Likewise. Try to turn a 16bit
836 pc-relative branch (R_PCRWORD) into an 8bit pc-relative
837 branch (R_PCWORD_B).
838
4ad842aa
ILT
839Fri May 3 10:47:41 1996 Ian Lance Taylor <ian@cygnus.com>
840
340d654f
ILT
841 * aoutx.h (translate_from_native_sym_flags): Set the section for
842 BSF_CONSTRUCTOR symbols.
843
4ad842aa
ILT
844 * cofflink.c (_bfd_coff_link_input_bfd): Correct setting of
845 last_bf_index.
846
9c7a5748
DE
847Wed May 1 18:39:32 1996 Doug Evans <dje@canuck.cygnus.com>
848
849 * coffcode.h (coff_write_object_contents): In comdat section lookup,
850 stop looking when section is found.
851
622c93a3
ILT
852Wed May 1 14:17:57 1996 Ian Lance Taylor <ian@cygnus.com>
853
e8f3bb64 854 * coffcode.h (STRING_SIZE_SIZE): Define.
9aac8e83
ILT
855 (styp_to_sec_flags): Handle long symbol names when looking for the
856 section symbol.
e8f3bb64
ILT
857 (bfd_coff_backend_data): Add _bfd_coff_long_section_names field.
858 (bfd_coff_long_section_names): Define.
859 (coff_write_object_contents): Handle long section names.
860 (bfd_coff_std_swap_table): Initialize new field.
861 * libcoff.h: Rebuild.
862 * coffgen.c (make_a_section_from_file): Handle long section
863 names.
864 (coff_write_symbols): Handle long section names.
865 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
866 * coff-mips.c (mips_ecoff_backend_data): Likewise.
867 * pe-arm.c (COFF_LONG_SECTION_NAMES): Define.
868 * pei-arm.c (COFF_LONG_SECTION_NAMES): Define.
869 * pe-i386.c (COFF_LONG_SECTION_NAMES): Define.
870 * pei-i386.c (COFF_LONG_SECTION_NAMES): Define.
871 * pe-ppc.c (COFF_LONG_SECTION_NAMES): Define.
872 * pei-ppc.c (COFF_LONG_SECTION_NAMES): Define.
873
622c93a3
ILT
874 * bout.c (b_out_callback): Set lma of sections.
875 (b_out_bfd_get_relocated_section_contents): Rename in_abfd
876 parameter to output_bfd. Used input_bfd instead of output_bfd in
877 several places.
878
6b725f83
ILT
879Tue Apr 30 17:56:39 1996 Ian Lance Taylor <ian@cygnus.com>
880
b7d1158a
ILT
881 * aoutx.h (translate_from_native_sym_flags): Don't create
882 SEC_CONSTRUCTOR sections.
883 * ecoff.c (ecoff_set_symbol_info): Likewise.
884
6b725f83
ILT
885 * elf32-mips.c (mips_elf_copy_private_bfd_data): Copy elf_gp.
886 From Don Bowman <bowman@waterloo.hp.com>.
887
e28a1e77
DE
888Tue Apr 30 17:06:32 1996 Doug Evans <dje@canuck.cygnus.com>
889
890 * coff-arm.c (armcoff_little_vec): If COFF_WITH_PE is defined, add
891 SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags.
892
abec70b9
ILT
893Mon Apr 29 13:15:17 1996 Ian Lance Taylor <ian@cygnus.com>
894
895 * elf32-mips.c (struct mips_elf_link_hash_entry): Add
896 mips_32_relocs field.
897 (mips_elf_link_hash_newfunc): Initialize mips_32_relocs field.
898 (mips_elf_relocate_section): Copy R_MIPS_REL32 and R_MIPS_32
899 relocs against a global symbol which is not defined in a regular
900 file.
901 (mips_elf_check_relocs): For a R_MIPS_REL32 or R_MIPS_32 reloc
902 against a global symbol, increment mips_32_relocs.
903 (mips_elf_adjust_dynamic_symbol): If mips_32_relocs is set, and
904 the symbol is not defined in a regular file, make room in the
905 .rel.dyn section.
906
ecba7a3a
ILT
907Fri Apr 26 18:00:37 1996 Ian Lance Taylor <ian@cygnus.com>
908
656c5b6d
ILT
909 * ecoff.c (ecoff_compute_section_file_positions): Track the real
910 file position and the virtual file position separately. Set
911 filepos information bsaed on the real file position.
912 (_bfd_ecoff_set_section_contents): Handle .lib sections like the
913 Jan 23 change to coffcode.h.
914
ecba7a3a
ILT
915 * som.c (som_slurp_symbol_table): Set the symbol count to the
916 number of BFD symbols created.
917
e25a7988
MM
918Fri Apr 26 12:34:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
919
920 * elf32-ppc.c (ppc_elf_check_relocs): Forward relocations to the
921 output file if linking shared objects. Loop to check all relocs,
922 rather than returning false on first error.
923
5c28a96e
MM
924Thu Apr 25 13:25:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
925
3f7ca26b
MM
926 * elf32-ppc.c (ppc_elf_create_linker_section): Add PLT case.
927 (ppc_elf_additional_program_headers): If .interp section, bump #
928 of program headers by 1.
929 (ppc_elf_adjust_dynamic_symbol): Flesh out support.
930 (ppc_elf_size_dynamic_sections): Add support for .plt section.
931 (ppc_elf_check_relocs): Print out filename in debug code. Enable
932 PLT support.
933 (ppc_elf_finish_dynamic_symbol): Add support for PLT's, beef up
934 debug output.
935 (ppc_elf_relocate_section): If the output section isn't defined,
936 don't abort, just give an error message.
937
5c28a96e
MM
938 * elflink.c (_bfd_elf_create_dynamic_sections): If the section
939 being created is .sdata or .sdata2, don't make the symbol dynamic.
940
f5d65485
ILT
941Wed Apr 24 14:04:07 1996 Ian Lance Taylor <ian@cygnus.com>
942
943 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through the
944 members of an archive for dynamic objects with no symbols, and
945 pass them directly to check_archive_element.
946 (xcoff_link_check_ar_symbols): Pass dynamic objects to
947 xcoff_link_check_dynamic_ar_symbols.
948 (xcoff_link_check_dynamic_ar_symbols): New static function.
949
950 * coff-rs6000.c (rs6000coff_vec): Change BFD_JUMP_TABLE_DYNAMIC
951 from _bfd_nodynamic to _bfd_xcoff.
952 * libcoff-in.h (_bfd_xcoff_get_dynamic_symtab_upper_bound):
953 Declare.
954 (_bfd_xcoff_canonicalize_dynamic_symtab): Declare.
955 (_bfd_xcoff_get_dynamic_reloc_upper_bound): Declare.
956 (_bfd_xcoff_canonicalize_dynamic_reloc): Declare.
957 * libcoff.h: Rebuild.
958 * xcofflink.c (xcoff_swap_ldrel_in): New static function.
959 (xcoff_get_section_contents): New static function.
960 (_bfd_xcoff_get_dynamic_symtab_upper_bound): New function.
961 (_bfd_xcoff_canonicalize_dynamic_symtab): New function.
962 (_bfd_xcoff_get_dynamic_reloc_upper_bound): New function.
963 (xcoff_dynamic_reloc): New static variable.
964 (_bfd_xcoff_canonicalize_dynamic_reloc): New function.
965 (xcoff_link_add_dynamic_symbols): Use xcoff_get_section_contents.
966
967Tue Apr 23 12:48:42 1996 Ian Lance Taylor <ian@cygnus.com>
968
969 * coff-sparc.c (bfd_coff_generic_reloc): Return bfd_reloc_ok even
970 if reloc_entry->addend is not 0.
971 (CALC_ADDEND): Just set the addend to reloc.r_offset.
972
34249b2f
DE
973Mon Apr 22 18:29:01 1996 Doug Evans <dje@canuck.cygnus.com>
974
975 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Fix spelling of
976 R_SPARC_GLOB_JMP.
977 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
978 Add entries for R_SPARC_[56].
979 (sparc_reloc_map): Add entries for R_SPARC_[56].
980
af50cd91
ILT
981Mon Apr 22 15:07:24 1996 Ian Lance Taylor <ian@cygnus.com>
982
1726b8f0
ILT
983 Optimize linking of stabs in sections as used in ELF and COFF.
984 * stabs.c: New file.
985 * libbfd-in.h (_bfd_link_section_stabs): Declare.
986 (_bfd_write_section_stabs): Declare.
987 (_bfd_write_stab_strings): Declare.
988 * libbfd.h: Rebuild.
989 * libcoff-in.h (struct coff_section_tdata): Add stab_info field.
990 (struct coff_link_hash_table): Add stab_info field.
991 * libcoff.h: Rebuild.
992 * cofflink.c (_bfd_coff_link_hash_table_init): Initialize
993 stab_info field.
994 (coff_link_add_symbols): Call _bfd_link_section_stabs if
995 appropriate.
996 (_bfd_coff_final_link): Write out stab strings hash table.
997 (_bfd_coff_link_input_bfd): Handle optimized stabs sections.
998 * coff-ppc.c (ppc_bfd_coff_final_link): Write out stab strings
999 hash table.
1000 * elf-bfd.h (struct elf_link_hash_table): Add stab_info field.
1001 (struct bfd_elf_section_data): Add stab_info field.
1002 * elf.c (_bfd_elf_link_hash_table_init): Initialize stab_info
1003 field.
1004 * elflink.h (elf_link_add_object_symbols): If appropriate, call
1005 _bfd_link_section_stabs.
1006 (elf_bfd_final_link): Write out stab strings hash table.
1007 (elf_link_input_bfd): Handle optimized stabs sections.
1008 * reloc.c (_bfd_final_link_relocate): Check address against
1009 _raw_size rather than _cooked_size.
1010 * Makefile.in: Rebuild dependencies.
1011 (BFD_LIBS): Add stabs.o
1012 (BFD_LIBS_CFILES): Add stabs.c.
1013
1014 * VERSION: Increment for bfdlink.h change.
1015
af50cd91
ILT
1016 * coffgen.c (coff_renumber_symbols): Correct handling of
1017 BSF_NOT_AT_END common symbols.
1018
f9fa5df3
ILT
1019Fri Apr 19 19:21:56 1996 Ian Lance Taylor <ian@cygnus.com>
1020
1021 * coff-ppc.c (record_toc): Add cast to avoid warning.
1022 (ppc_allocate_toc_section): Likewise.
1023 (coff_ppc_relocate_section): Remove ANSI C string concatenation.
1024 (ppc_coff_reloc_type_lookup): Remove unreached code.
1025 * coffcode.h (coff_write_object_contents): Don't take the address
1026 of an array.
1027 * peicode.h (pe_print_idata): Add casts to avoid warning.
1028 (pe_print_edata): Likewise.
1029 (pe_print_reloc): Remove ANSI C string concatenation.
1030
d6e0e2f7
ILT
1031Thu Apr 18 18:51:18 1996 Ian Lance Taylor <ian@cygnus.com>
1032
1033 * libcoff-in.h (struct coff_final_link_info): Add last_bf_index
1034 and last_bf fields.
1035 * libcoff.h: Rebuild.
1036 * coffswap.h (coff_swap_aux_in): Swap endndx field for C_FCN
1037 symbols.
1038 (coff_swap_aux_out): Likewise.
1039 * peicode.h (coff_swap_aux_in): Likewise.
1040 (coff_swap_aux_out): Likewise.
1041 * coffgen.c (coff_pointerize_aux): Check endndx field for C_FCN
1042 symbols.
1043 * cofflink.c (_bfd_coff_final_link): Initialize last_bf_index
1044 field.
1045 (_bfd_coff_link_input_bfd): Check endndx field for C_FCN symbols.
1046 Fix up .bf endndx link fields.
1047 * coff-ppc.c (ppc_bfd_coff_final_link): Initialize last_bf_index
1048 field.
1049 * xcofflink.c (xcoff_link_input_bfd): Check endndx field for C_FCN
1050 symbols.
1051
221d1e19
MM
1052Wed Apr 17 12:08:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1053
1054 * pe{,i}-ppc.c (PPC_PE): Define instead of PPC, so that compiling
1055 on Solaris PowerPC systems doesn't get confused.
1056
1057 * ccffcode.h (coff_write_object_contents): Use #ifdef PPC_PE, not
1058 #ifdef PPC.
1059
1060 * elfcore.h (bfd_prstatus, bfd_fpregset): Add thread argument.
1061 (elf_corefile_note): If HAVE_SYS_PROCFS_H is not defined, don't
1062 update did_reg and did_reg2.
1063
8f9a56c6
ILT
1064Wed Apr 17 13:07:37 1996 Ian Lance Taylor <ian@cygnus.com>
1065
f97fca78
ILT
1066 * xcofflink.c (xcoff_link_input_bfd): Check for TOC overflow.
1067
8f9a56c6
ILT
1068 * linker.c (_bfd_generic_link_add_one_symbol): When calling the
1069 callback routines, pass h->root.string rather than name, in case
1070 copy is true and name is transient.
1071
603fdf16
SG
1072Tue Apr 16 16:36:38 1996 Stu Grossman (grossman@lisa.cygnus.com)
1073
1074 * elfcore.h: Add support for core files with multiple threads.
1075 (Primarily for Solaris.)
1076
a2d914e1
ILT
1077Tue Apr 16 13:44:08 1996 Ian Lance Taylor <ian@cygnus.com>
1078
cdf23557
ILT
1079 * aoutx.h (NAME(aout,squirt_out_relocs)): Don't do anything if
1080 section->orelocation is NULL.
1081
a2d914e1
ILT
1082 * coffgen.c (bfd_coff_get_syment): New function.
1083 (bfd_coff_get_auxent): New function.
1084 * bfd-in.h (bfd_coff_get_syment): Declare.
1085 (bfd_coff_get_auxent): Declare.
1086 * bfd-in2.h: Rebuild.
1087
5cf36a32
ILT
1088Mon Apr 15 19:06:59 1996 Ian Lance Taylor <ian@cygnus.com>
1089
1090 * elf32-mips.c (struct mips_hi16): Define.
1091 (mips_hi16_addr, mips_hi16_addend): Remove.
1092 (mips_hi16_list): New static variable.
1093 (mips_elf_hi16_reloc): Maintain a list of unmatched HI16 relocs.
1094 (mips_elf_lo16_reloc): Process mips_hi16_list.
1095 (mips_elf_relocate_section): Permit an arbitrary number of HI16
1096 relocs before the associated LO16 reloc.
1097
b7fce5be
ILT
1098Wed Apr 10 00:23:53 1996 Ian Lance Taylor <ian@cygnus.com>
1099
176512da
ILT
1100 * versados.c (versados_scan): Check bfd_alloc return value.
1101 (versados_object_p): Check all bfd_read return values. Require
1102 that lang field be less than 10, to avoid confusion with Intel Hex
1103 files.
1104
18de3f19
ILT
1105 * libaout.h (WRITE_HEADERS): Write out the relocs even if there
1106 aren't any symbols.
1107 * aoutx.h (NAME(aout,swap_std_reloc_out)): Set r_index to N_ABS,
1108 not 0, for an absolute symbol.
1109 (NAME(aout,swap_ext_reloc_out)): Likewise.
1110
66ab4152
ILT
1111 * ihex.c (ihex_scan): Accept a length of 4 for record type 5.
1112 (ihex_write_object_contents): For a large start address, output
1113 the full 32 bit address in record type 5.
1114
b7fce5be
ILT
1115 * ieee.c (ieee_write_byte): Change second parameter from bfd_byte
1116 to int to avoid promotion problems in prototype.
1117
f1b45745
ILT
1118Tue Apr 9 11:44:21 1996 Ian Lance Taylor <ian@cygnus.com>
1119
f400f358
ILT
1120 * configure.host: Use ${srcdir} when looking for picfrag.
1121
3d9a5986
ILT
1122 * configure.host: Switch on ${libdir}, not $(libdir). From
1123 alan@spri.levels.unisa.edu.au (Alan Modra).
1124
f1b45745
ILT
1125 * aoutx.h (aout_link_add_symbols): Always call add_dynamic_symbols
1126 entry point, not just for DYNAMIC objects.
1127 * sunos.c (sunos_add_dynamic_symbols): Always call
1128 sunos_create_dynamic_sections. If called with a non DYNAMIC
1129 object, don't do anything else.
1130 (sunos_add_one_symbol): Don't call sunos_create_dynamic_sections.
1131
6f21f2e3
ILT
1132Mon Apr 8 12:09:36 1996 Ian Lance Taylor <ian@cygnus.com>
1133
639b5a09
ILT
1134 * configure.in: Permit --enable-shared to specify a list of
1135 directories.
1136 * configure: Rebuild.
1137
6f21f2e3
ILT
1138 * configure.host: Set HLDFLAGS and SHLIB_CFLAGS for *-dec-osf*
1139 host when configuring with --enable-shard.
1140
3f5f565b
ILT
1141Fri Apr 5 12:24:13 1996 Ian Lance Taylor <ian@cygnus.com>
1142
1ac75f5c
ILT
1143 * config.bfd: Add i[345]86-*-freebsdelf* target; from John Polstra
1144 <jdp@polstra.com>.
1145
1a9951a9
ILT
1146 * linker.c (link_action): For WARN_ROW/warn, use MWARN, not CYCLE,
1147 to avoid crashing in bfd_hash_replace.
1148
f1ac3acb 1149 * sysdep.h: Use #ifdef, not #if.
3f5f565b 1150
eb5f58e0
ILT
1151Thu Apr 4 23:32:23 1996 Ian Lance Taylor <ian@cygnus.com>
1152
1153 * config.in: Rebuild.
1154
ab1aa5cd
FF
1155Thu Apr 4 18:49:09 1996 Fred Fish <fnf@cygnus.com>
1156
1157 * configure.in (mips-sony-bsd*): Fix typo in AC_DEFINE.
1158 (AC_CHECK_HEADERS): Check for sys/time.h
1159 (AC_HEADER_TIME): Add macro.
1160 * configure: Rebuild.
1161 * sysdep.h: Use TIME_WITH_SYS_TIME and HAVE_SYS_TIME_H
1162 to control what combination of <time> and <sys/time.h>
1163 get included.
1164
d1f74cd2
DE
1165Tue Apr 2 13:11:53 1996 Doug Evans <dje@canuck.cygnus.com>
1166
1167 * aoutf1.h (sunos_32_set_arch_mach): Handle M_SPARCLET.
1168 (aout_32_sunos4_write_object_contents): Likewise.
1169 * aoutx.h (NAME(aout,machine_type)): Handle
1170 bfd_mach_sparc_{sparclet,sparclite}.
1171 * archures.c (bfd_mach_sparc_{sparclet,sparclite}): Define.
1172 (bfd_mach_sparc_v9_p): Update.
1173 * cpu-sparc.c (arch_info_struct): Add entries for sparclet,sparclite.
1174 * libaout.h (enum machine_type): Add M_SPARCLET.
1175 * sunos.c (MACHTYPE_OK): Define.
1176 * bfd-in2.h: Regenerated.
1177
1dad72bd
ILT
1178Tue Apr 2 00:33:18 1996 Ian Lance Taylor <ian@cygnus.com>
1179
19bfbcbe
ILT
1180 * elf-bfd.h (struct elf_link_hash_table): Add hgot field.
1181 * elf.c (_bfd_elf_link_hash_table_init): Initialize hgot field.
1182 * elflink.c (_bfd_elf_create_got_section): Store the
1183 _GLOBAL_OFFSET_TABLE_ hash table entry in the hgot field.
1184 * elf32-sparc.c (elf32_sparc_check_relocs): If the size of the
1185 global offset table goes over 0x1000, set the value of
1186 _GLOBAL_OFFSET_TABLE_ to 0x1000 into the section.
1187 (elf32_sparc_relocate_section): Subtract the offset of
1188 _GLOBAL_OFFSET_TABLE_ when handling GOT relocations.
1189
1dad72bd
ILT
1190 * elfcode.h: Don't include <string.h>.
1191
ca4e2190
JL
1192Mon Apr 1 10:39:24 1996 Jeffrey A Law (law@cygnus.com)
1193
1194 * linker.c (_bfd_generic_link_hash_newfunc): Renamed from
1195 generic_link_hash_newfunc. All references changed.
1196 * genlink.h (_bfd_generic_link_hash_newfunc): Declaration
1197 moved here from libbfd-in.h.
1198 * libbfd-in.h: Corresponding changes.
1199 * libbfd.h: Regenerated.
1200
ce6a7731
ILT
1201Mon Apr 1 12:35:36 1996 Ian Lance Taylor <ian@cygnus.com>
1202
aad53b0d
ILT
1203 * aoutx.h (aout_link_input_section_std): When reporting an
1204 overflow error, use the name of the symbol in the hash table if
1205 available.
1206 (aout_link_input_section_ext): Likewise.
1207
ce6a7731
ILT
1208 * elflink.h (elf_adjust_dynamic_symbol): If a common symbol got
1209 defined in a regular file, set ELF_LINK_HASH_DEF_REGULAR.
1210
323b430f
SC
1211Sun Mar 31 01:58:41 1996 steve chamberlain <sac@slash.cygnus.com>
1212
1213 * peicode.h (coff_swap_aouthdr_out): Delete test for .junk.
1214 * coffcode.h (coff_compute_section_file_positions): Likewise.
1215 (coff_write_object_contents): Likewise.
1216
7fc1cd16
ILT
1217Fri Mar 29 12:44:36 1996 Ian Lance Taylor <ian@cygnus.com>
1218
5a28331f
ILT
1219 * section.c (SEC_LINK_ONCE): Define.
1220 (SEC_LINK_DUPLICATES): Define.
1221 (SEC_LINK_DUPLICATES_DISCARD): Define.
1222 (SEC_LINK_DUPLICATES_ONE_ONLY): Define.
1223 (SEC_LINK_DUPLICATES_SAME_SIZE): Define.
1224 (SEC_LINK_DUPLICATES_SAME_CONTENTS): Define.
1225 * bfd-in2.h: Rebuild.
1226 * coffcode.h (sec_to_styp_flags): If COFF_WITH_PE, turn
1227 SEC_LINK_ONCE into IMAGE_SCN_LNK_COMDAT.
1228 (styp_to_sec_flags): If COFF_WITH_PE, turn IMAGE_SCN_LNK_REMOVE
1229 into SEC_EXCLUDE. If IMAGE_SCN_LNK_COMDAT is set, set
1230 SEC_LINK_ONCE, and look through the symbol table for the setting
1231 for SEC_LINK_DUPLICATES.
1232 (coff_write_object_contents): If COFF_WITH_PE, if SEC_LINK_ONCE is
1233 set for a section, find the section symbol in the symbol table,
1234 and set the aux entry based on SEC_LINK_DUPLICATES.
1235 * coffgen.c (coff_print_symbol): Add a space before "checksum".
1236 * coff-arm.c (armcoff_big_vec): If COFF_WITH_PE is defined, add
1237 SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags.
1238 * coff-i386.c (i386coff_vec): Likewise.
1239 * coff-ppc.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Likewise.
1240
7fc1cd16
ILT
1241 * VERSION: Bump to 2.6.1.
1242 * Makefile.in (stamp-h): Depend upon VERSION.
1243
9399a257
JL
1244Thu Mar 28 23:48:49 1996 Jeffrey A Law (law@cygnus.com)
1245
1246 * libbfd-in.h (generic_link_hash_newfunc): Add declaration.
1247 * libbfd.h: Rebuilt.
1248 * linker.c (generic_link_hash_newfunc): No longer static.
1249 * coffcode.h (coff_bfd_link_hash_create): Allow specific targets
1250 to override.
1251 * coff-h8300.c: Add two derived hash tables and their associated
1252 funtions and #defines for use by the h8300 linker.
1253 (h8300_reloc16_extra_cases, case R_MEM_INDIRECT): Create entries in
1254 the function vector as needed. Place the address of the function
1255 vector entry in the location specified by the R_MEM_INDIRECT reloc.
1256 Rewrite the vectors section contents as necessary.
1257 (h8300_bfd_link_add_symbols): New function for the h8300 linker.
1258 (coff_bfd_link_add_symbols): Define to use h8300 specific version.
1259 (coff_bfd_link_hash_table_create): Likewise.
1260
506f2bb4
ILT
1261Thu Mar 28 17:44:08 1996 Ian Lance Taylor <ian@cygnus.com>
1262
1263 * libhppa.h: If gcc 2.7 or higher, declare all the functions with
1264 __attribute__ ((__unused__)) so that -Wall doesn't warn about
1265 them.
1266 (hppa_rebuild_insn): Pass pointer to correct type to
1267 low_sign_unext and dis_assemble_21.
1268
05a84ae1
DE
1269Thu Mar 28 11:00:36 1996 Doug Evans <dje@canuck.cygnus.com>
1270
1271 * config.bfd (sparc64-{sysv4*,solaris2*}): Delete.
1272 Stick with sparc-*-{sysv4*,solaris2*}.
1273
919cf4b5
ILT
1274Wed Mar 27 10:43:34 1996 Ian Lance Taylor <ian@cygnus.com>
1275
8230f31c
ILT
1276 * peicode.h (coff_swap_aux_in): Swap in extra PE x_scn fields.
1277 (coff_swap_aux_out): Swap out extra PE x_scn fields.
1278 * coffswap.h (coff_swap_aux_in): Zero out extra PE x_scn fields.
1279 * coffgen.c (coff_print_symbol): If any of the extra PE x_scn
1280 fields is non-zero, print them.
1281
9addd1d4
ILT
1282 * coff-ppc.c (ppc_record_toc_entry): Put inside COFF_IMAGE_WITH_PE
1283 ifdef. Remove unused variables.
1284 (ppc_record_data_in_toc_entry): Ifdef out. Removed unused
1285 variables.
1286 (ppc_mark_symbol_as_glue): Put inside COFF_IMAGE_WITH_PE ifdef.
1287 (get_symbol_value): Ifdef out.
1288 (pe_ppc_reloc): Ifdef out. Remove unused variables.
1289 (coff_ppc_relocate_section): Remove unused variables. Make
1290 fprintf strings and argument types correspond. Put before_addr in
1291 DEBUG_RELOC ifdef.
ff0e4a93
ILT
1292 (dump_toc): Make fprintf strings and argument types correspond.
1293 (ppc_process_before_allocation): Remove unused variables. Always
1294 return a value.
9addd1d4
ILT
1295 (ppc_reflo_reloc): Ifdef out.
1296 (ppc_addr32nb_reloc): Ifdef out.
1297 (ppc_coff_rtype2howto): Make fprintf strings and argument types
1298 correspond.
1299 (coff_ppc_rtype_to_howto): Likewise.
1300 (ppc_coff_swap_sym_in_hook): Remove unused variables.
1301
1302 * peicode.h (pe_print_idata): Move otherwise unused variables into
1303 the #ifdef where they are used. Always return a value.
ff0e4a93
ILT
1304 (pe_print_edata): Make fprintf strings and argument types
1305 correspond. Always return a value.
9addd1d4
ILT
1306 (pe_print_pdata): Removed unused variable addr_value. Always
1307 return a value.
1308 (pe_print_reloc): Remove unused variable onaline. Make fprintf
ff0e4a93 1309 strings and argument types correspond. Always return a value.
9addd1d4
ILT
1310
1311 * elf32-ppc.c (ppc_elf_fake_sections): Return true.
1312 (ppc_elf_finish_dynamic_symbol): Move definition of unused
1313 variable rela inside #if 0 section where it is used.
1314
c877bdf1
ILT
1315 * ns32k.h: New file.
1316 * cpu-ns32k.h: Include ns32k.h. Rename externally visible
1317 functions to start with _bfd_.
1318 * aout-ns32k.c: Include ns32k.h. Change references to renamed
1319 functions in cpu-ns32k.h.
1320 * Makefile.in: Rebuild dependencies.
1321 (HFILES): Add ns32k.h.
1322
ff0e4a93
ILT
1323 * section.c (struct sec): Add linker_mark field. Change
1324 user_set_vma and reloc_done to be single bit fields.
1325 (STD_SECTION): Update accordingly.
7ec49f91
ILT
1326 * bfd-in2.h: Rebuild.
1327 * aoutx.h (NAME(aout,final_link)): Mark sections included in the
1328 link.
1329 (aout_link_input_bfd): Don't link unmarked sections.
1330 * cofflink.c (_bfd_coff_final_link): Mark sections included in the
1331 link.
1332 (_bfd_coff_link_input_bfd): Don't link unmarked sections.
1333 * coff-ppc.c (ppc_bfd_coff_final_link): Mark sections included in
1334 the link.
1335 * elflink.h (elf_bfd_final_link): Mark sections included in the
1336 link.
1337 (elf_link_input_bfd): Don't link unmarked sections.
1338 * xcofflink.c (_bfd_xcoff_bfd_final_link): Mark sections included
1339 in the link.
1340 (xcoff_link_input_bfd): Don't link unmarked sections.
1341
919cf4b5
ILT
1342 * coffswap.h (coff_swap_scnhdr_out): Include section name in
1343 overflow error messages.
1344
986cf3b8
ILT
1345Tue Mar 26 15:46:18 1996 Ian Lance Taylor <ian@cygnus.com>
1346
fd681dcd
ILT
1347 * bfd.c (_bfd_default_error_handler): If _bfd_error_program_name
1348 is not set, print "BFD: " before the error message.
1349
986cf3b8
ILT
1350 * configure.in: Use AC_CHECK_TOOL to find ar and ranlib. From
1351 Miles Bader <miles@gnu.ai.mit.edu>.
1352 * configure: Rebuild.
1353
3998d526
ILT
1354Fri Mar 22 12:17:00 1996 Ian Lance Taylor <ian@cygnus.com>
1355
c3dffbd7
ILT
1356 * xcofflink.c (xcoff_link_input_bfd): Fix scan for C_BINCL/C_EINCL
1357 symbols.
1358
3998d526
ILT
1359 * config.bfd: Add ieee_vec to targ_selvecs for i960 targets and
1360 m68k-aout, m68k-coff, and m68k-elf targets.
1361
e4d27380
ILT
1362Fri Mar 22 11:33:44 1996 Martin Anantharaman <martin@goofy.imech.uni-duisburg.de>
1363
1364 * ieee.c: Changed #ifdef KEEPMINUSPCININST to #if KEEPMINUSPCININST.
1365 (ieee_generic_stat_arch_elt): Restructured to prevent
1366 ieee_object_p from being called repeatedly.
1367
51776a11
SC
1368Thu Mar 21 11:00:47 1996 steve chamberlain <sac@slash.cygnus.com>
1369
1370 * coffcode.h (coff_write_object_contents): Allocate
1371 buffers large enough for any FILEHDR or AOUTHDR.
1372
1373Thu Mar 21 16:28:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
1374
1375 * ecofflink.c (lookup_line): New static function, renamed and
1376 slighly changed from old _bfd_ecoff_locate_line.
1377 (_bfd_ecoff_locate_line): Cache line number information. Use
1378 lookup_line for actual lookup.
1379
9e4ebb1b
MM
1380Thu Mar 21 14:59:11 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1381
1382 * peicode.h (pe_print_pdata): Warn if the .pdata section is not a
1383 multiple of 20 bytes.
1384
9e7427a4
ILT
1385Thu Mar 21 13:54:40 1996 Ian Lance Taylor <ian@cygnus.com>
1386
51776a11
SC
1387 * ecoff.c (_bfd_ecoff_find_nearest_line): Use bfd_zalloc to
1388 allocate ecoff_find_line, and don't initialize by hand.
1389 * elf32-mips.c (mips_elf_find_nearest_line): Use bfd_zalloc for
1390 mips_elf_find_line, and don't call memset.
1391
9e7427a4
ILT
1392 * coffcode.h (coff_compute_section_file_positions): If not
1393 producing a final executable, don't consider sofar when aligning
1394 the section to the correct size.
1395
1396Wed Mar 20 16:53:12 1996 Ian Lance Taylor <ian@cygnus.com>
1397
1398 * coffcode.h (coff_add_missing_symbols): Ifdef out.
1399 (coff_write_object_contents): Don't call coff_add_missing_symbols.
1400 * coffgen.c (coff_section_symbol): Ifdef out.
1401
e7f9ba4f
ILT
1402Mon Mar 18 12:54:41 1996 Ian Lance Taylor <ian@cygnus.com>
1403
1404 * elf32-mips.c (mips_elf_gprel32_reloc): Initialize gp if
1405 output_bfd is not NULL.
1406
34c4d647
DE
1407Thu Mar 14 17:12:06 1996 Doug Evans <dje@charmed.cygnus.com>
1408
1409 * coffgen.c (coff_get_normalized_symtab): Call bfd_zalloc instead
1410 of bfd_alloc (fixes fix_line not being initialized).
1411 Delete zeroing of fix_{value,tag,end,scnlen} fields.
1412
4e054247
JL
1413Thu Mar 14 16:06:06 1996 Jeffrey A Law (law@cygnus.com)
1414
57289b5c
JL
1415 * coffcode.h: Allow specific backends to override the
1416 bfd_link_add_symbols routine.
1417
4e054247
JL
1418 * coff-h8300.c: Include genlink.h.
1419 (howto_table): Add R_MEM_INDIRECT.
1420 (rtype2howto): Support R_MEM_INDIRECT.
1421 (h8300_reloc16_extra_cases): Handle R_MEM_INDIRECT like R_RELBYTE
1422 for now.
1423
a10d3dec
ILT
1424Tue Mar 12 12:41:17 1996 David Mosberger-Tang <davidm@koala.azstarnet.com>
1425
1426 * coff-alpha.c (alpha_relocate_section): Use
1427 info->callbacks_warning, rather than _bfd_error_handler, for
1428 "multiple gp" warning.
1429
ea2488ad
ILT
1430Tue Mar 12 12:10:55 1996 Ian Lance Taylor <ian@cygnus.com>
1431
8881b321
ILT
1432 * linker.c (bfd_wrapped_link_hash_lookup): New function.
1433 (_bfd_generic_link_add_one_symbol): Remove BFD_ASSERT on hash
1434 table string. Use bfd_wrapped_link_hash_lookup.
1435 (_bfd_generic_link_write_global_symbol): Remove BFD_ASSERT on hash
1436 table string.
1437 * aoutx.h (aout_link_write_symbols): Use the name from the hash
1438 table, if any, when writing out symbols.
1439 (aout_link_input_section_std): Use the name from the hash table,
1440 if any, when reporting undefined symbols.
1441 (aout_link_input_section_ext): Likewise.
1442 (aout_link_reloc_link_order): Use bfd_wrapped_link_hash_lookup.
1443 * bout.c (get_value): Likewise.
1444 * cofflink.c (_bfd_coff_reloc_link_order): Likewise.
1445 * ecoff.c (ecoff_reloc_link_order): Likewise.
1446 * elflink.h (elf_link_add_object_symbols): Likewise.
1447 (elf_reloc_link_order): Likewise.
1448 * linker.c (_bfd_generic_link_output_symbols): Likewise.
1449 (_bfd_generic_reloc_link_order): Likewise.
1450 (default_indirect_link_order): Likewise.
1451 * reloc16.c (bfd_coff_reloc16_get_value): Likewise.
1452 * sunos.c (sunos_add_one_symbol): Likewise.
1453 * xcofflink.c (xcoff_link_add_symbols): Likewise.
1454 (bfd_xcoff_link_count_reloc): Likewise.
1455 (xcoff_reloc_link_order): Likewise.
1456
1457 * ecoffswap.h (ecoff_swap_fdr_in): If ECOFF_64, turn 0xffffffff
1458 into -1 for intern->rss.
1459
ea2488ad
ILT
1460 * configure: Rebuild with autoconf 2.8.
1461
c189fdfb
ILT
1462Mon Mar 11 12:28:31 1996 Ian Lance Taylor <ian@cygnus.com>
1463
1464 * stab-syms.c (__define_stab_duplicate): Define.
1465 (bfd_get_stab_name): Rename from aout_stab_name. Rewrite to use a
1466 switch.
1467 * bfd-in.h (bfd_get_stab_name): Declare.
1468 * bfd-in2.h: Rebuild.
1469 * Makefile.in: Rebuild dependencies.
1470 (BFD_LIBS): Add stab-syms.o.
1471 (BFD_LIBS_CFILES): Add stab-syms.c.
1472 (BFD32_BACKENDS): Remove stab-syms.o.
1473 (BFD32_BACKENDS_CFILES): Remove stab-syms.c.
1474 * configure.in: Don't list stab-syms.o in bfd_backends.
1475 * configure: Rebuild.
1476 * libaout.h (aout_stab_name): Don't declare.
1477 * aoutx.h (NAME(aout,get_symbol_info)): Call bfd_get_stab_name,
1478 not aout_stab_name.
1479
1480Fri Mar 8 11:26:20 1996 Ian Lance Taylor <ian@cygnus.com>
1481
1482 * elf.c (assign_file_positions_for_segments): Adjust file offset
1483 for section alignment even if SEC_LOAD is not set.
1484
c5bde1ef
ILT
1485Tue Mar 5 12:02:23 1996 Ian Lance Taylor <ian@cygnus.com>
1486
8f218e05
ILT
1487 * configure.in: Don't set SHLIB or SHLINK to an empty string,
1488 since they appear as targets in Makefile.in.
1489 * configure: Rebuild.
1490
c5bde1ef
ILT
1491 * sunos.c (sunos_scan_ext_relocs): If not making a shared library,
1492 don't fiddle with a symbol which is not defined anywhere.
1493
cb84f028
ILT
1494Mon Mar 4 12:49:16 1996 Ian Lance Taylor <ian@cygnus.com>
1495
4e59f523
ILT
1496 * xcofflink.c (xcoff_mark): Treat undefined imported symbols as
1497 though they are defined in a shared library.
1498 (xcoff_build_ldsyms): Likewise.
1499
ea2504d5
ILT
1500 * coffgen.c (coff_find_nearest_line): Don't look at the line
1501 numbers for the section if section->lineno is NULL.
1502
cb84f028
ILT
1503 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Print a useful error
1504 message rather than calling BFD_ASSERT.
1505 * elfcode.h (write_relocs): Check return value of
1506 _bfd_elf_symbol_from_bfd_symbol.
1507
6e036cf7
MM
1508Fri Mar 1 09:42:59 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1509
1510 * elf32-ppc.c (ppc_elf_add_symbol_hook): Don't set SEC_LOAD flag
1511 for .sbss section.
1512
d08435de
JL
1513Wed Feb 28 11:25:47 1996 Jeffrey A Law (law@cygnus.com)
1514
1515 * libhppa.h (hppa_reloc_field_selector_type): Add R_HPPA_NLSEL
1516 and R_HPPA_NLRSEL.
1517 (e_nsel, e_nlsel, e_nlrsel): Undefine. Add to
1518 hppa_reloc_field_selector_type_alt.
1519 (hppa_field_adjust): Handle e_nlsel, e_nlrsel. Fix e_nsel handling.
1520 * som.c (hppa_som_gen_reloc_type): Handle N', NL' NLR' field
1521 selectors.
1522 (som_write_fixups): Finish handling of R_N0SEL and R_N1SEL.
1523
09609415
ILT
1524Wed Feb 28 11:00:24 1996 Ian Lance Taylor <ian@cygnus.com>
1525
1526 * elf.c (assign_file_positions_for_segments): Adjust the segment
1527 memory size for the alignment of a SEC_ALLOC section, not just a
1528 SEC_LOAD section.
1529
55626bf0
ILT
1530Tue Feb 27 14:17:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1531
1532 * m68klinux.c: New file.
1533 * hosts/m68klinux.h: New file.
1534 * config.bfd (m68*-*-linuxaout*, m68*-*-linux*): New targets.
1535 * configure.in (m68*-*-linux*): New native host.
1536 (m68klinux_vec): New vector.
1537 * configure: Rebuild.
1538 * targets.c (m68klinux_vec): Declare.
1539 * i386linux.c (bfd_i386linux_size_dynamic_sections): Renamed from
1540 bfd_linux_size_dynmic_sections to avoid clash with m68klinux.c.
1541 * bfd-in.h (bfd_i386linux_size_dynamic_sections): Rename
1542 declaration from bfd_linux_size_dynamic_sections.
1543 (bfd_m68klinux_size_dynamic_sections): Declare.
1544 * bfd-in2.h: Rebuild.
1545 * Makefile.in: Rebuild dependencies.
1546 (BFD32_BACKENDS): Add m68klinux.o.
1547 (BFD32_BACKENDS_CFILES): Add m68klinux.c.
1548
6c7b3090
JL
1549Tue Feb 27 11:31:34 1996 Jeffrey A Law (law@cygnus.com)
1550
1551 * libhppa.h (pa_arch): Add pa20.
1552 (hppa_reloc_field_selector_type): Add R_HPPA_NSEL.
1553 (e_nsel): Undefine. Add to hppa_reloc_field_selector_type_alt.
1554 (hppa_field_adjust): Handle e_nsel.
1555 * som.c: Provide default definitions for many new relocs found only
1556 in hpux10 include files.
1557 (som_fixup_formats): Add several new relocs from hpux10.
1558 (som_hppa_howto_table): Add hpux10 relocs.
1559 (som_write_fixups): Handle R_N0SEL and R_N1SEL hpux10 relocs.
1560
14fd4616
SS
1561Mon Feb 26 12:52:48 1996 Stan Shebs <shebs@andros.cygnus.com>
1562
1563 * mpw-make.sed: Edit out recent shared library support, and
1564 rules to rebuild .h files using doc/chew.
1565
3d9f042c
ILT
1566Mon Feb 26 14:48:39 1996 David Mosberger-Tang <davidm@AZStarNet.com>
1567
1568 * ecoff.c (ecoff_compute_section_file_positions): Adjust the file
1569 size even of sections with no contents.
1570
bdec6228
ILT
1571Mon Feb 26 14:01:13 1996 Ian Lance Taylor <ian@cygnus.com>
1572
88358469
ILT
1573 * cofflink.c (_bfd_coff_link_input_bfd): When merging, skip names
1574 starting with '$' the way we skip names starting with '.'. When
1575 updating x_endndx, don't be fooled by an index which has been
1576 merged.
1577
bdec6228
ILT
1578 * cofflink.c (_bfd_coff_link_input_bfd): Don't try to optimize a
1579 struct/union/enum type with no elements.
1580
053ae1d7
ILT
1581Sat Feb 24 11:38:58 1996 Ian Lance Taylor <ian@cygnus.com>
1582
15f4406c
ILT
1583 * bfd.c (bfd_errmsg): Handle a NULL return from strerror.
1584
c8435133
ILT
1585 * archive.c (bfd_generic_archive_p): If the first file in the
1586 archive can not be recognized as an object, don't assume that this
1587 is the wrong format.
1588
053ae1d7
ILT
1589 * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
1590 format is not bfd_object.
1591 (bfd_elf_get_dt_soname): Likewise.
1592
ea74d979
ILT
1593Wed Feb 21 13:58:04 1996 Ian Lance Taylor <ian@cygnus.com>
1594
1595 * coff-sh.c (sh_relax_delete_bytes): Correct range of R_SH_USES
1596 reloc.
1597
871a3f3b
C
1598Tue Feb 20 16:22:44 1996 J.T. Conklin <jtc@rtl.cygnus.com>
1599
1600 * bfd.c (tdata): Add netbsd_core_data.
1601 * bfd-in2.h: Regenerated.
1602
1603Tue Feb 20 16:50:02 1996 Ian Lance Taylor <ian@cygnus.com>
1604
fe6fc35f
ILT
1605 * sunos.c (SUNOS_CONSTRUCTOR): Define.
1606 (sunos_add_one_symbol): Don't let a symbol from a dynamic object
1607 override a constructor symbol. Set SUNOS_CONSTRUCTOR when
1608 appropriate.
1609
871a3f3b
C
1610 * bout.c (b_out_squirt_out_relocs): Use udata.i rather than flags
1611 to get the symbol index, matching 14 Jul 95 change.
1612
d3785301
FF
1613Tue Feb 20 08:26:27 1996 Fred Fish <fnf@phydeaux.cygnus.com>
1614
1615 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
1616 Remove duplicate definition of gp.
1617
60a49e7f
ILT
1618Mon Feb 19 12:37:41 1996 Ian Lance Taylor <ian@cygnus.com>
1619
81bdcecf
ILT
1620 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Don't
1621 assume that we can set the GP value and then get the same value,
1622 since it won't be true if the output file is neither ELF nor
1623 ECOFF.
1624 * coff-mips.c (mips_adjust_reloc_in): Don't bother to use
1625 _bfd_get_gp_value here.
1626 (mips_gprel_reloc): Don't assume we can set and get the GP value.
1627 * elf32-mips.c (mips_elf_hi16_reloc): Get gp value from
1628 mips_elf_final_gp.
1629 (mips_elf_lo16_reloc): Likewise.
1630 (mips_elf_final_gp): Add pgp parameter. Set it to the GP value.
1631 Don't require that the BFD be ELF.
1632 (mips_elf_gprel16_reloc): Get gp value from mips_elf_final_gp.
1633 (mips_elf_gprel32_reloc): Likewise.
1634 (mips_elf_relocate_section): Don't assume we can set and get the
1635 GP value.
1636 (mips_elf_finish_dynamic_symbol): Don't bother to use
1637 _bfd_get_gp_value here.
1638
1639 * elf32-mips.c (mips_elf_create_procedure_table): Initialize sv.
1640 Don't change epdr between malloc and free. Be careful not to free
1641 NULL pointers. Zero out the first RPDR.
1642
7b61165a
ILT
1643 * configure.host: On Linux, only pass -rpath option if $(libdir)
1644 is neither /lib nor /usr/lib. From Alan Modra
1645 <alan@mullet.Levels.UniSA.Edu.Au>.
1646
60a49e7f
ILT
1647 * elf-bfd.h (struct elf_obj_tdata): Rename dt_needed_name to
1648 dt_name.
1649 (elf_dt_name): Rename from elf_dt_needed_name.
1650 * elf.c (bfd_elf_set_dt_needed_name): Use elf_dt_name, not
1651 elf_dt_needed_name.
1652 (bfd_elf_get_dt_soname): New function.
1653 * elflink.h (elf_link_add_object_symbols): Use elf_dt_name, not
1654 elf_dt_needed_name. Save the SONAME back in elf_dt_name.
1655 * bfd-in.h (bfd_elf_get_dt_soname): Declare.
1656 * bfd-in2.h: Rebuild.
1657
b268e261
DE
1658Mon Feb 19 02:50:23 1996 Doug Evans <dje@charmed.cygnus.com>
1659
1660 * elf32-sparc.c (elf32_sparc_reloc_type_lookup): Renamed from
1661 _bfd_sparc_elf_reloc_type_lookup.
1662 (bfd_elf32_bfd_reloc_type_lookup): Update.
1663 * elf64-sparc.c (SPARC64_OLD_RELOCS): Define.
1664 (sparc64_elf_howto_table): Define.
1665 (sparc_reloc_map): Define.
1666 (sparc64_elf_reloc_type_lookup): New function.
1667 (sparc_elf_wdisp16_reloc): New function.
1668 (elf_info_to_howto): Use sparc64_elf_howto_table.
1669 (sparc64_elf_relocate_section): Likewise.
1670 (bfd_elf64_bfd_reloc_type_lookup): Update.
1671
9e2ef098
ILT
1672Sun Feb 18 15:02:25 1996 Ian Lance Taylor <ian@cygnus.com>
1673
1674 * configure.host: Check for 'do not mix' from native linker before
1675 trying to use -rpath.
1676
4c70373f
ILT
1677Fri Feb 16 12:46:18 1996 Ian Lance Taylor <ian@cygnus.com>
1678
cba3f8a9
ILT
1679 * bfd.c (_bfd_get_gp_value): New function.
1680 (_bfd_set_gp_value): New function.
1681 * libbfd-in.h (_bfd_get_gp_value): Declare.
1682 (_bfd_set_gp_value): Declare.
1683 * libbfd.h: Rebuild.
1684 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
1685 _bfd_get_gp_value and _bfd_set_gp_value rather than referring
1686 directly to the fields in the tdata information.
1687 (alpha_relocate_section): Likewise.
1688 * coff-mips.c (mips_adjust_reloc_in): Likewise.
1689 (mips_gprel_reloc): Likewise.
1690 (mips_relocate_section): Likewise.
1691 * elf32-mips.c (mips_elf_hi16_reloc): Likewise.
1692 (mips_elf_lo16_reloc): Likewise.
1693 (mips_elf_final_gp): Likewise.
1694 (mips_elf_gprel16_reloc): Likewise.
1695 (mips_elf_gprel32_reloc): Likewise.
1696 (mips_elf_relocate_section): Likewise.
1697 (mips_elf_finish_dynamic_symbol): Likewise.
1698
4c70373f
ILT
1699 * bout.c (b_out_set_arch_mach): Recognize bfd_mach_i960_jx.
1700
a0a2dd54
ILT
1701Thu Feb 15 11:29:13 1996 Ian Lance Taylor <ian@cygnus.com>
1702
f54c7482 1703 * configure.in: Call AC_PROG_CC before configure.host.
65eed095
ILT
1704 * configure: Rebuild.
1705 * configure.host: Don't set information which autoconf should
1706 figure out, namely CC, CFLAGS, LDFLAGS, AR, and RANLIB.
65eed095 1707
14293419
ILT
1708 * configure.host: Remove go32 and win32 host information, since it
1709 should no longer be needed.
1710
edf3fe48
ILT
1711 * elf.c (map_sections_to_segments): If we have a .dynamic section,
1712 then start a new segment rather than put a writable section in a
1713 readonly segment.
1714
b5e4f369
ILT
1715 * configure.host: Set RPATH_ENVVAR.
1716
f2e33e27
ILT
1717 * Makefile.in: Rebuild dependencies.
1718
a0a2dd54
ILT
1719 * elflink.c (_bfd_elf_create_linker_section): Remove unused
1720 zero_section variable.
1721
52c6bc4d
ILT
1722Thu Feb 15 10:39:17 1996 H.J. Lu <hjl@zoom.com>
1723
1724 * Makefile.in ($(srcdir)/bfd-in2.h): Rename target from bfd-in2.h.
1725 ($(srcdir)/libbfd.h): Rename from libbfd.h.
1726 ($(srcdir)/libcoff.h): Rename from libcoff.h.
1727
c9e5279f
ILT
1728Wed Feb 14 16:29:07 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
1729
cb50baea
ILT
1730 * ieee.c (ieee_write_expression): Only use an R variable for a
1731 local symbol. Don't output a zero offset. Handle a zero address.
1732 (SRC_MASK, PCREL_OFFSET): Define based on KEEPMINUSPCININST.
1733 (rel32_howto, rel16_howto, rel8_howto): Use SRC_MASK and
1734 PCREL_OFFSET.
1735 (parse_expression): Don't try to handle multiple occurrences of a
1736 P variable. Handle I variables differently from X variables. Fix
1737 the order of minus expressions.
1738 (ieee_slurp_external_symbols): Generate an I variable for an NN
1739 record. Fix handling of ATI and ATX records.
1740 (ieee_slurp_sections): Only set minimal section attributes.
1741 Adjust them later, based on the section contents.
1742 (ieee_object_p): Read in the file until just after the ME record.
1743 Call ieee_slurp_section_data to set the section flags.
1744 (do_one): Add iterations parameter. Only repeat the first load
1745 item. Set the section and file reloc flags.
1746 (ieee_slurp_section_data): Set section flags. Pass iterations to
1747 do_one.
1748 (ieee_canonicalize_reloc): Handle I variables.
1749 (do_with_relocs): Only emit relocation size when necessary.
1750 Increase MAXRUN to 127. Change ov to be assigned, and take
1751 src_mask and pcrel_offset into account.
1752 (ieee_write_data_part): Skip sections that are not loaded.
1753 (ieee_write_external_part): Don't output optional last entry of WX
1754 records.
1755 (ieee_write_me_part): Make setting of me_record neater.
1756 (ieee_generic_stat_arch_elt): Get the size of an archive element.
1757
c9e5279f
ILT
1758 * syms.c (stt): Add entries for zerovars, vars, and code.
1759
1760 * elfcode.h (validate_reloc): New static function.
1761 (write_relocs): Call validate_reloc for non ELF relocs.
1762
1763 * elfxx-target.h (elf_symbol_leading_char): Define if not defined.
1764 (TARGET_BIG_SYM): Use elf_symbol_leading_char.
1765 (TARGET_LITTLE_SYM): Likewise.
1766
1767 * config.bfd (m68*-*-psos*): New target.
1768
d9d65be6
ILT
1769Tue Feb 13 15:56:22 1996 Bryan Ford <baford@snake.cs.utah.edu>
1770
1771 * i386msdos.c: Remove some #if 0 code.
1772 (msdos_write_object_contents): Don't include empty sections in the
1773 size computation, regardless of their address.
1774
1775Tue Feb 13 15:36:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1776
1777 * elf32-ppc.c (ppc_elf_relocate_section): Don't segfault if dynboj
1778 is NULL, ie, the -r switch is used.
1779
db5970c7
ILT
1780Tue Feb 13 14:35:15 1996 Ian Lance Taylor <ian@cygnus.com>
1781
e9f03cd4
ILT
1782 * reloc.c (BFD_RELOC_MIPS_GOT_HI16): Define.
1783 (BFD_RELOC_MIPS_GOT_LO16): Define.
b7384d22 1784 (BFD_RELOC_MIPS_CALL_HI16, BFD_RELOC_MIPS_CALL_LO16): Define.
e9f03cd4
ILT
1785 * bfd-in2.h, libbfd.h: Rebuild.
1786 * elf32-mips.c (mips_reloc_map): Map new relocs.
1787
fe7c066a
ILT
1788 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
1789
1ab628e4
ILT
1790 * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not
1791 $(SHLINK).
1792
db5970c7
ILT
1793 * ieee.c (get_symbol): Set the section to bfd_abs_section.
1794 (do_with_relocs): If EXEC_P is set and there are no relocs, use a
1795 simple number for the section address, rather than an expression.
1796 Limit the number of bytes between relocs to MAXRUN.
1797 (ieee_write_me_part): Set me_record to the file offset after the
1798 start address.
1799 (ieee_write_processor): New static function.
1800 (ieee_write_object_contents): Use ieee_write_processor.
1801
318b7c18
ILT
1802Fri Feb 9 10:53:00 1996 Ian Lance Taylor <ian@cygnus.com>
1803
db5970c7
ILT
1804 * configure.host: Use ${CC-gcc} when testing for -rpath on SunOS.
1805
1806 * coff-aux.c: Change include of aux.h to aux-coff.h.
318b7c18 1807
56b64690
ILT
1808Thu Feb 8 14:01:03 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1809
1810 * elf32-m68k.c (elf_m68k_relocate_section): For a R_68K_RELATIVE
1811 relocation put the addend both in the reloc entry and the data.
1812 (elf_m68k_finish_dynamic_symbol): Likewise. Mask out marker in
1813 GOT offset value.
1814
1815 * elf32-m68k.c (elf_m68k_relocate_section): If -Bsymbolic, resolve
1816 a R_68K_PCxx reloc against a defined global symbol directly.
1817 (elf_m68k_check_relocs): Don't count such a reloc.
1818
1819 * elf32-m68k.c (elf_m68k_check_relocs): Don't record a symbol with
1820 a PLTxx reloc as dynamic. Disallow PLTxxO reloc against a local
1821 symbol for now, otherwise always record the symbol as dynamic.
1822 (elf_m68k_adjust_dynamic_symbol): If a symbol with a PLTxx reloc
1823 is not referenced by a dynamic object, and we are not making a
1824 shared object, then don't make a PLT entry. If we do make a PLT
1825 entry, make sure the symbol has been recorded as dynamic.
1826
5d649ca8
ILT
1827Wed Feb 7 13:56:06 1996 Ian Lance Taylor <ian@cygnus.com>
1828
1829 * configure.host: When making a shared library, set HLDFLAGS to
1830 pass an appropriate -rpath option. Use the make variable SONAME
1831 as the shared library soname, rather than computing it here. On
1832 SunOS, build stamp-tshlink in place of $(SHLINK).
1833 * Makefile.in (SONAME): New variable.
1834 ($(SHLINK)): Make a link to the transformed name, as well.
1835 (stamp-tshlink): New target.
1836 (install): Skip stamp-tshlink during install.
1837
8cc98cd5
MM
1838Wed Feb 7 13:37:39 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1839
56b64690
ILT
1840 * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not assume that the
1841 linker sections have been set up yet.
1842
8cc98cd5
MM
1843 * elf.c (make_mapping): Add an additional argument to suppress
1844 making the first section include the program headers.
1845 (map_sections_to_segments): If the user used -Ttext such that the
1846 program headers are on a different page, do not set the flags
1847 saying that this section includes the program headers.
1848
fe16107d
C
1849Tue Feb 6 14:04:49 1996 J.T. Conklin <jtc@rtl.cygnus.com>
1850
1851 * configure.in (*-*-netbsd*): Set COREFILE to netbsd-core.c.
1852 don't define TRAD_HEADER.
1853 * configure: Rebuild.
1854
1855 * netbsd-core.c: New file, support for NetBSD core files.
1856 * hosts/*nbsd.h: Removed.
1857
f1783016
DE
1858Tue Feb 6 11:47:49 1996 Doug Evans <dje@charmed.cygnus.com>
1859
1860 * reloc.c (BFD_RELOC_SPARC_[567]): New reloc types.
1861 (BFD_RELOC_SPARC_LO7 reloc type): Deleted.
1862 * libbfd.h, bfd-in2.h: Regenerated.
1863 * elf32-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Renamed from
1864 bfd_elf32_bfd_reloc_type_lookup.
1865 (reloc_type{,_names}): Deleted.
1866 (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
1867 Add sparc64 relocs.
1868 (sparc_reloc_map): Add sparc64 relocs.
1869 (sparc_elf_notsupported_reloc): New static function.
1870 (sparc_elf_wdisp16_reloc): New static function.
1871 (elf32_sparc_check_relocs): Handle R_SPARC_WDISP{16,19}.
1872 (elf32_sparc_relocate_section): Likewise.
1873 (bfd_elf32_bfd_reloc_type_lookup): Define.
1874 * elf64-sparc.c (sparc64_elf_wdisp16_reloc): Deleted.
1875 (reloc_type{,_names}): Deleted.
1876 (elf_sparc_howto_table): Deleted.
1877 (sparc_reloc_map): Deleted.
1878 (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
1879 (bfd_elf64_bfd_reloc_type_lookup): Change from function to #define.
1880
48fd00b6
ILT
1881Tue Feb 6 12:12:22 1996 Ian Lance Taylor <ian@cygnus.com>
1882
2300e217
ILT
1883 * configure.host: Make SHLIB_CFLAGS include $(PICFLAG) on a
1884 *-*-hpux* host.
1885
48fd00b6
ILT
1886 * Makefile.in (program_transform_name): New variable.
1887 (install): Transform library name before installing it.
1888
8adca582
ILT
1889Mon Feb 5 10:38:27 1996 Ian Lance Taylor <ian@cygnus.com>
1890
cbe75cb6
ILT
1891 * archures.c (bfd_mach_i960_hx): Define.
1892 * bfd-in2.h: Rebuild.
1893 * cpu-i960.c (scan_960_mach): Accept machine "hx".
1894 (MATRIX): Expand entries for HX.
1895 (arch_info_struct): Add i960:hx entry.
1896 * bout.c (b_out_set_arch_mach): Handle bfd_mach_i960_hx.
1897 * coffcode.h (coff_set_arch_mach_hook): Handle F_I960HX.
1898 (coff_set_flags): Handle bfd_mach_i960_hx.
1899
44f795f7
ILT
1900 Support for building as a shared library, based on patches from
1901 Alan Modra <alan@spri.levels.unisa.edu.au>:
1902 * configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib.
1903 New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC,
1904 SHLIB_CFLAGS, COMMON_SHLIB, PICLIST, SHLINK.
1905 * configure: Rebuild.
1906 * configure.host: If --enable-shared, adjust shared library stuff
1907 based on the host. If the host is SunOS, and the linker supports
1908 -rpath, set HLDFLAGS to use it.
1909 * Makefile.in (ALLLIBS): New variable.
1910 (PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables.
1911 (COMMON_SHLIB, SHLINK): New variables.
1912 (.c.o): If PICFLAG is set, compile twice, once PIC, once normal.
1913 (STAGESTUFF): Remove variable.
1914 (all): Depend upon $(ALLLIBS) and @PICLIST@ rather than
1915 $(TARGETLIB).
1916 (stamp-ofiles): New target, like old ofiles target, but build
1917 using a temporary file and move-if-change, and touch stamp-ofiles
1918 when done.
1919 (ofiles): Just depend upon stamp-ofiles.
1920 (stamp-piclist, piclist): New targets.
1921 ($(SHLIB), $(SHLINK)): New targets.
1922 (targets.o, archures.o): Build twice if PICFLAG is set.
1923 (do_mostlyclean): Remove pic/*.o.
1924 (do_clean): Remove stamp-ofiles, $(SHLIB), $(SHLINK), piclist, and
1925 stamp-piclist.
1926 (do_distclean): Remove pic and stamp-picdir.
1927 (install): Install shared libraries.
1928 ($(OFILES)): Depend upon stamp-picdir.
1929 (stamp-picdir): New target.
1930
cb62d2bc
ILT
1931 * libcoff-in.h: Add comment reminding people that libcoff.h is a
1932 generated file.
1933 * libcoff.h: Rebuild.
1934
8adca582
ILT
1935 * elflink.h (elf_adjust_dynamic_symbol): Don't try to get the
1936 flavour of a section with no owner.
1937
1938 * elf32-mips.c (mips_elf_create_dynamic_sections): Clear
1939 ELF_LINK_NON_ELF flag.
1940 (mips_elf_create_got_section): Likewise.
1941
1942 * elf.c: Revert last change, since it breaks dynamic linking.
1943 * elf-bfd.h (struct elf_backend_data): Remove want_hdr_in_seg
1944 field.
1945 * elf32-mips.c (elf_backend_want_hdr_in_seg): Don't define.
1946 * elfxx-target.h (elf_backend_want_hdr_in_seg): Don't define.
1947 (elfNN_bed): Don't initialize want_hdr_in_seg field.
1948
1949Sun Feb 4 20:45:13 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1950
1951 * elf.c (assign_file_positions_for_segments): If the backend does
1952 not want the elf header or the program headers in the address
1953 space, do not include them in the calculations.
1954
1955 * elf32-ppc.c (ppc_elf_additional_program_headers): New hook
1956 function to determine if we need additional program headers.
1957 (ppc_elf_modify_segment_map): Define as a NOP function for now.
1958 (ppc_elf_create_linker_section): .sdata2 is a read-only section.
1959
0f09ddd4
ILT
1960Sat Feb 3 23:00:03 1996 Ian Lance Taylor <ian@cygnus.com>
1961
1962 * coffcode.h: Move today's libcoff.h change into coffcode.h.
1963
b48f10ba
FF
1964Sat Feb 3 15:43:44 1996 Fred Fish <fnf@cygnus.com>
1965
0f09ddd4
ILT
1966 * libcoff.h (bfd_coff_link_add_one_symbol): Combine macro args
1967 back into one line. Some compilers (sunos 4.1.3 for example)
1968 won't accept args split across more than one line.
b48f10ba 1969
50761d3b
SC
1970Fri Feb 2 11:42:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
1971
1972 * aclocal.m4 (BFD_BINARY_FOPEN): Understand cygwin32.
1973 * configure: Regenerate.
1974
9dce8260
JL
1975Fri Feb 2 12:12:16 1996 Jeffrey A Law (law@cygnus.com)
1976
1977 * elf32-hppa.c (elf32_hppa_backend_symbol_table_processing): Don't
1978 try to do arithmetic on a void *, cast it to a unsigned char * first.
1979
6c55897c
ILT
1980Thu Feb 1 16:04:06 1996 Ian Lance Taylor <ian@cygnus.com>
1981
869b7d80
ILT
1982 * elf-bfd.h (ELF_LINK_NON_ELF): Define.
1983 * elf.c (_bfd_elf_link_hash_newfunc): Set elf_link_hash_flags to
1984 ELF_LINK_NON_ELF.
1985 * elflink.h (elf_link_add_object_symbols): Reset ELF_LINK_NON_ELF
1986 flag for a newly defined symbol.
1987 (NAME(bfd_elf,record_link_assignment)): Likewise.
1988 (elf_adjust_dynamic_symbol): If ELF_LINK_NON_ELF is set, try to
1989 set the DEF or REF_REGULAR flags correctly.
1990
6f6956c6
ILT
1991 * Makefile.in (bfd-in2.h): Make bfd.h, not protos, in docdir.
1992 (libbfd.h, libcoff.h): Corresponding change.
1993
6c55897c
ILT
1994 * elf32-i386.c (elf_i386_check_relocs): Don't record a symbol with
1995 a PLT32 reloc as dynamic.
1996 (elf_i386_adjust_dynamic_symbol): If a symbol with a PLT32 reloc
1997 is not referenced by a dynamic object, and we are not making a
1998 shared object, then don't make a PLT entry. If we do make a PLT
1999 entry, make sure the symbol has been recorded as dynamic.
2000
b06136f2
SC
2001Wed Jan 31 17:23:32 1996 Steve Chamberlain <sac@slash.cygnus.com>
2002
2003 * coff-i386.c (coff_i386_reloc_type_lookup): Add BFD_RELOC_32_PCREL.
2004 * config.bfd (i[345]86-*-win32): Becomes i[345]86-*-cygwin32.
2005 (powerpcle-*-cygwin32): New.
2006 * peicode.h (add_data_entry): Get address from vma.
2007
5c867ecd
MM
2008Wed Jan 31 16:23:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2009
2010 * elflink.c (_bfd_elf_create_linker_section): If the symbol
2011 attached to the section has already been created as an undefined
2012 symbol, treat it as if it hasn't been created yet.
2013
28c16b55
ILT
2014Wed Jan 31 16:16:53 1996 Ian Lance Taylor <ian@cygnus.com>
2015
2016 * elflink.h (elf_bfd_final_link): Don't output initial dummy
2017 symbol or section symbols if stripping all symbols and this is not
2018 a relocateable link. Don't output the symbol string table if
2019 there are no symbols.
2020 (elf_link_flush_output_syms): Don't do anything if there are no
2021 symbols to flush.
2022
d19df9b5
ILT
2023Wed Jan 31 12:55:49 1996 Richard Henderson <rth@tamu.edu>
2024
2025 * coff-aux.c: New file.
2026 * hosts/m68kaux.h: New file.
2027 * config.bfd (m68*-apple-aux*): New target.
2028 * configure.in (m68*-apple-aux*): New native host.
2029 (m68kaux_coff_vec): New vector.
2030 * configure: Rebuild.
2031 * targets.c (m68kaux_coff_vec): Declare.
2032 * coffcode.h (bfd_coff_backend_data): Add field
2033 _bfd_coff_link_add_one_symbol.
2034 (bfd_coff_link_add_one_symbol): Define.
2035 (compare_arelent_ptr): New static function if TARG_AUX.
2036 (coff_write_relocs): If TARG_AUX, sort the relocs.
2037 (coff_write_object_contents): Set A/UX aouthdr magic number.
2038 (coff_link_add_one_symbol): Define if not defined.
2039 (bfd_coff_std_swap_table): Initialize new field.
2040 * libcoff.h: Rebuild.
2041 * cofflink.c (coff_link_add_symbols): Call
2042 bfd_coff_link_add_one_symbol rather than
2043 _bfd_generic_link_add_one_symbol.
2044 * coff-m68k.c (COFF_PAGE_SIZE): Don't define if already defined.
2045 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
2046 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2047 * Makefile.in: Rebuild dependencies.
2048 (BFD32_BACKENDS): Add coff-aux.o.
2049 (BFD32_BACKENDS_CFILES): Add coff-aux.c.
2050
a796aafd
ILT
2051Wed Jan 31 11:37:46 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2052
2053 * elf32-m68k.c (elf_m68k_relocate_section): Fix R_68K_GOT*
2054 relocation; ignore addend with R_68K_{GOT,PLT}*O relocation.
2055
a8763553
ILT
2056Tue Jan 30 12:09:04 1996 Ian Lance Taylor <ian@cygnus.com>
2057
66761e59
ILT
2058 * Makefile.in (do_maintainer_clean): Remove $(srcdir)/bfd-in2.h,
2059 $(srcdir)/libbfd.h and $(srcdir)/libcoff.h.
2060 (maintainer-clean): Warn about deleting special files.
2061 (bfd-in2.h, libbfd.h, libcoff.h): New targets.
2062
cf5138e3
ILT
2063 * elf32-hppa.c (elf32_hppa_relocate_section): Handle indirect and
2064 warning symbols correctly.
2065 * elf32-i386.c (elf_i386_relocate_section): Likewise.
2066 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2067 * elf32-mips.c (mips_elf_relocate_section): Likewise.
2068 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2069 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2070 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2071
a8763553
ILT
2072 * syms.c (_bfd_stab_section_find_nearest_line): Add casts to avoid
2073 warnings.
2074
bdd2e7f1
KK
2075Mon Jan 29 14:27:24 1996 Kim Knuttila <krk@cygnus.com>
2076
2077 * libcoff-in.h: aligned newly exported names with bfd naming
2078 conventions. Removed an erroneous define of POWERPC_LE_PE.
2079 * libcoff.h: Rebuild.
2080 * cofflink.c, coff-ppc.c: the above function name changes
2081
d2bb6c79
ILT
2082Mon Jan 29 13:06:28 1996 Ian Lance Taylor <ian@cygnus.com>
2083
eb5bc1f3
ILT
2084 From Basim Kadhim <kadhim@spock.cs.colorado.edu>:
2085 * ecoff.c (struct extsym_info): Define.
2086 (_bfd_ecoff_bfd_final_link): Pass a pointer to struct extsym_info
2087 to ecoff_link_write_external.
2088 (ecoff_link_write_external): Accept a struct extsym_info pointer.
2089 Strip symbols when appropriate.
2090
052b35d2
ILT
2091 Based on patches from Ronald F. Guilmette <rfg@monkeys.com>:
2092 * syms.c (BSF_OBJECT): Define.
2093 (bfd_print_symbol_vandf): Print 'O' for BSF_OBJECT.
2094 * bfd-in2.h: Rebuild.
2095 * elfcode.h (elf_slurp_symbol_table): Set BSF_OBJECT for an
2096 STT_OBJECT symbol.
2097 * elf.c (swap_out_syms): Only set type to STT_OBJECT if BSF_OBJECT
2098 is set.
2099
53787b23
ILT
2100 * elf32-i386.c (elf_i386_relocate_section): If -Bsymbolic, when
2101 copying relocs into a shared object, treat a defined global symbol
2102 as a local symbol.
2103 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2104 * elf32-mips.c (mips_elf_relocate_section): Likewise.
2105 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2106
d2bb6c79
ILT
2107 * elflink.h (elf_link_add_object_symbols): Only set weakdef to a
2108 real defined symbol, not to a weak defined symbol.
2109
13d1a4dd
KK
2110Mon Jan 29 11:34:36 1996 Kim Knuttila <krk@cygnus.com>
2111
2112 * cofflink.c: removed the POWERPC_LE_PE hack, promoted some types
2113 and made a few static functions externs.
2114
2115 * coff-ppc.c (ppc_bfd_coff_final_link): new function, replaces the
2116 POWERPC_LE_PE hack in cofflink.
2117
2118 * libcoff-in.h: promoted the following from cofflink.c to allow
2119 _bfd_coff_final_link to be overridden - STRING_SIZE_SIZE,
2120 coff_debug_merge_element, struct coff_debug_merge_type,
2121 coff_debug_merge_hash_entry, coff_debug_merge_hash_table,
2122 coff_debug_merge_hash_table_init, coff_debug_merge_hash_table_free,
2123 coff_debug_merge_hash_lookup, coff_link_section_info,
2124 coff_final_link_info, coff_debug_merge_hash_newfunc,
2125 coff_write_global_sym, coff_link_input_bfd, coff_reloc_link_order.
2126
2127 * libcoff.h: re-gen'd
2128
86aac8ea
ILT
2129Fri Jan 26 18:33:35 1996 Ian Lance Taylor <ian@cygnus.com>
2130
2131 * syms.c: Include "bfdlink.h".
2132 (struct stab_find_info): Define.
2133 (_bfd_stab_section_find_nearest_line): New function.
2134 * libbfd-in.h (_bfd_stab_section_find_nearest_line): Declare.
2135 * libbfd.h: Rebuild.
2136 * elf-bfd.h (struct elf_obj_tdata): Add line_info field.
2137 * elf.c (_bfd_elf_find_nearest_line): Try calling
2138 _bfd_stab_section_find_nearest_line before searching the ELF
2139 symbol table. Find the closest STT_FUNC symbol, not the last one.
2140 * libcoff-in.h (coff_data_type): Add line_info field.
bdd2e7f1 2141 * libcoff.h: Rebuild.
86aac8ea
ILT
2142 * coffgen.c (coff_find_nearest_line): Try calling
2143 _bfd_stab_section_find_nearest_line before searching the COFF
2144 symbol table.
2145 * Makefile.in: Rebuild dependencies.
2146
2147Fri Jan 26 16:11:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2148
2149 * elf32-ppc.c (R_PPC_EMB_SDA21 relocations): Make relocation size
2150 4 bytes, so we get the correct value when updating the register
2151 field in little endian mode.
2152
43d36aad
ILT
2153Thu Jan 25 12:14:16 1996 Ian Lance Taylor <ian@cygnus.com>
2154
f0a97077
ILT
2155 * libcoff-in.h (struct xcoff_tdata): Remove toc_section and
2156 entry_section fields. Add sntoc and snentry fields.
2157 * libcoff.h: Rebuild.
2158 * coffcode.h (coff_mkobject_hook): Initialize sntoc and snentry,
2159 not toc_section and entry_section (the COFF file does not have any
2160 sections at this point).
2161 (coff_write_object_contents): Set o_snentry and o_sntoc from
2162 snentry and sntoc rather than entry_section and toc_section.
2163 * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy sntoc and
2164 snentry, not toc_section and entry_section.
2165 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't set
2166 entry_section from hentry.
2167 (xcoff_link_input_bfd): If a defined symbol has XCOFF_ENTRY set,
ea2504d5 2168 set snenty.
f0a97077
ILT
2169 (xcoff_link_input_bfd): Set sntoc, not toc_section.
2170 (xcoff_write_global_symbol): Get toc_section from sntoc, rather
2171 than using toc_section directly.
2172
9b4598d0
ILT
2173 * archures.c: Add missing `.' in enum bfd_architecture.
2174 * bfd-in2.h: Rebuild.
2175
43d36aad
ILT
2176 * config.bfd (i[345]86-*-sco*elf*): Use bfd_elf32_i386_vec. From
2177 Robert Lipe <robertl@arnet.com>.
2178
eb82bc60
MM
2179Thu Jan 25 12:08:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2180
2181 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Add .rela.sdata{,2}
2182 to sections we allocate. Use bfd_zalloc to allocate initialial
2183 sections, not bfd_alloc.
2184 (ppc_elf_check_relocs): Remove BFD_ASSERTs for !shared from
2185 SDA{,2}I16 relocations.
2186 (ppc_elf_add_symbol_hook): Use the value of -G nn to determine
2187 whether to put something in .sbss or not.
2188 (ppc_elf_relocate_section): Add support for more relocations. Add
c1e65e24
MM
2189 in sec->output_offset where appropriate. Make error messages
2190 include the symbol name.
eb82bc60
MM
2191
2192 * elflink.c (_bfd_elf_create_linker_section): Lookup symbol before
2193 trying to add it to the symbol table, so _GLOBAL_OFFSET_TABLE_
2194 doesn't get redefined messages if -shared.
2195
2196 * elflink.h (elf_create_pointer_linker_section) Only bump RELA
2197 section if the rel_section field has been set up.
2198
9d621c7d
MM
2199Wed Jan 24 20:40:26 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2200
2201 * elf32-ppc.c (ppc_elf_relocate_section): Fix typo in eabi
2202 relocations.
2203
75c9ddc9
DE
2204Wed Jan 24 10:38:34 1996 Doug Evans <dje@charmed.cygnus.com>
2205
2206 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Delete checking
2207 of flags, only flags used are controlled by mach number. Bump up
2208 output file mach number to highest of input file mach numbers.
2209 (elf32_sparc_object_p): Watch for EF_SPARC_SUN_US1.
2210 (elf32_sparc_final_write_processing): Set EF_SPARC_SUN_US1 if v8plusa.
2211
72c513bc
DE
2212 * config.bfd (sparc64-*-{sysv4*,solaris2*}): Comment out
2213 bfd_elf64_sparc_vec support.
2214
3cbe19d2
MM
2215Tue Jan 23 14:33:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2216
2217 * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Don't complain if
2218 the embedded bit is set on some objects and not on others. Just
2219 or it together.
d8fd85ad
MM
2220 (ppc_elf_relocate_section): Implement R_PPC_EMB_{SDA21,RELSDA}
2221 relocations.
3cbe19d2 2222
5eb83ede
ILT
2223Tue Jan 23 14:22:45 1996 Ian Lance Taylor <ian@cygnus.com>
2224
4a3d3b42
ILT
2225 * coffcode.h (coff_new_section_hook): Don't try to align the
2226 .stabstr section.
2227
5eb83ede
ILT
2228 * coffcode.h (coff_set_section_contents): Fix the handling of the
2229 .lib section to work even if the entire section contents are
2230 written at once. From Gvran Uddeborg <gvran@uddeborg.pp.se> and
2231 Robert Lipe <robertl@arnet.com>.
2232
05f927dd
MM
2233Mon Jan 22 18:45:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2234
2235 * elflink.h (elf_finish_pointer_linker_section): Don't allocate
2236 memory here for contents.
2237
2238 * elf32-ppc.c (ppc_elf_relocate_section): Bump up _SDA_BASE_ and
2239 _SDA2_BASE_ by 32768.
2240 (ppc_elf_size_dynamic_sections): #if out PLT code which we haven't
2241 started using. Allocate contents for .sdata and .sdata2 sections
2242 also.
2243 (ppc_elf_check_relocs): Use bfd_get_section_name in debug message,
2244 rather than _name.
2245 (ppc_elf_finish_dynamic_symbol): Remove code that attempted to
2246 size _SDA{,2}_BASE_.
2247 (ppc_elf_relocate_section): Change how sdata{,2} relocations are
2248 done.
2249
5bc513b4
DE
2250Mon Jan 22 08:52:04 1996 Doug Evans <dje@charmed.cygnus.com>
2251
5a5bac64
DE
2252 * elflink.h (elf_finish_pointer_linker_section): Fix typo.
2253
5bc513b4 2254 * archures.c (bfd_mach_sparc_v9): Renamed from bfd_mach_sparc64.
5bc513b4 2255 (bfd_mach_sparc_{v8plus,v8plusa}): Define.
5bc513b4 2256 (bfd_mach_sparc_v9a): Define.
049f3d4c 2257 (bfd_mach_sparc_v9_p): Define.
5bc513b4
DE
2258 * bfd-in2.h: Regenerated.
2259 * aoutx.h (aout,machine_type): bfd_mach_sparc64 renamed to
2260 bfd_mach_sparc_v9.
d3366d23 2261 * elf64-sparc.c (sparc64_elf_object_p): Likewise.
5bc513b4
DE
2262 * config.bfd (sparc64-*-sysv4*,sparc64-*-solaris2*): Set targ_defvec
2263 to bfd_elf32_sparc_vec.
2264 * cpu-sparc.c (arch_info_struct): Renamed from sparc_arch_info.
5bc513b4 2265 Add v8plus{,a} support.
5bc513b4 2266 Add v9a support.
768b8ade 2267 (sparc_compatible): New function.
5bc513b4 2268 * elf32-sparc.h: #include "elf/sparc.h".
75c9ddc9 2269 (elf32_sparc_merge_private_bfd_data, elf32_sparc_object_p,
5bc513b4 2270 elf32_sparc_final_write_processing): New functions.
75c9ddc9 2271 (bfd_elf32_bfd_merge_private_bfd_data, elf_backend_object_p,
5bc513b4 2272 elf_backend_final_write_processing): Define.
5bc513b4 2273
3b3753b8
MM
2274Mon Jan 22 11:21:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2275
2276 * elf-bfd.h (struct elf_link_hash_entry): Add
2277 linker_section_pointer field.
2278 (enum elf_linker_section_enum): Enumeration for new way of
2279 creating linker dynamic sections and symbols.
2280 (elf_linker_section{,_pointers}): New structures for creating
2281 dynamic sections and symbols.
2282 (elf_obj_tdata): Add linker_section_pointers and linker_section
2283 fields.
2284 (elf_local_ptr_offsets,elf_linker_section): New accessor macros.
2285 (_bfd_elf_create_linker_section): New declarations.
2286 (_bfd_elf_find_pointer_linker_section): Ditto.
2287 (bfd_elf{32,64}_{create,finish}_pointer_linker_section): Ditto.
2288 (_bfd_elf_make_linker_section_rela): Ditto.
2289
2290 * elf.c (_bfd_elf_link_hash_newfunc): Initialize new fields.
2291
2292 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Delete.
2293 (ppc_elf_create_linker_section): New function to create the
2294 sections .got, .sdata, and .sdata2.
2295 (ppc_elf_size_dynamic_sections): Zap .rela.{sdata,sdata2} if
2296 needed.
2297 (ppc_elf_check_relocs): Support more of the eabi relocations.
2298 (ppc_elf_relocate_section): Ditto.
2299 (ppc_elf_finish_dynamic_symbols): Adjust _SDA{,2}_BASE_ by 32768
2300 if the .sdata{,2} + .sbss{,2} section size is > 32k.
2301
2302 * elflink.h (elf_create_pointer_linker_section): New function to
2303 create initialized pointers in dynamic linker sections.
2304 (elf_finish_pointer_linker_section): Actually intialize the
2305 pointers created above.
2306
2307 * elfcode.h (bfd_elf{32,64}_create_pointer_linker_section): New
2308 macros to provide both 32 and 64 bit versions of
2309 elf_create_pointer_linker_section.
2310 (bfd_elf{32,64}_finish_pointer_linker_section): New macros to
2311 provide both 32 and 64 bit versions of
2312 elf_finish_pointer_linker_section.
2313
2314 * elflink.c (_bfd_elf_create_linker_section): New function to
2315 create a linker section.
2316 (_bfd_elf_find_pointer_linker_section): Find a unique pointer to a
2317 given address in the linker pointer offsets created for a given
2318 symbol.
2319 (_bfd_elf_make_linker_section_rela): Make a RELA section
2320 corresponding to the generated linker section.
2321
6b3eb07e
DE
2322Sat Jan 20 08:36:10 1996 Doug Evans <dje@canuck.cygnus.com>
2323
2324 * elf32-sparc.c (ELF_MACHINE_ALT1): Define.
2325
e7894f6b
KK
2326Thu Jan 18 18:25:34 1996 Kim Knuttila <krk@cygnus.com>
2327
2328 * coff-ppc.c (coff_ppc_relocate_section): changed TOCDEFN relocs.
2329 (coff_ppc_relocate_section): Handle special values for gcc built dlls.
2330 (dump_toc): fix diagnosing code to identify out-of-toc-bounds entries.
2331 Also begin the toc at 4 as an eye catcher ('31313131' marks the first
2332 toc entry in an objdump) for now.
2333 (ppc_do_last, ppc_get_last): New function - needed to save processing
2334 the toc owner to the end.
2335 (ppc_coff_swap_sym_in_hook): Removed an incorrect hack for doing the
2336 toc owner last.
2337
2338 * cofflink.c (_bfd_coff_final_link): Added a new hack to keep the
2339 toc owner from being done till last. Must define POWERPC_LE_PC
2340 to enable it.
2341
2342 * coffcode.h (coff_set_alignment_hook): alignment setting for .stab
2343
2344 * peicode.h (coff_swap_scnhdr_out): set section flags for stab/str
2345 to INFO.
2346 (coff_swap_aouthdr_out): Removed a non-working hack for computing the
2347 SizeOfImage for PowerPC. Ignore the size of the .junk section.
2348
80b99ca0
ILT
2349Thu Jan 18 17:42:12 1996 Ian Lance Taylor <ian@cygnus.com>
2350
2351 * elfcore.h: Include <signal.h> before <sys/procfs.h>.
2352
df96df4c
ILT
2353Wed Jan 17 12:40:14 1996 Ian Lance Taylor <ian@cygnus.com>
2354
2355 * cpu-powerpc.c (arch_info_struct): Change last entry to not point
2356 back to first.
2357 (bfd_powerpc_arch): Point at first entry in arch_info_struct.
2358
d49ddb85
ILT
2359Tue Jan 16 15:10:49 1996 Ian Lance Taylor <ian@cygnus.com>
2360
2361 * elf.c (assign_file_positions_for_segments): Don't increment file
2362 offset for a segment which contains no loadable sections.
2363
4500a112
MM
2364Mon Jan 15 17:46:27 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2365
2366 * reloc.c: Add new PowerPC relocations.
2367 * {bfd-in2,libbfd}.h: Regenerate.
2368
2369 * elf32-ppc.c (ppc_elf_howto_raw): Add more PPC relocations.
2370 (ppc_elf_reloc_type_lookup): Lookup new relocations.
2371
252239f8
ILT
2372Mon Jan 15 14:29:44 1996 Ian Lance Taylor <ian@cygnus.com>
2373
20ab764e
ILT
2374 * aoutx.h (howto_table_ext): Fix RELOC_BASE10 and RELOC_BASE22
2375 entries.
2376
0a4ffa2d
ILT
2377 * sunos.c (sunos_scan_ext_relocs): Don't fail assert if
2378 info->shared.
2379
45ca3195
ILT
2380 * coffgen.c (coff_find_nearest_line): Don't try to cache
2381 information in sections that are not owned by a BFD. From Richard
2382 Henderson <richard@atheist.tamu.edu>.
2383
252239f8
ILT
2384 * elf32-mips.c: Numerous changes to dynamic linking code, mostly
2385 from Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>.
2386 * elflink.h (elf_link_output_extsym): Remove special check for
2387 _rld_new_interface.
2388
2389 * ecoffswap.h: Add prototypes for static functions.
2390
bd2d10c0
MM
2391Sun Jan 14 21:36:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2392
2393 * elf32-ppc.c (ppc_elf_{unsupported,std}_reloc): Remove functions.
2394 (ppc_elf_howto_raw): Remove ppc_elf_{unsupported,std}_reloc
2395 references.
2396 (ppc_elf_relocate_section): No longer allow .sdata/.sbss sections
2397 to satisfy a TOC16 relocation. Rewrite unsupported relocation
2398 support. Begin support for R_PPC_SDA{2,}REL.
2399
1c3a295b
MM
2400Sat Jan 13 09:36:52 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2401
2402 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New function to
2403 create the .got and .got.neg sections.
2404 (ppc_elf_size_dynamic_sections): Call it.
2405 (ppc_elf_check_relocs): Call it.
2406 (ppc_elf_size_dynamic_sections): Support .got.neg, just like .got.
2407 (ppc_elf_check_relocs): Add error messages for relocations we
2408 don't yet support. Do not include R_PPC_SDAREL16 like a GOT
2409 relocation.
2410
57081126
MM
2411Fri Jan 12 15:27:59 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2412
2413 * elf32-ppc.c (ppc_elf_fake_sections): Define, and handle the new
2414 section flags for V.4 and eabi.
2415
3c38b3df
ILT
2416Fri Jan 12 13:59:16 1996 Ian Lance Taylor <ian@cygnus.com>
2417
14899eb7
ILT
2418 * elf.c (assign_file_positions_for_segments): If a segment
2419 contains no sections, don't mark it as readable.
2420
98bb57ad
ILT
2421 * elf-bfd.h (_bfd_elf_section_from_bfd_section): Declare.
2422 * elfcode.h (_bfd_elf_section_from_bfd_section): Don't declare.
2423
02fcd126
ILT
2424 * elf.c (_bfd_elf_print_private_bfd_data): Dump contents of
2425 dynamic section, if there is one.
2426 * elf-bfd.h (struct elf_size_info): Add swap_dyn_in field.
2427 (bfd_elf32_swap_dyn_in): Change type of second parameter to PTR.
2428 (bfd_elf64_swap_dyn_in): Likewise.
2429 * elfcode.h (elf_swap_dyn_in): Change type of second parameter to
2430 PTR.
2431 (NAME(_bfd_elf,size_info)): Initialize swap_dyn_in field.
2432
3c38b3df
ILT
2433 * elf32-i386.c (elf_i386_size_dynamic_sections): Don't create a
2434 DT_TEXTREL entry because of .rel.plt. From Martin Pirker
2435 <pirker@eiunix.tuwien.ac.at>.
2436
83f4323e
MM
2437Thu Jan 11 17:06:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2438
2439 * section.c (SEC_{EXCLUDE,SORT_ENTRIES}): New section flags for
2440 PowerPC V.4 and eabi.
2441 * bfd-in2.h: Regenerate.
2442 * libfd.h: Regenerate.
2443
2444 * elfxx-target.h (TARGET_{BIG,LITTLE}_SYM): Add new flags.
2445
2446 * elf32-ppc.c (ppc_elf_section_from_shdr): Support SHT_ORDERED
2447 section type and SHF_EXCLUDE section flag, turning them into the
2448 appropriate bfd section flag.
2449
a0271667
ILT
2450Thu Jan 11 11:23:30 1996 Ian Lance Taylor <ian@cygnus.com>
2451
c9746fb6
ILT
2452 * xcofflink.c (xcoff_link_add_symbols): Create the special
2453 sections if we see a DYNAMIC object, in case that is the only
2454 XCOFF input object we see.
2455
5b3b9ff6
ILT
2456 * elf32-mips.c: Extensive changes for a start at dynamic linking
2457 support, from Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>.
2458
2459 * elf-bfd.h (struct elf_backend_data): Add type_change_ok field.
2460 (struct elf_backend_data): Remove
2461 elf_backend_create_program_headers field. Add
2462 elf_backend_additional_program_headers and
2463 elf_backend_modify_segment_map fields.
2464 * elfxx-target.h (elf_backend_type_change_ok): Define if not
2465 defined.
2466 (elf_backend_additional_program_headers): Likewise.
2467 (elf_backend_modify_segment_map): Likewise.
2468 (elf_backend_create_program_headers): Don't define.
2469 (elfNN_bed): Change to account for field changes.
2470 * elf.c (assign_file_positions_for_segments): Call new
2471 modify_segment_map backend function. Don't call old
2472 create_program_headers backend function.
2473 (get_program_header_size): Call additional_program_headers rather
2474 than create_program_headers.
2475 * elflink.h (elf_link_add_object_symbols): Initialize
2476 type_change_ok from new backend field.
2477 (elf_link_output_extsym): Don't warn if _rld_new_interface is
2478 defined.
2479 (elf_reloc_link_order): Treat a reloc against a defined symbol as
2480 a reloc against the appropriate section.
2481
761f377f
ILT
2482 * elf-bfd.h (struct bfd_elf_section_data): Add tdata field.
2483 (struct elf_obj_tdata): Rename ppc_flags_init field to flags_init.
2484 (elf_flags_init): Rename from elf_ppc_flags_init.
2485 * elf32-ppc.c (ppc_elf_set_private_flags): Use elf_flags_init, not
2486 elf_ppc_flags_init.
2487 (ppc_elf_copy_private_bfd_data): Likewise.
2488 (ppc_elf_merge_private_bfd_data): Likewise.
2489
a0271667
ILT
2490 * elf32-m68k.c (howto_table): Change src_mask to 0 for all
2491 relocation entries.
2492
64d5f5d0
ILT
2493Tue Jan 9 15:22:53 1996 David Mosberger-Tang <davidm@azstarnet.com>
2494
2495 * coff-alpha.c (alpha_relocate_section): During final link, allow
2496 output .lita section to be bigger than 64k by adjusting gp value
2497 on a per-input section basis.
2498 * libecoff.h (struct ecoff_tdata): Add issued_multiple_gp_warning
2499 field.
2500 (struct ecoff_section_tdata): Add gp field.
2501
c40d9c77
ILT
2502Tue Jan 9 12:00:36 1996 Ian Lance Taylor <ian@cygnus.com>
2503
64d5f5d0
ILT
2504 Handle Alpha ECOFF changes in OSF/1 3.2.
2505 * libecoff.h (struct ecoff_backend_data): Add get_elt_at_filepos
2506 field.
2507 * coff-alpha.c: Include "aout/ar.h".
2508 (alpha_ecoff_get_relocated_section_contents): Don't require an
2509 ALPHA_R_IGNORE reloc after an ALPHA_R_GPDISP reloc, since OSF/1
2510 3.2 doesn't generate one.
2511 (alpha_relocate_section): Likewise.
2512 (alpha_ecoff_slurp_armap): Define.
2513 (alpha_ecoff_slurp_extended_name_table): Define.
2514 (alpha_ecoff_construct_extended_name_table): Define.
2515 (alpha_ecoff_truncate_arname): Define.
2516 (alpha_ecoff_write_armap): Define.
2517 (alpha_ecoff_generic_stat_arch_elt): Define.
2518 (alpha_ecoff_update_armap_timestamp): Define.
2519 (ARFZMAG): Define.
2520 (alpha_ecoff_read_ar_hdr): New static function.
2521 (alpha_ecoff_get_elt_at_filepos): New static function.
2522 (alpha_ecoff_openr_next_archived_file): New static function.
2523 (alpha_ecoff_get_elt_at_index): New static function.
2524 (alpha_ecoff_backend_data): Initialize get_elt_at_filepos field.
2525 (ecoffalpha_little_vec): Change BFD_JUMP_TABLE_ARCHIVE from
2526 _bfd_ecoff to alpha_ecoff.
2527 * ecoff.c (ecoff_link_add_archive_symbols): Use get_elt_at_filepos
2528 field from backend structure, rather than always calling
2529 _bfd_get_elt_at_filepos.
2530 * coff-mips.c (mips_ecoff_backend_data): Initialize
2531 get_elt_at_filepos field.
2532 * archive.c (_bfd_generic_read_ar_hdr_mag): New function, copied
2533 from _bfd_generic_read_ar_hdr with minor changes.
2534 (_bfd_generic_read_ar_hdr): Use _bfd_generic_read_ar_hdr_mag.
2535 * libbfd-in.h (_bfd_generic_read_ar_hdr_mag): Declare.
2536 * libbfd.h: Rebuild.
2537
2538 * bfd-in.h (BFD_IN_MEMORY): Define.
2539 * libbfd-in.h (struct bfd_in_memory): Define.
2540 * libbfd.c (bfd_read): Handle BFD_IN_MEMORY flag.
2541 (bfd_get_file_window): Don't try to map a BFD_IN_MEMORY file.
2542 (bfd_write, bfd_stat): Abort if BFD_IN_MEMORY is set.
2543 (bfd_tell, bfd_flush, bfd_seek): Handle BFD_IN_MEMORY flag.
2544 * bfd.c (struct _bfd): Change iostream field from char * to PTR.
2545 (bfd_get_size): Handle BFD_IN_MEMORY flag.
2546 * cache.c (bfd_cache_close): Ignore BFD_IN_MEMORY files.
2547 (bfd_open_file): Cast to PTR, not char *, when setting iostream.
2548 (bfd_cache_lookup_worker): Abort if BFD_IN_MEMORY is set.
2549 * opncls.c (bfd_fdopenr): Cast to PTR, not char *, when setting
2550 iostream.
2551 (bfd_openstreamr): Likewise.
2552 * aoutx.h (NAME(aout,some_aout_object_p)): Only fstat iostream if
2553 BFD_IN_MEMORY is not set.
2554 * riscix.c (riscix_some_aout_object_p): Likewise.
2555 * bfd-in2.h, libbfd.h: Rebuild.
2556
2557 * targets.c (bfd_target): Add _bfd_get_elt_at_index field.
2558 (BFD_JUMP_TABLE_ARCHIVE): Add _get_elt_at_index.
2559 (bfd_get_elt_at_index): Define.
2560 * archive.c (_bfd_generic_get_elt_at_index): Rename from
2561 bfd_get_elt_at_index. Change index parameter from int to
2562 symindex.
2563 * libbfd-in.h (_bfd_generic_get_elt_at_index): Declare.
2564 (_bfd_noarchive_get_elt_at_index): Define.
2565 (_bfd_archive_bsd_get_elt_at_index): Define.
2566 (_bfd_archive_coff_get_elt_at_index): Define.
2567 * bfd-in2.h, libbfd.h: Rebuild.
2568 * aout-target.h (MY_get_elt_at_index): Define if not defined.
2569 * coff-rs6000.c (xcoff_get_elt_at_index): Define.
2570 * ieee.c (ieee_get_elt_at_index): Define.
2571 * libecoff.h (_bfd_ecoff_get_elt_at_index): Define.
2572 * oasys.c (oasys_get_elt_at_index): Define.
2573 * som.c (som_get_elt_at_index): Define.
2574
c40d9c77
ILT
2575 * ecoff.c (_bfd_ecoff_find_nearest_line): Don't restrict line
2576 numbers to the .text section.
2577
efa77952
ILT
2578Mon Jan 8 17:00:57 1996 Ian Lance Taylor <ian@cygnus.com>
2579
2580 * ieee.c (ieee_write_debug_part): Change return type to boolean.
2581 If there is a SEC_DEBUGGING section, get the contents of the debug
2582 information part from it.
2583 (ieee_set_section_contents): Store the contents of a SEC_DEBUGGING
2584 section in memory.
2585 (ieee_write_object_contents): Check ieee_write_debug_part return.
2586
767f22d5
FF
2587Thu Jan 4 17:12:37 1996 Fred Fish <fnf@cygnus.com>
2588
2589 * config.bfd (i[345]86-*-freebsd*): Add target.
2590 * configure.in (i386freebsd_vec): Add vec.
2591 * configure: Regenerate.
2592 * Makefile.in (BFD32_BACKENDS): Add i386freebsd.o.
2593 (BFD32_BACKENDS_CFILES): Add i386freebsd.c.
2594 Rebuild dependencies..
2595 * freebsd.h: New file.
2596 * i386freebsd.c: New file.
2597 * targets.c (i386freebsd_vec): Declare.
2598 (bfd_target_vector): Add i386freebsd_vec.
2599 * i386linux.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
2600 * i386netbsd.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
2601
f8254a3c
ILT
2602Thu Jan 4 16:27:46 1996 Ian Lance Taylor <ian@cygnus.com>
2603
2604 * ieee.c (ieee_slurp_debug): New static function.
2605 (ieee_object_p): Call it.
2606 (ieee_slurp_section_data): Skip debugging sections.
2607 (ieee_get_reloc_upper_bound): Likewise.
2608 (ieee_get_section_contents): Likewise.
2609 (ieee_canonicalize_reloc): Likewise.
2610 (ieee_write_section_part): Likewise.
2611 (ieee_write_debug_part): Likewise.
2612 (ieee_write_data_part): Likewise.
2613 (init_for_output): Likewise.
2614
07a159db
MM
2615Wed Jan 3 19:42:47 1996 Michael Meissner <meissner@wogglebug.tiac.net>
2616
2617 * elf32-ppc.c (ppc_elf_relocate_section): Make @GOT relocations
2618 work.
2619 (ppc_elf_howto_raw): Just use bfd_elf_generic_reloc for all howto
2620 relocs, since ppc_elf_relocate_section handles the linker case.
2621 (ppc_elf_{addr16_ha,got16,toc16,brtaken}_reloc): Delete, no longer
2622 used.
2623 (ppc_elf_{addr16_ha,got16,toc16,brtaken}_inner): Merge these into
2624 ppc_elf_relocate_section since that is now the only caller.
2625 (ppc_elf_relocate_section): Ditto.
2626
d812945a
ILT
2627Wed Jan 3 15:11:30 1996 Ian Lance Taylor <ian@cygnus.com>
2628
2629 * coffcode.h (coff_write_object_contents): If we don't know the
2630 section of the entry point for an XCOFF executable, always set the
2631 entry address to -1.
2632
3a56d0b4
MM
2633Tue Jan 2 14:17:15 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2634
2635 * elf.c (bfd_section_from_shdr): Add support for note sections.
2636
c4406e50
ILT
2637Tue Jan 2 13:10:25 1996 Ian Lance Taylor <ian@cygnus.com>
2638
d812945a
ILT
2639 * bfd-in.h (struct _symbol_info): Add stab_type field.
2640 * bfd-in2.h: Rebuild.
2641 * aoutx.h (NAME(aout,get_symbol_info)): Set stab_type.
2642
c4406e50
ILT
2643 * elf32-ppc.c: Remove trailing newline from calls to
2644 _bfd_error_handler.
2645 (ppc_elf_merge_private_bfd_data): Only warn about endianness
2646 difference if target endianness is known.
2647
08556813
MM
2648Thu Dec 21 12:43:49 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2649
2650 * elf32-ppc.c (ppc_elf_howto_raw): Add a phony reloc to handle the
2651 old style TOC16 references without using R_PPC_GOT.
2652 (ppc_reloc_type): Ditto.
2653 (ppc_elf_reloc_type_lookup): Add support for TOC16.
2654 (ppc_elf_toc16_inner): Renamed from ppc_elf_got16_inner.
2655 (ppc_elf_toc16_reloc): Renamed from ppc_elf_toc16_reloc.
2656 (ppc_elf_got16_{inner,reloc}): Stubs for real GOT support.
2657 (ppc_elf_check_relocs): New function for GOT/PLT support that is
2658 work in progress.
2659 (ppc_elf_adjust_dynamic_symbol): Ditto.
2660 (ppc_elf_adjust_dynindx): Ditto.
2661 (ppc_elf_size_dynamic_sections): Ditto.
2662 (ppc_elf_finish_dynamic_symbol): Ditto.
2663 (ppc_elf_finish_dynamic_sections): Ditto.
2664 (ELF_DYNAMIC_INTERPRETER): Define.
2665
86587dd4
KR
2666Wed Dec 20 19:14:18 1995 Ken Raeburn <raeburn@cygnus.com>
2667
2668 * elf.c (copy_private_bfd_data): When attaching sections to
2669 segments ignore sections that won't be allocated. Patch from
2670 Andreas Schwab.
2671
bf7f243f
KR
2672Tue Dec 19 20:01:43 1995 Ken Raeburn <raeburn@cygnus.com>
2673
2674 * config.bfd: Match on m68k-cbm-* only if OS doesn't match
2675 anything else.
2676
d9518e2e
ILT
2677Tue Dec 19 16:38:59 1995 Ian Lance Taylor <ian@cygnus.com>
2678
2679 * coff-i960.c (CALC_ADDEND): Define.
2680 (coff_i960_relocate_section): Add the input section VMA to the
2681 addend for PC relative relocs.
2682
2683Sun Dec 17 20:11:55 1995 Kim Knuttila <krk@cygnus.com>
2684
2685 * peicode.h (pe_print_pdata): Must test the entire entry for zero
2686 to correctly terminate.
2687
010a405a
ILT
2688Fri Dec 15 12:05:57 1995 Ian Lance Taylor <ian@cygnus.com>
2689
dc092b6b
ILT
2690 * targets.c (enum bfd_endian): Define.
2691 (bfd_target): Rename byteorder_big_p to byteorder, and change it
2692 from boolean to enum bfd_endian. Change header_byteorder_big_p
2693 correspondingly.
2694 * bfd-in.h (bfd_big_endian, bfd_little_endian): New macros.
2695 (bfd_header_big_endian, bfd_header_little_endian): New macros.
2696 * bfd-in2.h: Rebuild.
2697 * All targets: Change initialization of byteorder and
2698 header_byteorder to use enum bfd_endian values rather than
2699 booleans.
2700 * All files: Change all references to byteorder_big_p and
2701 header_byteorder_big_p to use new bfd_*_endian macros.
2702
010a405a
ILT
2703 * coffgen.c (make_a_section_from_file): Set lma to s_paddr, not
2704 s_vaddr.
2705 * coffcode.h (coff_write_object_contents): Set s_paddr to lma, not
2706 vma.
2707 * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
2708
fcb43906
SC
2709Fri Dec 15 07:32:09 1995 steve chamberlain <sac@slash.cygnus.com>
2710
2711 * pe[i]-i386.c (TARGET_UNDERSCORE): Define to '_'.
2712
0d709d31
ILT
2713Thu Dec 14 13:45:37 1995 Ian Lance Taylor <ian@cygnus.com>
2714
14578105
ILT
2715 * ieee.c: Lots of minor cleanups. Make many functions return
2716 errors rather than calling abort. Also:
2717 (ieee_write_twobyte): Remove; change callers to call existing
2718 ieee_write_2bytes function.
2719 (ieee_write_expression): Don't output the section twice when
2720 outputting a local symbol. Don't emit an extraneous zero if there
2721 is only one term.
2722 (ieee_slurp_sections): Set the lma as well as the vma.
2723 (ieee_archive_p): Use bfd_alloc_grow rather than an obstack.
2724
0d709d31
ILT
2725 * ihex.c (ihex_set_arch_mach): Don't accept any architecture, just
2726 a recognized one or bfd_arch_unknown.
2727 (ihex_get_symtab_upper_bound): Define as bfd_0l, to permit objcopy
2728 to succeed.
2729 (ihex_get_symtab): Likewise.
2730
14dc2f77
ILT
2731Wed Dec 13 15:44:06 1995 Ian Lance Taylor <ian@cygnus.com>
2732
2733 * aoutx.h: Include <ctype.h>.
2734 (struct aout_link_includes_table): Define.
2735 (struct aout_link_includes_totals): Define.
2736 (struct aout_link_includes_entry): Define.
2737 (aout_link_includes_lookup): Define macro.
2738 (struct aout_final_link_info): Add includes field.
2739 (aout_link_includes_newfunc): New static function.
2740 (NAME(aout,final_link)): Initialize includes hash table.
2741 (aout_link_write_symbols): Eliminate duplicate N_BINCL entries.
2742
480ccad5
SS
2743Wed Dec 13 10:52:14 1995 Stan Shebs <shebs@andros.cygnus.com>
2744
2745 * mpw-config.in: Match on mips-*-* instead of mips-idt-ecoff.
2746
3920d9c9
KK
2747Wed Dec 13 11:07:45 1995 Kim Knuttila <krk@cygnus.com>
2748
2749 * coff-ppc.c (coff_ppc_relocate_section): removed debugging code.
2750
207345f2
KK
2751Tue Dec 12 17:42:06 1995 Kim Knuttila <krk@cygnus.com>
2752
2753 * peicode.h (pe_print_reloc): New function to dump the .reloc section.
2754 (pe_print_private_bfd_data): call pe_print_reloc.
2755 * coffcode.h (coff_set_alignment_hook): .reloc section alignment.
2756 * coff-ppc.c (in_reloc_p): Added missing non-eligible relocs. Spiffed
2757 up some debugging as well.
2758
273c019e
ILT
2759Tue Dec 12 11:34:23 1995 Ian Lance Taylor <ian@cygnus.com>
2760
2761 * config.bfd: Handle sparc-*-elf*. From Ronald F. Guilmette
2762 <rfg@monkeys.com>.
2763
010d9f2d
ILT
2764Fri Dec 8 17:47:07 1995 Ian Lance Taylor <ian@cygnus.com>
2765
2766 * elflink.h (elf_link_add_object_symbols): Set section_count to 0
2767 when setting sections to NULL.
2768
4a4a66bd
ILT
2769Wed Dec 6 17:05:37 1995 Ian Lance Taylor <ian@cygnus.com>
2770
2771 * xcofflink.c (struct xcoff_loader_info): Add export_defineds
2772 field.
2773 (bfd_xcoff_size_dynamic_sections): Add export_defineds parameter.
2774 (xcoff_build_ldsyms): If export_defineds is set, set XCOFF_EXPORT
2775 for all symbols.
2776 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
2777 * bfd-in2.h: Rebuild.
2778
545bf026
KK
2779Mon Dec 4 16:40:47 1995 Kim Knuttila <krk@cygnus.com>
2780
2781 * coffcode.h (coff_set_alignment_hook): Removed some debugging printf's
2782
1f4ae0d6
ILT
2783Mon Dec 4 11:25:39 1995 Ian Lance Taylor <ian@cygnus.com>
2784
55cac920
ILT
2785 * ihex.c (ihex_scan): Handle record types 4 and 5.
2786 (ihex_object_p): Permit types 4 and 5.
2787 (ihex_set_section_contents): Remove check for out of range
2788 addresses.
2789 (ihex_write_object_contents): Generate types 4 and 5.
2790
1f4ae0d6
ILT
2791 * elflink.h (elf_link_output_extsym): Just ignore warning and
2792 indirect references to symbols which don't really exist.
2793
53d45489
KK
2794Sun Dec 3 19:00:27 1995 Kim Knuttila <krk@cygnus.com>
2795
2796 * peicode.h (pe_print_idata): Minor format fixes
2797 (pe_print_edata): New function. Under private printing, this formats
2798 the edata section of a PE file.
2799 (pe_print_private_bfd_data): Added call to pe_print_edata.
2800
361e8876
DE
2801Sun Dec 3 16:46:54 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
2802
2803 * aout-arm.c (MY_swap_std_reloc_out): Use KEEPIT to get the symbol
2804 index, don't call stoi.
2805
58142f10
ILT
2806Fri Dec 1 14:46:51 1995 Ian Lance Taylor <ian@cygnus.com>
2807
ffd15489
ILT
2808 * srec.c (srec_scan): Set lma as well as vma.
2809
2810 * ihex.c: New file; support for Intel Hex format.
2811 * targets.c (enum bfd_flavour): Add bfd_target_ihex_flavour.
2812 (ihex_vec): Declare.
2813 (bfd_target_vector): Always include ihex_vec.
2814 * bfd.c (struct _bfd): Add ihex_data field to tdata union.
2815 * Makefile.in: Rebuild dependencies.
2816 (BFD_LIBS): Add ihex.o
2817 (BFD_LIBS_CFILES): Add ihex.c.
2818 * bfd-in2.h: Rebuild.
2819
ae0a6bea
ILT
2820 * elf.c (assign_file_positions_for_segments): Sort the sections in
2821 each segment.
2822 (get_program_header_size): Return the right size if segment_map is
2823 not NULL.
2824 (copy_private_bfd_data): Don't bother to sort the sections.
2825
2826 * bfd.c (bfd_record_phdr): New function.
2827 * bfd-in.h (bfd_record_phdr): Declare.
2828 * bfd_in2.h: Rebuild.
2829
ce0ee4bf
ILT
2830 * elf32-sparc.c (elf32_sparc_relocate_section): Remove bogus
2831 BFD_ASSERT.
2832
58142f10
ILT
2833 * libbfd.c (bfd_malloc, bfd_realloc): New functions.
2834 (bfd_zmalloc): Return PTR, not char *. Take size_t, not
2835 bfd_size_type.
2836 * libbfd-in.h (bfd_malloc, bfd_realloc): Declare.
2837 (bfd_zmalloc): Change declaration.
2838 * libbfd.h: Rebuild.
2839 * Many files: Use bfd_malloc and bfd_realloc rather than malloc
2840 and realloc. Don't set bfd_error_no_memory if they fail.
2841
59066248
KK
2842Thu Nov 30 19:32:26 1995 Kim Knuttila <krk@cygnus.com>
2843
2844 * coff-ppc.c: Added macros to tidy up toc cell treatment. Numerous
2845 uses as well. Added a new howto to deal with TOCREL16 relocs that
2846 are TOCDEFN as well.
2847 (coff_ppc_relocate_section): Expanded treatment of ADDR32NB relocs
2848 to handle RVA relocs from dlltool.
2849 (ppc_coff_rtype2howto): TOCDEFN reloc addition.
2850 (coff_ppc_rtype_to_howto): TOCDEFN reloc addition.
2851 (ppc_coff_reloc_type_lookup): TOCDEFN reloc addition.
2852
2853 * coffcode.h (coff_set_alignment_hook): check idata$X sections
2854 to get the right section alignment.
2855
6933148a
ILT
2856Thu Nov 30 16:48:18 1995 Ian Lance Taylor <ian@cygnus.com>
2857
2858 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
2859 p_paddr if p_paddr is zero.
2860 (make_mapping): Set includes_filehdr and includes_phdrs for first
2861 PT_LOAD segment.
2862 (map_sections_to_segments): Set includes_phdrs for PT_PHDR
2863 segment.
2864 (assign_file_positions_for_segments): Handle includes_filehdr and
2865 includes_phdrs. Remove special handling of PT_PHDR and first
2866 PT_LOAD segments.
2867 (copy_private_bfd_data): Set includes_filehdr and includes_phdr
2868 when appropriate. Remove special handling of PT_PHDR segment.
2869 Use a more complex condition for when a section is included in a
2870 segment to handle Solaris linker oddities.
2871
f62fed1c
ILT
2872Thu Nov 30 11:17:33 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
2873
2874 * coff-m88k.c (howto_table): Reformatted for easier reading;
2875 special_function now points to new function m88k_special_reloc.
2876 (howto_hvrt16): Function previously used for handling HVRT16 relocs
2877 removed.
2878 (rtype2howto): Do not add reloc's r_offset to the addend, this will
2879 be done correctly by m88k_special_reloc.
2880 (reloc_processing): New function to be used by RELOC_PROCESSING.
2881 (RELOC_PROCESSING): Define to call reloc_processing.
2882
64ecde46
ILT
2883Wed Nov 29 12:42:36 1995 Ian Lance Taylor <ian@cygnus.com>
2884
b00c57ec
ILT
2885 * peicode.h (pe_print_idata): Call malloc rather than xmalloc.
2886 (pe_print_pdata): Likewise.
2887
a9713b91
ILT
2888 * opncls.c (bfd_alloc_by_size_t): Set bfd_error_no_memory if
2889 obstack_alloc fails.
2890 (bfd_alloc_finish): Set bfd_error_no_memory if obstack_finish
2891 fails.
2892 * libbfd.c (bfd_zmalloc): Set bfd_error_no_memory if malloc fails.
2893 * Many files: don't set bfd_error_no_memory if one of the above
2894 routines fails.
2895
3dbf33ee
ILT
2896 * elf.c (assign_file_positions_for_segments): Don't adjust p_paddr
2897 if p_paddr_valid is set.
2898 (copy_private_bfd_data): New static function.
2899 (_bfd_elf_copy_private_section_data): Call copy_private_bfd_data.
2900
44ef8897
ILT
2901 * elf.c (assign_file_positions_for_segments): Fix case where extra
2902 program headers were allocated.
2903
27fb8f29
ILT
2904 * elf.c (_bfd_elf_print_private_bfd_data): New function.
2905 * elf-bfd.h (_bfd_elf_print_private_bfd_data): Declare.
2906 * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define to
2907 _bfd_elf_print_private_bfd_data.
2908
64ecde46
ILT
2909 * coff-alpha.c (alpha_ecoff_swap_reloc_in): Don't abort if
2910 r_symndx is RELOC_SECTION_NONE for an ALPHA_R_IGNORE reloc.
2911 Change a RELOC_SECTION_LITA symndx to RELOC_SECTION_ABS.
2912 (alpha_ecoff_swap_reloc_out): Change RELOC_SECTION_ABS to
2913 RELOC_SECTION_LITA for ALPHA_R_IGNORE.
2914 (alpha_adjust_reloc_out): For ALPHA_R_IGNORE, don't change
2915 RELOC_SECTION_ABS to RELOC_SECTION_NONE.
2916
fd0198f0
ILT
2917Tue Nov 28 16:59:50 1995 Ian Lance Taylor <ian@cygnus.com>
2918
2919 * elf-bfd.h (struct elf_obj_tdata): Add segment_map field.
2920 * elf.c (make_mapping): New static function.
2921 (map_sections_to_segments): New static function.
2922 (elf_sort_sections): New static function.
2923 (assign_file_positions_for_segments): New static function.
2924 (map_program_segments): Remove.
2925 (get_program_header_size): Remove sorted_hdrs, count, and
2926 maxpagesize parameters. Simplify.
2927 (assign_file_positions_except_relocs): When generating an
2928 executable, use assign_file_positions_for_segments.
2929 (elf_sort_hdrs): Remove.
2930 (_bfd_elf_sizeof_headers): Remove eliminated parameters from call
2931 to get_program_header_size.
2932
3b3f7625
ILT
2933Mon Nov 27 12:27:46 1995 Ian Lance Taylor <ian@cygnus.com>
2934
1ff0461b
ILT
2935 * hp300hpux.c (MY(callback)): Set lma as well as vma.
2936
80c8485c
ILT
2937 * configure, config.in: Regenerate with autoconf 2.7.
2938
3b3f7625
ILT
2939 * elf32-i386.c (elf_backend_plt_readonly): Set correctly, to 1.
2940 * elf32-sparc.c (elf_backend_plt_readonly): Set correctly, to 0.
2941
fa63d1ef
ILT
2942Wed Nov 22 12:02:09 1995 Ian Lance Taylor <ian@cygnus.com>
2943
a877f591
ILT
2944 * ecoff.c (_bfd_ecoff_new_section_hook): Handle .rconst section.
2945 (ecoff_sec_to_styp_flags): Likewise.
2946 (_bfd_ecoff_styp_to_sec_flags): Handle STYP_RCONST.
2947 (ecoff_set_symbol_info): Handle scRConst.
2948 (ecoff_slurp_reloc_table): Handle RELOC_SECTION_RCONST.
2949 (ecoff_compute_section_file_positions): Handle .rconst section.
2950 (_bfd_ecoff_write_object_contents): Likewise.
2951 (ecoff_link_check_archive_element): Handle scRConst.
2952 (ecoff_link_add_externals): Likewise.
2953 (ecoff_link_write_external): Handle .rconst section.
2954 (ecoff_reloc_link_order): Likewise.
2955 * ecofflink.c (bfd_ecoff_debug_accumulate): Handle scRConst.
2956 * coff-alpha.c (alpha_convert_external_reloc): Handle .rconst
2957 section.
2958 (alpha_relocate_section): Handle RELOC_SECTION_RCONST.
2959
fa63d1ef
ILT
2960 * sunos.c (sunos_scan_dynamic_symbol): Only set written if the
2961 DEF_DYNAMIC flag is set.
2962
25bada65
KR
2963Tue Nov 21 13:25:29 1995 Ken Raeburn <raeburn@cygnus.com>
2964
2965 * host-aout.c: If TRAD_HEADER is defined, include it.
2966
7938b4cb
ILT
2967Tue Nov 21 13:03:57 1995 Ian Lance Taylor <ian@cygnus.com>
2968
85e493f0
ILT
2969 * aclocal.m4 (AC_PROG_CC): Remove local definition.
2970 (BFD_BINARY_FOPEN): Require AC_CANONICAL_SYSTEM.
2971 (BFD_NEED_DECLARATION): New function.
2972 * configure.in: Use BFD_NEED_DECLARATION.
bd77213b
ILT
2973 * acconfig.h: Put NEED_DECLARATION_* in @TOP@ section.
2974 * configure, config.in: Rebuild with autoconf 2.6.
85e493f0 2975
83dcdc61
ILT
2976 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Clear
2977 special_sections before returning when called with a non XCOFF
2978 BFD.
2979
7938b4cb
ILT
2980 * coffgen.c (coff_renumber_symbols): Sort common symbols with
2981 global symbols.
2982
2983 * coffcode.h (coff_compute_section_file_positions): Only pad the
2984 previous section to force file alignment when creating an
2985 executable.
2986
b5403ad7
ILT
2987Mon Nov 20 14:54:09 1995 Ian Lance Taylor <ian@cygnus.com>
2988
a418e05d
ILT
2989 * coffcode.h (coff_compute_section_file_positions): If
2990 RS6000COFF_C, set up the .debug section.
2991
b5403ad7
ILT
2992 * xcofflink.c (xcoff_link_input_bfd): Adjust the TOC anchor value
2993 if it is not large enough to accomodate the entire TOC area with
2994 signed 16 bit offsets.
2995 (xcoff_write_global_symbol): Handle negative TOC offsets in global
2996 linkage code.
2997 (_bfd_ppc_xcoff_relocate_section): Adjust relocations against a
2998 TOC anchor to use the TOC value used in the output file.
2999
90a7abbc
ILT
3000Sat Nov 18 18:01:41 1995 Ian Lance Taylor <ian@cygnus.com>
3001
3002 * coffgen.c (_bfd_coff_get_external_symbols): Cast malloc return.
3003 (_bfd_coff_read_string_table): Likewise.
3004
177b1932
DE
3005Sat Nov 18 19:43:04 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
3006
3007 * pe-arm.c: Fix typos.
3008 * coff-arm.c: Likewise.
3009
3010Fri Nov 17 16:22:04 1995 Kim Knuttila <krk@cygnus.com>
3011
3012 * coff-ppc.c (list_ele): Added "cat"egory member.
3013 (record_toc): New category parameter (priv or pub).
3014 (ppc_record_toc_entry): Check to see if toc bounds exceeded.
3015 (ppc_process_before_allocation): Removed embrionic data-in-toc from
3016 the mainline. It addes extra toc cells in error.
3017 (ppc_coff_swap_sym_in_hook): Added some documentation.
3018 (dump_toc): Can now diagnose "virtual toc" chicanery.
3019
e34314c4
ILT
3020Fri Nov 17 10:41:25 1995 Philippe De Muyter <phdm@info.ucl.ac.be>
3021
3022 * elf-bfd.h (struct elf_link_hash_table): Change type of
3023 dynsymcount and bucketcount fields from size_t to bfd_size_type.
3024
73a68447
ILT
3025Fri Nov 17 10:02:58 1995 Ian Lance Taylor <ian@cygnus.com>
3026
535e9e29
ILT
3027 * coffcode.h (coff_pointerize_aux_hook): I960 version: don't
3028 pointerize C_LEAFSTAT or C_LEAFEXT entries.
3029
73a68447
ILT
3030 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Only create
3031 DT_INIT and DT_FINI entries if the _init or _fini symbol is
3032 defined or mentioned in a regular file.
3033
cd2b2402
KK
3034Thu Nov 16 15:16:42 1995 Kim Knuttila <krk@cygnus.com>
3035
3036 * coff-ppc.c (ppc_record_data_in_toc_entry): new function
3037 (coff_ppc_relocate_section): Handle TOCDEFN attribute
3038 (coff_ppc_relocate_section): Correct REL24 handling
3039 (ppc_process_before_allocation): Correct TOCDEFN handling
3040
3041 * peicode.h (dir_names): Added name descriptions
3042
b218076e
KR
3043Thu Nov 16 03:38:03 1995 Ken Raeburn <raeburn@cygnus.com>
3044
3045 * VERSION: Updated to cygnus-2.6.
3046
3047Wed Nov 15 19:30:07 1995 Ken Raeburn <raeburn@cygnus.com>
3048
3049 * targets.c (m68k4knetbsd_vec): Declare.
3050
e9f30616
ILT
3051Wed Nov 15 18:05:52 1995 Ian Lance Taylor <ian@cygnus.com>
3052
3053 * targets.c (bfd_target): Change type of second argument to
3054 _bfd_print_private_bfd_data from void * to PTR.
3055 * libbfd-in.h (_bfd_generic_bfd_print_private_bfd_data): Cast
3056 using PTR rather than void *.
3057 * bfd-in2, libbfd.h: Rebuild.
3058 * peicode.h (pe_print_private_bfd_data): Change vfile from void *
3059 to PTR.
3060 * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define as
3061 _bfd_generic_bfd_print_private_bfd_data rather than casting
3062 bfd_true.
3063
ae75c4a4
KR
3064Wed Nov 15 04:09:14 1995 Ken Raeburn <raeburn@cygnus.com>
3065
3066 * Makefile.in (.dep1): Fix stupid typo in last change. Remove any
3067 "DO NOT DELETE" lines or blank lines that mkdep writes on some
3068 systems.
3069 (BFD_LIBS_CFILES, ALL_MACHINES_CFILES, BFD32_BACKENDS_CFILES,
3070 BFD64_BACKENDS_CFILES): New variables.
3071 (CFILES): Use them.
3072
bebcd3db
ILT
3073Tue Nov 14 11:52:23 1995 Ian Lance Taylor <ian@cygnus.com>
3074
4b71e164
ILT
3075 * peicode.h (coff_swap_aouthdr_out): For PPC PE, start isize at 0,
3076 not at the file position of the first section.
3077 * coffcode.h (coff_compute_section_file_positions): Avoid using
3078 unportable #elif.
3079 (coff_write_object_contents): When generating a PPC PE executable
3080 with no symbols, round up the file size to a COFF_PAGE_SIZE
3081 boundary.
3082 * cofflink.c (_bfd_coff_final_link): If there are no symbols,
3083 don't write out a string table.
3084
631b10f4
ILT
3085 * elf.c (bfd_section_from_shdr): When using a different section
3086 header, pass the new one to _bfd_elf_make_section_from_shdr.
3087 (elf_fake_sections): Don't set sh_info and sh_entsize fields.
3088 (elf_map_symbols): Add section VMA to symbol value when comparing
3089 against 0.
3090 (_bfd_elf_compute_section_file_positions): Only build symbol table
3091 if there are some symbols. Set file offset of symtab and strtab
3092 sections.
3093 (assign_file_positions_except_relocs): Remove dosyms parameter.
3094 Change all callers. Never set file offset of symtab and strtab
3095 sections.
3096 (_bfd_elf_copy_private_section_data): New function.
3097 (MAP_ONESYMTAB, MAP_DYNSYMTAB, MAP_STRTAB, MAP_SHSTRTAB): Define.
3098 (_bfd_elf_copy_private_symbol_data): New function.
3099 (swap_out_syms): Check for special mapping of st_shndx created by
3100 copy_private_symbol_data.
3101 * elfxx-target.h: Use new copy routines.
3102 * elf-bfd.h (_bfd_elf_copy_private_symbol_data): Declare.
3103 (_bfd_elf_copy_private_section_data): Declare.
3104
3105 * config.bfd (sh-*-*): Set targ_defvec to shcoff_vec.
3106
3107 * coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE, handle
3108 C_NT_WEAK.
3109
bebcd3db
ILT
3110 * coff-sh.c (shlcoff_vec): Use _bfd_generic_archive_p, not
3111 _bfd_dummy_target, matching the recent change to archive
3112 recognition.
3113
7ad4ba81
ILT
3114Mon Nov 13 13:24:38 1995 Ian Lance Taylor <ian@cygnus.com>
3115
afa67334
ILT
3116 * libbfd.c (bfd_get_file_window): Use casts to avoid doing
3117 arithmetic on PTR types.
3118
f2bd8915
ILT
3119 * aout-target.h (MY(callback)): Set the lma of the sections.
3120
7ad4ba81
ILT
3121 * ecoff.c (ecoff_reloc_link_order): Turn a reloc against a defined
3122 symbol into a reloc against the section.
3123
93b6a3f8
KK
3124Mon Nov 13 07:31:35 1995 Kim Knuttila <krk@cygnus.com>
3125
3126 * coff-ppc.c (ppc_coff_link_hash_entry): added support for inline
3127 glue for the relocs: IMGLUE and IFGLUE.
3128 (record_toc): new function - tracks toc contents
3129 (ppc_mark_symbol_as_glue): new function - supports the IMGLUE reloc
3130 (coff_ppc_relocate_section): Added support and fixes for IMGLUE/IFGLUE
3131 (ppc_coff_rtype2howto): removed invalid IMGLUE hack
3132 (coff_ppc_rtype_to_howto): removed invalid IMGLUE hack
125d37c4 3133 (ppc_record_toc_entry): Removed a debug define (duh)
93b6a3f8
KK
3134
3135 * peicode.h (coff_swap_scnhdr_out): Fixed invalid strcmp for ".reldata"
3136 (pe_print_idata): New function - formats the idata section data
3137 (pe_print_pdata): New function - formats the pdata section data
3138 (pe_print_private_bfd_data): calls to above
3139
c769947b
SS
3140Sun Nov 12 12:23:24 1995 Stan Shebs <shebs@andros.cygnus.com>
3141
3142 * Makefile.in (bfd_libs_here, etc): Provide empty definitions.
3143 * coff-rs6000.c (rs6000coff_vec): Add conditional defines
3144 TARGET_SYM and TARGET_NAME for vector and BFD name.
3145 * coff-pmac.c (pmac_xcoff_vec): Remove.
3146 (TARGET_SYM, TARGET_NAME): Define.
3147 * coffcode.h (coff_set_arch_mach_hook) [POWERMAC]: Set the
3148 machine to 0, not all PowerMacs are 601s.
3149
3150Fri Nov 10 12:10:14 1995 Ian Lance Taylor <ian@cygnus.com>
3151
3152 * elfcode.h (elf_object_p): Read in any program headers.
3153 * elf.c (_bfd_elf_make_section_from_shdr): Adjust section lma
3154 based on the program headers, if any.
3155 (elf_fake_sections): Set sh_addr from the vma, not the lma.
3156 (map_program_segments): Set p_paddr of program headers based on
3157 the lma.
3158
ee174815
ILT
3159Thu Nov 9 13:01:31 1995 Ian Lance Taylor <ian@cygnus.com>
3160
839087b7
ILT
3161 * archive.c (bfd_generic_archive_p): Preserve tdata in case of
3162 failure.
3163
922530a6
ILT
3164 * aoutx.h (NAME(aout,final_link)): Report a reasonable error when
3165 trying to do a relocateable link with a non-a.out object file.
3166
3167 * archive.c (bfd_generic_archive_p): Check the first object file
3168 in an archive even if target_defaulted is set. If the object file
3169 has the wrong xvec, reject it.
3170
a1774c51
ILT
3171 * aoutx.h (NAME(aout,set_section_contents)): If a section can not
3172 be represented, report the name via _bfd_error_handler.
3173 (translate_to_native_sym_flags): Likewise.
3174 * elf32-mips.c (mips_elf_final_link): Likewise.
3175 * oasys.c (oasys_write_sections): Likewise.
3176
4a378b13
ILT
3177 * coffcode.h (coff_set_alignment_hook): Write RS6000COFF_C version
3178 which checks for STYP_OVRFLO sections.
3179 (coff_compute_section_file_positions): If RS6000COFF_C, handle
3180 reloc and lineno count overflows.
3181 (coff_write_object_contents): Call coff_count_linenumbers before
3182 coff_compute_section_file_positions. If RS6000COFF_C, handle
3183 reloc and lineno count overflows.
3184 * xcofflink.c (_bfd_xcoff_bfd_final_link): Count line numbers and
3185 relocs before dealing with .pad sections. Count overflow section
3186 headers when handling .pad sections.
3187
7906bf87
ILT
3188 * coffcode.h (coff_write_object_contents): Set a.out vstamp to 1
3189 if RS6000COFF_C.
3190
ee174815
ILT
3191 * xcofflink.c (XCOFF_DESCRIPTOR): Define.
3192 (struct xcoff_link_hash_table): Add descriptor_section and
3193 special_sections fields.
3194 (_bfd_xcoff_bfd_link_hash_table_create): Initialize new fields.
3195 (xcoff_link_add_symbols): Set linkage section alignment. Create
3196 descriptor section. Check for magic symbol names (_text, etc.),
3197 and record them in special_sections if found. Set
3198 XCOFF_DESCRIPTOR flag for a function descriptor, and set its
3199 descriptor field to point back to the function code symbol.
3200 (xcoff_sweep): Always mark the special descriptor_section.
3201 (bfd_xcoff_export_symbol): Check whether the symbol might be a
3202 function descriptor, and mark it if it is.
3203 (bfd_xcoff_size_dynamic_sections): Add new special_sections
3204 parameter, and fill it in. Allocate space for the descriptor
3205 section.
3206 (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR flag when defining
3207 global linkage code. If an undefined function descriptor is
3208 exported, arrange to define it. Warn about any other undefined
3209 exported symbol.
3210 (_bfd_xcoff_bfd_final_link): Write out the descriptor section.
3211 (xcoff_write_global_symbol): Create a function descriptor when
3212 necessary.
3213 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
3214 * bfd-in2.h: Rebuild.
3215
0e829f18
KK
3216Thu Nov 9 08:40:23 1995 Kim Knuttila <krk@cygnus.com>
3217
3218 * coff-ppc.c (ppc_coff_link_hash_entry): new types for hashing
3219 (ppc_coff_link_hash_table): new types for hashing
3220 (ppc_coff_link_hash_newfunc): hash entry constructor
3221 (ppc_coff_link_hash_table_init): hash table initializer
3222 (ppc_coff_link_hash_table_create): hash table constructor
3223 (ppc_record_toc_entry): changed references to hash table
3224 (coff_ppc_relocate_section): changed references to hash table
3225
3226 * libcoff-in.h (coff_link_hash_entry): removed toc_offset
3227 * libcoff.h: Rebuild
3228
3229 * cofflink.c (_bfd_coff_link_hash_newfunc): removed toc_offset init
3230 (coff_link_add_symbols): removed toc_offset init
3231
7ac84736
KR
3232Thu Nov 9 04:00:38 1995 Ken Raeburn <raeburn@cygnus.com>
3233
b27cc4bc
KR
3234 * Makefile.in (.dep1): Make sure the file mkdep is to write exists
3235 first.
3236
7ac84736
KR
3237 * configure.in: Added new option --with[out]-mmap. Set USE_MMAP
3238 if it is given and mmep is available.
3239 * acconfig.h: Undef USE_MMAP.
3240 * configure, config.in: Regenerated.
3241 * aoutx.h: If USE_MMAP is not defined, do all symbol and string
3242 table handling the old way.
3243 (aout_get_external_symbols): Don't complain if last byte of string
3244 table is nonzero.
3245 * libbfd.c [HAVE_MADVISE]: Include sys/types.h and sys/mman.h.
3246 (bfd_free_window) [! USE_MMAP]: Don't define.
3247 (bfd_get_file_window,
3248 _bfd_generic_get_section_contents_in_window) [! USE_MMAP]: Abort.
3249
1b3b0c03
ILT
3250Wed Nov 8 20:03:44 1995 Eric Freudenthal <freudenthal@nyu.edu>
3251
3252 * coff-a29k.c (SIGN_EXTEND_HWORD): Use ~0xffff rather than
3253 0xffff0000.
3254
092abcdf
ILT
3255Wed Nov 8 11:31:11 1995 Ian Lance Taylor <ian@cygnus.com>
3256
33698029
ILT
3257 * coff-a29k.c (a29k_reloc): Change handling of R_IREL reloc to be
3258 compatible with AMD generated COFF files. Try to support both AMD
3259 and GNU formats simultaneously.
3260 (coff_a29k_relocate_section): Likewise.
3261
0bb8ff19
ILT
3262 * libbfd.c (bfd_get_file_window): Change writable parameter from
3263 int to boolean; update all callers. Pass MAP_SHARED if not
3264 writable--it's required on Solaris. Cast fprintf argument to
3265 avoid warning.
3266 * bfd-in.h (bfd_get_file_window): Update declaration.
3267 * bfd-in2.h: Rebuild.
3268 * aoutx.h: Update calls to bfd_get_file_window.
3269
0634a431
ILT
3270 * xcofflink.c (XCOFF_DEF_DYNAMIC): Rename from XCOFF_REF_DYNAMIC.
3271 Change all uses.
3272 (xcoff_swap_ldhdr_in): New static function.
3273 (xcoff_swap_ldsym_in): New static function.
7812bf9c 3274 (xcoff_find_reloc): Handle the case of a single reloc correctly.
0634a431
ILT
3275 (xcoff_link_add_symbols): If we just created a descriptor, pass it
3276 to _bfd_generic_link_add_one_symbol, to save a hash lookup.
417acf22 3277 Handle XTY_ER/XMC_XO symbols correctly.
0634a431
ILT
3278 (xcoff_link_add_dynamic_symbols): Rewrite to read .loader symbols
3279 rather than normal symbol table.
417acf22
ILT
3280 (bfd_xcoff_import_symbol): It's not an error if the symbol is
3281 already defined with the same absolute value.
0634a431
ILT
3282 (xcoff_mark): When considering called symbols, check whether the
3283 descriptor is from a dynamic object, rather than the symbol
3284 itself.
3285 (xcoff_build_ldsyms): Likewise.
3286
092abcdf
ILT
3287 * libbfd.c (bfd_get_file_window): Change return type to boolean.
3288 Cast realloc and malloc return values. If malloc or realloc fail,
3289 set bfd_error_no_memory.
3290 * bfd-in.h (bfd_get_file_window): Change type to boolean.
3291 * bfd-in2.h: Rebuild.
3292
d6f41a7d
KK
3293Tue Nov 7 11:53:48 1995 Kim Knuttila <krk@cygnus.com>
3294
3295 * coff-ppc.c (ppc_record_toc_entry): new function.
3296 (in_reloc_p): changed return value.
3297 (coff_ppc_relocate_section): much rework.
3298 (ppc_allocate_toc_section): new function.
3299 (ppc_process_before_allocation): new function.
3300 (ppc_coff_swap_sym_in_hook): new function.
3301
3302 * cofflink.c (_bfd_coff_link_hash_newfunc): initialize toc_offset.
3303 (coff_link_add_symbols): initialize toc_offset.
3304
3305 * peicode.h (coff_swap_sym_in): Added coff_swap_sym_in_hook
3306 (coff_swap_aouthdr_out): Added more sections to the data
3307 dictionary for the pe file header. Also changed linker version
3308 number on the ppc side.
3309 (dir_names): small improvements to the dictionary printing.
3310 (pe_mkobject_hook): save the file level flags.
3311
3312 * libcoff-in.h (coff_link_hash_entry): added toc_offset field
3313 (pe_tdata): added real_flags field
3314 (coff_tdata): added local_toc_sym_map and access macro
3315
3316 * libcoff.h (coff_link_hash_entry): added toc_offset field
3317 (pe_tdata): added real_flags field
3318 (coff_tdata): added local_toc_sym_map and access macro
3319
3320 * coffcode.h (coff_set_alignment_hook): added hook for PE.
3321 (coff_mkobject): init for local_toc_sym_map
3322 (coff_write_object_contents): set the internal_a.magic to
3323 IMAGE_NT_OPTIONAL_HDR_MAGIC which appears to be what other
3324 ppc compilers use.
3325
6bc200f2
ILT
3326Tue Nov 7 13:48:58 1995 Ian Lance Taylor <ian@cygnus.com>
3327
c0971298
ILT
3328 * ecofflink.c (_bfd_ecoff_locate_line): Keep looking through stabs
3329 entries until both the line number address and the function name
3330 address are too large.
3331
6a468850
ILT
3332 * configure.in: Call AC_CHECK_PROG to find and cache AR.
3333 * configure: Rebuilt.
3334
6bc200f2
ILT
3335 * aclocal.m4 (BFD_CC_FOR_BUILD): Don't define CC_FOR_BUILD if it
3336 is defined in the environment.
3337
c44bf94c
JL
3338Tue Nov 7 10:57:24 1995 Jeffrey A Law (law@cygnus.com)
3339
3340 * som.c (som_get_section_contents_in_window): Define to use
3341 generic version.
3342
cf587de8
ILT
3343Mon Nov 6 17:13:15 1995 Harry Dolan <dolan@ssd.intel.com>
3344
3345 * coff-i860.c: New file, based on coff-i386.c.
3346 * cpu-i860.c: New file, based on cpu-i386.c.
3347 * hosts/i860mach3.h: New file, based on hosts/i386mach3.h.
3348 * config.bfd (i860-*-mach3*, i860-*-osf1*, i860-*-coff*): New
3349 targets, using i860coff_vec.
3350 * configure.in (i860-*-mach3*, i860-*-osf1*): New hosts, using
3351 trad-core.o and hosts/i860mach3.h.
3352 (i860coff_vec): Use coff-i860.o and cofflink.o.
3353 * configure: Rebuild.
3354 * Makefile.in: Rebuild dependencies.
3355 (ALL_MACHINES): Add cpu-i860.o.
3356 (BFD32_BACKENDS): Add coff-i860.o.
3357 (CFILES): Add cpu-i860.c and coff-i860.c.
3358 * targets.c (i860coff_vec): Declare.
3359 (bfd_target_vector): Add &i860coff_vec.
3360 * archures.c (bfd_i860_arch): Declare.
3361 (bfd_archures_list): Add &bfd_i860_arch.
3362 * coffcode.h (coff_set_arch_mach_hook): Handle I860 magic number.
3363 (coff_set_flags): Handle bfd_arch_i860.
3364 (coff_write_object_contents): Handle I860 a.out magic number.
3365
83c23fca
ILT
3366Mon Nov 6 14:34:07 1995 Ian Lance Taylor <ian@cygnus.com>
3367
3368 * xcofflink.c (xcoff_link_add_symbols): Set the alignment power of
3369 the created .tc section to 2.
3370 (xcoff_mark): Don't keep a .loader reloc for a call to an
3371 undefined symbol when creating a shared library.
3372 (xcoff_build_ldsyms): When creating a shared library, generate
3373 global linkage code for a call to an undefined symbol.
3374
5d9eb9c3
KR
3375Sun Nov 5 21:44:13 1995 Ken Raeburn <raeburn@cygnus.com>
3376
3377 * Makefile.in (CFILES): Rebuild list from BFD_LIBS, ALL_MACHINES,
3378 BFD32_BACKENDS, BFD64_BACKENDS.
3379 (.dep1): Put mkdep output in a separate file.
3380 Rebuilt dependencies.
3381
ffacb892
KR
3382 * ecoff.c (_bfd_ecoff_slurp_armap): Cast _bfd_read_ar_hdr return
3383 value.
3384
4fe6d901
KR
3385 Permit use of mmap when available:
3386
3387 * configure.in: Check for mmap, madvise, mprotect.
3388 * config.in, configure: Regenerated.
3389
3390 * libbfd.c (struct _bfd_window_internal): Define type.
3391 (bfd_init_window, bfd_free_window, bfd_get_file_window): New
3392 functions.
3393 (ok_to_map): New static variable for debugging.
3394 (_bfd_generic_get_section_contents_in_window): New function.
3395 * bfd-in.h (bfd_window_internal): Declare type.
3396 (bfd_window): Define type.
3397 (bfd_init_window, bfd_free_window, bfd_get_file_window): Declare.
3398 * libbfd-in.h (_bfd_generic_get_section_contents_in_window):
3399 Declare.
3400
3401 * libaout.h (struct aoutdata): Add two window fields.
3402 (obj_aout_sym_window, obj_aout_string_window): New macros.
3403 * aoutx.h (some_aout_object_p): Initialize windows.
3404 (aout_get_external_symbols): Get symbol data and strings in
3405 windows instead of explicitly allocated buffers.
3406 (slurp_symbol_table): Free window instead of memory.
3407 (bfd_free_cached_info): Release windows instead of freeing storage
3408 directly.
3409 (aout_link_free_symbols): Ditto.
3410
3411 * targets.c (bfd_target): Add new field for
3412 get_section_contents_in_window.
3413 (BFD_JUMP_TABLE_GENERIC): Updated.
3414 * aout-adobe.c, aout-target.h, binary.c, bout.c, coff-alpha.c,
3415 coff-mips.c, elfxx-target.h, i386msdos.c, i386os9k.c, ieee.c,
3416 libcoff-in.h, oasys.c, srec.c, tekhex.c, versados.c: Added new
3417 macros for get_section_contents_in_window field.
3418
d9e771e3
FF
3419Sat Nov 4 12:23:26 1995 Fred Fish <fnf@cygnus.com>
3420
3421 * core.c: Renamed to corefile.c
3422 * makefile.dos (OBJS): Change core.o to corefile.o
3423 * Makefile.in (CFILES, BFD_LIBS): Use corefile.c instead of core.c
3424
bf917766
SG
3425start-sanitize-gm
3426Sat Nov 4 10:16:54 1995 Stu Grossman (grossman@cygnus.com)
3427
3428 * config.bfd (mips*-*-magic*): Add bfd_elf32_bigmips_vec to
3429 targ_selvecs to allow debugging under Irix-5 native.
3430
3431end-sanitize-gm
583db7a8
ILT
3432Fri Nov 3 15:54:59 1995 Ian Lance Taylor <ian@cygnus.com>
3433
3434 * xcofflink.c (xcoff_link_add_symbols): Rename local variable sub
3435 to o. Clobber and restore the list of new csects around the call
3436 to _bfd_generic_link_add_one_symbol, in case it wants to report a
3437 linker error and the linker wants to read the symbol table. Reset
3438 the line number count of a real section even if it has no relocs.
3439 (_bfd_xcoff_bfd_final_link): If shared, set the DYNAMIC flag.
3440
3441 * coffgen.c (_bfd_coff_read_string_table): Warn if the string size
3442 is too small.
3443
68aed7db
ILT
3444Thu Nov 2 23:16:39 1995 Ian Lance Taylor <ian@cygnus.com>
3445
18a9609c
ILT
3446 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Don't warn about
3447 an undefined symbol in a shared link.
3448
68aed7db
ILT
3449 * linker.c (_bfd_generic_link_add_one_symbol): Correct type of
3450 oldtype from bfd_link_order_type to bfd_link_hash_type. From
3451 phdm@info.ucl.ac.be (Philippe De Muyter).
3452
7f82c7e1
ILT
3453Wed Nov 1 14:26:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
3454
3455 * coff-m88k.c (rtype2howto): New static function.
3456 (RTYPE2HOWTO): Use it rather than a macro definition.
3457
3458 * coffcode.h (coff_write_object_contents): set internal_a.magic
3459 to PAGEMAGICPEXECPAGED #if defined (M68) && !defined (LYNXOS).
3460
4c8b9746 3461 * configure.in: m68*-motorola-sysv* does not use ptrace-core.o;
7f82c7e1
ILT
3462 define TRAD_HEADER to new file hosts/delta68.h.
3463 m88*-motorola-sysv*, however, does use ptrace-core.o.
3464 * hosts/delta68.h: New file.
3465
3466 * ptrace-core.c (ptrace_unix_core_file_p): change bfd_zmalloc to
3467 bfd_zalloc; provide proper parm abfd to calls to bfd_zalloc.
3468
619c7730
KR
3469Wed Nov 1 13:51:54 1995 Ken Raeburn <raeburn@cygnus.com>
3470
3471 * i386linux.c (MY(vec)): Declare before use.
3472
73246ff8
ILT
3473Wed Nov 1 11:45:07 1995 Ian Lance Taylor <ian@cygnus.com>
3474
e8d6d5d0
ILT
3475 * reloc16.c (bfd_coff_reloc16_get_relocated_section_contents):
3476 Pass input_bfd, not in_bfd, to bfd_coff_reloc16_extra_cases.
3477
b2193cc5
ILT
3478 * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
3479 BFD is not of the right type.
3480 (bfd_elf_get_needed_list): Likewise.
3481 * i386linux.c (bfd_linux_size_dynamic_sections): Likewise.
3482 * sunos.c (bfd_sunos_get_needed_list): Likewise.
3483 * xcofflink.c (XCOFF_XVECP): Define.
3484 (bfd_xcoff_link_record_set): Don't do anything if the BFD is not
3485 of the right type.
3486 (bfd_xcoff_import_symbol): Likewise.
3487 (bfd_xcoff_export_symbol): Likewise.
3488 (bfd_xcoff_link_count_reloc): Likewise.
3489 (bfd_xcoff_record_link_assignment): Likewise.
3490 (bfd_xcoff_size_dynamic_sections): Likewise.
3491
baabeb74
ILT
3492 * sunos.c (sunos_scan_ext_relocs): Only check the reloc symbol
3493 table index against the number of symbols for a base relative
3494 reloc.
3495
73246ff8
ILT
3496 * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Change from macro to
3497 static function.
3498 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Set
3499 full_aouthdr flag here...
3500 (_bfd_xcoff_bfd_final_link): ...not here.
3501
6ab826bd
FF
3502Tue Oct 31 12:52:02 1995 Fred Fish <fnf@cygnus.com>
3503
3504 * libelf.h: Rename to elf-bfd.h to avoid conflict with
3505 systems that have a system <libelf.h>.
3506 * Makefile.in: Globally replace libelf.h with elf-bfd.h.
3507 * bfd.c, elf.c, elf32-arc.c, elf32-gen.c, elf32-hppa.c,
3508 elf32-hppa.h, elf32-i386.c, elf32-i860.c, elf32-m68k.c,
3509 elf32-m88k.c, elf32-mips.c, elf32-ppc.c, elf32-sparc.c,
3510 elf64-gen.c, elf64-sparc.c, elfcode.h, elflink.c,
3511 elfxx-target.h: Include elf-bfd.h rather than libelf.h.
3512 * elfxx-target.h: Change libelf.h reference to elf-bfd.h.
3513
999cc186
ILT
3514Tue Oct 31 15:30:07 1995 David Mosberger-Tang <davidm@azstarnet.com>
3515
0652d579
ILT
3516 * ecoff.c (ecoff_set_symbol_info): Add new parameter weak. If
3517 set, set BSF_WEAK in symbol. Change all callers.
3518 (ecoff_get_extr): Set weakext based on BSF_WEAK.
3519 (ecoff_link_add_externals): If weakext is set, pass BSF_WEAK to
3520 _bfd_generic_link_add_one_symbol.
3521 (ecoff_indirect_link_order): Check that the section tdata relocs
3522 are not NULL before using them.
3523
999cc186
ILT
3524 * configure.in (alpha*-*-linux*): Set COREFILE to trad-core.o and
3525 define TRAD_HEADER as hosts/alphalinux.h.
3526 * configure: Rebuild.
3527 * hosts/alphalinux.h: New file.
3528 * trad-core.c (trad_unix_core_file_p): Cast u.u_ar0 to bfd_vma,
3529 not int.
3530
e6080520
ILT
3531Tue Oct 31 12:34:11 1995 Ian Lance Taylor <ian@cygnus.com>
3532
2bd0aeb9
ILT
3533 * coffcode.h (coff_slurp_symbol_table): Accept C_BCOMM and
3534 C_ECOMM storage classes.
3535
e6080520
ILT
3536 * xcofflink.c (xcoff_mark_symbol): New static function, broken out
3537 of xcoff_mark.
3538 (xcoff_mark): Call xcoff_mark_symbol.
3539 (bfd_xcoff_export_symbol): Call xcoff_mark_symbol.
3540 (bfd_xcoff_link_count_reloc): Call xcoff_mark_symbol rather than
3541 doing it by hand.
3542 (xcoff_build_ldsyms): Build a .loader symbol for an export symbol.
3543
5fe14a9f
ILT
3544Mon Oct 30 14:53:48 1995 Ian Lance Taylor <ian@cygnus.com>
3545
f630a0a4
ILT
3546 * xcofflink.c (struct xcoff_final_link_info): Add new line_filepos
3547 field.
3548 (xcoff_find_reloc): New static function.
3549 (xcoff_link_add_symbols): Use it.
3550 (_bfd_xcoff_bfd_final_link): Set finfo.line_filepos.
3551 (xcoff_link_input_bfd): Handle C_BINCL and C_EINCL. Don't
3552 relocate the value of C_DECL.
3553
5fe14a9f
ILT
3554 * elf.c (elf_fake_sections): Remove bogus BFD_ASSERT.
3555
dff77ed7
SC
3556Sat Oct 28 01:25:34 1995 steve chamberlain <sac@slash.cygnus.com>
3557
3558 * cofflink.c (_bfd_coff_generic_relocate_section): Make
3559 callback decide what goes in .relocs.
3560 * pe[i]-i386.c (TARGET_UNDERSCORE): Define.
3561 * peicode.h (pe_mkobject_hook): Only copy aouthdr if
3562 there is one.
3563
697a8fe8
ILT
3564Sat Oct 28 01:51:02 1995 Ian Lance Taylor <ian@cygnus.com>
3565
3566 * xcofflink.c (xcoff_link_add_symbols): Handle csects in the
3567 absolute section.
3568
2d7de17d
ILT
3569Fri Oct 27 18:14:39 1995 Ian Lance Taylor <ian@cygnus.com>
3570
3571 * xcofflink.c: More improvements, mostly to fix handling of
3572 constructors and a few other special cases.
3573 * coff-rs6000.c (rs6000coff_vec): Set symbol_leading_char back to
3574 zero, reverting yesterday's change.
3575 * bfd-in.h (bfd_xcoff_link_record_set): Declare.
3576 (bfd_xcoff_link_count_reloc): Declare.
3577 (bfd_xcoff_record_link_assignment): Declare.
3578 * bfd-in2.h: Rebuild.
3579
f552f751
NH
3580Fri Oct 27 14:42:15 1995 Niklas Hallqvist <niklas@appli.se>
3581
4906b2a3 3582 * PORTING, aout-arm.c, aout-encap.c, aout-target.h,
f552f751
NH
3583 aoutx.h, gen-aout.c, host-aout.c, hp300bsd.c, i386aout.c
3584 i386bsd.c, i386dynix.c, i386linux.c, i386lynx.c, i386mach3.c,
3585 i386netbsd.c, m68klynx.c, m88kmach3.c, mipsbsd.c, newsos3.c,
3586 ns32knetbsd.c, pc532-mach.c, riscix.c, sparclynx.c, sparcnetbsd.c:
3587 Change PAGE_SIZE to TARGET_PAGE_SIZE.
3588
3589 * m68knetbsd.c: Ditto as well as add support for the m68k4k object
3590 format.
3591
3592 * netbsd.h: Double ditto (incl. m68k4k support). NetBSD's text
3593 segments includes the a.out header. See to that the magic number
3594 *always* is big-endian.
3595
3596 * config.bfd: Add m68*-hp*-netbsd* case. Cross-pollinate m68k and
3597 m68k4k NetBSD configurations.
3598
3599 * configure.in, configure: Separate i386 & mips NetBSD
3600 configurations from other BSD ones. Don't assume DEC is the only
3601 thing NetBSD/mips run on. Add {m68k,ns32k,sparc}-*-netbsd*
3602 configurations. Add support for m68k4k NetBSD object format.
3603
3604 * libaout.h: Added M_68K4K_NETBSD magic.
6fd1f40d
NH
3605
3606 * m68k4knetbsd.c: New file.
f552f751
NH
3607
3608 * hosts/{m68k,sparc}nbsd.h: Don't define HOST_BIG_ENDIAN_P.
3609
3610 * hosts/nbsd.h: Define HOST_BIG_ENDIAN_P according to
3611 <machine/endian.h>.
3612
6fd1f40d
NH
3613 * hosts/mipsnbsd.h: New file.
3614
d6d44ef9
SG
3615start-sanitize-gm
3616Fri Oct 27 09:41:51 1995 Stu Grossman (grossman@cygnus.com)
3617
3618 * config.bfd: Add config stuff for mips*-*-magic* to set
3619 targ_defvec to ecoff_big_vec.
3620
3621end-sanitize-gm
867d923d
ILT
3622Thu Oct 26 14:16:47 1995 Ian Lance Taylor <ian@cygnus.com>
3623
3624 * xcofflink.c: Numerous changes to get closer to a working XCOFF
3625 linker.
3626 * libcoff-in.h (struct xcoff_tdata): Add full_aouthdr,
3627 toc_section, and entry_section fields.
3628 (struct xcoff_section_tdata): Remove ldrel_count field.
3629 * libcoff.h: Rebuild.
3630 * coffcode.h (coff_mkobject_hook): Initialize new xcoff_data
3631 fields.
3632 (coff_compute_section_file_positions): If RS6000COFF_C, generate
3633 full a.out header if full_aouthdr is set in xcoff_data.
3634 (coff_write_object_contents): Likewise. Set o_snentry and o_sntoc
3635 based on sections stored in xcoff_data.
3636 * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy new xcoff_data
3637 fields.
aad2c618
ILT
3638 (xcoff_reloc_type_lookup): Handle BFD_RELOC_CTOR.
3639 (rs6000coff_vec): Set symbol_leading_char to '.'.
867d923d
ILT
3640 * coffgen.c (coff_get_symbol_info): If fix_value is set, fix the
3641 value stored in ret rather than returning a pointer value.
3642
6bd9ffdb
MM
3643Wed Oct 25 23:10:39 1995 Michael Meissner <meissner@tiktok.cygnus.com>
3644
3645 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Remove MAC
3646 format for now.
3647
9d14250f
JL
3648Wed Oct 25 16:19:27 1995 Jeffrey A Law (law@cygnus.com)
3649
3650 * som.c (som_slurp_string_table): Allocate the strings with malloc
3651 since they're free'd by free_cached_info.
3652 (som_slurp_symbol_table): Similarly for the symbol table.
3653
a2bd0529
PB
3654Wed Oct 25 14:59:22 1995 Per Bothner <bothner@kalessin.cygnus.com>
3655
3656 * Makefile.in (diststuff): Don't make headers.
3657
28a0c103
ILT
3658Wed Oct 25 11:32:54 1995 Ian Lance Taylor <ian@cygnus.com>
3659
356cd465
ILT
3660 * Makefile.in: Rebuild dependencies.
3661
1edd3a7b
ILT
3662 * sunos.c (bfd_sunos_record_link_assignment): Don't do anything if
3663 output_bfd is not SunOS.
3664 (bfd_sunos_size_dynamic_sections): Likewise. Don't scan relocs of
3665 non-SunOS input files.
3666
28a0c103
ILT
3667 * xcofflink.c: Extensive changes to support linking shared objects
3668 and generating a .loader section.
3669 * libcoff-in.h (struct xcoff_tdata): Add import_file_id field.
b73322d9
ILT
3670 (struct xcoff_section_tdata): Add lineno_count, first_symndx,
3671 last_symndx, and ldrel_count fields.
28a0c103
ILT
3672 * libcoff.h: Rebuild.
3673 * coff-rs6000.c (xcoff_howto_table): Correct reloc names.
3674 * coffcode.h (styp_to_sec_flags): Don't set any flags if STYP_PAD
3675 is set.
3676 * bfd-in.h (bfd_xcoff_import_symbol): Declare.
3677 (bfd_xcoff_export_symbol): Declare.
3678 (bfd_xcoff_size_dynamic_sections): Declare.
3679 * bfd-in2.h: Rebuild.
3680
aadf04f7
SS
3681Tue Oct 24 17:44:20 1995 Stan Shebs <shebs@andros.cygnus.com>
3682
3683 * configure.in: Add xcofflink.o to pmac_xcoff_vec.
3684 * configure: Rebuild.
3685 * mpw-config.in: Add xcofflink.c.o to powerpc-apple-macos.
3686 * coff-pmac.c: Include coff-rs6000.c instead of duplicating its
3687 contents.
3688 (pmac_xcoff_vec): Update to use new xcoff support.
3689 * coff-rs6000.c (xcoff_generic_stat_arch_elt): Make static.
3690 (xcoff_write_armap): Declare buf as unsigned char.
3691 * xcofflink.c (xcoff_link_add_symbols): Declare a local as PTR.
3692
3693 * mpw-make.sed: Generalize subdir_do edit.
3694
ddf4639b
JL
3695Tue Oct 24 10:25:01 1995 Jeffrey A Law (law@cygnus.com)
3696
3697 * hppabsd-core.c (make_bfd_asection): Initialize asect->filepos
3698 correctly. Don't initialize asect->vma.
3699
e7bedf65
KR
3700Fri Oct 20 13:23:48 1995 Ken Raeburn <raeburn@cygnus.com>
3701
3702 * opncls.c (_bfd_new_bfd): If _bfd_chunksize wasn't preset, use
3703 something a little less than the page size.
3704
3705Thu Oct 19 13:06:09 1995 Ian Lance Taylor <ian@cygnus.com>
3706
3707 * coff-i960.c (coff_i960_adjust_symndx): Clear *adjustedp.
3708
3a70e298
SC
3709Wed Oct 18 16:20:08 1995 steve chamberlain <sac@slash.cygnus.com>
3710
3711 * coff-i386.c (coff_i386_reloc_type_lookup): New.
3712 * coffcode.h (coff_write_object_contents): If .bss is before
3713 .data us that as data_start.
3714 * cofflink.c (_bfd_coff_generic_relocate_section): Get reloc
3715 calc correct.
3716 * peicode.h (add_data_entry): Use _cooked_size of data directory.
3717 (coff_swap_outhdr_out): Hardwire in version number.
3718
5a2846e3
KR
3719Wed Oct 18 16:50:54 1995 Ken Raeburn <raeburn@cygnus.com>
3720
3c3a5268
KR
3721 * sunos.c (sunos_add_dynamic_symbols): Rename local variables
3722 major and minor to *_vno, since the former are also macros in
3723 SunOS header files. Cast result of bfd_alloc to appropriate
3724 type.
3725
5a2846e3
KR
3726 * coffgen.c (coff_find_nearest_line): Cast used_by_bfd value
3727 before assigning to sec_data.
3728
0f6c885e
ILT
3729Wed Oct 18 13:25:17 1995 Ian Lance Taylor <ian@cygnus.com>
3730
3731 * ecoff.c (_bfd_ecoff_find_nearest_line): The offset argument is
3732 now relative to the section, not absolute.
3733 * ecofflink.c (_bfd_ecoff_locate_line): Use the right symbol to
3734 get the file name when there is a N_SO directory name. When
3735 handling stabs, remember that section->vma was added to the
3736 offset.
3737
11fa6636
ILT
3738Tue Oct 17 18:24:54 1995 Ian Lance Taylor <ian@cygnus.com>
3739
3740 * sunos.c (struct sunos_link_hash_table): Add needed field.
3741 (sunos_link_hash_table_create): Call bfd_release, not free.
3742 (sunos_link_hash_table_create): Initialize needed field.
3743 (sunos_add_dynamic_symbols): Record needed objects.
3744 (bfd_sunos_get_needed_list): New function.
3745 * bfd-in.h (bfd_sunos_get_needed_list): Declare.
3746 * bfd-in2.h: Rebuild.
3747
c974e19e
SC
3748Mon Oct 16 14:43:59 1995 steve chamberlain <sac@slash.cygnus.com>
3749
3750 * libcoff-in.h (pe_data_type.in_reloc_p): New.
3751
22a35f0b
ILT
3752Mon Oct 16 10:52:50 1995 Ian Lance Taylor <ian@cygnus.com>
3753
54406786
ILT
3754 * bfd-in.h (struct bfd_link_needed_list): Rename from
3755 bfd_elf_link_needed_list.
3756 * bfd-in2.h: Rebuild.
3757 * elf.c, elflink.h, libelf.h: Corresponding changes.
3758
dd984644
ILT
3759 Add start at AIX linker support; no shared libraries yet.
3760 * xcofflink.c: New file.
3761 * configure.in (rs600coff_vec): Use xcofflink.o.
3762 * configure: Rebuild.
3763 * libcoff-in.h (struct xcoff_tdata): Add csects and debug_indices
3764 fields.
3765 (struct xcoff_section_tdata): Define.
3766 (xcoff_section_data): Define macro.
3767 (_bfd_xcoff_bfd_link_hash_table_create): Declare.
3768 (_bfd_xcoff_bfd_link_add_symbols): Declare.
3769 (_bfd_xcoff_bfd_final_link): Declare.
3770 (_bfd_ppc_xcoff_relocate_section): Declare.
3771 * libcoff.h: Rebuild.
3772 * coff-rs6000.c: Clean up a bit.
3773 (xcoff_mkobject): Default modtype to 1L, not RE. Initialize
3774 cputype, csects, and debug_indices.
3775 (xcoff_copy_private_bfd_data): Copy cputype.
3776 (xcoff_howto_table): Rename from rs6000coff_howto_table.
3777 (xcoff_rtype2howto): Rename from rs6000coff_rtype2howto.
3778 (xcoff_reloc_type_lookup): Rename from
3779 rs6000coff_reloc_type_lookup.
3780 (coff_relocate_section): Define.
3781 (_bfd_xcoff_sizeof_headers): Define.
3782 (_bfd_xcoff_bfd_get_relocated_section_contents): Define.
3783 (_bfd_xcoff_bfd_relax_section): Define.
3784 (_bfd_xcoff_bfd_link_split_section): Define.
3785 (rs6000coff_vec): For BFD_JUMP_TABLE_LINK, use _bfd_xcoff, not
3786 coff.
3787 * coffcode.h (coff_compute_section_file_positions): If AIX,
3788 increment sofar by SMALL_AOUTSZ if not executable.
3789 (coff_write_object_contents): If AIX, always output an a.out
3790 header; if not executable, header size of SMALL_AOUTSZ.
3791 * hash.c (struct bfd_strtab_hash): Add xcoff field.
3792 (_bfd_stringtab_init): Initialize xcoff field.
3793 (_bfd_xcoff_stringtab_init): New function.
3794 (_bfd_stringtab_add): In XCOFF mode, leave two bytes for length.
3795 (_bfd_stringtab_emit): In XCOFF mode, write out length.
3796 * libbfd-in.h (_bfd_xcoff_stringtab_init): Declare.
3797 * libbfd.h: Rebuild.
3798 * Makefile.in: Rebuild dependencies.
3799 (BFD32_BACKENDS): Add xcofflink.o.
3800 (CFILES): Add xcofflink.c.
3801
22a35f0b
ILT
3802 * elf32-mips.c (mips_elf_symbol_processing): Set SEC_ALLOC, not
3803 SEC_NO_FLAGS, for .acommon section. From Peter Schauer
3804 <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>.
3805
fb417a21
MM
3806Sat Oct 14 21:36:02 1995 Michael Meissner <meissner@tiktok.cygnus.com>
3807
3808 * coff-ppc.c (in_reloc_p): Add, clone from coff-i386.c.
3809
3810Fri Oct 13 17:48:43 1995 Ken Raeburn <raeburn@cygnus.com>
3811
3812 * acconfig.h (HAVE_SYS_PROCFS_H): Undef, with comment.
3813 * config.in: Regenerated.
3814
3815 * opncls.c (getpagesize) [!HAVE_GETPAGESIZE]: Define as 2048.
3816 (_bfd_chunksize): New variable.
3817 (_bfd_new_bfd): Set it to getpagesize() if negative, and use it
3818 for obstack chunk size.
3819 * configure.in: Check for getpagesize.
3820 * configure: Regenerated.
3821
3822 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3823
3824 * trad-core.c (rawptr): Make it a local variable of
3825 ptrace_unix_core_file_p.
3826
b1e46369
SC
3827Fri Oct 13 11:22:01 1995 steve chamberlain <sac@slash.cygnus.com>
3828
3829 * coff-arm.c (in_reloc_p): New.
3830 * coff-i386.c (in_reloc_p): New.
3831 * coffcode.h: Allways include peicode.h if COFF_WITH_PE.
3832 (coff_write_object_contents): Only set has_reloc_section
3833 if PE_IMAGE.
3834 * cofflink.c (_bfd_coff_generic_relocate_section): Call
3835 in_reloc_p to decide if reloc should be emitted.
3836 * libcoff.h (pe_data_type.in_reloc_p): New.
3837 * peicode.h (pe_mkobject): Initialize in_reloc_p.
3838
ee9f09cd
ILT
3839Wed Oct 11 00:49:29 1995 Ian Lance Taylor <ian@cygnus.com>
3840
b1e46369
SC
3841 * cofflink.c (_bfd_coff_internal_syment_name): Move to coffgen.c.
3842 (_bfd_coff_read_internal_relocs): Likewise.
3843 * coffgen.c (_bfd_coff_internal_syment_name): Copy from coffgen.c.
3844 (_bfd_coff_read_internal_relocs): Likewise.
3845
ee9f09cd
ILT
3846 * elflink.h (elf_link_add_object_symbols): Correct conditions
3847 under which type and size change warnings are issued.
3848
78b31b6b
ILT
3849Tue Oct 10 18:32:46 1995 Ian Lance Taylor <ian@cygnus.com>
3850
3851 * coffgen.c (coff_count_linenumbers): Don't count line numbers for
3852 a symbol which is not in a real section.
3853 (coff_write_native_symbol): Corresponding change.
3854
3855 * cofflink.c (_bfd_coff_link_hash_newfunc): Rename from
3856 coff_link_hash_newfunc and make non-static.
3857 (_bfd_coff_link_hash_table_init): New function, broken out of
3858 _bfd_coff_link_hash_table_create.
3859 (_bfd_coff_link_hash_table_create): Use it.
3860 (process_embedded_commands): Make static.
3861 * libcoff-in.h ((_bfd_coff_link_hash_newfunc): Declare.
3862 (_bfd_coff_link_hash_table_init): Declare.
3863 * libcoff.h: Rebuild.
3864
3865 * coffcode.h (coff_mkobject_hook): If RS6000COFF_C, set cputype
3866 field in XCOFF tdata.
3867 (coff_set_arch_mach_hook): Check ifdef RS6000COFF_C, not ifdef
3868 U802ROMAGIC, for clarity. Try to set arch and machine correctly
3869 based on cputype stored in a.out header, or in n_type of initial
3870 .file symbol.
3871 (coff_write_object_contents): Set cputype correctly in a.out
3872 header.
3873 (coff_slurp_symbol_table): Add casts to file_ptr to avoid
3874 warnings.
3875 * coffswap.h (coff_swap_aouthdr_in): Swap in cputype field.
3876 (coff_swap_aouthdr_out): Swap out cputype field. Don't clear
3877 old resv1 field.
3878 * libcoff-in.h (struct xcoff_tdata): Add cputype field.
3879 * libcoff.h: Rebuild.
3880
3881 * cpu-rs6000.c (rs6000_compatible): New static function.
3882 (bfd_rs6000_arch): Use it.
3883 * cpu-powerpc.c (powerpc_compatible): New static function.
3884 (arch_info_struct): Define various flavours of PowerPC.
3885 (bfd_powerpc_arch): Use powerpc_compatible. Point at
3886 arch_info_struct.
3887
9dd7e56f
FF
3888Tue Oct 10 10:50:46 1995 Fred Fish <fnf@cygnus.com>
3889
78b31b6b 3890 * Makefile.in (FLAGS_TO_PASS): Remove BISON.
9dd7e56f 3891
8235c112
ILT
3892Tue Oct 10 01:28:29 1995 Ian Lance Taylor <ian@cygnus.com>
3893
3894 * elflink.h (elf_link_add_object_symbols): Don't warn about
3895 changing the size or type if the old definition was weak.
3896
0322af0d
ILT
3897Mon Oct 9 11:24:08 1995 Ian Lance Taylor <ian@cygnus.com>
3898
49488f2b
ILT
3899 * coffcode.h (combined_entry_type): Add fix_line field.
3900 (coff_slurp_line_table): Warn if we try to set the lineno field of
3901 a symbol twice.
3902 (coff_slurp_symbol_table): If RS6000COFF_C, handle C_BINCL and
3903 C_EINCL by setting fix_line. Fix C_BSTAT symbol value.
3904 * coffgen.c (coff_mangle_symbols): Handle fix_line.
3905 (coff_write_symbol): Only use N_DEBUG if the symbol is in the
3906 absolute section.
3907 (coff_print_symbol): Print fix_value symbols in a useful fashion.
3908 * libcoff.h: Rebuild.
3909
5f710a3a
ILT
3910 * libcoff-in.h (struct xcoff_tdata): Define.
3911 (xcoff_data): Define.
3912 * bfd.c (struct _bfd): Add xcoff_obj_data field to tdata union.
3913 * bfd-in2.h, libcoff.h: Rebuild.
3914 * coff-rs6000.c (xcoff_mkobject): New static function.
3915 (coff_mkobject): Define.
3916 (xcoff_copy_private_bfd_data): New static function.
3917 (coff_bfd_copy_private_bfd_data): Define.
3918 (rs6000coff_howto_table): Change R_TOC complain_on_overflow from
3919 signed to bitfield.
3920 (rs6000coff_vec): Add DYNAMIC to object_flags.
3921 * coffcode.h (sec_to_styp_flags): If RS6000COFF_C, handle .pad and
3922 .loader sections specially.
3923 (coff_new_section_hook): If RS6000COFF_C, get the .text and .data
3924 section alignment from the XCOFF tdata information.
3925 (coff_mkobject_hook): If RS6000COFF_C, set DYNAMIC based on
3926 F_SHROBJ, and copy the extra a.out header information into the
3927 XCOFF tdata structure.
3928 (coff_write_object_contents): If RS6000COFF_C, set F_SHROBJ,
3929 F_DYNLOAD and the extra a.out header information.
3930 (coff_slurp_symbol_table): Set BSF_NOT_AT_END for a C_EXT or
3931 C_HIDEXT symbol with attached csect information.
3932 * coffswap.h (coff_swap_aouthdr_in): If RS6000COFF_C, swap
3933 in the o_maxdata field.
3934 (coff_swap_aouthdr_out): If RS6000COFF_C, swap extra XCOFF fields.
3935 * coffgen.c (coff_renumber_symbols): Don't move any symbol to the
3936 end if BSF_NOT_AT_END is set.
3f2c5b2d 3937
0322af0d
ILT
3938 * targets.c (bfd_target): Rename _bfd_read_ar_hdr field to
3939 _bfd_read_ar_hdr_fn.
3940 * libbfd-in.h (_bfd_read_ar_hdr): Update accordingly.
3941 * bfd-in2.h, libbfd.h: Rebuild.
3942 * archive.c (_bfd_get_elt_at_filepos): Cast _bfd_read_ar_hdr
3943 return value.
3944 (do_slurp_bsd_armap, do_slurp_coff_armap): Likewise.
3945 (bfd_slurp_bsd_armap_f2): Likewise.
3946 (_bfd_slurp_extended_name_table): Likewise.
3947
3266eaff
KR
3948Fri Oct 6 16:18:35 1995 Ken Raeburn <raeburn@cygnus.com>
3949
3950 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3951
3952 * archive.c (bfd_get_next_mapent): Return BFD_NO_MORE_SYMBOLS
3953 when the symbol table is empty.
3954
3955 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Don't reserve
3956 space for section symbols, since we don't output them either.
3957 (elf_m68k_adjust_dynindx): Removed.
3958
3959 * ptrace-core.c (rawptr): Make it a local variable of
3960 ptrace_unix_core_file_p.
3266eaff 3961
249479fa
MM
3962Fri Oct 6 12:24:47 1995 Michael Meissner <meissner@tiktok.cygnus.com>
3963
45b5d2f0
MM
3964 * coff-rs6000.c (xcoff_write_archive_contents): Return false, not
3965 NULL.
3966
249479fa
MM
3967 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Add NT, and
3968 Mac object file formats.
3969
c53fac12
ILT
3970Fri Oct 6 12:04:02 1995 Ian Lance Taylor <ian@cygnus.com>
3971
4372f33f
ILT
3972 * coffgen.c (coff_fix_symbol_name): Don't try to set up file
3973 auxent if there isn't one.
3974 (coff_write_symbols): If there is no file auxent, use SYMNMLEN
3975 rather than FILNMLEN as the maximum name length.
3976
0fc9ada9
ILT
3977 * coffcode.h (bfd_coff_backend_data): Add new field
3978 _bfd_coff_print_aux.
3979 (bfd_coff_print_aux): New static function.
3980 (coff_pointerize_aux_hook (RS6000COFF_C version)): Pointerize the
3981 scnlen field of an XTY_LD csect aux entry.
3982 (coff_print_aux): New static function.
3983 (coff_slurp_symbol_table): Don't pointerize scnlen field; now done
3984 in coff_pointerize_aux_hook.
3985 (bfd_coff_std_swap_table): Initialize new field.
3986 * coffgen.c (coff_print_symbol): Call bfd_coff_print_aux.
3987 * libcoff.h: Rebuild.
3988 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
3989 * coff-mips.c (mips_ecoff_backend_data): Likewise.
3990
7860fe38
ILT
3991 * coffcode.h (coff_write_object_contents): On AIX, clear F_RELFLG
3992 if there are symbols, for native AIX ld compatibility.
3993
c80cc833
ILT
3994 * coffcode.h (bfd_coff_backend_data): Add new field
3995 _bfd_coff_pointerize_aux_hook.
3996 (coff_pointerize_aux_hook): Define as a function if RS6000COFF_C
3997 or I960, and as 0 otherwise.
3998 (bfd_coff_std_swap_table): Initialize new field.
3999 * libcoff.h: Rebuild.
4000 * coffgen.c (coff_pointerize_aux): Change parameters to take
4001 symbol pointer instead of type and class, and to take aux index.
4002 Call _bfd_coff_pointerize_aux_hook if it is defined.
4003 (coff_get_normalized_symtab): Always call coff_pointerize_aux.
4004 * coff-alpha.c (alpha_ecoff_backend_data): Initialize all fields.
4005 * coff-mips.c (mips_ecoff_backend_data): Likewise.
4006
c53fac12
ILT
4007 * coff-rs6000.c: Add full support for AIX archives. Rewrite old
4008 read-only/host-only support.
4009
4010 * coffcode.h (coff_slurp_symbol_table): Set C_HIDEXT symbols to be
4011 BSF_LOCAL.
d11e6b52
ILT
4012 (OTHER_GLOBAL_CLASS): Do not define to be C_HIDEXT if
4013 RS6000COFF_C.
c53fac12
ILT
4014
4015 * targets.c (bfd_target): Add _bfd_read_ar_hdr field. Modify
4016 BFD_JUMP_TABLE_ARCHIVE accordingly.
4017 * libbfd-in.h (_bfd_snarf_ar_hdr): Don't declare.
4018 (_bfd_compute_and_write_armap): Declare.
4019 (_bfd_generic_read_ar_hdr): Declare.
4020 (_bfd_read_ar_hdr): Define.
4021 (_bfd_noarchive_read_ar_hdr): Define.
4022 (_bfd_archive_bsd_read_ar_hdr): Define.
4023 (_bfd_archive_coff_read_ar_hdr): Define.
4024 * archive.c: Change all callers of _bfd_snarf_ar_hdr to call
4025 _bfd_read_ar_hdr instead.
4026 (_bfd_generic_read_ar_hdr): Rename from _bfd_snarf_ar_hdr.
4027 (_bfd_compute_and_write_armap): Rename from
4028 compute_and_write_armap. Make non-static. Change all callers.
4029 * ecoff.c (_bfd_ecoff_slurp_armap): Call _bfd_read_ar_hdr rather
4030 than _bfd_snarf_ar_hdr.
4031 * aout-target.h (MY_read_ar_hdr): Define if not defined.
4032 * ieee.c (ieee_read_ar_hdr): Define.
4033 * libecoff.h (_bfd_ecoff_read_ar_hdr): Define.
4034 * oasys.c (oasys_read_ar_hdr): Define.
4035 * som.c (som_read_ar_hdr): Define.
4036 * bfd-in2.h, libbfd.h: Rebuild.
4037
f8e47484
SC
4038Thu Oct 5 14:04:07 1995 steve chamberlain <sac@slash.cygnus.com>
4039
4040 * peicode.c (coff_swap_filehdr_in): If symptr is
4041 zero, there aren't any symbols, even if nsyms is set.
4042
2b874a2d
ILT
4043Thu Oct 5 11:45:02 1995 Ian Lance Taylor <ian@cygnus.com>
4044
aca73687
ILT
4045 * libecoff.h (struct ecoff_backend_data): Add adjust_headers
4046 field.
4047 * ecoff.c (ecoff_sec_to_styp_flags): Check for various Alpha
4048 sections, and set styp correctly for them: .got, .hash, .dynamic,
4049 .liblist, .rel.dyn, .conflic, .dynstr, .dynsym, .comment.
4050 (_bfd_ecoff_styp_to_sec_flags): Check for various Alpha section
4051 types.
4052 (ecoff_sort_hdrs): New static function.
4053 (ecoff_compute_section_file_positions): Return boolean, not void.
4054 Sort the sections by VMA before looking through them. Put the
4055 first non SEC_ALLOC section on a new page. Put every SEC_ALLOC
4056 section on an appropriate boundary within the page.
4057 (ecoff_compute_reloc_file_positions): Check return value of
4058 ecoff_compute_section_file_positions.
4059 (_bfd_ecoff_set_section_contents): Likewise.
4060 (_bfd_ecoff_write_object_contents): Check for various Alpha
4061 section types when incrementing text_size and data_size. Call
4062 adjust_headers backend function if it exists.
4063 * coff-alpha.c (alpha_adjust_headers): New static function.
4064 (alpha_ecoff_backend_data): Initialize adjust_headers field.
4065 * coff-mips.c (mips_ecoff_backend_data): Likewise.
4066
2b874a2d
ILT
4067 * hosts/i386bsd.h: Restore file incorrectly deleted on Sep 6.
4068
c780e5db
JL
4069Wed Oct 4 18:15:02 1995 Jeff Law (law@hurl.cygnus.com)
4070
4071 * rs6000-core.c (CORE_VERSION_1): Use CORE_VERSION_1 instead
4072 of ALTERNATE_AIX_CORE_FORMAT.
4073 * configure.in (aix4): No longer need CORE_FLAGS.
4074 * configure: Updated.
4075
2a01c351
KR
4076Wed Oct 4 15:36:36 1995 Ken Raeburn <raeburn@cygnus.com>
4077
4078 NS32k changes from Ian Dall:
4079 * aoutx.h (MY_final_link_relocate, MY_relocate_contents): New
4080 macros.
4081 (aout_link_input_section_std, aout_link_input_section_ext,
4082 aout_link_reloc_link_order): Call them instead of _bfd_*
4083 versions.
4084 * aout-target.h (MY_exec_header_not_counted): New macro, defaults
4085 to zero.
4086 (backend_data): Use it instead of hardcoded zero.
4087
4088 * aout-ns32k.c (CTOR_TABLE_RELOC_HOWTO): New macro.
4089 (MY_swap_std_reloc_out): Use udata.i for KEEPIT, don't call stoi.
4090
4091 * ns32knetbsd.c: Include bfd.h.
4092 (MY_text_includes_header, MY_bfd_reloc_type_lookup): New macros.
4093 (MY_bfd_reloc_type_lookup): Declare function too.
4094 * pc532-mach.c (set_sizes): Don't declare.
4095 (MY_text_includes_header, MY_exec_header_not_counted): Define.
4096 (backend_data, MY_backend_data): Don't define.
4097
4098 * config.bfd: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
4099 ns32k-*-lites* like ns32k-*-netbsd*.
4100
4101 * hosts/nbsd.h: Swap order of sys/vmparam.h and sys/param.h, to
4102 compile on lites.
4103
5944d75b
ILT
4104Wed Oct 4 14:15:52 1995 Ian Lance Taylor <ian@cygnus.com>
4105
4106 * coffcode.h (coff_write_object_contents): Restore setting
4107 f_timdat to 0, deleted on August 22.
4108
db344f82
SC
4109Tue Oct 3 16:28:32 1995 steve chamberlain <sac@slash.cygnus.com>
4110
4111 * coffcode.h (coff_bfd_copy_private_symbol_data,
4112 coff_bfd_copy_private_section_data,
4113 coff_bfd_copy_private_bfd_data): ifdef to allow overrides.
4114 * peicode.h (coff_bfd_copy_private_bfd_data): New
4115 (pe_bfd_copy_private_bfd_data): New.
4116 (coff_swap_scnhdr_in): Swap bss size into the right place.
4117 (pe_print_private_bfd_data): Add some newlines.
5944d75b 4118
c780e5db 4119Tue Oct 3 11:53:04 1995 Jeff Law (law@hurl.cygnus.com)
97f1feda
JL
4120
4121 * som.c (setup_sections): Don't die if a space has no subspaces.
4122
3d7c42c9
ILT
4123Mon Oct 2 14:08:55 1995 Ian Lance Taylor <ian@cygnus.com>
4124
4125 * elflink.h (elf_link_add_object_symbols): Don't let a weak
4126 dynamic symbol override a common symbol. Don't change the size or
4127 type if they have been set and the new symbol is not a definition.
4128 Warn if the size or type changes.
4129
c780e5db 4130Sun Oct 1 01:34:41 1995 Jeff Law (law@hurl.cygnus.com)
709af562
JL
4131
4132 * som.c (som_begin_writing): Don't write the symbol table or
4133 symbol strings.
4134 (som_finish_writing): Write them here. Place them after the
4135 subspace data, but before the relocs.
4136
4137Fri Sep 29 11:01:55 1995 Ian Lance Taylor <ian@cygnus.com>
4138
4139 * sunos.c (sunos_add_one_symbol): Just pass false, not
4140 info->shared_library, to sunos_create_dynamic_sections.
4141 (sunos_scan_ext_relocs): Don't warn about a reloc in the .text
4142 section.
4143 (sunos_check_dynamic_reloc): Remove .text section assertion.
4144
7009e451
SS
4145Thu Sep 28 18:48:47 1995 Stan Shebs <shebs@andros.cygnus.com>
4146
4147 * config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*.
4148 * configure, configure.in: Add pmac_xcoff_vec case.
4149 * Makefile.in (BFD32_BACKENDS): Add coff-pmac.o.
4150 * coff-pmac.c: New file, PowerMac XCOFF support.
4151 * coffcode.h (coff_set_arch_mach_hook): Add PowerMac case.
4152 * targets.c (pmac_xcoff_vec): Declare.
4153
4154 * mpw-config.in: Various changes to be compatible with the
4155 autoconf-based configury.
4156 * mpw-make.sed: New file, sed commands to translate Unix
4157 makefile into MPW syntax.
4158 * mpw-make.in: Remove.
4159 * hosts/mpw.h: Remove.
4160 * bfd-in.h, bfd-in2.h: If MPW, include the file that defines
4161 true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED.
4162
b91537be
SC
4163Thu Sep 28 17:06:23 1995 steve chamberlain <sac@slash.cygnus.com>
4164
4165 * binary.c (binary_get_symtab): Return an empty string on error.
4166 * opncls.c (bfd_fdpenr): Change WIN32 restriction to WINGDB.
4167
30360a6f
KK
4168Thu Sep 28 15:30:44 1995 Kim Knuttila <krk@nellie>
4169
4170 * coff-ppc.c: Reformatted according to gnu conventions
4171 Removed irrelevant "if 0" code
4172
20d1e233
ILT
4173Thu Sep 28 11:19:53 1995 Ian Lance Taylor <ian@cygnus.com>
4174
69fd4fdd
ILT
4175 * hp300hpux.c (convert_sym_type): Treat secondary symbols as weak
4176 symbols rather than as indirect symbols.
4177 (MY(slurp_symbol_table)): Don't do anything special about
4178 secondary symbols.
4179
46b5a892
ILT
4180 * coffcode.h (coff_new_section_hook): Make sure that the alignment
4181 of .ctors and .dtors sections is no larger than 2.
4182
9db59230
ILT
4183 * sunos.c (sunos_add_one_symbol): Don't change
4184 bfd_link_hash_common to bfd_link_hash_new, since it may be on the
4185 undef list.
4186 (bfd_sunos_record_link_assignment): Don't put __DYNAMIC in the
4187 dynamic symbols when creating a shared library.
4188 (sunos_scan_ext_relocs): Handle relocs correctly when creating a
4189 shared library.
4190 (sunos_scan_dynamic_symbol): Don't mark the __DYNAMIC symbol as
4191 written even if it is not defined in a regular object.
4192 (sunos_write_dynamic_symbol): Use plt_offset for the address of
4193 the jump table reloc. Add an assertion. Use RELOC_JMP_SLOT
4194 rather than the constant 22.
4195 (sunos_check_dynamic_reloc): Handle creating a shared library.
4196 (sunos_finish_dynamic_link): Set the first entry in the GOT to
4197 zero when creating a shared library.
4198 * aoutx.h (NAME(aout,final_link)): If there is a symbol __DYNAMIC,
4199 write it out at the start of the symbol table.
4200
20d1e233
ILT
4201 * Makefile.in (BFD32_BACKENDS): Add coff-arm.o.
4202
a11e10fe
DE
4203Thu Sep 28 00:58:05 1995 Doug Evans <dje@deneb.cygnus.com>
4204
4205 * config.bfd: Add arm-*-coff.
4206 * configure.in, configure: Add armcoff_{little,big}_vec.
4207 * targets.c (armcoff_{little,big}_vec): Declare.
4208 (bfd_target_vector): Add armcoff_{little,big}_vec.
4209 * coff-arm.c (armcoff_{little,big}_vec): Always define.
4210
99062cfc
ILT
4211Wed Sep 27 10:37:14 1995 Ian Lance Taylor <ian@cygnus.com>
4212
4213 * targets.c (bfd_find_target): Remove debugging code.
4214
deacbe0f
KK
4215Wed Sep 27 07:23:39 1995 Kim Knuttila <krk@nellie>
4216
4217 * coff-ppc.c, pe-ppc.c, pei-ppc.c: Initial bfd for coff/PE
4218 support on powerpc.
4219 * Makefile.in: added *-ppc files
4220 * coffcode.h: ppc MAGIC, and use peicode.h rather than coffswap.h to
4221 allow pe based .o's to be shared with other tools on ppc/NT
4222 * config.bfd: added powerpc[le]-[pe|winnt] config support
4223 * configure, configure.in: added bfd_powerpc[le]_pe[i]_vec
4224 * peicode.h: Added more section flags for PE on ppc
4225 Added coff_swap_filehdr_out to allow peicode.h to be
4226 used for non-image PE files on ppc.
4227 Check for image, or not, before copying pe_opthdr
4228 * targets.c: Added new bfd's
30360a6f
KK
4229 * targets.c: Removed two inactive bfds that shouldn't have made it this
4230 far.
deacbe0f 4231
d22b02e0
MM
4232Tue Sep 26 14:06:41 1995 Michael Meissner <meissner@tiktok.cygnus.com>
4233
4234 * elf32-ppc.c (ppc_reloc_type): Rename from reloc_type, and use
4235 explicit values to initialize all relocs. Change all users.
4236 (ppc_elf_brtaken_inner): New function to handle branch predicition
4237 relocs.
4238 (ppc_elf_brtaken_reloc): Ditto.
4239 (ppc_elf_howto_raw): Use new functions. Make sure all unsupported
4240 relocs use ppc_elf_unsupported_reloc.
4241 (ppc_elf_merge_private_bfd_data): Keep track of whether an error
4242 needs to be reported.
4243 (ppc_elf_relocate_section): Support branch prediction relocs.
4244
fcf490c0
ILT
4245Tue Sep 26 12:48:05 1995 Ian Lance Taylor <ian@cygnus.com>
4246
e6cb7b41
ILT
4247 * bfd.c (bfd_assert): Remove \n from string passed to
4248 _bfd_error_handler.
4249
1af85fbb
ILT
4250 * coff-i386.c: (TWO_DATA_SECS): Don't define.
4251 * coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook.
4252 (bfd_coff_make_section_hook): Don't define.
4253 (coff_make_section_hook): Remove.
4254 (sec_to_styp_flags): Remove TWO_DATA_SECS case.
4255 (styp_to_sec_flags): Likewise.
4256 (coff_write_object_contents): Likewise.
4257 (bfd_coff_std_swap_table): Don't initialize make_section_hook
4258 field.
4259 * libcoff.h: Rebuild.
4260 * coffgen.c (make_a_section_from_file): Just call
4261 bfd_make_section_anyway, not bfd_make_section or
4262 bfd_coff_make_section_hook.
4263 * ecoff.c (_bfd_ecoff_make_section_hook): Remove.
4264 * libecoff.h (_bfd_ecoff_make_section_hook): Don't declare.
4265 * coff-alpha.c (alpha_ecoff_backend_data): Don't initialize
4266 make_section_hook field.
4267 * coff-mips.c (mips_ecoff_backend_data): Likewise.
4268
fcf490c0
ILT
4269 * aoutx.h (translate_from_native_sym_flags): Don't try to stuff
4270 pointers into value field for warning and indirect symbols; just
4271 leave the value field alone.
4272 * linker.c (generic_link_add_symbol_list): Use next symbol for
4273 warning and indirect symbols, rather than looking in symbol value.
4274 * ecoff.c (ecoff_set_symbol_info): Remove indirect_ptr_ptr
4275 parameter. Change all callers. Remove support for indirect
4276 symbols; it didn't work anyhow.
4277 (_bfd_ecoff_slurp_symbol_table): Remove indirect_ptr variable.
4278 * syms.c: Change comments about BSF_WARNING and BSF_INDIRECT.
4279 * bfd-in2.h: Rebuild.
4280
cc47d19a
MM
4281Mon Sep 25 16:04:09 1995 Michael Meissner <meissner@tiktok.cygnus.com>
4282
4283 * elf32-ppc.c (ppc_elf_howto_raw): For all 14-bit branch relocs,
4284 go back to telling the tools this reloc operates on 32 bits.
4285
81449d47
ILT
4286Mon Sep 25 11:48:02 1995 Ian Lance Taylor <ian@cygnus.com>
4287
7a7fbffb
ILT
4288 * aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler
4289 rather than a direct fprintf.
4290 * archive.c (_bfd_write_archive_contents): Likewise.
4291 * coffcode.h (coff_slurp_symbol_table): Likewise.
4292 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Likewise.
4293 (ppc_elf_unsupported_reloc): Likewise.
4294 (ppc_elf_relocate_section): Likewise.
4295 * i386linux.c (linux_tally_symbols): Likewise.
4296 (linux_finish_dynamic_link): Likewise.
4297 * osf-core.c (osf_core_core_file_p): Likewise.
4298 * rs6000-core.c (rs6000coff_get_section_contents): Likewise.
4299 * som.c (som_sizeof_headers): Likewise.
4300 * srec.c (srec_bad_byte): Likewise.
4301 * bfd.c (bfd_assert): Likewise. Also change file to be const.
4302 * libbfd-in.h (bfd_assert): Declare first parameter const.
4303 * libbfd.h: Rebuild.
4304 * coff-a29k.c (a29k_reloc): Don't bother to fprintf; returning
4305 bfd_reloc_overflow is enough.
4306 * coff-h8300.c (rtype2howto): Don't bother to fprintf; just abort.
4307 * coff-h8500.c (rtype2howto): Likewise.
4308 * coff-z8k.c (rtype2howto): Likewise.
4309 * coffcode.h (dummy_reloc16_extra_cases): Likewise.
4310 * elf.c (_bfd_elf_get_lineno): Likewise.
4311 (_bfd_elf_no_info_to_howto): Likewise.
4312 (_bfd_elf_no_info_to_howto_rel): Likewise.
4313 * hp300hpux.c (convert_sym_type): Likewise.
4314 (MY(swap_std_reloc_in)): Likewise.
4315 * elf.c (bfd_section_from_shdr): Remove #if 0 sections.
4316
f1c6dd5d
ILT
4317 * libaout.h (struct aoutdata): Add line_buf field.
4318 * aoutx.h (NAME(aout,find_nearest_line)): Remove statics buffer
4319 and filename_buffer. Instead, use a malloc buffer stored in the
4320 new line_buf field. Remove length restrictions.
4321
f0500a41
ILT
4322 * coffgen.c (string_size): Remove static variable.
4323 (debug_string_size, debug_string_section): Likewise.
4324 (coff_fix_symbol_name): Add string_size_p, debug_string_section_p,
4325 and debug_string_size_p parameters. Use them instead of the
4326 global variables. Change all callers.
4327 (coff_write_symbol): Likewise.
4328 (coff_write_alien_symbol, coff_write_native_symbol): Likewise.
4329 (coff_write_symbols): Add local variables to replace removed
4330 global variables.
4331
25b5a53d
ILT
4332 * libcoff-in.h (struct coff_section_tdata): Add offset, i,
4333 function, and line_base fields.
4334 * libcoff.h: Rebuild.
4335 * coffgen.c (coff_find_nearest_line): Use section tdata to cache
4336 information, rather than using static variables.
4337
641ac26a
ILT
4338 * sunos.c (sunos_read_dynamic_info): Adjust offsets in an NMAGIC
4339 file. From Peter DeWolf <pld@amt.tay1.dec.com>.
4340
81449d47
ILT
4341 * init.c (initialized): Remove static variable.
4342 (bfd_init): Don't bother setting initialized.
4343 (bfd_check_init): Remove.
4344 * opncls.c (_bfd_new_bfd): Don't call bfd_check_init.
4345 * libbfd.h: Rebuild.
4346
138b9b81
PS
4347Sat Sep 23 01:22:23 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4348
4349 * rs6000-core.c (rs6000coff_core_p): Don't check the core file
4350 size for full core dumps. Copy core file header to private data.
4351 (rs6000coff_core_file_failing_command,
4352 rs6000coff_core_file_failing_signal): New functions to extract
4353 the file name and terminating signal from the core file.
4354 * coff-rs6000.c: Use them.
4355
2ffbb79a
ILT
4356Fri Sep 22 17:44:47 1995 Ian Lance Taylor <ian@cygnus.com>
4357
4358 Change arch info to be const, initialized at compile time.
4359 * archures.c: Reindent many functions. Change CONST to const.
4360 (bfd_arch_info_type): Make arch_name const. Remove disassemble;
4361 nothing set it anyhow. Make next const.
4362 (bfd_arch_info_list): Remove.
4363 (bfd_archures_list): Rename from archures_init_table. Change from
4364 a table of function pointers to a table of bfd_arch_info_type
4365 structure addresses.
4366 (bfd_scan_arch): Rewrite accordingly. Return a const pointer.
4367 (bfd_lookup_arch): Likewise.
4368 (bfd_set_arch_info): Rewrite accordingly. Change argument to be a
4369 const pointer.
4370 (bfd_default_arch_struct): Make const.
4371 (bfd_arch_init, bfd_arch_linkin): Remove.
4372 (bfd_get_arch_info): Return a const pointer.
4373 * init.c (bfd_init): Don't call bfd_arch_init.
4374 * bfd.c (struct _bfd): Make arch_info const.
4375 * bfd-in2.h: Rebuild.
4376 * libbfd.h: Rebuild.
4377 * configure.in: Put & before everything in $selarchs.
4378 * configure: Rebuild.
4379 * cpu-*.c: Change bfd_*_arch from a function which calls
4380 bfd_arch_linkin to a const structure.
4381 * ieee.c (ieee_object_p): Make arch const.
4382
02f85cda
MM
4383Fri Sep 22 16:23:18 1995 Michael Meissner <meissner@tiktok.cygnus.com>
4384
4385 * reloc.c (bfd_reloc_code_type): Add relocations to support all of
4386 PowerPC V.4.
4387 * bfd-in2.h: Regenerate.
4388 * libbfd.h: Regenerate.
4389
4390 * elf32-ppc.c (reloc_type): Update names to match current draft.
4391 (ppc_elf_howto_raw): Mark 14 bit relocs as short sized and PC
4392 relative. Update names to current V.4 draft.
4393 (ppc_elf_reloc_type_lookup): Add support for more relocations.
4394 (ppc_elf_relocate_section): Rename relocations to match draft.
4395
dd82c578
MM
4396Thu Sep 21 21:53:18 1995 Michael Meissner <meissner@cygnus.com>
4397
4398 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Allow modules
4399 compiled with -mrelocatable-lib to be linked with either normal
4400 modules or -mrelocatable modules.
4401
f69e888e
ILT
4402Wed Sep 20 12:03:26 1995 Ian Lance Taylor <ian@cygnus.com>
4403
e18c4e8f
ILT
4404 * coffcode.h (coff_write_object_contents): Clear the vstamp field
4405 in the a.out header.
4406
f69e888e
ILT
4407 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for
4408 a reloc against a local symbol, even if it's not a section.
4409
a5655244
ILT
4410Tue Sep 19 17:02:26 1995 Ian Lance Taylor <ian@cygnus.com>
4411
4412 * targets.c (bfd_target): Remove unused align_power_min field.
4413 * bfd-in2.h: Rebuild.
4414 * All backends: Remove initialization of align_power_min.
4415
500d7394
SC
4416Tue Sep 19 14:02:21 1995 steve chamberlain <sac@slash.cygnus.com>
4417
4418 * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right.
500d7394 4419
049df0a8
ILT
4420Mon Sep 18 14:35:01 1995 Arne H. Juul <arnej@pvv.unit.no>
4421
4422 * config.bfd (mips-dec-netbsd*): New target.
4423 * configure.host (mips-dec-netbsd*): New host.
4424 * configure.in (mips-dec-netbsd*): New native.
4425 * configure: Rebuild.
4426
1862bbd8
ILT
4427Fri Sep 15 10:24:36 1995 Ian Lance Taylor <ian@cygnus.com>
4428
4429 Make the COFF backend linker merge common types:
4430 * cofflink.c (struct coff_debug_merge_element): Define.
4431 (struct coff_debug_merge_type): Define.
4432 (struct coff_debug_merge_hash_entry): Define.
4433 (struct coff_debug_merge_hash_table): Define.
4434 (coff_debug_merge_hash_table_init): Define.
4435 (coff_debug_merge_hash_table_free): Define.
4436 (coff_debug_merge_hash_lookup): Define.
4437 (struct coff_final_link_info): Add debug_merge field.
4438 (coff_debug_merge_hash_newfunc): New static function.
4439 (_bfd_coff_final_link): Allocate and free debug_merge table.
4440 (coff_link_input_bfd): Merge identical enum, struct and union
4441 types.
4442
a208a70f
ILT
4443Thu Sep 14 14:53:58 1995 Ian Lance Taylor <ian@cygnus.com>
4444
4445 Convert i960 COFF to use COFF backend linker.
4446 * coff-i960.c (coff_i960_relocate): Use a coff_section_data
4447 structure to store the symbol being used.
4448 (coff_i960_start_final_link): New static function.
4449 (coff_i960_relocate_section): New static function.
4450 (coff_i960_adjust_symndx): New static function.
4451 (coff_start_final_link): Define.
4452 (coff_relocate_section): Define.
4453 (coff_adjust_symndx): Define.
4454 * coffcode.h (bfd_coff_backend_data): Add new callback function
4455 _bfd_coff_start_final_link.
4456 (bfd_coff_start_final_link): Define.
4457 (coff_start_final_link): Define if not defined.
4458 (bfd_coff_std_swap_table): Add coff_start_final_link.
4459 * cofflink.c (_bfd_coff_internal_syment_name): Make globally
4460 visible.
4461 (_bfd_coff_final_link): Call bfd_coff_start_final_link if the
4462 function callback is not NULL.
4463 * libcoff-in.h (struct coff_section_tdata): Add tdata field.
4464 (_bfd_coff_internal_syment_name): Declare.
4465 * libcoff.h: Rebuild.
4466 * configure.in (icoff_big_vec): Add cofflink.o.
4467 (icoff_little_vec): Likewise.
4468 * configure: Rebuild.
4469
f0abedbe
FF
4470Wed Sep 13 17:38:23 1995 Fred Fish <fnf@rtl.cygnus.com>
4471
4472 * Makefile.in (clean-info): Remove extraneous tab from line
4473 following action.
4474
aa4b3dc5
ILT
4475Wed Sep 13 13:27:53 1995 Ian Lance Taylor <ian@cygnus.com>
4476
4477 * cofflink.c (coff_link_input_bfd): Fail if a section with no
4478 contents has relocs.
4479
4ca63811 4480Thu Sep 12 12:45:34 1995 steve chamberlain <sac@slash.cygnus.com>
beee31b1
SC
4481
4482 * coffcode.h (coff_compute_section_file_positions): Keep the
4483 raw size safe.
4484 (coff_write_object_contents): Remember if it's a relocatable
4485 file.
4486 * libcoff-in.h (pe_data_type): New member 'has_reloc_section'
4487 * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag
4488 if relocatable file. Swap out saved raw size.
4489
ae115e51
ILT
4490Tue Sep 12 12:14:33 1995 Ian Lance Taylor <ian@cygnus.com>
4491
9521bac3
ILT
4492 * Makefile.in (do_maintainer_clean): Rename from do_realclean.
4493 (maintainer-clean): Rename from realclean, passing
4494 maintainer-clean down to subdirectories, but leave realclean as a
4495 synonym.
4496
4ca63811
ILT
4497 * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
4498 warning callback.
4499
5aa4c3ff
ILT
4500 * dep-in.sed: Remove config.h from generated dependencies.
4501
396aaeb2
ILT
4502 * sunos.c (sunos_slurp_dynamic_symtab): New static function,
4503 broken out of sunos_canonicalize_dynamic_symtab.
4504 (sunos_canonicalize_dynamic_symtab): Call new function
4505 sunos_slurp_dynamic_symtab.
4506 (sunos_add_dynamic_symbols): Add three new parameters. Return the
4507 dynamic symbol table to the caller.
4508 * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols
4509 callback to override the symbols being read.
4510 * libaout.h (struct aout_backend_data): Add three new parameters
4511 to add_dynamic_symbols callback.
4512
ae115e51
ILT
4513 Extensive minor changes to avoid various gcc warnings. Also:
4514 * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
4515 * archures.c (bfd_arch_info_type): Change mach field from long to
4516 unsigned long.
4517 (bfd_lookup_arch): Change machine parameter from long to unsigned
4518 long.
4519
b088e4b2
ILT
4520Mon Sep 11 10:55:47 1995 Ian Lance Taylor <ian@cygnus.com>
4521
4522 * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
4523 a symbol with a non-zero plt_offset.
4524
1dff7902
ILT
4525Fri Sep 8 11:47:24 1995 Ian Lance Taylor <ian@cygnus.com>
4526
2b71e1e4
ILT
4527 * elfcode.h (align_file_position): Remove; not used.
4528
1dff7902
ILT
4529 * configure.in: Only check for <sys/procfs.h> on a native system,
4530 and make sure it defines prstatus_t.
4531 * configure: Rebuild.
4532
870015b1
ILT
4533Thu Sep 7 12:48:01 1995 Ian Lance Taylor <ian@cygnus.com>
4534
535c89f0
ILT
4535 * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.
4536
936b870c
ILT
4537 * config.in: Rename from config.h.in.
4538 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
a7873a6c 4539 Check for config.h:config.in when creating stamp-h.
936b870c 4540 * configure: Rebuild.
a7873a6c
ILT
4541 * Makefile.in (stamp-h): Depend upon config.in rather than
4542 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
4543 calling config.status.
936b870c 4544
870015b1
ILT
4545 * Makefile.in (do_distclean): Remove config.h and stamp-h.
4546 (Makefile): Just rebuild Makefile.
4547 (config.h, stamp-h): New targets.
4548 * configure.in: Create stamp-h when rebuilding config.h.
4549 * configure: Rebuild.
4550
b7577823
ILT
4551Wed Sep 6 15:00:33 1995 Ian Lance Taylor <ian@cygnus.com>
4552
4553 * configure.in: Call AC_CONFIG_HEADER. Substitute
4554 HOST_64BIT_LONG. Check that various header files exist. Check
4555 that fcntl exists. Call BFD_BINARY_FOPEN. Check whether malloc
4556 and/or free need to be declared. Don't make a link to sysdep.h.
4557 Define TRAD_HEADER for various hosts.
4558 * configure: Rebuild.
4559 * configure.host: Don't set my_host. Add definitions taken from
4560 host header files for various entries. Remove entries which now
4561 do nothing.
4562 * acconfig.h: New file.
4563 * config.h.in: New file, built by autoheader.
4564 * sysdep.h: New file.
4565 * Makefile.in (do_distclean): Don't remove sysdep.h.
4566 (RECONFIG): Remove.
4567 (LOCAL_H_DEPS): New variable.
4568 ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
4569 $(RECONFIG).
4570 ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise.
4571 ($(OPTIONAL_BACKENDS)): Likewise.
4572 (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than
4573 looking through sysdep.h.
4574 * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile.
4575 (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG.
4576 (fprintf_vma, sprintf_vma): Likewise.
4577 (int64_type, uint64_type): Don't define.
4578 * bfd-in2.h: Rebuild.
4579 * archures.c, bfd.c, srec.c: Include <ctype.h>.
4580 * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS.
4581 * lynx-core.c: Include stuff from old hosts/lynx.h.
4582 * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL),
4583 rather than NO_FCNTL.
4584 * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__
4585 rather than NATIVE_HPPAHPUX_COMPILER.
4586 * trad-core.c: Don't include <errno.h>. Include TRAD_HEADER if it
4587 is defined.
4588 * hosts/*.h: Remove all header files which merely include,
4589 declare, and define things. Leave header files which define
4590 information needed by trad-core.c.
4591
4592 * aclocal.m4 (BFD_BINARY_FOPEN): Define.
4593 (BFD_CC_FOR_BUILD): Define.
4594 * configure.in: Use BFD_CC_FOR_BUILD.
4595 * configure: Rebuild.
4596
7a93ebdd
ILT
4597Tue Sep 5 19:35:28 1995 Ian Lance Taylor <ian@cygnus.com>
4598
4c2e4d0e
ILT
4599 * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
4600 * configure: Rebuild.
4601
7a93ebdd
ILT
4602 * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
4603 a global symbol.
4604
866bb9e5
JM
4605Tue Sep 5 12:48:26 1995 Jason Molenda (crash@phydeaux.cygnus.com)
4606
4607 * config.bfd: i386pe_ve -> i386pe_vec.
4608
2b79a104
ILT
4609Mon Sep 4 14:02:43 1995 Ian Lance Taylor <ian@cygnus.com>
4610
f515fb2f
ILT
4611 * configure.host: Incorporate host Makefile fragments by setting
4612 shell variables.
4613 * configure.in: Call AC_PROG_CC. Substitute CFLAGS, HDEFINES and
4614 AR. Call AC_PROG_INSTALL. Substitute CC_FOR_BUILD, choosing a
4615 value based on whether the code is being compiled by a cross
4616 compiler. Don't substitute host_makefile_frag or frags.
4617 * aclocal.m4: New file to define local AC_PROG_CC.
4618 * configure: Rebuild.
4619 * Makefile.in (INSTALL): Set to @INSTALL@.
4620 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
4621 (INSTALL_DATA): Set to @INSTALL_DATA@.
4622 (AR): Set to @AR@.
4623 (CC): Define as @CC@.
4624 (CFLAGS): Set to @CFLAGS@.
4625 (CC_FOR_BUILD): Set to @CC_FOR_BUILD@.
4626 (@host_makefile_frag@): Remove.
4627 (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@. Move $(CFLAGS)
4628 after other options.
4629 (config.status): Remove dependency upon @frags@.
4630 * config/*.mh, config/README: Remove.
4631
2b79a104
ILT
4632 * config.bfd: Rewrite to incorporate the contents of the Makefile
4633 fragments by setting shell variables, rather than merely returning
4634 the name of a Makefile fragment.
4635 * configure.in: Use shell variables set by config.bfd rather than
4636 looking at the target Makefile fragment files. Don't substitute
4637 target_makefile_frag. Do substitute TDEFINES.
4638 * configure: Rebuild.
4639 * Makefile.in (@target_makefile_frag@): Remove.
4640 (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@.
4641 * config/*.mt: Remove.
4642
2cb159a5
KR
4643Mon Sep 4 03:13:28 1995 Ken Raeburn <raeburn@cygnus.com>
4644
4645 * configure.in: Put changequote lines around "i[345]86" patterns
4646 section of core file support.
4647
ef07871c
JL
4648Sun Sep 3 11:31:58 1995 Jeff Law (law@snake.cs.utah.edu)
4649
4650 * som.c (som_bfd_print_private_bfd_data): Define to use the
4651 generic version.
4652
1613e075
SC
4653Fri Sep 1 17:08:40 1995 steve chamberlain <sac@slash.cygnus.com>
4654
4655 * peicode.h (coff_swap_aouthdr_in): Add ImageBase to
4656 entry, text_start and data_start.
4657
a52a3ce8
ILT
4658Fri Sep 1 18:06:28 1995 Ian Lance Taylor <ian@cygnus.com>
4659
a21227ef
ILT
4660 * Makefile.in (OFILES): Remove $(TDEPFILES).
4661 * config/apollo.mt (TDEPFILES): Remove.
4662 * config/README: Update.
4663
a52a3ce8
ILT
4664 * configure.in: For a native configuration, set COREFILE and
4665 COREFLAG based on the canonical host name.
4666 * configure: Rebuild.
4667 * Makefile.in: Rebuild dependencies.
4668 (ALL_CFLAGS): Add @COREFLAG@.
4669 (OFILES): Replace $(HDEPFILES) with @COREFILE@.
4670 * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file
4671 support routines. Check LYNX_CORE rather than HOST_LYNX.
4672 * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX.
4673 * i386lynx.c: Likewise.
4674 * m68klynx.c: Likewise.
4675 * sparclynx.c: Likewise.
4676 * rs6000-core.c: Check AIX_CORE rather than HOST_AIX.
4677 * *-core.c: Comment changes.
4678 * config/decstation.mh (HDEPFILES): Remove.
4679 (HDEFINES): Remove -DTRAD_CORE.
4680 * config/irix3.mh (RANLIB): Remove.
4681 * config/irix4.mh (HDEPFILES, RANLIB): Remove.
4682 (HDEFINES): Remove -DIRIX_CORE.
4683 * config/riscos.mh (RANLIB, HDEPFILES): Remove.
4684 (HDEFINES): Remove -DTRAD_CORE.
4685 * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove.
4686 * config/ultra3.mh (RANLIB): Remove.
4687 * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove.
4688 * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove.
4689 * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove.
4690 * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove.
4691 * config/hppahpux.mh, config/hppaosf.mh: Remove.
4692 * config/i386aix.mh, config/i386bsd.mh: Remove.
4693 * config/i386linux.mh, config/i386mach3.mh: Remove.
4694 * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove.
4695 * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove.
4696 * config/mipsmach3.mh, config/news-mips.mh: Remove.
4697 * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove.
4698 * config/rs600.mh, config/rs6000lynx.mh: Remove.
4699 * config/solaris2.mh, config/stratus.mh: Remove.
4700 * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove.
4701 * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove.
4702
d6f672b8
ILT
4703Fri Sep 1 15:18:50 1995 Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>
4704
4705 * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or
4706 DT_FINI entry if the appropriate symbol is not in the hash table.
4707
4708 * libelf.h (struct elf_backend_data): Add create_program_headers
4709 and want_hdr_in_seg fields.
4710 * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not
4711 defined.
4712 (elf_backend_create_program_headers): Likewise.
4713 (elfNN_bed): Initialize create_program_headers and
4714 want_hdr_in_seg.
4715 * elf.c (get_program_header_size): Call create_program_headers
4716 backend routine.
4717 (map_program_segments): Check want_hdr_in_seg backend field. Call
4718 create_program_headers backend routine.
4719
4720 * elf.c (assign_file_positions_except_relocs): Align non allocated
4721 sections when creating an executable.
4722
4723 * elfcode.h (elf_swap_phdr_in): Make non static.
4724 (elf_swap_phdr_out): Make non static.
4725 * libelf.h (bfd_elf32_swap_phdr_in): Declare.
4726 (bfd_elf32_swap_phdr_out): Declare.
4727 (bfd_elf64_swap_phdr_in): Declare.
4728 (bfd_elf64_swap_phdr_out): Declare.
4729
4730 * ecofflink.c (ecoff_collect_shuffle): New static function.
4731 (_bfd_ecoff_get_accumulated_pdr): New function.
4732 (_bfd_ecoff_get_accumulated_sym): New function.
4733 (_bfd_ecoff_get_accumulated_ss): New function.
4734 * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare.
4735 (_bfd_ecoff_get_accumulated_sym): Declare.
4736 (_bfd_ecoff_get_accumulated_ss): Declare.
4737 * libbfd.h: Rebuild.
4738
0cb70568
ILT
4739Fri Sep 1 13:20:25 1995 Ian Lance Taylor <ian@cygnus.com>
4740
d6f672b8
ILT
4741 * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo.
4742
0cb70568
ILT
4743 * elflink.h (elf_link_add_object_symbols): Handle indirect and
4744 warning symbols. If any section is named .gnu.warning.XXX, treat
4745 the contents as a warning to be issued if the symbol XXX is
4746 referenced.
4747 (elf_link_output_extsym): For an indirect or warning symbol, just
4748 output the symbol it points to.
4749
4750 * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error
4751 if bfd_hash_allocate fails, since it will already be set.
4752 (generic_link_hash_newfunc): Likewise.
4753 (archive_hash_newfunc): Likewise.
4754 (hash_entry_bfd): New static function.
4755 (_bfd_generic_link_add_one_symbol): Pass new arguments to warning
4756 callback. Allocate a new warning using the hash table newfunc.
4757 Use bfd_hash_replace to update the entry in the hash table, rather
4758 than assuming we can copy the fields with structure assignment.
4759
4760 * hash.c (bfd_hash_replace): New function.
4761 * bfd-in.h (bfd_hash_replace): Declare.
4762 * bfd-in2.h: Rebuild.
4763
f14db880
JSC
4764Fri Sep 1 08:12:50 1995 James G. Smith <jsmith@beauty.cygnus.com>
4765
4766 * config.bfd: Add mips*vr4300-*-elf* target.
4767 * config/mipsbvr4300.mt: Added.
4768
1613e075 4769See file ChangeLog.2
e6d739eb 4770
41126f15
JK
4771\f
4772Local Variables:
4773mode: indented-text
4774left-margin: 8
6ec3bb6a
ILT
4775fill-column: 74
4776version-control: never
4777End:
This page took 0.398937 seconds and 4 git commands to generate.