* coff-tic80.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set this to 2
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
4b4ac3ae
FF
1start-sanitize-tic80
2Sun Mar 2 22:47:54 1997 Fred Fish <fnf@cygnus.com>
3
4 * coff-tic80.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set this to 2
5 instead of 4.
6
7end-sanitize-tic80
a48ef404
ILT
8Sun Mar 2 16:25:35 1997 Ian Lance Taylor <ian@cygnus.com>
9
10 * elflink.h (elf_link_find_version_dependencies): Check that
11 DEF_REGULAR is not set as well as checking that DEF_DYNAMIC is
12 set.
13
84fd6e7e
FF
14start-sanitize-tic80
15Fri Feb 28 16:52:40 1997 Fred Fish <fnf@cygnus.com>
16
17 * coffcode.h (coff_set_flags): Add case for TIC80_ARCH_MAGIC.
18
19end-sanitize-tic80
af4dffff
ILT
20Fri Feb 28 15:06:45 1997 Ian Lance Taylor <ian@cygnus.com>
21
73769e1f
ILT
22 * targets.c (bfd_default_vector): Make non-const.
23 (find_target): New static function, broken out of
24 bfd_find_target.
25 (bfd_set_default_target): New function.
26 (bfd_find_target): Call find_target. When defaulting, use
27 bfd_default_vector[0] if it is not NULL.
28 * libbfd-in.h (bfd_default_vector): Adjust declaration.
29 * bfd-in2.h, libbfd.h: Rebuild.
30
af4dffff
ILT
31 * syms.c (bfd_is_local_label): Return false if the symbol has no
32 name.
33 * coff-i960.c (coff_i960_is_local_label_name): New function.
34 (coff_bfd_is_local_label_name): Define.
35 * coff-m68k.c (m68k_coff_is_local_label_name): New function.
36 (coff_bfd_is_local_label_name): Define.
37 * coff-rs6000.c (xcoff_is_local_label_name): New function.
38 (coff_bfd_is_local_label_name): Define.
39 * elf.c (_bfd_elf_is_local_label_name): Treat symbols beginning
40 with .. or _.L_ as local.
41 * elf32-i386.c (elf_i386_is_local_label_name): New function.
42 (bfd_elf32_bfd_is_local_label_name): Define.
43 * evax-alpha.c (evax_bfd_is_local_label_name): Treat symbols
44 beginning with $ as local.
45
85d6f0b4
ILT
46Thu Feb 27 18:36:23 1997 Ian Lance Taylor <ian@cygnus.com>
47
e316f514
ILT
48 * aoutx.h (aout_link_write_symbols): Use bfd_is_local_label_name
49 rather than comparing against info->lprefix.
50 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
51 * elflink.h (elf_link_input_bfd): Likewise.
52 * linker.c (_bfd_generic_link_output_symbols): Likewise.
53 * xcofflink.c (xcoff_link_input_bfd): Likewise.
54
55 * elfxx-target.h (bfd_elfNN_bfd_is_local_label_name): Define as
56 _bfd_elf_is_local_label_name if not already defined.
57 * elf.c (_bfd_elf_is_local_label_name): New function.
58 * elf-bfd.h (_bfd_elf_is_local_label_name): Declare.
59
60 * coff-m88k.c (coff_bfd_is_local_label_name): Define.
61 (m88k_is_local_label_name): New static function.
62
63 * coffcode.h (coff_bfd_is_local_label_name): Define as
64 _bfd_coff_is_local_label_name if not already defined.
65 * coffgen.c (_bfd_coff_is_local_label_name): New function.
66 * libcoff-in.h (_bfd_coff_is_local_label_name): Declare.
67 * libcoff.h: Rebuild.
68
35a3e78e
ILT
69 * targets.c (BFD_JUMP_TABLE_SYMBOLS): Change _bfd_is_local_label
70 to _bfd_is_local_label_name.
71 (bfd_target): Likewise.
72 * syms.c (bfd_is_local_label): Define as function, not macro.
73 (bfd_is_local_name): Define.
74 * libbfd.c (bfd_generic_is_local_label_name): Rename from
75 bfd_generic_is_local_label, and take a string rather than a
76 symbol.
77 * libbfd-in.h (_bfd_nosymbols_bfd_is_local_label): Don't define.
78 (_bfd_nosymbols_bfd_is_local_label_name): Define.
79 (bfd_generic_is_local_label): Don't declare.
80 (bfd_generic_is_local_label_name): Declare.
81 * bfd-in2.h, libbfd.h: Rebuild.
82 * All backends: Change local_label to local_label_name.
83
85d6f0b4
ILT
84 * elf32-mips.c (struct mips_got_info): Add assigned_gotno field.
85 (mips_elf_relocate_got_local): Change return type to boolean.
86 Don't assume that the first zero entry is unassigned; instead, use
87 assigned_gotno.
88 (mips_elf_relocate_section): Check return value of
89 mips_elf_relocate_got_local.
90 (mips_elf_create_got_section): Initialize assigned_gotno field.
91
56819c99
MH
92start-sanitize-d30v
93Wed Feb 26 15:19:51 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
94
95 * elf32-d30v.c (bfd_elf_d30v_reloc): Add code to do 32-bit
96 relocations.
97
98end-sanitize-d30v
fa802cb0
ILT
99Wed Feb 26 13:33:03 1997 Ian Lance Taylor <ian@cygnus.com>
100
101 * elflink.h (elf_link_input_bfd): Don't skip symbols from sections
102 that have no contents merely because linker_mark is not set.
103
104Tue Feb 25 18:51:35 1997 Stan Shebs <shebs@andros.cygnus.com>
105
106 * config.bfd (mips*-*-lnews*): New target.
107 * coff-mips.c (mips_relocate_section): Make assert compare
108 content byteorder instead of header byteorder.
109 (ecoff_biglittle_vec): New BFD, big-endian headers, little-endian
110 data.
55ef0d90 111 * targets.c (bfd_target_vector): Add ecoff_biglittle_vec.
fa802cb0
ILT
112 * configure.in (ecoff_biglittle_vec): Add case.
113 * configure: Update.
114
7b4be668
ILT
115Tue Feb 25 00:32:49 1997 Ian Lance Taylor <ian@cygnus.com>
116
b08f5ac2
ILT
117 * elf.c (elf_fake_sections): Use SHT_NOTE for any section whose
118 name begins with ".note".
119 (map_sections_to_segments): Add a PT_NOTE segment for any loadable
120 section whose name begins with ".note".
121 (get_program_header_size): Corresponding change.
122
7b4be668
ILT
123 * elf32-mips.c (mips_elf_relocate_section): Check for misaligned
124 jal and for jal overflow.
125
126Mon Feb 24 17:53:14 1997 Ian Lance Taylor <ian@cygnus.com>
127
128 From Eric Youngdale <eric@andante.jic.com>:
129 * elflink.h (elf_link_add_archive_symbols): If a default symbol is
130 not found, try looking it up again without the version name.
131 (elf_link_add_object_symbols): Always link against the dynamic
132 symbol table of a dynamic object. When linking against a dynamic
133 object, include version strings in symbol names, and set up
134 version information. Add indirect symbols for default versions.
135 (elf_link_create_dynamic_sections): Add special version sections.
136 (struct elf_assign_sym_version_info): Define.
137 (struct elf_find_verdep_info): Define.
138 (NAME(bfd_elf,size_dynamic_sections)): Add verdefs parameter. Set
139 up version sections.
140 (elf_adjust_dynamic_symbol): Ignore indirect symbols.
141 (elf_link_find_version_dependencies): New static function.
142 (elf_link_assign_sym_version): New static function.
143 (elf_link_renumber_dynsyms): New static function.
144 (struct elf_final_link_info): Add symver_sec field.
145 (elf_bfd_final_link): Initialize finfo.symver_sec. Don't count
146 local symbols of a dynamic object. Handle DT_VER* constants.
147 (elf_link_output_extsym): Simplify BFD_ASSERT checking for a
148 dynamic object. Skip indirect symbols from ELF objects. Remove
149 the version name before choosing a hash bucket. Write out the
150 version information if appropriate.
151 (elf_link_input_bfd): Check for DYNAMIC, not ET_DYN.
152 * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
153 (bfd_elf64_size_dynamic_sections): Likewise.
154 * bfd-in2.h: Rebuild.
155 * elf-bfd.h (struct elf_link_hash_entry): Add verinfo field.
156 Change elf_link_hash_flags to unsigned short.
157 (ELF_LINK_HIDDEN): Define.
158 (struct elf_obj_tdata): Add fields dynversym_hdr, dynverref_hdr,
159 dynverdef_hdr, dynversym_section, dynverdef_section,
160 dynverref_section, cverdefs, cverrefs, verdef, verref.
161 (elf_dynversym, elf_dynverdef, elf_dynverref): Define.
162 (_bfd_elf_swap_verdef_in, _bfd_elf_swap_verdef_out): Declare.
163 (_bfd_elf_swap_verdaux_in, _bfd_elf_swap_verdaux_out): Declare.
164 (_bfd_elf_swap_verneed_in, _bfd_elf_swap_verneed_out): Declare.
165 (_bfd_elf_swap_vernaux_in, _bfd_elf_swap_vernaux_out): Declare.
166 (_bfd_elf_swap_versym_in, _bfd_elf_swap_versym_out): Declare.
167 (_bfd_elf_slurp_version_tables): Declare.
168 * elf.c (_bfd_elf_swap_verdef_in): New function.
169 (_bfd_elf_swap_verdef_out): Likewise.
170 (_bfd_elf_swap_verdaux_in, _bfd_elf_swap_verdaux_out): Likewise.
171 (_bfd_elf_swap_verneed_in, _bfd_elf_swap_verneed_out): Likewise.
172 (_bfd_elf_swap_vernaux_in, _bfd_elf_swap_vernaux_out): Likewise.
173 (_bfd_elf_swap_versym_in, _bfd_elf_swap_versym_out): Likewise.
174 (_bfd_elf_print_private_bfd_data): Add DT_VER* constants. Print
175 version information if there is any.
176 (_bfd_elf_link_hash_newfunc): Initialize verinfo field.
177 (bfd_section_from_shdr): Handle SHT_GNU_ver* section types.
178 (elf_fake_sections): Handle .gnu.version* section names.
179 (assign_section_numbers): Handle SHT_GNU_ver* section types.
180 (_bfd_elf_slurp_version_tables): New function.
181 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't include
182 version name in string entered in dynamic hash table.
183 * elfcode.h: Include fnmatch.h.
184 * elf32-i386.c (elf_i386_relocate_section): Handle a dynamic
185 symbol which was forced to become local.
186 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
187 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
188 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
189 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
190
7b951eed
JL
191Fri Feb 21 16:15:18 1997 Jeffrey A Law (law@cygnus.com)
192
193 * elf32-mn10200.c (mn10200_elf_final_link_relocate): Simplify
194 somewhat.
195 (mn10200_elf_relax_section): Correctly compute a symbol's value
196 when the symbol is local, but not in the same section as we are
197 relaxing. Implement abs24 -> abs16, imm24 -> imm16 and d24 -> d16
198 relaxing.
199
77dd1a25
DE
200start-sanitize-m32r
201Fri Feb 21 13:55:14 1997 Doug Evans <dje@seba.cygnus.com>
202
203 * elf32-m32r.c: Rewrite to use ELF backend linker.
204 Store lower 16 bits of addend in R_M32R_HI16_[SU]LO insns.
205 Add small data area support (R_M32R_SDA16).
206 * reloc.c: Document BFD_RELOC_M32R_SDA16.
207 * bfd-in2.h,libbfd.h: Regenerated.
208
209end-sanitize-m32r
fd395661
JL
210Thu Feb 20 23:50:31 1997 Jeffrey A Law (law@cygnus.com)
211
212 * elf32-mn10200.c (mn10200_elf_relax_section): New function.
213 (mn10200_elf_relax_delete_bytes): Likewise.
214 (mn10200_elf_symbol_address_p): Likewise.
215 (mn10200_elf_get_relocated_section_contents): Likewise.
216 (bfd_elf32_bfd_relax_section): Define.
217 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
64af6679
JL
218
219 * elf32-mn10200.c (mn10200_elf_final_link_relocate): New function.
220 (mn10200_elf_relocate_section): Likewise.
221 (elf_backend_relocate_section): Define.
222
fd8d7c31
MH
223start-sanitize-d30v
224Tue Feb 18 17:22:59 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
225
226 * Makefile.in, archures.c, config.bfd, configure.in, elf.c,
227 reloc.c, targets.c: New target, elf-*-D30V.
228
229 * bfd-in2.h, configure, libbfd.h: Rebuilt.
230
231 * cpu-d30v.c, elf32-d30v.c: New files.
232
233end-sanitize-d30v
92a956e8
FF
234Tue Feb 18 15:31:48 1997 Fred Fish <fnf@cygnus.com>
235
236 * reloc.c (struct reloc_howto_struct): Fix typo in comment.
237 * bfd-in2.h: Regenerated.
238start-sanitize-tic80
239 * coff-tic80.c (RTYPE2HOWTO): Replace abort with real function.
240 (rtype2howto): Add function.
241 (tic80_howto_table): Add.
242end-sanitize-tic80
243
244Tue Feb 18 11:41:00 1996 Dawn Perchik <dawn@cygnus.com>
245
246 * sysdep.h: Don't define errno in MSVC if error.h is included.
247
8d1ba96e
JL
248start-sanitize-v850
249Tue Feb 18 10:04:13 1997 Jeffrey A Law (law@cygnus.com)
250
251 * elf32-v850.c (v850_elf_relocate_section): Make sure r_symndx
252 is initialized before it is used.
253
254end-sanitize-v850
8ceca983
ILT
255Mon Feb 17 11:28:40 1997 Ian Lance Taylor <ian@cygnus.com>
256
257 * hp300hpux.c (convert_sym_type): Don't convert a secondary common
258 symbol into a weak undefined symbol; leave it as a common symbol.
259
54626f1a
ILT
260Fri Feb 14 19:08:03 1997 Ian Lance Taylor <ian@cygnus.com>
261
262 * elflink.h (elf_link_add_object_symbols): Don't issue a warning
263 about a symbol defined in a dynamic object if it has already been
264 defined in a regular object.
265
236969ac
ILT
266Thu Feb 13 20:53:22 1997 Klaus Kaempf (kkaempf@progis.de)
267
268 * makefile.vms: Add gcc flags to allow compiling with current gcc
269 snapshot
270 (targmatch.h): New dependency.
271
54626f1a
ILT
272 * reloc.c (BFD_RELOC_ALPHA_CODEADDR): New relocation for
273 openVMS/Alpha.
274 * evax.h (ALPHA_R_CODEADDR): New relocation.
275 * evax-alpha.c (ALPHA_R_CODEADDR): 64 bit procedure relocation for
276 openVMS/Alpha.
277 * evax-etir.c (ALPHA_R_CODEADDR): Output object code for this
278 relocation.
279 * bfd-in2.h, libbfd.h: Rebuild.
280
281 Restrict symbol length to 64 bytes, case preserving:
282 * evax-emh.c (_bfd_evax_write_emh): Remove case hacking.
283 * evax-misc.c (_bfd_evax_case_hack_symbol): Remove.
284 (_bfd_evax_length_hash_symbol): Added.
285 * evax-etir.c (_bfd_evax_write_etir): Call
286 _bfd_evax_length_hash_symbol before output of symbol.
287 * evax-egsd.c (_bfd_evax_write_egsd): Likewise.
288 * evax.h (flag_hash_long_names, flag_show_after_trunc): Remove.
289
290 * evax-emh.c: Output filename to object file without path.
291
292 * evax-egsd.c: New sections for local and global commons.
293
294 * evax-alpha.c, evax-emh.c, evax-egsd.c, evax-etir.c,
295 evax-misc.c, evax.h: Remove 8 bit characters from copyright
296 notices. Replace AXP with Alpha.
297
62332d05
ILT
298Wed Feb 12 18:10:30 1997 Ian Lance Taylor <ian@cygnus.com>
299
300 * sunos.c (sunos_create_dynamic_sections): We need the dynamic
301 sections if we are creating a shared library.
302
3883007e
DE
303Tue Feb 11 15:45:43 1997 Doug Evans <dje@canuck.cygnus.com>
304
305 * configure.host (i386-windows): Don't set host64=true.
306
a4183ba5
ILT
307Tue Feb 11 15:27:32 1997 Ian Lance Taylor <ian@cygnus.com>
308
309 * elf32-mips.c (reloc_type): Add R_MIPS16_GPREL.
310 (elf_mips16_gprel_howto): New static variable.
311 (mips16_gprel_reloc): New static function.
312 (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_GPREL.
313 (mips_info_to_howto_rel): Handle R_MIPS16_GPREL.
314 (mips_elf_relocate_section): Handle R_MIPS16_GPREL.
315 * reloc.c (BFD_RELOC_MIPS16_GPREL): Define.
316 * bfd-in2.h, libbfd.h: Rebuild.
317
b9c5ee68
DE
318start-sanitize-m32r
319Mon Feb 10 23:25:00 1997 Doug Evans <dje@seba.ricochet.net>
320
321 * elf32-m32r.c (elf_m32r_howto_table): Change partial_inplace to true
322 for R_M32R_{16,32,24,HI16_ULO,HI16_SLO,LO16}.
323
324end-sanitize-m32r
276c2d7d
GRK
325start-sanitize-r5900
326 Fri Feb 7 16:20:17 1997 Gavin Koch <gavin@cygnus.com>
327
328 * config.bfd: add r5900
329
330end-sanitize-r5900
ba4a4594
ILT
331Fri Feb 7 12:39:11 1997 Ian Lance Taylor <ian@cygnus.com>
332
333 * elflink.h (elf_link_input_bfd): If we've discarded a section,
334 the output section will be the absolute section; don't print an
335 assertion message for that case when doing a relocateable link.
336
e900e695
ILT
337Thu Feb 6 16:55:43 1997 Ian Lance Taylor <ian@cygnus.com>
338
339 * elf32-mips.c (FN_STUB, CALL_STUB, CALL_FP_STUB): Define.
340 (struct mips_elf_link_hash_entry): Add new fields fn_stub,
341 need_fn_sub, call_stub, and call_fp_stub.
342 (struct mips_elf_link_hash_table): Add field mips16_stubs_seen.
343 (mips_elf_link_hash_newfunc): Initialize new fields.
344 (mips_elf_link_hash_table_create): Likewise.
345 (mips_elf_relocate_section): Redirect relocations to use mips16
346 stubs when appropriate.
347 (mips_elf_check_relocs): Attach stub sections to the appropriate
348 symbol. Set need_fn_stub when appropriate.
349 (mips_elf_always_size_sections): New static function.
350 (mips_elf_check_mips16_stubs): New static function.
351 (elf_backend_always_size_sections): Define.
352 * elf-bfd.h (struct elf_obj_tdata): Add local_stubs field.
353
354 * elflink.h (elf_link_input_bfd): Discard local symbols that are
355 attached to sections which are not being included in the link.
356
5b61a02a
ILT
357Wed Feb 5 13:20:17 1997 Ian Lance Taylor <ian@cygnus.com>
358
359 * cofflink.c (_bfd_coff_generic_relocate_section): Ignore the
360 symbol value when computing the addend for a pc_relative
361 pcrel_offset reloc.
362
bcb686ca
ILT
363Mon Feb 3 11:54:06 1997 Ian Lance Taylor <ian@cygnus.com>
364
5a50eec6
ILT
365 * cofflink.c (_bfd_coff_generic_relocate_section): If doing a
366 relocateable link, just skip pc_relative pcrel_offset relocs.
367 * coff-arm.c (coff_arm_rtype_to_howto): Return a different howto
368 structure for an ARM26 reloc which can be resolved.
369 (coff_arm_adjust_symndx): Only convert ARM26 to ARM26D if the
370 reloc can be resolved.
371
bcb686ca
ILT
372 * coff-h8300.c (h8300_reloc16_extra_cases): Correct off by one
373 error in overflow check for R_RELBYTE.
374
167dc907
ILT
375Fri Jan 31 14:07:27 1997 Ian Lance Taylor <ian@cygnus.com>
376
6c58561e
ILT
377 * ieee.c (ieee_slurp_section_data): Pick up the start address.
378 From Mark Rasin <mark.rasin@telrad.co.il>.
379
167dc907
ILT
380 * aoutx.h (aout_link_write_symbols): Don't apply discard_l to
381 debugging symbols.
382
1a2faf1f
JL
383Wed Jan 29 00:00:49 1997 Jeffrey A Law (law@cygnus.com)
384
385 * elf32-mn10200.c (reloc_type): Add 16bit pc-relative reloc.
386 (elf_mn10200_howto_table): Likewise.
387 (mn10200_reloc_map): Likewise.
388
1d5c6cfd
DE
389start-sanitize-m32r
390Mon Jan 27 12:07:35 1997 Doug Evans <dje@seba.cygnus.com>
391
392 * reloc.c: Add relocs BFD_RELOC_M32R_{HI16_[US]LO,LO16}.
393 * bfd-in2.h, libbfd.h: Regenerated.
394 * elf32-m32r.c: Add support for them.
395
396end-sanitize-m32r
9950f925
ILT
397Mon Jan 27 12:25:02 1997 Ian Lance Taylor <ian@cygnus.com>
398
54aa1dea
ILT
399 * aout-arm.c (MY_swap_std_reloc_in): Remove unused r_length.
400 * elf32-ppc.c (ppc_elf_check_relocs): Remove unused plt.
401start-sanitize-v850
402 * elf32-v850.c (v850_elf_final_link_relocate): Remove used
403 r_format and r_pcrel. Always return a value.
404end-sanitize-v850
405 * riscix.c (MY_final_link_callback): Define to dummy value.
406
9950f925
ILT
407 * elf32-i386.c (elf_i386_size_dynamic_sections): When checking for
408 relocations against the text segment, look up the output name of
409 the reloc section.
410 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
411 * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise.
412 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
413 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
414 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
415
0716c2e9 416start-sanitize-tic80
8c00b01d
FF
417Wed Jan 22 15:40:28 1997 Fred Fish <fnf@cygnus.com>
418
419 * coff-tic80.c (tic80coff_vec): Use correct data put/get
420 routines for little endian data.
421 * coffcode.h (coff_write_object_contents): Set magic to
422 TIC80_ARCH_MAGIC for TIc80.
423
0716c2e9
FF
424Tue Jan 21 12:32:43 1997 Fred Fish <fnf@cygnus.com>
425
426 * coff-tic80.c (tic80coff_vec): Change to little endian data
427 as the default.
428
429end-sanitize-tic80
db109ca2
ILT
430Thu Jan 16 17:45:57 1997 Ian Lance Taylor <ian@cygnus.com>
431
432 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Change type of
433 auxiliary_filters parameter to be const char * const *. Accept a
434 NULL terminated array.
435 * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
436 (bfd_elf32_size_dynamic_sections): Update declaration.
437 * bfd-in2.h: Rebuild.
438
439Wed Jan 15 11:21:32 1997 Ian Lance Taylor <ian@cygnus.com>
440
441 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Treat a
442 NOTYPE symbol in a text section as a FUNC symbol.
443
444 * coffcode.h (coff_compute_section_file_positions): Force
445 relocbase to be aligned to COFF_DEFAULT_SECTION_ALIGNMENT_POWER.
446
e1616e16
DE
447Tue Jan 14 08:46:33 1997 Doug Evans <dje@canuck.cygnus.com>
448
449 * libaout.h (machine_type): Reserve several values for sparclet.
450
4af93ad0
MM
451start-sanitize-tic80
452Mon Jan 13 22:39:08 1997 Michael Meissner <meissner@tiktok.cygnus.com>
453
454 * config.bfd (tic80-*-*): Don't require 'coff'.
455
91eb4378 456end-sanitize-tic80
0ce71ebd
MM
457start-sanitize-v850
458Mon Jan 13 19:36:25 1997 Michael Meissner <meissner@tiktok.cygnus.com>
459
460 * elf32-v850.c (v850_elf_howto_table): Set the special_function
461 table to v850_elf_reloc for all non-standard relocations.
462 (v850_elf_check_relocs): Add check for h being non-null.
463 (v850_elf_reloc): Add R_V850_ZDA_OFFSET support. Use switch
464 statement instead of multiple ifs.
465 (v850_elf_relocate_section): Fix up error message, don't just call
466 abort.
467
468end-sanitize-v850
483e1b91
JL
469Mon Jan 6 13:28:35 1997 Jeffrey A Law (law@cygnus.com)
470
09a7bde3 471 * elf32-mn10200.c (elf_mn10200_howto): Don't ever set partial-inplace.
40131692
JL
472 Use bfd_elf_generic_reloc as special function for all relocs.
473 (bfd_elf32_mn10200_reloc): Remove unnecessary function.
474
475 * elf32-mn10200.c (elf_mn10200_howto): Set pcrel_offset for
483e1b91
JL
476 24bit pc-relative reloc.
477
28eb95aa
FF
478start-sanitize-tic80
479Fri Jan 3 16:33:00 1997 Fred Fish <fnf@cygnus.com>
480
481 * Makefile.in (coff-tic80.o): Add coffcode.h to dependency list.
482 * coff-tic80.c (tic80coff_vec): Data byte order is big endian and
483 header byte order is little endian. Use correct bfd_get and
484 bfd_put routines for little endian headers.
485 * coffcode.h (coff_set_arch_mach_hook): Set arch to
486 bfd_arch_tic80 for TIC80_ARCH_MAGIC number.
487
488end-sanitize-tic80
b3ef3894
JL
489Fri Jan 3 16:54:08 1997 Jeffrey A Law (law@cygnus.com)
490
491 * reloc.c: Add BFD_RELOC_24.
492 * elf32-mn10200.c (enum reloc_type): Add 24bit and pcrel relocs.
493 (elf_mn10200_howto, mn10200_reloc_map): Corresponding changes.
494 * bfd-in2.h, libbfd.h: Rebuilt.
495
ff12f303
ILT
496Fri Jan 3 16:58:31 1997 Richard Henderson <rth@tamu.edu>
497
498 elf64-alpha multiple .got rewrite:
499
500 * elf-bfd.h (struct elf_backend_data): Add always_size_sections entry.
501 (bfd_elf*_mkobject): Don't define here ...
502 * elfxx-target.h: ... but rather here. Default always_size_sections
503 hook to NULL.
504 * elf.c (elf_mkobject): Rename to bfd_elf_mkobject, since that was
505 what the #defines in elf-bfd.h transmuted it to anyway.
506
507 * section.c: Add SEC_LINKER_CREATED flag.
508 * bfd-in2.h: Rebuild.
509 * elf32-i386.c (elf_i386_check_relocs): Add SEC_LINKER_CREATED to
510 relocation section flags.
511 (elf_i386_size_dynamic_sections): Use SEC_LINKER_CREATED instead of
512 SEC_IN_MEMORY to recognize generated bits.
513 * elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_size_dynamic_sections):
514 Likewise.
515 * elf32-mips.c (mips_elf_final_link, mips_elf_create_dynamic_sections,
516 mips_elf_create_compact_rel_section, mips_elf_create_got_section,
517 mips_elf_check_relocs, mips_elf_size_dynamic_sections): Likewise.
518 * elf32-ppc.c (ppc_elf_create_linker_section,
519 ppc_elf_size_dynamic_sections): Likewise.
520 * elf32-sparc.c (elf32_sparc_check_relocs,
521 elf32_sparc_size_dynamic_sections): Likewise.
522 * elflink.c (_bfd_elf_create_got_section): Add SEC_LINKER_CREATED to
523 section flags.
524 (_bfd_elf_create_dynamic_sections): Likewise.
525 (_bfd_elf_make_linker_section_rela): Likewise.
526 * elflink.h (elf_link_create_dynamic_sections): Likewise.
527 (bfd_elf,size_dynamic_sections): Call the always_size_sections hook.
528 (elf_bfd_final_link): Use SEC_LINKER_CREATED instead of SEC_IN_MEMORY
529 to identify generated bits.
530 (elf_link_input_bfd): Likewise.
531
532 * elf64-alpha.c: Rewrite everything touching relocations.
533
afaed5e9 534start-sanitize-v850
de224d6a
MM
535Fri Jan 3 11:42:53 1997 Michael Meissner <meissner@tiktok.cygnus.com>
536
537 * elf32-v850.c (all functions and static variables): Go through
538 and regularize names to be of the form v850_elf_<xxx>.
539 (toplevel): Include <elf/v850.h>.
540 (enum reloc_type): Move to include/elf/v850.h.
541 (v850_elf_check_relocs): For common variables, if the variable is
542 referenced by a R_V850_{SDA,ZDA,TDA} relocation, put the variable
543 into the appropriate section.
544 (elf_backend_check_relocs): Define.
545
afaed5e9
MM
546Tue Dec 31 15:15:28 1996 Michael Meissner <meissner@tiktok.cygnus.com>
547
548 * elf32-v850.c (elf_v850_howto_table): Fix some spacing.
549
550end-sanitize-v850
148437ec
ILT
551Tue Dec 31 14:44:50 1996 Ian Lance Taylor <ian@cygnus.com>
552
7c342fc5
ILT
553 * config.bfd (mips*el-*-linux*): New target.
554 (mips*-*-linux*): New target.
555
556 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Clean up.
557 Return a useful value.
558
6ded6615
ILT
559 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
560
dda7af9f
ILT
561 * configure.in: Check ac_cv_func_mmap_fixed_mapped, not
562 ac_cv_func_mmap.
563 * configure: Rebuild.
ab98712a
ILT
564 * configure.host: Use ac_cv_func_mmap_fixed_mapped instead of
565 ac_cv_func_mmap in bfd/configure.host.
dda7af9f 566
148437ec
ILT
567 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Add
568 filter_shlib and auxiliary_filter_shlib parameters.
569 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_AUXILIARY and
570 DT_FILTER.
571 * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
572 (bfd_elf64_size_dynamic_sections): Likewise.
573 * bfd-in2.h: Rebuild.
574
1eeccb22
ILT
575Mon Dec 30 18:48:52 1996 Ian Lance Taylor <ian@cygnus.com>
576
577 * xcofflink.c (xcoff_build_ldsyms): When exporting all defined
578 symbols, don't export a symbol which is defined by an object in an
579 archive which contains shared objects.
580
60b26712 581start-sanitize-tic80
fc46a9ec
FF
582Mon Dec 30 16:12:58 1996 Fred Fish <fnf@cygnus.com>
583
584 * archures.c (enum bfd_architecture): Add bfd_arch_tic80
585 for TI TMS320c80 (MVP).
586 (bfd_archures_list): Add bfd_tic80_arch.
587 * bfd-in2.h: Regenerate by running "make headers".
588
60b26712
FF
589Sun Dec 29 16:18:52 1996 Fred Fish <fnf@cygnus.com>
590
591 * cpu-tic80.c (bfd_tic80_arch): Add struct.
592 * configure.in (case $vec): Correct typo, "tb" not "tp".
593 Also add cofflink.o for tic80coff_vec.
594 * configure: Regenerate with autoconf.
595
596end-sanitize-tic80
412f8c93
ILT
597Mon Dec 30 11:54:56 1996 Ian Lance Taylor <ian@cygnus.com>
598
599 * libbfd.c: Patch up the mmap code so that it is only built if BFD
600 is configured with --with-mmap.
601
5a608f5b 602start-sanitize-tic80
fc46a9ec 603Sun Dec 29 10:48:57 1996 Fred Fish <fnf@cygnus.com>
5a608f5b
FF
604
605 * Makefile.in (BFD32_BACKENDS): Add coff-tic80.o
606 (ALL_MACHINES): Add cpu-tic80.o
607 (cpu-tic80.o, coff-tic80.o): Add dependencies.
608 * coff-tic80.c: Add skeleton, cloned from another coff config.
609 * coffcode.h (coff_write_object_contents): Set magic to TIC80MAGIC
610 for TIc80.
611
612end-sanitize-tic80
60b26712 613Fri Dec 27 20:56:41 1996 Fred Fish <fnf@cygnus.com>
cd6213ff
FF
614
615 * TODO: Correct a misspelling.
616start-sanitize-tic80
617 * coff-tic80.c: New file for TI TMS320C80 (MVP).
618 * cpu-tic80.c: New file for TI TMS320C80 (MVP).
619 * configure.in (case $vec): Add tic80coff_vec entry.
620 * configure: Regenerate with autoconf.
621 * archures.c (bfd_tic80_arch): Declare.
622 * bfd-in2.h (enum bfd_architecture): Add bfd_arch_tic80.
623 * config.bfd (case ${targ}): Add tic80*-*-coff* target.
624 * targets.c (tic80coff_vec): Add decl as extern bfd_target.
625 (bfd_target_vector): Add tic80coff_vec entry.
626end-sanitize-tic80
627
6b8ec6f3
ILT
628Fri Dec 27 11:48:12 1996 H.J. Lu <hjl@lucon.org>
629
630 * elflink.h (elf_buckets): Add some more values for larger
631 binaries.
632
78650abd
ILT
633Thu Dec 26 18:36:54 1996 Ian Lance Taylor <ian@cygnus.com>
634
635 * Makefile.in (install): Move subdir_do out of conditional. From
636 Fred Fish <fnf@cygnus.com>.
637
8d16fe5c
JL
638Wed Dec 18 10:04:30 1996 Jeffrey A Law (law@cygnus.com)
639
640 * elf32-mn10200.c (enum reloc_type): Enable basic 8, 16, and
641 32 bit relocs.
642 (elf_mn10200_howto_table): Likewise.
643 (mn10200_reloc_map): Likewise.
644
69e2ff18
ILT
645Tue Dec 17 11:09:36 1996 Ian Lance Taylor <ian@cygnus.com>
646
e4f4813f
ILT
647 * elf32-mips.c (mips_elf_add_symbol_hook): Add 1 to the value of a
648 mips16 symbol during the link.
649 (mips_elf_finish_dynamic_symbol): Subtract 1 from the value of a
650 mips16 symbol.
651 (mips_elf_link_output_symbol_hook): New static function.
652 (elf_backend_link_output_symbol_hook): Define.
653
69e2ff18
ILT
654 * elf.c (bfd_elf_print_symbol): Print the st_other field if it is
655 not zero.
656
e85f2fbd
ILT
657Mon Dec 16 14:38:39 1996 Ian Lance Taylor <ian@cygnus.com>
658
659 * elf.c (bfd_section_from_shdr): Don't check for reloc sections
660 against SEC_DEBUGGING sections here (revert patch of December 5).
661 * elfcode.h (elf_object_p): Check for them here, instead.
662
e35765a9
ILT
663Sun Dec 15 14:46:06 1996 Ian Lance Taylor <ian@cygnus.com>
664
665 * elfcode.h (elf_slurp_reloc_table): Add dynamic parameter.
666 * elf.c (_bfd_elf_canonicalize_reloc): Pass new argument to
667 slurp_reloc_table.
668 (_bfd_elf_get_dynamic_reloc_upper_bound): New function.
669 (_bfd_elf_canonicalize_dynamic_reloc): New function.
670 * elf-bfd.h (struct elf_size_info): Update declaration of
671 slurp_reloc_table.
672 (_bfd_elf_get_dynamic_reloc_upper_bound): Declare.
673 (_bfd_elf_canonicalize_dynamic_reloc): Declare.
674 * elfxx-target.h: Use new dynamic reloc routines by default.
675 * elf64-mips.c (mips_elf64_slurp_reloc_table): Add dynamic
676 parameter.
677
6270adfb
ILT
678Fri Dec 13 13:18:49 1996 Dan Wilder <dan@gasboy.com>
679
680 * coffcode.h (coff_set_flags): Use MC68KBCSMAGIC for bfd_arch_m68k
681 if NAMES_HAVE_UNDERSCORE is defined.
682
21e45f82
DE
683Fri Dec 13 11:13:23 1996 Doug Evans <dje@canuck.cygnus.com>
684
685 * libaout.h (enum machine_type): Change M_SPARCLET from 142 to 131.
686
e7bab9df
MM
687Thu Dec 12 15:07:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
688
689 * elf32-ppc.c (ppc_elf_check_relocs): Move R_PPC_PLTREL24 into the
690 supported relocs.
691
a5147005
ILT
692Thu Dec 12 14:55:41 1996 Ian Lance Taylor <ian@cygnus.com>
693
440f3914
ILT
694 * elflink.h (elf_link_add_object_symbols): Only add a weak
695 symbol if the real definition is in the dynamic symbol table.
696 After finding the real definition, then, if it is dynamic, add the
697 weak symbol to the dynamic symbol table.
698
e5c3708d
ILT
699 * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Make static.
700
a5147005
ILT
701 * ppcboot.c (ppcboot_set_arch_mach): Don't define; it's a
702 function.
703 (ppcboot_bfd_print_private_bfd_data): Don't take the address of an
704 array.
705
706Tue Dec 10 23:23:52 1996 Jeffrey A Law (law@cygnus.com)
707
708 * elf32-mn10300.c (reloc_type): Remove big endian mn10300 reloc
709 variants.
710 (elf32_mn10300_howto_table, mn10300_reloc_map): Likewise.
711 (bfd_elf32_mn10300_reloc): Write data in little endian format.
712 * reloc.c: Remove mn10300 big endian relocs.
713 * bfd-in2.h, libbfd.h: Rebuilt.
714
715 * elf32-mn10200.c: Update from elf32-mn10300.c.
716
207e944c
JL
717Fri Dec 6 15:18:05 1996 Jeffrey A Law (law@cygnus.com)
718
31cffd2e
JL
719 * elf32-mn10300.c (elf_symbol_leading_char): Define.
720
207e944c
JL
721 * elf32-mn10300.c: Add some comments.
722
6dcf1ef5
ILT
723Fri Dec 6 17:16:43 1996 Ian Lance Taylor <ian@cygnus.com>
724
725 * ihex.c (ihex_scan): Always initialize buf before jumping to
726 error_return.
727 (ihex_read_section): Likewise.
728
d28f058e
JL
729Thu Dec 5 22:29:18 1996 Jeffrey A Law (law@cygnus.com)
730
731 * elf32-mn10300.c (elf_mn10300_howto_table): Don't set partial-
732 inplace for most relocs.
733
80be821d
ILT
734Thu Dec 5 13:24:46 1996 Ian Lance Taylor <ian@cygnus.com>
735
736 * elflink.h (elf_link_add_object_symbols): Calling check_relocs
737 even if SEC_ALLOC is not set.
738 * elf32-i386.c (elf_i386_check_relocs): Don't check SEC_ALLOC
739 when deciding whether to copy a reloc into a shared object.
740 (elf_i386_relocate_section): Likewise.
741 * elf32-sparc.c (elf32_sparc_check_relocs): Likewise.
742 (elf32_sparc_relocate_section): Likewise.
743 * elf32-i386.c (elf_i386_check_relocs): Don't set SEC_ALLOC in a
744 reloc section if it is not set in the source section.
745 * elf32-sparc.c (elf32_sparc_check_relocs): Likewise.
746 * elf.c (bfd_section_from_shdr): Mark a reloc section associated
747 with a SEC_DEBUGGING section as SEC_DEBUGGING.
748
e5c4495c
MM
749Wed Dec 4 14:18:13 1996 Michael Meissner <meissner@tiktok.cygnus.com>
750
751 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): #if 0 code that
752 expects a .got.plt until we actually create it.
753
179b58d9
ILT
754Mon Dec 2 12:13:51 1996 Ian Lance Taylor <ian@cygnus.com>
755
e5c4495c
MM
756 * cofflink.c (_bfd_coff_generic_relocate_section): Print an error
757 message for bfd_reloc_outofrange, rather than aborting. From
758 Philippe De Muyter <phdm@info.ucl.ac.be>.
759
179b58d9
ILT
760 * cofflink.c (_bfd_coff_final_link): If there aren't any relocs in
761 a relocateable link, don't try to process them. From Heinz Wrobel
762 <wrobel@lpr.e-technik.tu-muenchen.de>.
763
943686fa
JL
764Mon Dec 2 00:39:24 1996 Jeffrey A Law (law@cygnus.com)
765
766 * elf32-mn10300.c (mn10300_info_howto): Renamed from
a5147005 767 mn10300_info_howto_rel. Tweak reloc argument to be an
943686fa
JL
768 Elf32_Internal_Rela.
769 (USE_RELA): Define instead of USE_REL.
770 (elf_info_to_howto, elf_info_howto_rel): Corresponding changes.
771
0e0f4106
PS
772Sun Dec 1 00:18:59 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
773
774 * configure.in, configure: Handle mips*-sgi-irix6*.
775 * irix-core.c (irix_core_core_file_p): Accept CORE_MAGICN32
776 core files.
777
15aafe49
ILT
778Wed Nov 27 12:10:25 1996 Ian Lance Taylor <ian@cygnus.com>
779
780 * elf32-i386.c (elf_i386_relocate_section): Warn about a
781 relocation against a symbol defined in a section with no output
782 section.
783
6c02f1a0
ILT
784Tue Nov 26 11:07:31 1996 Ian Lance Taylor <ian@cygnus.com>
785
dfc7020d
ILT
786 * aclocal.m4 (BFD_CC_FOR_BUILD): Don't require AC_C_CROSS.
787 * configure, config.in: Rebuild with autoconf 2.12.
788
6c02f1a0
ILT
789 * elf-bfd.h (struct elf_link_hash_entry): Add other field.
790 * elf.c (_bfd_elf_link_hash_newfunc): Initialize other field.
791 (swap_out_syms): Set st_other from existing st_other field.
792 * elflink.h (elf_link_add_object_symbols): Store st_other in hash
793 table other field.
794 (elf_link_output_extsym): Set the other field from the global hash
795 table entry.
796 * elf32-mips.c (enum reloc_type): Add R_MIPS16_26.
797 (elf_mips16_jump_howto): New static variable.
798 (mips16_jump_reloc): New static function.
799 (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_JMP.
800 (mips_info_to_howto_rel): Handle R_MIPS16_26.
801 (mips_elf_relocate_section): Handle R_MIPS16_26. Handle R_MIPS_26
802 to a mips16 symbol.
803 * reloc.c (BFD_RELOC_MIPS16_JMP): Add to list of relocs.
804 * bfd-in2.h, libbfd.h: Rebuild.
805 * cpu-mips.c (arch_info_struct): Add mips:16 entry.
806
f082b5ea
ILT
807Mon Nov 25 11:23:32 1996 Ian Lance Taylor <ian@cygnus.com>
808
809 * configure.host: Use long long for mips-sgi-irix6*.
810
811 * coffswap.h (coff_swap_scnhdr_out): Make line number overflow
812 only a warning. From Philippe De Muyter <phdemuyt@ulb.ac.be>.
813
12fdaaf8
JL
814Mon Nov 25 08:52:29 1996 Jeffrey A Law (law@cygnus.com)
815
816 * elf32-mn10300.c (bfd_elf32_mn10300_reloc): New function.
817 (enum reloc_type): Add more reloc types.
818 (elf32_mn10300_howto_table): Update for new reloc types.
819 (elf32_mn10300_reloc_map): Update for new reloc types.
820 * reloc.c: Add some new relocs for the mn10300 series.
821 * bfd-in2.h, libbfd.h: Rebuilt.
822
23def276
JL
823Sat Nov 23 13:26:18 1996 Jeffrey A Law (law@cygnus.com)
824
825 * som.c (setup_sections): Don't lose for a space which has
826 no data, but some symbols.
827
a600a89e
ILT
828Fri Nov 22 11:32:13 1996 Ian Lance Taylor <ian@cygnus.com>
829
830 * sunos.c (struct sunos_link_hash_table): Add got_needed field.
831 (sunos_link_hash_table_create): Initialize got_needed.
832 (sunos_create_dynamic_sections): Only set .got section size if it
833 is not already set. Set got_needed.
834 (bfd_sunos_size_dynamic_sections): Check got_needed. Only set
835 sdynptr, and only handle dynamic sections, if dynamic sections are
836 needed.
837 (sunos_scan_std_relocs): Pass false to create_dynamic_sections.
838 Initialize .got section.
839 (sunos_scan_ext_relocs): Likewise.
840 (sunos_write_dynamic_symbol): Set up PLT entry even if this is not
841 a dynamic symbol.
842 (sunos_finish_dynamic_link): Check got_needed. Only set up
843 dynamic linking information if needed.
844
aa09d6b2
RS
845Thu Nov 21 10:31:31 1996 Rob Savoye (rob@cygnus.com)
846
847 * config.bfd: Added VersaDOS format to the Ericsson configuration.
848
c3239e66
JL
849Wed Nov 20 16:31:31 1996 Jeffrey A Law (law@cygnus.com)
850
851 * elf32-mn10300.c: Rough cut at relocs for the mn10300.
852
c3239e66
JL
853Wed Nov 13 08:12:38 1996 Jeffrey A Law (law@cygnus.com)
854
855 * Makefile.in (elf32-d10v.o): Don't depend on elf/d10v.h
856 anymore.
857
c3239e66
JL
858Tue Nov 12 13:30:00 1996 Dawn Perchik <dawn@cygnus.com>
859
860 * filemode.c: Include sysdep.h.
861 * ihex.c: Add casts to eliminate compiler warnings.
862 * sunos.c: Add casts to eliminate compiler warnings.
863
9e23db76
MM
864Mon Nov 11 10:37:02 1996 Michael Meissner <meissner@tiktok.cygnus.com>
865
866 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Create .got.plt
867 section.
868 (ppc_elf_check_relocs): Add support for R_PPC_LOCAL24PC. Make
869 appropriate relocations in the .so file if shared.
870 (ppc_elf_relocate_section): Ditto.
871
affcfcf9
DE
872start-sanitize-m32r
873Tue Oct 29 15:03:02 1996 Doug Evans <dje@canuck.cygnus.com>
874
875 * elf32-m32r.c (elf_m32r_howto_table, R_M32R_24): Use
876 complain_overflow_unsigned.
877
878end-sanitize-m32r
421a2956
MH
879Tue Oct 29 12:53:46 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
880
881 * elf32-d10v.c (elf_d10v_howto_table): Don't complain on
882 overflows for R_D10V_16 and R_D10V_18.
883
061cc10b
ILT
884Tue Oct 29 13:23:53 1996 Ian Lance Taylor <ian@cygnus.com>
885
886 * ieee.c (ieee_write_section_part): Use LMA rather than VMA.
887 (do_with_relocs): Likewise.
888 (do_as_repeat): Likewise.
889 (copy_expression): Likewise.
890
891Fri Oct 25 16:56:40 1996 Ian Lance Taylor <ian@cygnus.com>
892
893 * ieee.c (ieee_write_external_part): Correctly record whether
894 there is an external part.
895
896start-sanitize-v850
897Thu Oct 24 14:32:52 1996 Jeffrey A Law (law@cygnus.com)
898
899 * elf32-v850.c (elf32_v850_bfd_final_link_relocate): Correctly
900 handle tda offsets for sld.w and sst.w instructions.
901 Fix alignment check in sld.w and sst.w tda reloc handling.
902
903end-sanitize-v850
27c7e907
SG
904Thu Oct 24 09:08:47 1996 Stu Grossman (grossman@critters.cygnus.com)
905
906 * aclocal.m4, configure: Set USE_BINARY_FOPEN for *-*-windows.
907
90ffe48b
JL
908start-sanitize-v850
909Wed Oct 23 00:53:16 1996 Jeffrey A Law (law@cygnus.com)
910
911 * elf32-v850.c: Add comments about assumptions about
912 char, short & long sizes.
913 (elf32_v850_bfd_final_link_relocate): Fix sign extension
914 problems for several relocs.
915
916 * elf32-v850.c (elf32_v850_howto_table): Fix typo in
917 R_V850_SDA_OFFSET entry.
918
c0e8bfc0 919end-sanitize-v850
84be2a8f
ILT
920Wed Oct 23 00:20:34 1996 Ian Lance Taylor <ian@cygnus.com>
921
922 * xcofflink.c (bfd_xcoff_import_symbol): Don't allocate ldsym.
923 Store import file index in ldindx.
924 (xcoff_build_ldsyms): Assume that ldsym was not previously
925 allocated. For an imported symbol, copy ldindx into l_ifile.
926
725b96f5
JL
927start-sanitize-v850
928Tue Oct 22 19:20:38 1996 Jeffrey A Law (law@cygnus.com)
929
c322f1b5 930 * elf32-v850.c (elf_v850_howto_table): Fix ordering of
90ffe48b
JL
931 R_V850_ZDA_OFFSET and R_V850_TDA_OFFSET. Fix various
932 fields in R_V850_TDA_OFFSET.
c322f1b5 933 (elf32_v850_bfd_final_link_relocate): Tweak pc-relative
90ffe48b 934 relocs to work more like other relocs. Handle R_V850_TDA_OFFSET
c322f1b5
JL
935 relocations.
936
725b96f5
JL
937 * elf32-v850.c: Include bfdlink.h.
938 (bfd_elf32_v850_reloc): Return an error if we get a reloc
939 we can't handle.
940 (elf32_v850_bfd_final_link_relocate): New function.
941 (v850_elf_relocation_section): Likewise.
942 (elf_backend_relocate_section): Define.
943
944end-sanitize-v850
40c0ea5a
ILT
945Tue Oct 22 17:22:43 1996 Ian Lance Taylor <ian@cygnus.com>
946
947 * binary.c (binary_set_section_contents): Ignore sections which
948 don't have SEC_LOAD and SEC_ALLOC set.
949
9c52f4b2
JL
950Mon Oct 21 12:13:05 1996 Jeffrey A Law (law@cygnus.com)
951
952 * linker.c (_bfd_generic_final_link): Avoid losing static
953 symbols in the .bss section.
954
bd4dd3d0
ILT
955Mon Oct 21 10:54:58 1996 Ian Lance Taylor <ian@cygnus.com>
956
68553b63
ILT
957 * elf32-mips.c (elf_mips_howto_table): Describe R_MIPS_64.
958 (mips32_64bit_reloc): New static function.
959 (mips_reloc_map): Add entry for BFD_RELOC_64.
960 (mips_elf_relocate_section): Handle R_MIPS_64.
961
bd4dd3d0
ILT
962 * linker.c (default_indirect_link_order): Print an error message
963 when attempting to do a relocateable link with different object
964 file formats, rather than calling abort.
965
56910544
DE
966start-sanitize-m32r
967Thu Oct 17 10:43:29 1996 Doug Evans <dje@canuck.cygnus.com>
968
969 * reloc.c (m32r relocs): Rename them.
970 * bfd-in2.h, libbfd.h: Regenerated.
971 * elf32-m32r.c: Update.
972 (m32r_elf_10_pcrel_reloc): New function.
973 (elf_m32r_howto_table, R_M32R_10_PCREL entry): Use it.
974 (elf_m32r_howto_table, R_M32R_24 entry): Fix {src,dst}_masks.
975
976end-sanitize-m32r
e1d98a0a
JL
977Wed Oct 16 11:24:35 1996 Jeffrey A Law (law@cygnus.com)
978
4948949e
JL
979 * linker.c (_bfd_generic_final_link): Set "linker_mark" for
980 all sections that will be included in the output file.
981 (_bfd_generic_link_output_symbols): Discard symbols in sections
982 which are being discarded.
983
984start-sanitize-v850
b6d08fce
JL
985
986 * elf32-v850.c (enum reloc_type): Add R_V850_SDA_OFFSET,
987 R_V850_TDA_OFFSET and R_V850_ZDA_OFFSET.
988 (elf_v850_howto_table): Corresponding changes.
989 (elf_v850_reloc_map): Corresponding changes.
990 * reloc.c: Add additional V850 relocations.
991 * bfd-in2.h, libbfd.h: Rebuilt.
992
e1d98a0a
JL
993 * elf32-v850.c (bfd_elf32_v850_reloc): Mask out bits we
994 no longer want in pc-relative relocs.
995
05f1baaa
JL
996Tue Oct 15 22:17:37 1996 Jeffrey A Law (law@cygnus.com)
997
998 * elf32-v850.c (bfd_elf32_v850_reloc): Don't silently
999 accept a reloc against an undefined sybmol!
1000
1336da39
SG
1001Tue Oct 15 16:17:28 1996 Stu Grossman (grossman@critters.cygnus.com)
1002
1003 * elf32-v850.c: Define elf_symbol_leading_char to be '_'.
1004
1005end-sanitize-v850
c24453fe
ILT
1006Tue Oct 15 12:40:41 1996 Ian Lance Taylor <ian@cygnus.com>
1007
ede836b9
ILT
1008 * VERSION: Bump for new relocation.
1009
c24453fe
ILT
1010 * hosts/i386bsd.h: If NBPG is not defined, define it as
1011 PAGE_SIZE, for recent versions of FreeBSD.
1012
e7a50458
ILT
1013Mon Oct 14 12:37:26 1996 Ian Lance Taylor <ian@cygnus.com>
1014
1015 * configure.host: Use `long long' as the 64 bit type on a Solaris
1016 host, since both gcc and the SunPRO compilers support it.
1017
6b31fd3a
ILT
1018Mon Oct 14 11:17:24 1996 Richard Henderson <rth@tamu.edu>
1019
1020 * reloc.c: Create a new BFD_RELOC_ALPHA_ELF_LITERAL. It was a
1021 mistake to have reused the ECOFF LITERAL for ELF since they have
1022 different semantics.
1023 * elf64-alpha.c (elf_reloc_map): Map from ELF_LITERAL.
1024 * bfd-in2.h, libbfd.h: Rebuild.
1025
1026 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Trap .got
1027 section overflow.
1028
1029 * elf64-alpha.c (elf64_alpha_relocate_section): Do not emit a
1030 dynamic relocation for an undefweak symbol when we are building
1031 a static executable.
1032
f20f2474
SS
1033Thu Oct 10 11:15:06 1996 Stan Shebs <shebs@andros.cygnus.com>
1034
1035 * mpw-make.sed (config.bfd, targmatch.sed): Edit references to
1036 point explicitly to srcdir.
1037 (targmatch.h): Edit references to point explicitly to objdir.
1038
3e222a5a
ILT
1039Thu Oct 10 14:14:23 1996 Ian Lance Taylor <ian@cygnus.com>
1040
1041 * config.bfd: When setting targ_cpu, don't get confused by
1042 linux-gnu.
1043
81501797
SG
1044Tue Oct 8 08:51:19 1996 Stu Grossman (grossman@critters.cygnus.com)
1045
1046 * configure.host: Add support for windows host (a build done
1047 under the Microsoft build environment).
1048
fe4ff515
ILT
1049Tue Oct 8 11:40:16 1996 Ian Lance Taylor <ian@cygnus.com>
1050
1c4794f5
ILT
1051 * elflink.h (elf_link_add_object_symbols): If a symbol is a weak
1052 definition in a dynamic object, add it to the dynamic symbol table
1053 if any dynamic object mentions it. Reverts part of last patch.
1054
9d81de19
ILT
1055 * sunos.c (struct sunos_link_hash_table): Add got_base field.
1056 (sunos_link_hash_table_create): Initialize got_base.
1057 (bfd_sunos_size_dynamic_sections): If the .got section is more
1058 than 0x1000 bytes, set __GLOBAL_OFFSET_TABLE_ and got_base to
1059 0x1000.
1060 (sunos_check_dynamic_reloc): Subtract got_base from a base
1061 relative relocation.
1062
fe4ff515
ILT
1063 * elf32-mips.c (elf_mips_isa): New static function.
1064 (_bfd_mips_elf_merge_private_bfd_data): Don't warn about linking
1065 -mips1 and -mips2 code together, or -mips3 and -mips4 code.
1066
1233f74b
ILT
1067Mon Oct 7 11:44:17 1996 Ian Lance Taylor <ian@cygnus.com>
1068
1069 * archive.c (do_slurp_coff_armap): Only treat archive as little
1070 endian for i960 COFF.
1071
a3d5a706
ILT
1072Fri Oct 4 13:49:01 1996 Ian Lance Taylor <ian@cygnus.com>
1073
65f56a58
ILT
1074 * coffcode.h (coff_compute_section_file_positions): Adjust sofar
1075 by the change in size of the section when EXEC_P is not set.
1076
a9dd34a9
ILT
1077 * coff-m68k.c (coff_rtype_to_howto): Define if not defined.
1078 (m68kcoff_rtype_to_howto): New static function.
1079 * cf-m68klynx.c (coff_m68k_lynx_rtype_to_howto): Add the section
1080 VMA to the addend for a PC relative reloc.
1081
05a68c24
ILT
1082 * dep-in.sed: Rework backslash loop a bit to avoid bug in sed on
1083 HP/UX 10.20.
1084 * Makefile.in: Rebuild dependencies.
1085
a3d5a706
ILT
1086 * dep-in.sed: Remove ../bfd/sysdep.h, since it will appear when
1087 som.h is included.
1088
c00ae065
JL
1089Fri Oct 4 11:41:39 1996 Jeffrey A Law (law@cygnus.com)
1090
1091 * Makefile.in: Remove explicit dependencies for mn10200 and
1092 mn10300 files.
1093 (ALL_MACHINE_CFILES): Add cpu-mn10200.c and cpu-mn10300.c.
1094 (BFD32_BACKENDS_CFILES): Add elf32-mn10200.c and elf32-mn10300.c
1095 (dependencies): Rebuilt.
1096
dee99794
ILT
1097Thu Oct 3 16:57:51 1996 Ian Lance Taylor <ian@cygnus.com>
1098
1d871eb7
ILT
1099 * cofflink.c (coff_link_add_symbols): Set obj_coff_keep_syms
1100 during this function.
1101
6b5af55c
ILT
1102 * elflink.c (_bfd_elf_create_linker_section): Only use an existing
1103 section if the flags are compatible.
1104
dee99794
ILT
1105 * configure.in: Add havevecs, and put it in tdefaults.
1106 * mpw-config.in: Likewise.
1107 * configure: Rebuild.
1108 * targmatch.sed: New file; a sed script to build targmatch.h from
1109 config.bfd.
1110 * config.bfd: Add #if, #endif, and comments for targmatch.h.
1111 * targets.c: Include "fnmatch.h".
1112 (struct targmatch): Define.
1113 (bfd_target_match): Define by including targmatch.h.
1114 (bfd_find_target): If the target is not found by name, search for
1115 it as a configuration triplet.
1116 * Makefile.in: Rebuild dependencies.
1117 (BFD32_BACKENDS): Add aout-arm.o, aout-sparcle.o, hp300bsd.o,
1118 i386dynix.o, m68k4knetbsd.o, and riscix.o.
1119 (BFD32_BACKENDS_CFILES): Add aout-arm.c, aout-sparcle.c,
1120 hp300bsd.c, i386dynix.c, m68k4knetbsd.c, and riscix.c.
1121 (HFILES): Add targmatch.h. Also, alphabetize and reindent.
1122 (CFILES): Remove i386dynix.c and hp300bsd.c.
1123 (targmatch.h): New target.
1124 (do_clean): Remove targmatch.h.
1125
1126 * configure.in: Add BFD_NEED_DECLARATION(getenv).
1127 * acconfig.h: Add NEED_DECLARATION_GETENV.
1128 * configure, config.in: Rebuild.
1129 * sysdep.h: If NEED_DECLARATION_GETENV, declare getenv.
1130 * aout-adobe.c (aout_adobe_object_p): Don't declare getenv.
1131
ae1b99e4
JL
1132Thu Oct 3 09:29:09 1996 Jeffrey A Law (law@cygnus.com)
1133
1134 * cpu-mn10x00.c, elf32-mn10x00: Removed.
1135 * cpu-mn10200.c, cpu-mn10300.c: New files.
1136 * elf32-mn10200.c, elf32-mn10300.c: New files.
1137 * Makefile.in: Break mn10x00 support into two separate
1138 configurations, mn10200 and mn10300.
1139 * archures.c, config.bfd, configure.in, elf.c, targets.c: Likewise.
1140 * bfd-in2.h, configure: Rebuilt.
1141
4c7f3fde
JM
1142Thu Oct 3 15:38:19 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1143
1144 * Makefile.in (do_clean): Move config.log to do_distclean.
1145
efc2b064
JL
1146Wed Oct 2 21:40:55 1996 Jeffrey A Law (law@cygnus.com)
1147
1148 * cpu-mn10x00.c, elf32-mn10x00.c: New files.
1149 * Makefile.in (ALL_MACHINES): Add cpu-mn10x00.o.
1150 (BFD32_BACKENDS): Similarly for elf32-mn10x00.o.
1151 (elf32-mn10x00.o): Add dependencies.
1152 * archures.c (enum bfd_architecture): Add bfd_arch_mn10x00.
1153 (bfd_mn10x00_arch): Declare.
1154 (bfd_archures_list): Add bfd_mn10x00_arch.
1155 * config.bfd: Add mn10x00-*-*.
1156 * configure.in: Add bfd_elf32_mn10x00_vec.
1157 * elf.c (prep_headers): Handle bfd_arch_mn10x00.
1158 * targets.c (bfd_elf32_mn10x00_vec): Declare.
1159 (bfd_target_vector): Add bfd_elf32_mn10x00_vec.
1160 * bfd-in2.h, configure: Rebuilt.
1161
bf53bd9f
ILT
1162Wed Oct 2 15:46:45 1996 Klaus Kaempf <kkaempf@progis.de>
1163
1164 openVMS/Alpha: Provide filename and case_hack flags via
1165 symbol table from gas.
1166 Add case_hack code for symbol output from vax/vms.
1167 * evax-alpha.c (evax_initialize): Remove filename handling,
1168 filename is provided via symbol table.
1169 (evax_get_symtab): Use local symbol count when setting up table.
1170 * evax-egsd.c (_bfd_evax_slurp_egsd): Print correct name when
1171 debugging.
1172 (_bfd_evax_write_egsd): Skip file name symbol.
1173 * evax-emh.c (get_vms_time_string): Local function now.
1174 (_bfd_evax_write_emh): Extract source filename and case_hack flags
1175 from symbol table.
1176 * evax_write_etir (_bfd_evax_write_etir): Pass all symbol names
1177 through _bfd_evax_case_hack_symbol.
1178 * evax-misc.c (hash_string, _bfd_evax_case_hack_symbol): New
1179 functions.
1180 (_bfd_evax_basename): Removed.
1181 (_bfd_get_vms_time_string): Moved to evax-emh.c.
1182 * evax.h (evax_private_data_struct): Remove filename.
1183 (flag_hash_long_names, flag_show_after_trunc,
1184 flag_no_hash_mixed_case, vms_name_mapping): New flags for
1185 vms_case_hack.
1186
263d4a62
ILT
1187Wed Oct 2 12:02:02 1996 Ian Lance Taylor <ian@cygnus.com>
1188
a0fe6c2d
ILT
1189 * freebsd.h (N_GET_MAGIC_NET): Don't use ntohl.
1190 (N_GETMID_NET, N_GETFLAG_NET): Likewise.
1191 (NO_SWAP_MAGIC): Don't define.
1192 (SWAP_MAGIC): Define.
1193
263d4a62
ILT
1194 * cofflink.c (_bfd_coff_link_input_bfd): Don't crash if there is
1195 no hash table entry for a global symbol.
1196
161ac690
ILT
1197Tue Oct 1 16:14:22 1996 Joel Sherrill <joel@oarcorp.com>
1198
1199 * config.bfd (mips*-*-rtems*): New target, like mips*-*-elf*.
1200
0db6249c
ILT
1201Tue Oct 1 12:31:39 1996 Ian Lance Taylor <ian@cygnus.com>
1202
8dd53b5c
ILT
1203 * cofflink.c (coff_link_add_symbols): Don't override a meaningful
1204 symbol type with T_NULL. Warn if symbol type changes. Based on
e5c4495c 1205 patch from Philippe De Muyter <phdm@info.ucl.ac.be>.
8dd53b5c 1206
0db6249c
ILT
1207 * elflink.h (elf_link_add_object_symbols): Only put a symbol from
1208 a dynamic object in the dynamic symbol table if it is referenced
1209 or defined by a regular object.
1210
1211start-sanitize-v850
1212Fri Sep 27 18:41:07 1996 Stu Grossman (grossman@critters.cygnus.com)
1213
1214 * elf32-v850.c (bfd_elf32_v850_is_local_label): New function to
1215 remove dwarf local labels. Shrinks binaries by a factor of 3!
1216
1217end-sanitize-v850
1218Mon Sep 23 13:33:00 1996 Ian Lance Taylor <ian@cygnus.com>
1219
1220 * elf32-ppc.c (ppc_elf_add_symbol_hook): Create the .sbss section
1221 by hand, rather than by calling bfd_make_section.
1222
80675684
DE
1223start-sanitize-m32r
1224Mon Sep 23 09:23:41 1996 Doug Evans <dje@seba.cygnus.com>
1225
1226 * reloc.c: Rename m32r relocs.
1227 * bfd-in2.h, libbfd.h: Rebuilt.
1228 * elf32-m32r.c: Update.
80675684 1229
0db6249c 1230end-sanitize-m32r
a5a43df1
ILT
1231Fri Sep 20 11:43:43 1996 Ian Lance Taylor <ian@cygnus.com>
1232
e12ab364
ILT
1233 * aoutx.h (aout_link_input_section_ext): When doing a relocateable
1234 link, adjust the symbol index of a base relative reloc. Don't
1235 change the addend of a PC relative reloc if pcrel_offset is set.
1236 * sunos.c (bfd_sunos_size_dynamic_sections): Don't do anything for
1237 a relocateable link.
1238
a5a43df1
ILT
1239 * reloc.c (bfd_perform_relocation): Apply the relocation even if
1240 it is zero, in case src_mask matters.
1241 (bfd_install_relocation): Likewise.
1242
e425358f
ILT
1243Thu Sep 19 11:03:06 1996 Ian Lance Taylor <ian@cygnus.com>
1244
1245 * xcofflink.c (xcoff_link_add_symbols): Always initialize
1246 keep_syms.
1247 (_bfd_xcoff_bfd_final_link): Don't set target_index
1248 to an uninitialized value.
1249
7f21c97c
ILT
1250Tue Sep 17 14:18:31 1996 Ian Lance Taylor <ian@cygnus.com>
1251
1252 * coffcode.h (coff_slurp_line_table): Warn about illegal symbol
1253 indices, rather than crashing.
1254 (coff_slurp_reloc_table): Likewise. Check whether the howto field
1255 is NULL.
8d784abe
ILT
1256 * coff-sh.c (sh_relocate_section): Check for an illegal symbol
1257 index.
7f21c97c 1258
9859bc31
ILT
1259Mon Sep 16 12:39:36 1996 Ian Lance Taylor <ian@cygnus.com>
1260
1153e84b
ILT
1261 * coff-arm.c (aoutarm_std_reloc_howto): Change dst_mask for ARM26D
1262 reloc to 0.
1263 (coff_arm_adjust_symndx): New static function.
1264 (coff_adjust_symndx): Define.
1265
9859bc31
ILT
1266 * srec.c (srec_scan): Accept multiple symbols on a single line.
1267 From Pascal Martin <pmartin@alsys.com>.
1268
1269 * README: New file.
1270
f8b82e49
DE
1271Fri Sep 13 14:32:42 1996 Doug Evans <dje@canuck.cygnus.com>
1272
1273 * aoutf1.h (MY_bfd_merge_private_bfd_data): Define.
1274 (sunos_merge_private_bfd_data): New function.
1275
0a7b8735
ILT
1276Fri Sep 13 15:50:57 1996 Ian Lance Taylor <ian@cygnus.com>
1277
76d30c3f
ILT
1278 * bfd.c (bfd_copy_private_bfd_data): Switch on output BFD rather
1279 than input BFD.
1280 (bfd_merge_private_bfd_data): Likewise.
1281 * section.c (bfd_copy_private_section_data): Likewise.
1282 * syms.c (bfd_copy_private_symbol_data): Likewise.
1283 * bfd-in2.h: Rebuild.
1284 * aout-target.h (MY_bfd_copy_private_section_data): Check that
1285 both BFD's are the right flavour.
1286 * ecoff.c (_bfd_ecoff_bfd_copy_private_bfd_data): Likewise.
1287 * elf.c (_bfd_elf_copy_private_symbol_data): Likewise.
1288 * elf32-mips.c (_bfd_mips_elf_copy_private_bfd_data): Likewise.
1289 (_bfd_mips_elf_merge_private_bfd_data): Likewise.
1290 * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Likewise.
1291 (ppc_elf_merge_private_bfd_data): Likewise.
1292 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Likewise.
1293 * peicode.h (pe_bfd_copy_private_section_data): Likewise.
1294
0a7b8735
ILT
1295 * elf32-hppa.c (elf_hppa_howto_table): Fill in some fields for
1296 R_PARISC_DIR32, so that _bfd_stab_section_find_nearest_line passes
1297 its sanity check.
1298
3ebefb07
DE
1299start-sanitize-m32r
1300Thu Sep 12 11:45:57 1996 Doug Evans <dje@seba.cygnus.com>
1301
1302 * reloc.c: Add m32r relocs.
1303 * bfd-in2.h, libbfd.h: Rebuilt.
6cb9c903 1304 * cpu-m32r.c,elf32-m32r.c: New files.
3ebefb07 1305
76d30c3f 1306end-sanitize-m32r
cacfb845
ILT
1307Thu Sep 12 11:10:05 1996 Ian Lance Taylor <ian@cygnus.com>
1308
1309 * ieee.c (ieee_vec): Set symbol_leading_char field to '_'.
1310
d7775b43
ILT
1311Wed Sep 11 11:57:56 1996 Ian Lance Taylor <ian@cygnus.com>
1312
e461da9b
ILT
1313 * tekhex.c (first_phase): Change type parameter from char to int.
1314 (out): Likewise.
1315 (pass_over): Change func to expect int, not char.
1316
d7775b43
ILT
1317 * elf.c (assign_file_positions_for_segments): Test SEC_ALLOC
1318 rather than SEC_LOAD when aligning the file offset for the first
1319 section in a segment.
1320
ea3f0585
FF
1321Tue Sep 10 16:18:30 1996 Fred Fish <fnf@cygnus.com>
1322
1323 * syms.c (coff_section_type): Make arg const.
1324 * irix-core.c (irix_core_core_file_p): Remove extraneous extra arg
1325 to make_bfd_asection().
1326 * elf-bfd.h (bfd_section_from_phdr): Add prototype.
1327 * elfcode.h (bfd_section_from_phdr): Remove prototype.
1328 (_bfd_elf_stringtab_init): Remove prototype.
1329
1330 * netbsd-core.c (swap_abort): Add prototype.
1331 * aix386-core.c (swap_abort): Ditto & make static
1332 * hpux-core.c (swap_abort): Ditto & make static.
1333 * irix-core.c (swap_abort): Ditto & make static.
1334 * ptrace-core.c (swap_abort): Ditto & make static.
1335 * trad-core.c (swap_abort): Ditto & make static.
1336 * coffswap.h (coff_swap_reloc_in): Ditto.
1337 (coff_swap_reloc_out): Ditto.
1338 (coff_swap_filehdr_in): Ditto.
1339 (coff_swap_filehdr_out): Ditto.
1340 (coff_swap_sym_in): Ditto.
1341 (coff_swap_sym_out): Ditto.
1342 (coff_swap_aux_in): Ditto.
1343 (coff_swap_aux_out): Ditto.
1344 (coff_swap_lineno_in): Ditto.
1345 (coff_swap_lineno_out): Ditto.
1346 (coff_swap_aouthdr_in): Ditto.
1347 (coff_swap_aouthdr_out): Ditto.
1348 (coff_swap_scnhdr_in): Ditto.
1349 (coff_swap_scnhdr_out): Ditto.
1350 * ihex.c (ihex_sizeof_headers): Ditto.
1351 * tekhex.c (getsym): Ditto.
1352 (find_chunk): Ditto & make static.
1353 (insert_byte): Ditto.
1354 (first_phase): Ditto.
1355 (pass_over): Ditto.
1356 (tekhex_get_symtab): Ditto & make static.
1357 (tekhex_get_symtab_upper_bound): Ditto & make static.
1358 (tekhex_mkobject): Ditto.
1359 (tekhex_object_p): Ditto.
1360 (move_section_contents): Ditto.
1361 (tekhex_get_section_contents): Ditto.
1362 (tekhex_set_arch_mach): Ditto & make static.
1363 (tekhex_set_section_contents): Ditto.
1364 (writevalue): Ditto.
1365 (writesym): Ditto.
1366 (out): Ditto.
1367 (tekhex_write_object_contents): Ditto.
1368 (tekhex_sizeof_headers): Ditto.
1369 (tekhex_make_empty_symbol): Ditto.
1370 (tekhex_get_symbol_info): Ditto.
1371 (tekhex_print_symbol): Ditto.
1372 * irix-core.c (make_bfd_asection): Ditto.
1373 (irix_core_core_file_p): Ditto.
1374 (irix_core_core_file_failing_command): Ditto.
1375 (irix_core_core_file_failing_signal): Ditto.
1376 (irix_core_core_file_matches_executable_p): Ditto.
1377 (irix_core_make_empty_symbol): Ditto.
1378 * coff-mips.c (mips_bfd_reloc_type_lookup): Ditto.
1379 * srec.c (srec_new_symbol): Ditto.
1380 (srec_get_section_contents): Ditto.
1381 (srec_set_arch_mach): Ditto.
1382 (srec_set_section_contents): Ditto.
1383 (internal_srec_write_object_contents): Ditto.
1384 (srec_write_object_contents): Ditto.
1385 (symbolsrec_write_object_contents): Ditto.
1386 (srec_sizeof_headers): Ditto.
1387 (srec_make_empty_symbol): Ditto.
1388 (srec_get_symtab_upper_bound): Ditto.
1389 (srec_get_symtab): Ditto.
1390 (srec_print_symbol): Ditto and make static.
1391 * elf.c (elf_read): Ditto
1392 (assign_section_numbers): Ditto.
1393 (elf_fake_sections): Ditto.
1394 (sym_is_global): Ditto.
1395 (elf_map_symbols): Ditto.
1396 (get_program_header_size): Ditto.
1397 * coffgen.c (make_a_section_from_file): Ditto.
1398 (coff_real_object_p): Ditto.
1399 (fixup_symbol_value): Ditto.
1400 (build_debug_section): Ditto.
1401 (copy_name): Ditto.
1402 * syms.c (coff_section_type): Ditto.
1403
3ebefb07 1404start-sanitize-m32r
00d7a64b
JL
1405Mon Sep 9 22:36:01 1996 Jeffrey A Law (law@cygnus.com)
1406
1407 * bfd-in2.h: Rebuilt after m32r changes.
1408
1409end-sanitize-m32r
71d7d44f
DE
1410Mon Sep 9 12:31:22 1996 Doug Evans <dje@canuck.cygnus.com>
1411
66e4c229
DE
1412start-sanitize-m32r
1413 * config.bfd,configure.in,configure: Add m32r support.
f0c12b73 1414 * Makefile.in,archures.c,elf.c,targets.c: Likewise.
66e4c229 1415end-sanitize-m32r
71d7d44f
DE
1416 * config.bfd: Keep target list alphabetically sorted.
1417
629f776a
JL
1418start-sanitize-v850
1419Mon Sep 9 11:48:41 1996 Jeffrey A Law (law@cygnus.com)
1420
1421 * elf32-v850.c (bfd_elf32_v850_reloc, case R_V850_HI16): Don't forget
1422 to add in the constant part found in the instruction itself.
1423 (case R_V850_HI16_S): Likewise.
1424
1425end-sanitize-v850
9c85b19d
MH
1426Fri Sep 6 17:04:39 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1427
1428 * elf32-d10v.c (elf_d10v_howto_table): Modify the size of R_D10V_16
1429 and R_D10V_18 to be 1 (word).
1430
4be2140e
ILT
1431Thu Sep 5 15:23:08 1996 Ian Lance Taylor <ian@cygnus.com>
1432
1433 * stabs.c (_bfd_link_section_stabs): If the output_section field
1434 of either section is bfd_abs_section, then the linker is
1435 discarding the section and we should not optimize it.
1436
0cd98b92
DE
1437Tue Sep 3 12:16:20 1996 Doug Evans <dje@canuck.cygnus.com>
1438
1439 * Makefile.in (aout-sparcle.o): New target.
1440 * aoutf1.h (TARGET_IS_BIG_ENDIAN_P): Don't define if little endian.
1441 * config.bfd (sparclet-*-aout*): Add case.
1442 * configure.in (sparcle_aout_vec): Add case.
1443 * configure: Regenerated.
0cd98b92
DE
1444 * targets.c (sparcle_aout_vec): Declare.
1445 (bfd_target_vector): Add sparcle_aout_vec.
1446 * aout-sparcle.c: New file.
1447
b5ef63c4 1448start-sanitize-v850
7b0af209 1449Tue Sep 3 00:57:02 1996 Jeffrey A Law (law@cygnus.com)
b5ef63c4 1450
e73b6ae6
JL
1451 * elf32-v850.c (bfd_elf32_v850_reloc): Fix handling of
1452 low order sign bit propogation for R_V850_HI16_S.
1453
1454 * elf32-v850.c (bfd_elf32_v850_reloc): New function for
7b0af209
JL
1455 handling V850 specific relocs.
1456 (elf_v850_howto_table): Use the new function for some
1457 relocations. Twiddle masks & shifts for some relocs.
1458 Set partial_inplace where needed.
1459
1460end-sanitize-v850
1461Mon Sep 2 12:12:34 1996 Ian Lance Taylor <ian@cygnus.com>
1462
1463 * cpu-mips.c: Add an explicit mips:3000 entry, and change the
1464 default architecture to a machine number of 0.
1465 * elf32-mips.c (_bfd_mips_elf_object_p): Set the machine number
1466 for E_MIPS_ARCH_1.
1467 (_bfd_mips_elf_merge_private_bfd_data): If the machine number of
1468 the output BFD is the default, set it from the first input BFD.
1469
1470start-sanitize-v850
1471Sun Sep 1 18:38:01 1996 Jeffrey A Law (law@cygnus.com)
1472
1473 * elf32-v850.c (elf_v850_howto_table): All the 16bit relocs
1474 insert at bitpos zero. The HI16 relocs are shifted right
1475 by 16 bits. Fix src_mask for all relocs.
1476 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Define. The V850 is
1477 little endian!
1478 (TARGET_BIG_SYM, TARGET_BIG_NAME): Remove. The V850 is little
1479 endian!
b5ef63c4
MA
1480
1481end-sanitize-v850
bde9d875
ILT
1482Sun Sep 1 15:41:08 1996 Ian Lance Taylor <ian@cygnus.com>
1483
1484 * rs6000-core.c (rs6000coff_core_file_matches_executable_p):
1485 Rewrite to use BFD file read routines and to avoid using a fixed
1486 length for the file name.
1487
01b49cb3 1488start-sanitize-v850
237b5c4c
JL
1489Sat Aug 31 10:22:25 1996 Jeffrey A Law (law@cygnus.com)
1490
1491 * elf32-v850.c (enum reloc_type): Add R_V850_{32,16,8}.
1492 (elf_v850_howto_table): Add support for R_V850_{32,16,8}.
1493 (v850_reloc_map): Add translation from BFD_RELOC_{32,16,8}
1494 to R_V850_{32,16,8}.
1495
01b49cb3
C
1496Fri Aug 30 18:06:04 1996 J.T. Conklin <jtc@hippo.cygnus.com>
1497
1498 * elf32-v850.c (reloc_type): Add R_V850_HI16_S.
1499 (elf_v850_howto_table): Add info for HI16_S reloc.
1500 (v850_reloc_map): Add HI_16_S reloc.
1501 * reloc.c: Define BFD_RELOC_V850_* relocs.
1502
1503end-sanitize-v850
492cfc71
ILT
1504Fri Aug 30 11:49:19 1996 Ian Lance Taylor <ian@cygnus.com>
1505
c86158e5
ILT
1506 Add SH ELF support.
1507 * elf32-sh.c: New file.
1508 * elf.c (prep_headers): Handle bfd_arch_sh.
1509 * elfcode.h (write_relocs): Handle absolute symbol.
1510 * elf-bfd.h (_bfd_elf32_link_read_relocs): Declare.
1511 (_bfd_elf64_link_read_relocs): Declare.
1512 * elflink.h (NAME(_bfd_elf,link_read_relocs)): Rename from
1513 elf_link_read_relocs. Make globally visible. Change all
1514 callers.
1515 (elf_link_input_bfd): Get external symbols from cache in
1516 symtab_hdr->contents. Get contents from cache in
1517 elf_section_data.
1518 * elfxx-target.h (bfD_elfNN_bfd_relax_section): Only define if not
1519 already defined.
1520 * reloc.c: Define BFD_RELOC_SH_* relocs.
1521 * libbfd-in.h (_bfd_sh_align_load_span): Declare.
1522 * coff-sh.c (sh_insns_conflict): Fix a return value.
1523 (_bfd_sh_align_load_span): New globally visible function, broken
1524 out of sh_align_load.
1525 (sh_align_load): Call _bfd_sh_align_load_span.
1526 (sh_swap_insns): Change relocs parameter to PTR.
1527 * bfd-in2.h, libbfd.h: Rebuild.
1528 * targets.c (bfd_elf32_sh_vec): Declare.
1529 (bfd_elf32_shl_vec): Declare.
1530 * config.bfd (sh-*-elf*): New target.
1531 * configure.in (bfd_elf32_sh_vec): New target vector.
1532 (bfd_elf32_shl_vec): New target vector.
1533 * configure: Rebuild.
1534 * Makefile.in: Rebuild dependencies.
1535 (BFD32_BACKENDS): Add elf32-sh.o.
1536 (BFD32_BACKENDS_CFILES): Add elf32-sh.c.
1537
1538 * elf.c (map_sections_to_segments): Check that LMA does not skip a
1539 page before checking D_PAGED.
1540
492cfc71
ILT
1541 * ihex.c (ihex_scan): Removed unnecessary extbase variable.
1542 (ihex_write_object_contents): Remove extbase; always use segbase
1543 instead.
1544
f7954d86
MM
1545Thu Aug 29 16:52:17 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1546
1547 * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
1548 * configure.host (i[345]86-*-*): Ditto.
1549 * config.bfd (i[345]86-*-*): Ditto.
1550 * configure: Regenerate.
1551
1552 * config.bfd (i[3456]86-*-dgux*): Recognize as a synonym for x86
1553 elf.
1554
1555Tue Aug 27 09:18:18 1996 Jeffrey A Law (law@cygnus.com)
1556
1557 * elf32-hppa.c (hppa_elf_gen_reloc_type): Add new argument.
1558 * elf32-hppa.h (hppa_elf_gen_reloc_type): Update prototype.
1559 * som.c (hppa_som_gen_reloc_type): Add new argument. If
1560 we encounter an R_DATA_ONE_SYMBOL reloc against a symbol that
1561 will have an ST_CODE type, change the symbol's type to ST_DATA.
1562 * som.c (hppa_som_gen_reloc_type): Update prototype.
1563
4da624dd
ILT
1564Tue Aug 27 00:12:22 1996 Ian Lance Taylor <ian@cygnus.com>
1565
1566 * elf32-mips.c (mips_elf_check_relocs): Set dynobj if needed for
1567 R_MIPS_32 and R_MIPS_REL32. Set sgot and g as soon as possible.
1568 (mips_elf_size_dynamic_sections): Don't require .got to exist.
1569 (mips_elf_finish_dynamic_sections): Likewise.
1570
9461513b
ILT
1571Thu Aug 22 10:54:38 1996 Ian Lance Taylor <ian@cygnus.com>
1572
1c952df6
ILT
1573 * configure.host (HLDENV): New variable to set. Set it for
1574 *-*-sysv4*, since those linkers may not support -R but they always
1575 support LD_RUN_PATH.
1576
9461513b
ILT
1577 * libieee.h (NSECTIONS): Don't define.
1578 (ieee_data_struct): Change section_table to asection **. Add
1579 section_table_size.
1580 * ieee.c (get_section_entry): If the table isn't big enough, make
1581 it bigger.
1582 (ieee_slurp_sections): Remove assertion about number of sections.
1583 (ieee_object_p): Adjust initialization of ieee to match changes to
1584 the structure.
1585
1586 * xcofflink.c (xcoff_mark): Don't copy relocs for undefined
1587 symbols merely because we are generating a shared library.
1588 (xcoff_build_ldsyms): Don't set up global linkage code for an
1589 undefined symbol merely because we are generating a shared
1590 library.
1591
0c1d95c7
C
1592start-sanitize-v850
1593Tue Aug 20 15:06:05 1996 J.T. Conklin <jtc@hippo.cygnus.com>
1594
1595 * Makefile.in (ALL_MACHINES): Add cpu-v850.o.
1596 (BFD32_BACKENDS) Add elf32-v850.o.
1597 * archures.c: Add bfd_v850_arch.
1598 * bfd-in2.h: Add bfd_v850_arch.
1599 * config.bfd (v850-*-*): New target.
1600 * configure: (bfd_elf32_v850_vec) New vector.
1601 * configure.in: (bfd_elf32_v850_vec) New vector.
1602 * cpu-v850.c: New file.
1603 * elf.c (prep_headers): Added case bfd_arch_v850.
1604 * elf32-v850.c: New file.
1605 * targets.c (bfd_elf32_v850_vec): New vector.
1606
1607end-sanitize-v850
1608Fri Aug 16 16:25:35 1996 Ian Lance Taylor <ian@cygnus.com>
1609
1610 * xcofflink.c (xcoff_link_add_dynamic_symbols): Create and define
1611 a function code symbol for an XMC_XO symbol.
1612
22edd547
SS
1613Thu Aug 15 12:33:29 1996 Stan Shebs <shebs@andros.cygnus.com>
1614
1615 * mpw-config.in: Update editing of autoconf vars to reflect
1616 Jul 18 configure.in change.
1617 * mpw-make.sed: Update editing of include pathnames to be
1618 more general, add @DASH_C_FLAG@ to explicit compile rule edit.
1619
1620Thu Aug 15 10:35:13 1996 Richard Henderson <rth@tamu.edu>
1621
1622 * elf64-alpha.c (elf64_alpha_output_extsym): The section from
1623 which to offset to get the .plt entry address is ".plt".
1624
53ef6e60
JSC
1625Thu Aug 15 16:40:30 1996 James G. Smith <jsmith@cygnus.co.uk>
1626
1627 * reloc.c: (BFD_RELOC_ARM_THUMB_ADD, BFD_RELOC_ARM_THUMB_IMM,
1628 BFD_RELOC_ARM_THUMB_SHIFT, BFD_RELOC_ARM_THUMB_OFFSET):
1629 Added, for internal use by the ARM gas.
1630 * libbfd.h: Rebuilt
1631 * bfd-in2.h: Rebuilt
1632
37d7888d
ILT
1633Wed Aug 14 17:02:09 1996 Richard Henderson <rth@tamu.edu>
1634
1635 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Correct typo
1636 in section dynidx start.
1637
e38d6d36
ILT
1638Tue Aug 13 14:35:38 1996 Ian Lance Taylor <ian@cygnus.com>
1639
1640 * elf.c (_bfd_elf_make_section_from_shdr): Treat sections whose
1641 name begins with .gnu.linkonce as SEC_LINK_ONCE. This is an
1642 optimization for g++.
1643
ae20860e
MM
1644Tue Aug 13 17:04:40 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1645
1646 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): If one module has
1647 the -mrelocatable-lib bit set and the other doesn't, clear the
1648 -mrelocatable-lib bit in the header.
1649
4596421b
ILT
1650Sat Aug 10 22:59:17 1996 Ian Lance Taylor <ian@cygnus.com>
1651
1652 * elflink.h (elf_link_add_object_symbols): Do not resolve a common
1653 symbol against a STT_FUNC symbol in a shared library.
1654
f11e3f62
ILT
1655Fri Aug 9 12:44:57 1996 Ian Lance Taylor <ian@cygnus.com>
1656
410bc61d
ILT
1657 * xcofflink.c (xcoff_link_add_dynamic_symbols): If a descriptor
1658 symbol is found, automatically define the corresponding function
1659 code.
1660
d92099f1
ILT
1661 * cofflink.c (coff_link_add_symbols): Only set (*sym_hash)->numaux
1662 if sym.n_numaux is not zero.
1663 (_bfd_coff_link_input_bfd): Permit the symbol and the hash table
1664 entry to disagree about the number of aux entries if the symbol
1665 has zero.
1666
f11e3f62
ILT
1667 * elf32-mips.c (mips_elf_check_relocs): Create the .rel.dyn
1668 section if it might be needed, not just if info->shared.
1669 (mips_elf_adjust_dynamic_symbol): Make room for a null element at
1670 the start of .rel.dyn if we are going to use it.
1671 (mips_elf_finish_dynamic_sections): Only clear the first element
1672 of .rel.dyn if the size is greater than zero.
1673
fbc4ed7d
ILT
1674Thu Aug 8 16:24:55 1996 Ian Lance Taylor <ian@cygnus.com>
1675
b2a05baf
ILT
1676 * xcofflink.c (xcoff_link_input_bfd): If we already called the
1677 undefined_symbol callback for a symbol, then don't issue any more
1678 warnings about loader relocs.
1679 (_bfd_ppc_xcoff_relocate_section): Don't do any further processing
1680 after calling the undefined_symbol callback.
1681
fbc4ed7d
ILT
1682 * xcofflink.c (XCOFF_MULTIPLY_DEFINED): Define.
1683 (xcoff_link_add_symbols): Permit multiple definitions of a symbol
1684 as the AIX linker seems to do.
1685
8612a388
ILT
1686Thu Aug 8 12:21:56 1996 Klaus Kaempf <kkaempf@progis.de>
1687
1688 * evax-alpha.c (evax_alpha_vec): Corrected flags, cleanup.
1689 (evax_initialize): Remove evax_reloc_table.
1690 (evax_close_and_cleanup): Ditto.
1691 (reloc_nil): Ditto.
1692 (alpha_howto_table): Remove ALPHA_R_SWREL32 and ALPHA_R_SWREL64
1693 entries.
1694 (evax_bfd_reloc_type_lookup): Ditto.
1695 * evax-egsd.c (_bfd_evax_slurp_egsd): Add a few casts; set
1696 cooked_size == raw_size.
1697 * evax-emh.c (_bfd_evax_register_filename): Remove.
1698 * evax-etir.c (etir_stc): Allow ETIR_S_C_STC_xx commands.
1699 * evax-misc.c (add_new_contents): Malloc section at full size.
1700 (_bfd_save_evax_section): Memcpy section contents directly.
1701 * evax.h (ALPHA_R_SWREL32, ALPHA_R_SWREL64): Remove.
1702 (evax_reloc_table): Remove.
1703
1704 * hosts/alphavms.h (O_ACCMODE): Define if needed.
1705
1706 * makefile.vms: Add better support for DEC C compilation
1707 Add evax.h dependencies
1708
1709 * reloc.c (bfd_get_reloc_size): Add case for 16 byte reloc.
1710 (BFD_RELOC_SWREL32,BFD_RELOC_SWREL64): Remove.
1711 (BFD_RELOC_ALPHA_BASEREG): Remove.
1712 * bfd-in2.h, libbfd.h: Rebuild.
1713
320a5c6b
SG
1714Thu Aug 8 08:17:32 1996 Stu Grossman (grossman@critters.cygnus.com)
1715
1716 * archive.c (bsd_write_armap): Ifdef around calls to getuid and
1717 getgid if _WIN32 is defined.
1718 * opncls.c (bfd_fdopenr): Remove unnecessary WINGDB ifdef.
1719
2055bf85
SG
1720Wed Aug 7 23:19:00 1996 Stu Grossman (grossman@critters.cygnus.com)
1721
1722 * aoutx.h bfd-in.h bfd-in2.h opncls.c riscix.c som.c targets.c:
1723 Change NO_FLAGS to BFD_NO_FLAGS to avoid conflict with an HPUX
1724 include file.
1725 * libbfd.c: Create dummy getpagesize() macro if HAVE_GETPAGESIZE
1726 isn't defined.
1727
85fe9d3e
ILT
1728Wed Aug 7 14:11:44 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
1729
1730 * configure.in: Call BFD_NEEDED_DECLARATION on strstr and
1731 realloc.
1732 * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
1733 (NEED_DECLARATION_REALLOC): New macro.
1734 * configure, config.in: Rebuild.
1735 * sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
1736 (realloc): Declare if NEED_DECLARATION_REALLOC.
1737
1738 * aclocal.m4 (BFD_NEED_DECLARATION): Include <string.h> or
1739 <strings.h> if they exist.
1740
1741 * ieee.c (ieee_set_section_contents): Cast bfd_alloc return.
1742
9b3307b0
ILT
1743Wed Aug 7 12:12:03 1996 Ian Lance Taylor <ian@cygnus.com>
1744
cc425b55
ILT
1745 * cpu-i386.c (i8086_arch): Architecture info for the i8086.
1746
9b3307b0
ILT
1747 Based on patches from Eric Valette <valette@crf.canon.fr>:
1748 * elf32-i386.c (enum reloc_type): Add FIRST_INVALID_RELOC,
1749 LAST_INVALID_RELOC, R_386_16, R_386_PC16, R_386_8, R_386_PC8.
1750 (elf_howto_table): Add entries for new relocs.
1751 (elf_i386_reloc_type_lookup): Handle new relocs.
1752 (elf_i386_info_to_howto): Just call abort.
1753 (elf_i386_info_to_howto_rel): Check that the reloc type is valid.
1754 (elf_i386_relocate_section): Likewise.
1755
75e3a45a
MH
1756Tue Aug 6 12:54:56 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1757
1758 * elf32-d10v.c (elf_d10v_howto_table): Added R_D10V_32.
1759
191d910c
ILT
1760Mon Aug 5 13:42:41 1996 Ian Lance Taylor <ian@cygnus.com>
1761
b944e7e8
ILT
1762 * elf.c (_bfd_elf_make_section_from_shdr): For a loadable section,
1763 only get the LMA from the phdr if they are in the same part of the
1764 file.
1765
191d910c
ILT
1766 * elf.c (map_sections_to_segments): Rewrite tests for starting a
1767 new segment to make them more comprehensible. If the relationship
1768 between the LMA and the VMA changed, start a new segment. Don't
1769 check dynsec when deciding whether to start a new segment for a
1770 writeable section; -N will now handle this.
1771
e751d506
JL
1772Thu Aug 1 22:43:08 1996 Jeffrey A Law (law@cygnus.com)
1773
1774 * libhppa.h: Remove "esel" changes. Not the right approach.
1775 * som.c: Corresponding changes.
1776 (som_bfd_derive_misc_symbol_info): Use ST_DATA for symbols
1777 which don't have a SOM symbol type associated with them.
1778 Reverses a 1994 change.
1779
cdb88e87
ILT
1780Wed Jul 31 15:50:55 1996 Ian Lance Taylor <ian@cygnus.com>
1781
1782 Make ld -N more reasonable for ELF:
1783 * elf.c (map_sections_to_segments): If D_PAGED is not set, set
1784 phdr_in_section to false, and always use a single load segment.
1785 (elf_sort_sections): Sort sections by LMA after VMA.
1786 (assign_file_positions_for_segments): If D_PAGED is not set, don't
1787 align to maxpagesize.
1788 (assign_file_positions_except_relocs): Likewise.
1789 * elfcode.h (elf_object_p): If a section is loaded but not page
1790 aligned, clear D_PAGED.
1791
d1b40d8e
JSC
1792Wed Jul 31 15:00:12 1996 James G. Smith <jsmith@cygnus.co.uk>
1793
1794 * reloc.c: (BFD_RELOC_ARM_OFFSETIMM8, BFD_RELOC_ARM_HWLITERAL):
1795 Added, for internal use by the ARM gas.
1796 * libbfd.h: Rebuilt
1797 * bfd-in2.h: Rebuilt
1798
ad240a82
JL
1799Tue Jul 30 14:14:57 1996 Jeffrey A Law (law@cygnus.com)
1800
1801 * libhppa.h (R_HPPA_ESEL): New field selector.
1802 (e_esel): Similarly.
1803 * som.c (hppa_som_gen_reloc_type): If we encounter an e_esel,
1804 then generate R_COMP2 (PUSH_SYM), R_DATA_EXPR fixup stream.
1805 (som_write_fixups): Handle R_DATA_EXPR just like R_CODE_EXPR.
1806
fb4dc1eb
ILT
1807Tue Jul 30 13:31:27 1996 Ian Lance Taylor <ian@cygnus.com>
1808
1809 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Do the regular
1810 archive search before looking for stripped dynamic objects.
1811
b223f950
ILT
1812Fri Jul 26 17:51:39 1996 Ian Lance Taylor <ian@cygnus.com>
1813
1814 * xcofflink.c (xcoff_build_ldsyms): Make exporting an undefined
1815 symbol a warning rather than an error.
1816
64f808f9
ILT
1817Wed Jul 24 12:02:53 1996 Ian Lance Taylor <ian@cygnus.com>
1818
1819 * elf.c (assign_file_positions_for_segments): Track the virtual
1820 memory position separately from the file position, and use it to
1821 compute the alignment adjustment.
1822
11609502
MH
1823Tue Jul 23 10:43:31 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1824
1825 * elf32-d10v.c (elf_d10v_howto_table): Changed all relocs to "long"
1826 and fixed mask on R_D10V_10_PCREL_L.
1827
9bd65136
ILT
1828Mon Jul 22 15:30:30 1996 Ian Lance Taylor <ian@cygnus.com>
1829
bf9884d4
ILT
1830 * elf64-mips.c: Include "aout/ar.h".
1831 (mips_elf64_slurp_armap): New static function.
1832 (mips_elf64_write_armap): New static function.
1833 (bfd_elf64_archive_*): Define.
1834 * elfxx-target.h (bfd_elfNN_archive_p): Define if not defined.
1835 Use instead of bfd_generic_archive_p.
1836 (bfd_elfNN_write_archive_contents): Define if not defined. Use
1837 instead of _bfd_write_archive_contents.
1838 (bfd_elfNN_mkdarchive): Define if not defined. Use instead of
1839 _bfd_generic_mkarchive.
1840 (TARGET_BIG_SYM): If bfd_elfNN_archive_functions is defined, use
1841 bfd_elfNN_archive in BFD_JUMP_TABLE_ARCHIVE rather than
1842 _bfd_archive_coff.
1843 (TARGET_LITTLE_SYM): Likewise.
1844 * archive.c (bfd_slurp_armap): Check for and reject an archive map
1845 name of /SYM64/.
1846 * Makefile.in: Rebuild dependencies.
1847
1848 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Handle
1849 SHT_MIPS_LIBLIST, SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and
1850 SHT_MIPS_EVENTS sections.
1851 (_bfd_mips_elf_section_from_shdr): Handle SHT_MIPS_IFACE,
1852 SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and SHT_MIPS_EVENTS
1853 sections.
1854 (_bfd_mips_elf_fake_sections): Likewise.
1855
9bd65136
ILT
1856 * libecoff.h (ecoff_data_type): Add rdata_in_text field.
1857 * ecoff.c (ecoff_compute_section_file_positions): Copy
1858 rdata_in_text from backend info to tdata. Clear it if any data
1859 section comes before .rdata.
1860 (_bfd_ecoff_write_object_contents): Use rdata_in_text field in
1861 tdata rather than backend info.
1862
194141a9
ILT
1863Fri Jul 19 18:15:51 1996 Ian Lance Taylor <ian@cygnus.com>
1864
1865 * configure.in: Fix test for whether a compiler has a 64 bit
1866 type. From Jim Wilson <wilson@cygnus.com>.
1867
a8a3d83a
ILT
1868Thu Jul 18 15:39:10 1996 Ian Lance Taylor <ian@cygnus.com>
1869
f4e14cb9
ILT
1870 * configure.host (mips-sgi-irix6*): New host.
1871
1872 * configure.in: Set and substitute VERSION, BFD_HOST_64BIT_LONG
1873 (replacing HOST_64BITLONG), BFD_HOST_64_BIT_DEFINED,
1874 BFD_HOST_64_BIT, and BFD_HOST_U_64_BIT. Add bfd-in2.h:bfd-in2.h
1875 to AC_OUTPUT call.
1876 * configure: Rebuild.
1877 * bfd-in.h (BFD_ARCH_SIZE): Define as @wordsize@, not @WORDSIZE@.
1878 (BFD_HOST_64_BIT): Define conditionally.
1879 (BFD_HOST_U_64_BIT): Define when BFD_HOST_64_BIT is defined.
1880 (bfd_vma): Typedef as BFD_HOST_U_64_BIT.
1881 (symvalue, bfd_size_type): Likewise.
1882 * bfd-in2.h: Rebuild.
1883 * Makefile.in (do_clean): Remove bfd-tmp.h.
1884 (do_distclean): Remove bfd-in3.h.
1885 (stmp-bfd.h): Just do copy-if-change bfd-in3.h bfd.h.
1886 (bfd-in3.h): New target.
1887
74556b94
ILT
1888 * config.bfd (sparc-*-sysv4*): Don't build sunos_big_vec. From
1889 Andrew Gierth <ANDREWG@microlise.co.uk>.
1890
ab659fd6
ILT
1891 * configure.host: Set INSTALL_SHLIB.
1892 * configure.in: Call AC_SUBST (INSTALL_SHLIB).
1893 * configure: Rebuild.
1894 * Makefile.in (install): Use @INSTALL_SHLIB@.
1895
e8c249cb
ILT
1896 * config.bfd (mips*-*-irix6*): New target.
1897 * configure.host: Handle Irix 6 shared library like Irix 5.
1898
a8a3d83a
ILT
1899 * xcofflink.c (xcoff_link_add_symbols): Don't check an XMC_TD
1900 symbol for a magic name.
1901 (xcoff_link_input_bfd): Don't change the reloc symbol for an
1902 XMC_TD symbol.
1903 (_bfd_ppc_xcoff_relocate_section): Don't get the TOC offset for an
1904 XMC_TD symbol.
1905
b576c7b3
SS
1906Thu Jul 18 11:36:31 1996 Stan Shebs <shebs@andros.cygnus.com>
1907
1908 * mpw-config.in: Add ELF support to mips config, create the
1909 elf32-target.h file in the object dir.
1910 * mpw-make.sed: Edit elfXX-target.h refs at beginnings of lines.
1911
2ba0d82d
KK
1912Wed Jul 17 18:02:32 1996 Kim Knuttila <krk@cygnus.com>
1913
1914 * coff-ppc.c: Redid debug scheme - numerous fprintf's gone.
1915 Also removed most abort calls, in favor of using bfd reporting.
1916
b576c7b3 1917Wed Jul 17 14:51:52 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
50bd50d4 1918
b576c7b3
SS
1919 * Makefile.in (ALL_MACHINES): Add cpu-d10v.o.
1920 (BFD32_BACKENDS) Add elf32-d10v.o.
50bd50d4
MH
1921 * archures.c: Add bfd_d10v_arch.
1922 * bfd-in2.h: Add bfd_d10v_arch.
1923 * config.bfd (d10v-*-*): New target.
1924 * configure: (bfd_elf32_d10v_vec) New vector.
1925 * configure.in: (bfd_elf32_d10v_vec) New vector.
1926 * cpu-d10v.c: New file.
1927 * elf.c (prep_headers): Added case bfd_arch_d10v.
1928 * elf32-d10v.c: New file.
1929 * libbfd.h: Rebuild.
b576c7b3
SS
1930 * reloc.c (BFD_RELOC_D10V_10_PCREL_R, BFD_RELOC_D10V_10_PCREL_L,
1931 BFD_RELOC_D10V_18, BFD_RELOC_D10V_18_PCREL): Define.
50bd50d4 1932 * targets.c (bfd_elf32_d10v_vec): New vector.
50bd50d4 1933
2ce9802e
KK
1934Wed Jul 17 10:58:55 1996 Kim Knuttila <krk@cygnus.com>
1935
1936 * coff-ppc.c (coff_ppc_relocate_section): Removed bogus fprintf
1937
9676e446 1938Tue Jul 16 23:49:02 1996 Stu Grossman (grossman@critters.cygnus.com)
3cc21bf6 1939
9676e446
SG
1940 * archures.c bfd-in2.h: Add bfd_mach_i386_i386 and
1941 bfd_mach_i386_i8086 machine types.
3cc21bf6 1942
f7171978
ILT
1943Wed Jul 10 12:42:56 1996 Ian Lance Taylor <ian@cygnus.com>
1944
1945 * ecoff.c (_bfd_ecoff_new_section_hook): Set SEC_CODE for _INIT
1946 and _FINI sections.
1947
74e2ab38
ILT
1948Wed Jul 10 11:18:21 1996 Richard Henderson <rth@tamu.edu>
1949
1950 * coffcode.h (coff_set_section_contents): A/UX does not require
1951 special handling of the _LIB section.
1952
01cfaa6b
JL
1953Tue Jul 9 15:52:20 1996 Jeffrey A Law (law@cygnus.com)
1954
1955 * coff-h8300.c (h8300_reloc16_extra_cases): Use the correct
1956 value for R_RELBYTE.
1957
1958 * reloc16.c (bfd_coff_reloc16_relax_section): Only "shrinks"
1959 array if one was allocated.
1960
eb52b9dc
ILT
1961Tue Jul 9 12:21:54 1996 Ian Lance Taylor <ian@cygnus.com>
1962
1963 From Kazumoto Kojima <kkojima@kk.info.kanagawa-u.ac.jp>:
1964 * elf32-mips.c (struct mips_elf_link_hash_table): Add new fields
1965 use_rld_obj_head and rld_value.
1966 (mips_elf_link_hash_table_create): Initialize new fields.
1967 (mips_elf_add_symbol_hook): Mark __rld_obj_head symbol as
1968 dynamic.
1969 (mips_elf_create_dynamic_sections): Create .rld_map section. If
1970 __rld_obj_head symbol not seen, create an __rld_map symbol.
1971 (mips_elf_size_dynamic_sections): Make space in .rld_map section.
1972 Create a DT_MIPS_RLD_MAP entry rather than a DT_DEBUG entry.
1973 (mips_elf_finish_dynamic_symbol): Save value of __rld_map or
1974 __rld_obj_head symbol.
1975 (mips_elf_finish_dynamic_sections): Handle DT_MIPS_RLD_MAP.
1976
56b4cbaa
ILT
1977Mon Jul 8 16:18:03 1996 Ian Lance Taylor <ian@cygnus.com>
1978
9b292d4c
ILT
1979 * elf32-mips.c (mips_reloc_map): Remove BFD_RELOC_32_PCREL entry.
1980
dab45734
ILT
1981 * elf32-ppc.c (ppc_elf_howto_raw): For R_PPC_ADDR16_HA, use
1982 ppc_elf_addr16_ha_reloc.
1983 (ppc_elf_addr16_ha_reloc): New static function.
1984
56b4cbaa
ILT
1985 * coff-mips.c (struct mips_hi): Define.
1986 (mips_refhi_list): New static variable.
1987 (mips_refhi_addr, mips_refhi_addend): Remove.
1988 (mips_refhi_reloc): Maintain a list of unmatched REFHI relocs.
1989 (mips_reflo_reloc): Process mips_refhi_list.
1990 (mips_relhi_list): New static variable.
1991 (mips_relhi_addr, mips_relhi_addend): Remove.
1992 (mips_relhi_reloc): Maintain a list of unmatched RELHI relocs.
1993 (mips_rello_reloc): Process mips_relhi_list.
1994 (mips_relocate_section): Permit an arbitrary number of REFHI or
1995 RELHI relocs before the associated REFLO or RELLO reloc.
1996
b777c6a7
ILT
1997Fri Jul 5 19:27:49 1996 Ian Lance Taylor <ian@cygnus.com>
1998
1999 * aout-target.h (MY(callback)): Set reloc_count fields.
2000
100b65dd
ILT
2001Thu Jul 4 12:00:37 1996 Ian Lance Taylor <ian@cygnus.com>
2002
48f3aaf3
ILT
2003 * sunos.c (sunos_add_dynamic_symbols): Don't create dynamic
2004 sections unless this is a SunOS link.
2005
100b65dd
ILT
2006 * VERSION: Set to 2.7.1.
2007
2008 * Released binutils 2.7.
2009
a31e14f4
ILT
2010Wed Jul 3 14:59:47 1996 Ian Lance Taylor <ian@cygnus.com>
2011
4d3daf4f
ILT
2012 * i386aout.c: Include "aout/aout64.h".
2013 (i386aout_write_object_contents): New static function.
2014 (MY_write_object_contents): Define.
2015
a31e14f4
ILT
2016 * netbsd.h (MY(write_object_contents)): Make sure that
2017 adjust_sizes_and_vmas is called before fiddling with the magic
2018 number.
2019
d2d04f7a
ILT
2020Tue Jul 2 23:30:39 1996 Ian Lance Taylor <ian@cygnus.com>
2021
2022 * stabs.c (_bfd_link_section_stabs): Fix casts of psinfo.
2023
4f6ee760
ILT
2024Sun Jun 30 13:34:33 1996 Ian Lance Taylor <ian@cygnus.com>
2025
2026 * libbfd-in.h (itos, stoi): Don't define.
2027 * libbfd.h: Rebuild.
2028 * i386lynx.c (KEEPIT): Define as udata.i.
2029 (NAME(lynx,swap_std_reloc_out)): Don't use stoi.
2030 (NAME(lynx,swap_ext_reloc_out)): Likewise.
2031 * riscix.c (riscix_swap_std_reloc_out): Use udata.i rather than
2032 flags. Don't use stoi.
2033
2034 * elf32-mips.c (ELF_MAGPAGESIZE): Change definition to 0x1000.
2035
2036 * elf.c (map_sections_to_segments): Don't start a new segment for
2037 a writable section if it's on the same page as the previous
2038 segment. Reset the writable variable for a readonly section.
2039
dfb89b82
KK
2040Sat Jun 29 16:18:51 1996 Kim Knuttila <krk@cygnus.com>
2041
2042 * peicode.h (coff_swap_aouthdr_in): Missing initializations of
2043 first_thunk_address, thunk_size, and import_table_size.
2044 * peicode.h: Improved some diagnostics regarding edata sections.
2045
2046 * coff-ppc.c (coff_ppc_relocate_section): Earlier error check
2047 on IMGLUE relocs.
2048 (coff_ppc_relocate_section): Improved diagnostic for large TOCDEFN's.
2049 (TARGET_LITTLE_SYM): Added missing D_PAGED.
2050
8e80606f
ILT
2051Fri Jun 28 13:48:45 1996 Ian Lance Taylor <ian@cygnus.com>
2052
f93fb275
ILT
2053 * xcofflink.c (xcoff_link_check_ar_symbols): An undefined symbol
2054 with XCOFF_DEF_DYNAMIC set is really defined.
2055 (xcoff_link_check_dynamic_ar_symbols): Likewise.
2056 (xcoff_link_add_symbols): Only create special sections if using an
2057 XCOFF hash table.
2058
8e80606f
ILT
2059 * reloc.c (bfd_perform_relocation): Handle xcoff-powermac like
2060 aixcoff-rs6000.
2061 (bfd_install_relocation): Likewise.
2062
eec2f824
ILT
2063Fri Jun 28 11:17:00 1996 Richard Henderson <rth@tamu.edu>
2064
2065 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add flags
2066 field.
2067 (ALPHA_ELF_LINK_HASH_LU_ADDR): Define.
2068 (ALPHA_ELF_LINK_HASH_LU_MEM): Define.
2069 (ALPHA_ELF_LINK_HASH_LU_FUNC): Define.
2070 (elf64_alpha_link_hash_newfunc): Initialize flags field.
2071 (elf64_alpha_check_relocs): Record types of LITUSE entries that
2072 are found for LITERAL relocs.
2073 (elf64_alpha_adjust_dynamic_symbol): If a symbol has its address
2074 taken, we cannot generate a .plt entry for the symbol.
2075
5304aea9
ILT
2076Thu Jun 27 11:24:29 1996 Ian Lance Taylor <ian@cygnus.com>
2077
2078 * configure.in: Add AC_ISC_POSIX, and check for setitimer and
2079 sysconf functions (for gprof).
2080 * configure, config.in: Rebuild.
2081
017047d4
ILT
2082Wed Jun 26 16:29:02 1996 Ian Lance Taylor <ian@cygnus.com>
2083
f292bbe9
ILT
2084 * ecoff.c (_bfd_ecoff_archive_p): Check the first object file in
2085 an archive if it has a map. If the object file has the wrong
2086 xvec, reject it.
2087
566e2325
ILT
2088 * coff-alpha.c (alpha_adjust_reloc_in): Set the addend for a
2089 BRADDR, SREL16, SREL32, or SREL64 reloc against an external
2090 symbol.
2091 (alpha_relocate_section): Likewise.
2092
017047d4
ILT
2093 * coffswap.h (coff_swap_reloc_out): Use RELSZ, not sizeof.
2094 (coff_swap_filehdr_out): Use FILHSZ, not sizeof.
2095 (coff_swap_sym_out): Use SYMESZ, not sizeof.
2096 (coff_swap_aux_out): Use AUXESZ, not sizeof.
2097 (coff_swap_lineno_out): Use LINESZ, not sizeof.
2098 (coff_swap_aouthdr_out): Use AOUTSZ, not sizeof.
2099 (coff_swap_scnhdr_out): Use SCNHSZ, not sizeof.
2100 * peicode.h: Corresponding changes.
2101
cb73f5d7
MM
2102Tue Jun 25 15:28:34 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2103
2104 * elflink.h (elf_create_pointer_linker_section): Comment out code
2105 dealing with making GOT pointers negative of the GOT symbol for
2106 now.
2107
297a4f1a
ILT
2108Tue Jun 25 11:41:24 1996 Richard Henderson <rth@tamu.edu>
2109
2110 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't
2111 increment the .rela.plt size until after we're done creating the
2112 .plt entry.
2113 (elf64_alpha_finish_dynamic_symbol): Change .plt entry to load the
2114 .rela.plt offset directly rather than calculating it.
2115
dbbfec07
JM
2116Mon Jun 24 17:15:10 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
2117
01e58ff6
JM
2118 * Makefile.in, (bindir, libdir, datadir, mandir, infodir, includedir):
2119 Use autoconf-set values.
2120 * doc/Makefile.in (bindir, libdir, datadir, mandir, infodir,
2121 includedir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set
2122 values.
dbbfec07
JM
2123 (docdir): Deleted.
2124 * configure.in (AC_PREREQ): autoconf v2.5 or higher.
2125 * configure: Rebuilt.
2126
50004d8d
JL
2127Mon Jun 24 22:50:35 1996 Jeffrey A Law (law@cygnus.com)
2128
2129 * som.c (som_write_fixups): Fix typo in R_END_TRY for exception
2130 handling code > 1k away.
2131
2132Mon Jun 24 18:41:06 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2133
2134 * elflink.h (elf_create_pointer_linker_section): If DEBUG is
2135 defined, output whenever the symbol is updated.
2136
2e0567eb
ILT
2137Mon Jun 24 17:58:12 1996 Jouke Numan <jnuman@bazis.nl>
2138
2139 * elf.c (elf_fake_sections): Don't set sh_addr of a non SEC_ALLOC
2140 section to 0 if user_set_vma is set.
2141 * elflink.h (elf_bfd_final_link): Likewise.
2142
2143Sun Jun 23 20:42:51 1996 Doug Evans <dje@canuck.cygnus.com>
2144
2145 Partially undo patch of Jun 20.
2146 * coffcode.h (coff_set_alignment_hook): Use COFF_IMAGE_WITH_PE.
2147 (coff_compute_section_file_positions): Likewise.
2148 (coff_write_object_contents): Likewise. Re-add deleted code, but
2149 use #ifdef COFF_WITH_PE, not COFF_OBJ_WITH_PE.
2150 * peicode.h (pe_bfd_copy_private_bfd_data): Re-add #ifdef.
2151
bff4a496
ILT
2152Fri Jun 21 17:38:15 1996 Joel Sherrill <joel@merlin.gcs.redstone.army.mil>
2153
2154 * config.bfd: Add support for *-*-rtems* configurations.
2155
7ae6550f
ILT
2156Fri Jun 21 15:19:59 1996 Ian Lance Taylor <ian@cygnus.com>
2157
2158 * elf.c (prep_headers): Add bfd_arch_alpha case.
2159
e8f46717
ILT
2160Fri Jun 21 12:35:27 1996 Richard Henderson <rth@tamu.edu>
2161
2162 * elf64-alpha.c: New file.
2163 * config.bfd (alpha-*-linuxecoff*): New target.
2164 (alpha-*-linux*, alpha-*-elf*): New targets.
2165 * configure.in (bfd_elf64_alpha_vec): New vector.
2166 * configure: Rebuild.
2167 * targets.c (bfd_elf64_alpha_vec): Declare.
2168 (bfd_target_vector): Add bfd_elf64_alpha_vec if BFD64.
2169 * reloc.c (BFD_RELOC_ALPHA_GPDISP): Define.
2170 * bfd-in2.h, libbfd.h: Rebuild.
2171 * Makefile.in: Rebuild dependencies.
2172 (BFD64_BACKENDS): Add elf64-alpha.o.
2173 (BFD64_BACKENDS_CFILES): Add elf64-alpha.c.
2174
bacecac8
ILT
2175Thu Jun 20 18:14:25 1996 Ian Lance Taylor <ian@cygnus.com>
2176
2177 * ecoff.c (ecoff_armap_hash): If hlog is 0, just return 0, rather
2178 than relying on a right shift of 32.
2179
9ca108cd
DE
2180Thu Jun 20 11:00:57 1996 Doug Evans <dje@canuck.cygnus.com>
2181
b9110a3c
DE
2182 * coffcode.h (coff_set_alignment_hook): Change COFF_IMAGE_WITH_PE
2183 ifdef to COFF_WITH_PE.
2184 (coff_compute_section_file_positions): Likewise.
2185 (coff_write_object_contents): Likewise. Delete COFF_OBJ_WITH_PE.
2186 * pe-{arm,i386,ppc}.c (COFF_OBJ_WITH_PE): Delete.
2187 * peicode.h (pe_bfd_copy_private_bfd_data): Delete ifdef
2188 COFF_IMAGE_WITH_PE, always include.
2189
9ca108cd
DE
2190 * peicode.h (coff_swap_scnhdr_out): ".drectve" doesn't have trailing 0.
2191
c2073f05
ILT
2192Wed Jun 19 11:37:52 1996 Ian Lance Taylor <ian@cygnus.com>
2193
7fc6a16a
ILT
2194 * elf.c (map_sections_to_segments): Fix up the test for -Ttext to
2195 approximate the correct answer if SIZEOF_HEADERS was not used.
2196
c2073f05
ILT
2197 * binary.c (binary_set_section_contents): Set section file
2198 position based on LMA rather than VMA.
2199
4838929e
ILT
2200Wed Jun 19 11:19:25 1996 Manfred Hollstein KS/EIC5 60/3/142 #40283 <manfred@lts.sel.alcatel.de>
2201
2202 * linker.c (_bfd_generic_link_output_symbols): Don't output any
2203 symbols if info->strip == strip_all.
2204
2205Tue Jun 18 15:17:36 1996 Jeffrey A. Law <law@rtl.cygnus.com>
2206
2207 * coff-h8300.c: Remove #if 0 code.
2208 (compatable): Don't allow mixing/matching of different architectures.
2209
4838929e
ILT
2210 * archures.c (bfd_mach_h8300s): Add.
2211 * bfd-in2.h: Rebuilt.
2212 * coff-h8300.c (funcvec_hash_newfunc): Handle H8/S too.
2213 (BADMAG): Likewise.
2214 (h8300_reloc16_estimate): Likewise.
2215 (h8300_reloc16_extra_cases): Likewise.
2216 (h8300_bfd_link_add_symbols): Likewise.
2217 * coffcode.h (coff_set_arch_mach_hook): Likewise.
2218 (coff_set_flags): Likewise.
2219 * cpu-h8300.c (h8300_scan): Likewise.
2220 Add H8/S to bfd_h8300_arch list.
2221
c3d8e071
ILT
2222Tue Jun 18 14:42:58 1996 Klaus Kaempf <kkaempf@progis.de>
2223
2224 Added support for Alpha OpenVMS:
2225 * evax.h, evax-alpha.c, evax-egsd.c, evax-emh.c: New files.
2226 * evax-etir.c, evax-misc.c, hosts/alphavms.h: New files.
2227 * config.h-vms, makefile.vms: New files.
2228 * config.bfd (alpha-*-*vms*): New target.
2229 * configure.in (evax_alpha_vec): New target vector.
2230 * configure: Rebuild.
2231 * reloc.c (BFD_RELOC_SWREL32, BFD_RELOC_SWREL64): Define.
2232 (BFD_RELOC_ALPHA_LINKAGE, BFD_RELOC_ALPHA_BASEREG): Define.
2233 * targets.c (bfd_target_evax_flavour): Define.
2234 (evax_alpha_vec): Declare.
2235 (bfd_target_vector): Add ecoffalpha_little_vec and evax_alpha_vec
2236 if BFD64 is defined.
2237 * bfd-in2.h, libbfd.h: Rebuild.
2238 * Makefile.in: Rebuild dependencies.
2239 (BFD64_BACKENDS): Add evax-alpha.o, evax-egsd.o, evax-etir.o,
2240 evax-emh.o, and evax-misc.o.
2241 (BFD64_BACKENDS_CFILES): Add evax-alpha.c, evax-egsd.c,
2242 evax-etir.c, evax-emh.c, and evax-misc.c.
2243 (HFILES): Add evax.h.
2244
142aa7d9
ILT
2245Tue Jun 18 13:54:18 1996 Ian Lance Taylor <ian@cygnus.com>
2246
2247 * coff-h8300.c (h8300_reloc16_extra_cases): Make name a const
2248 pointer.
2249 (h8300_bfd_link_add_symbols): Likewise.
2250
b658d64d
JL
2251Mon Jun 17 10:06:50 1996 Jeffrey A. Law <law@rtl.cygnus.com>
2252
2253 * som.h (R_HPPA_BEGIN_TRY, R_HPPA_END_TRY): Define.
2254 * som.c (som_write_fixups): Handle R_BEGIN_TRY and R_END_TRY.
2255
2df1e84b
ILT
2256Mon Jun 17 12:49:11 1996 Ian Lance Taylor <ian@cygnus.com>
2257
2258 * elf32-mips.c (mips_elf_relocate_section): Don't create a reloc
2259 for R_MIPS_REL32 and R_MIPS_32 relocs if no dynamic sections were
2260 created.
2261 (mips_elf_check_relocs): Only create .rel.dyn for R_MIPS_REL32 and
2262 R_MIPS_32 relocs if creating a shared library.
2263
2264Thu Jun 13 20:14:51 1996 Doug Evans <dje@canuck.cygnus.com>
2265
2266 * peicode.h (add_data_entry): Use pei_section_data rather than
2267 _cooked_size. Corresponds to May 13 change in coffcode.h.
2268
8100e72c
ILT
2269Thu Jun 13 10:23:40 1996 Ian Lance Taylor <ian@cygnus.com>
2270
51bc9642
ILT
2271 * cofflink.c (_bfd_coff_final_link): Handle long section names.
2272 * coffcode.h (coff_write_object_contents): If there are long
2273 section names, always set the f_symptr field, even if there are no
2274 symbols.
2275 * peicode.h (coff_swap_filehdr_in): Don't clear the f_symptr field
2276 if there are no symbols.
2277
8100e72c
ILT
2278 * coffgen.c (make_a_section_from_file): Check return value of
2279 _bfd_coff_read_string_table.
2280 (coff_real_object_p): Check return value of
2281 make_a_section_from_file.
2282 (_bfd_coff_read_string_table): Check that there are some symbols
2283 before trying to read the string table size.
2284
0e3bd85e
ILT
2285Wed Jun 12 11:16:37 1996 Ian Lance Taylor <ian@cygnus.com>
2286
ed675a04
ILT
2287 * xcofflink.c (xcoff_link_add_symbols): When considering whether
2288 to replace a symbol in a dynamic object with a symbol from another
2289 dynamic object, do the replacement if the existing symbol is
2290 global linkage code.
2291
49144784
ILT
2292 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Check explicitly
2293 for _ptrgl, and treat it as global linkage code.
2294
0e3bd85e
ILT
2295 * aoutx.h (NAME(aout,find_nearest_line)): Notice if we find a
2296 filename or N_SO symbol past the offset, and use it to indicate
2297 that there is no line number or function when appropriate.
2298
a5c7acea
ILT
2299Tue Jun 11 15:24:48 1996 Ian Lance Taylor <ian@cygnus.com>
2300
2301 * xcofflink.c (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR for a
2302 common symbol defined by the linker. Don't export function code
2303 even if export_defineds is set.
2304
2305Mon Jun 10 11:57:27 1996 Jeffrey A Law (law@cygnus.com)
2306
2307 * coff-h8300.c (howto_table): Add new entries for R_BCC_INV
2308 and R_JMP_DEL.
2309 (rtype2howto): Handle R_BCC_INV and R_JMP_DEL.
2310 (h8300_symbol_address_p): New function.
2311 (h8300_reloc16_estimate): Eliminate jumps made unnecessary by
2312 relaxing.
2313
890f5b7f
JL
2314Sun Jun 9 16:30:20 1996 Jeffrey A Law (law@cygnus.com)
2315
2316 * coff-h8300.c (h8300_reloc16_estimate): Fix many minor spacing
2317 problems.
2318 (h8300_reloc16_estimate, cases R_JMP1, R_JMP2): Adjust "dot"
2319 correctly for the two variants. Allow relaxing if the target
2320 is 128 bytes away since after relaxation it'll be 126 bytes away.
2321 (h8300_reloc16_estimate, case R_PCRWORD): Correctly adjust
2322 "dot" and "value". Allow relaxing if the target is 128 bytes
2323 away since after relaxation it'll be 126 bytes away.
2324 * reloc16.c (bfd_coff_reloc16_relax_section): Keep relaxing
2325 the given section until nothing changes.
2326
0593fc16
ILT
2327Thu Jun 6 15:24:45 1996 Richard Henderson <rth@tamu.edu>
2328
2329 * ecoff.c (_bfd_ecoff_new_section_hook): Remove the _PDATA
2330 alignment hack--we can get the lnnoptr info another way without
2331 suddenly increasing the alignment requirements. Set the flags for
2332 the _PDATA section.
2333 (ecoff_compute_section_file_positions): Do so.
2334
9b263b79
ILT
2335Thu Jun 6 11:24:37 1996 Ian Lance Taylor <ian@cygnus.com>
2336
bbf7c335
ILT
2337 * ieee.c (ieee_write_object_contents): Put a timestamp in the file
2338 to keep the HP emulator database happy.
2339
9b263b79
ILT
2340 * config.bfd: Recognize powerpc-*-linux* and powerpcle-*-linux*.
2341 From Kevin Buettner <kev@primenet.com>.
2342
2343Wed Jun 5 15:16:04 1996 Ian Lance Taylor <ian@cygnus.com>
2344
2345 * aoutx.h (translate_to_native_sym_flags): Don't try to print the
2346 name of a NULL section.
2347
26145b15
ILT
2348Tue Jun 4 18:53:58 1996 Ian Lance Taylor <ian@cygnus.com>
2349
2350 * linker.c (_bfd_generic_link_add_one_symbol): If notice_all is
2351 set, always call the notice callback.
2352
2353 * VERSION: Increment for bfdlink.h change.
2354
3a2080d8
ILT
2355Mon Jun 3 11:01:53 1996 Ian Lance Taylor <ian@cygnus.com>
2356
9d175198
ILT
2357 * coff-sh.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set to 4.
2358 (sh_relax_delete_bytes): Correct handling of differently sized
2359 trailing alignment reloc.
2360
5a04f1bd
ILT
2361 * bfd-in.h: Use #error if BFD_HOST_64_BIT can not be defined.
2362 * bfd-in2.h: Rebuild.
2363 * configure.in: Warn if there is no known 64 bit type.
2364 * configure: Rebuild.
2365
60c8b04f
ILT
2366 * Makefile.in: Rebuild dependencies.
2367 (BFD32_BACKENDS): Add ppcboot.o.
2368 (BFD32_BACKENDS_CFILES): Add ppcboot.c.
2369
3a2080d8
ILT
2370 * elf32-mips.c (mips_elf_size_dynamic_sections): Initialize c.
2371 From Per Fogelstrom <per.fogelstrom@mailbox200.swipnet.se>.
2372
903612a2
ILT
2373Sat Jun 1 21:49:58 1996 Ian Lance Taylor <ian@cygnus.com>
2374
2375 * elf64-mips.c (bfd_mips_elf64_swap_reginfo_in)
2376 (bfd_mips_elf64_swap_reginfo_out): Move from here...
2377 * elf32-mips.c (bfd_mips_elf64_swap_reginfo_in)
2378 (bfd_mips_elf64_swap_reginfo_out): ...to here.
2379
38893c8c
ILT
2380Fri May 31 13:51:28 1996 Ian Lance Taylor <ian@cygnus.com>
2381
bc05732b
ILT
2382 * elf64-mips.c: Improve reloc special_functions and handling of
2383 SHT_MIPS_OPTIONS section.
2384 * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Rename from
2385 mips_elf_hi16_reloc and make globally visible.
2386 (_bfd_mips_elf_lo16_reloc): Rename from mips_elf_lo16_reloc and
2387 make globally visible.
2388 (_bfd_mips_elf_got16_reloc): Rename from mips_elf_got16_reloc and
2389 make globally visible.
2390 (_bfd_mips_elf_gprel16_reloc): Rename from mips_elf_gprel16_reloc
2391 and make globally visible.
2392 (gprel16_with_gp): Check howto->src_mask before using value in
2393 insn.
2394 (_bfd_mips_elf_gprel32_reloc): Rename from mips_elf_gprel32_reloc
2395 and make globally visible.
2396 (gprel32_with_gp): Check howto->src_mask before fetching value.
2397 (bfd_mips_elf_swap_options_in): New function.
2398 (bfd_mips_elf_swap_options_out): New function.
2399 (_bfd_mips_elf_set_private_flags): Rename from
2400 mips_elf_set_private_flags and make globally visible.
2401 (_bfd_mips_elf_copy_private_bfd_data): Rename from
2402 mips_elf_copy_private_bfd_data and make globally visible.
2403 (_bfd_mips_elf_merge_private_bfd_data): Rename from
2404 mips_elf_merge_private_bfd_data and make globally visible.
2405 (_bfd_mips_elf_section_from_shdr): Accept .MIPS.options as a name
2406 for a SHT_MIPS_OPTIONS section.
2407 (mips_elf32_section_from_shdr): Handle SHT_MIPS_OPTIONS section.
2408 (_bfd_mips_elf_fake_sections): Consider .MIPS.options to be the
2409 name of a SHT_MIPS_OPTIONS section.
2410 (_bfd_mips_elf_set_section_contents): New function.
2411 (mips_elf32_section_processing): Set the GP value in a
2412 SHT_MIPS_OPTIONS section.
2413 (_bfd_mips_elf_find_nearest_line): Rename from
2414 mips_elf_find_nearest_line and make globally visible.
2415 (bfd_elf32_set_section_contents): Define.
2416 * elf-bfd.h (_bfd_mips_elf_hi16_reloc): Declare.
2417 (_bfd_mips_elf_lo16_reloc): Declare.
2418 (_bfd_mips_elf_gprel16_reloc): Declare.
2419 (_bfd_mips_elf_got16_reloc): Declare.
2420 (_bfd_mips_elf_gprel32_reloc): Declare.
2421 (_bfd_mips_elf_set_private_flags): Declare.
2422 (_bfd_mips_elf_copy_private_bfd_data): Declare.
2423 (_bfd_mips_elf_merge_private_bfd_data): Declare.
2424 (_bfd_mips_elf_find_nearest_line): Declare.
2425 (_bfd_mips_elf_set_section_contents): Declare.
2426
38893c8c
ILT
2427 * elf32-hppa.c (elf32_hppa_info_to_howto): Rename from
2428 elf_info_to_howto.
2429 (elf_info_to_howto): Define.
2430 * elf32-sparc.c (elf32_sparc_info_to_howto): Rename from
2431 elf_info_to_howto.
2432 (elf_info_to_howto): Define.
2433 * elf64-sparc.c (sparc64_elf_info_to_howto): Rename from
2434 elf_info_to_howto.
2435 (elf_info_to_howto): Define.
2436
2437 * coff-w65.c (h8300_reloc16_estimate): Rename R_MOVB[12] to
2438 R_MOV16B[12], to match change in coff/internal.h.
2439
cabd8fa0
ILT
2440Thu May 30 12:38:49 1996 Ian Lance Taylor <ian@cygnus.com>
2441
00176555
ILT
2442 * elf64-mips.c: Extensive additions to provide better support for
2443 writing files and for gas.
2444 * elf32-mips.c (_bfd_mips_elf_object_p): New function, broken out
2445 of mips_elf_object_p.
2446 (mips_elf32_object_p): Rename from mips_elf_object_p; call
2447 _bfd_mips_elf_object_p.
2448 (_bfd_mips_elf_final_write_processing): Rename from
2449 mips_elf_final_write_processing and make globally visible.
2450 (_bfd_mips_elf_fake_sections): Rename from
2451 mips_elf_fake_sections and make globally visible.
2452 (_bfd_mips_elf_section_from_bfd_section): Rename from
2453 mips_elf_section_from_bfd_section and make globally visible.
2454 (_bfd_mips_elf_section_processing): New function, broken out of
2455 mips_elf_section_processing.
2456 (mips_elf32_section_processing): Rename from
2457 mips_elf_section_processing; call
2458 _bfd_mips_elf_section_processing.
2459 (_bfd_mips_elf_symbol_processing): Rename from
2460 mips_elf_symbol_processing and make globally visible.
2461 (_bfd_mips_elf_read_ecoff_info): Rename from
2462 mips_elf_read_ecoff_info and make globally visible.
2463 (mips_elf32_ecoff_debug_swap): Rename from
2464 mips_elf_ecoff_debug_swap.
2465 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Use asymbol rather than
2466 struct symbol_cache_entry.
2467 (_bfd_elf_validate_reloc): New function, moved in from
2468 elfcode.h:validate_reloc.
2469 * elfcode.h (validate_reloc): Remove; moved into elf.c and renamed
2470 to _bfd_elf_validate_reloc. Change all callers.
2471 * elf-bfd.h (bfd_section_from_shdr): Declare.
2472 (_bfd_elf_symbol_from_bfd_symbol): Declare.
2473 (_bfd_elf_validate_reloc): Declare.
2474 (_bfd_mips_elf_object_p): Declare.
2475 (_bfd_mips_elf_fake_sections): Declare.
2476 (_bfd_mips_elf_section_from_bfd_section): Declare.
2477 (_bfd_mips_elf_section_processing): Declare.
2478 (_bfd_mips_elf_symbol_processing): Declare.
2479 (_bfd_mips_elf_read_ecoff_info): Declare.
2480 (_bfd_mips_elf_final_write_processing): Declare.
2481 * elfxx-target.h (bfd_elfNN_get_reloc_upper_bound): Don't define
2482 if already defined.
2483
cabd8fa0
ILT
2484 * elf32-mips.c (mips_elf_object_p): Handle E_MIPS_ARCH_4.
2485 (mips_elf_final_write_processing): Likewise.
2486
d1bf45aa
ILT
2487Wed May 29 16:15:29 1996 Ian Lance Taylor <ian@cygnus.com>
2488
2489 64-bit MIPS ELF ABI objdump support:
2490 * elf64-mips.c: New file.
2491 * Makefile.in: Rebuild dependencies.
2492 (BFD64_BACKENDS): Add elf64-mips.o.
2493 (BFD64_BACKENDS_CFILES): Add elf64-mips.c.
2494 * config.bfd (mips*el-*-elf*) Add bfd_elf64_bigmips_vec and
2495 bfd_elf64_littlemips_vec to targ_selvecs.
2496 (mips*-*-elf*): Likewise.
2497 * confingure.in: Add bfd_elf64_bigmips_vec and
2498 bfd_elf64_littlemips_vec to vector switch.
2499 * configure: Rebuild.
2500 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): New function,
2501 broken out of mips_elf_section_from_shdr.
2502 (mips_elf32_section_from_shdr): Rename from
2503 mips_elf_section_from_shdr. Call new function.
2504 (elf_backend_section_from_shdr): Update name of renamed function.
2505 * elf-bfd.h (struct elf_size_info): Change second parameter of
2506 write_out_phdrs to be const. Likewise for second parameter of
2507 swap_symbol_out.
2508 (struct bfd_elf_section_data): Add rel_hdr2 field.
2509 (bfd_elf32_swap_symbol_in): Change second parameter to be const.
2510 (bfd_elf32_swap_symbol_out): Likewise.
2511 (bfd_elf32_swap_reloc_in): Likewise.
2512 (bfd_elf32_swap_reloc_out): Likewise.
2513 (bfd_elf32_swap_reloca_in): Likewise.
2514 (bfd_elf32_swap_reloca_out): Likewise.
2515 (bfd_elf32_swap_phdr_in): Likewise.
2516 (bfd_elf32_swap_phdr_out): Likewise.
2517 (bfd_elf32_swap_dyn_in): Likewise.
2518 (bfd_elf32_swap_dyn_out): Likewise.
2519 (bfd_elf32_slurp_symbol_table): Declare.
2520 (bfd_elf32_write_shdrs_and_ehdr): Declare.
2521 (bfd_elf32_write_out_phdrs): Declare.
2522 (bfd_elf64_swap_symbol_in): Change second parameter to be const.
2523 (bfd_elf64_swap_symbol_out): Likewise.
2524 (bfd_elf64_swap_reloc_in): Likewise.
2525 (bfd_elf64_swap_reloc_out): Likewise.
2526 (bfd_elf64_swap_reloca_in): Likewise.
2527 (bfd_elf64_swap_reloca_out): Likewise.
2528 (bfd_elf64_swap_phdr_in): Likewise.
2529 (bfd_elf64_swap_phdr_out): Likewise.
2530 (bfd_elf64_swap_dyn_in): Likewise.
2531 (bfd_elf64_swap_dyn_out): Likewise.
2532 (bfd_elf64_slurp_symbol_table): Declare.
2533 (bfd_elf64_write_shdrs_and_ehdr): Declare.
2534 (bfd_elf64_write_out_phdrs): Declare.
2535 (_bfd_mips_elf_section_from_shdr): Declare.
2536 * elf.c (bfd_section_from_shdr): Remove assertion requiring
2537 SHT_REL/SHT_RELA to match use_rela_p. If there is already a reloc
2538 section for the section, add the new one to rel_hdr2. Increment
2539 reloc_count rather than setting it.
2540 * elfcode.h (elf_slurp_symbol_table): Define name as macro.
2541 Remove static declaration.
2542 (elf_write_shdrs_and_ehdr): Define name as macro.
2543 (elf_write_out_phdrs): Likewise.
2544 (elf_swap_ehdr_in, elf_swap_ehdr_out): Declare.
2545 (elf_swap_shdr_in, elf_swap_shdr_out): Declare.
2546 (elf_swap_symbol_in): Change second parameter to be const.
2547 (elf_swap_symbol_out): Likewise.
2548 (elf_swap_ehdr_in, elf_swap_ehdr_out): Likewise.
2549 (elf_swap_shdr_in, elf_swap_shdr_out): Likewise.
2550 (elf_swap_phdr_in, elf_swap_phdr_out): Likewise.
2551 (elf_swap_reloc_in, elf_swap_reloc_out): Likewise.
2552 (elf_swap_reloca_in, elf_swap_reloca_out): Likewise.
2553 (elf_write_out_phdrs): Rename from write_out_phdrs. Change second
2554 parameter to be const. Make non-static.
2555 (elf_write_shdrs_and_ehdr): Rename from write_shdrs_and_ehdr.
2556 Make non-static.
2557 (elf_slurp_symbol_table): Make non-static.
2558 (NAME(_bfd_elf,size_info)): Update names of renamed functions.
2559 * elfxx-target.h (elf_info_to_howto): Define if not defined.
2560 (elf_backend_size_info): Likewise.
2561 (elfNN_bed): Use elf_backend_size_info.
2562 * targets.c (bfd_elf64_bigmips_vec): Declare.
2563 (bfd_elf64_littlemips_vec): Declare.
2564 (bfd_target_vector): Add bfd_elf64_bigmips_vec and
2565 bfd_elf64_littlemips_vec if BFD64 is defined.
2566
2567 * libbfd.c (bfd_get_file_window): Add cast to fprintf argument.
2568
7dd3d45a
ILT
2569Tue May 28 11:42:08 1996 Ian Lance Taylor <ian@cygnus.com>
2570
07692951
ILT
2571 * coff-sh.c (sh_relax_delete_bytes): Insert nop instructions, not
2572 zeroes, in alignment holes.
2573
a4322a77
ILT
2574 * configure: Rebuild with autoconf 2.10.
2575
7dd3d45a
ILT
2576 * aoutx.h (NAME(aout,find_nearest_line)): Make room for the
2577 potential leading underscore in the allocated buffer.
2578
0293d5b0
MM
2579Fri May 24 14:28:38 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2580
2581 * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not put small common
2582 symbols into .sbss if this is a relocatable link.
2583
a5d0cd50
ILT
2584Thu May 23 12:26:24 1996 Ian Lance Taylor <ian@cygnus.com>
2585
2586 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Warn about
2587 undefined symbols when creating a shared library.
2588
2589Fri May 17 13:54:15 1996 Ian Lance Taylor <ian@cygnus.com>
2590
2591 * coff-sh.c: Add a bunch of new code and static const arrays to
2592 support aligning loads and stores on four byte memory boundaries.
2593 Also:
2594 (sh_coff_howtos): Add entries for R_SH_CODE, R_SH_DATA and
2595 R_SH_LABEL.
2596 (sh_relax_section): Look for R_SH_CODE relocs. If we find one,
2597 call sh_align_loads.
2598 (sh_relax_delete_bytes): Don't mark R_SH_CODE or R_SH_DATA relocs
2599 as unused.
2600
c403d358
ILT
2601Thu May 16 16:34:13 1996 Ian Lance Taylor <ian@cygnus.com>
2602
2603 * cache.c (bfd_open_file): Unlink the file before opening it for
2604 write. From Marty Leisner <leisner@sdsp.mc.xerox.com>.
2605
2606 * opncls.c (bfd_fdopenr): Set opened_once.
2607
2f710e17
ILT
2608Tue May 14 12:35:32 1996 Ian Lance Taylor <ian@cygnus.com>
2609
ff60fc3a
ILT
2610 * som.c (som_slurp_reloc_table): Clear external_relocs cache after
2611 freeing it.
2612
2f710e17
ILT
2613 * libbfd.c: Remove #ifdef FILE_OFFSET_IS_CHAR_INDEX, and compile
2614 the code unconditionally.
2615
efb33f6b
ILT
2616Mon May 13 19:51:37 1996 Ian Lance Taylor <ian@cygnus.com>
2617
2618 * libcoff-in.h (struct pei_section_tdata): Define structure.
2619 (pei_section_data): Define macro.
2620 * libcoff.h: Rebuild.
2621 * coffcode.h (coff_set_alignment_hook): If COFF_IMAGE_WITH_PE,
2622 store s_paddr field in pei_section_data.
2623 (coff_compute_section_file_positions): Use pei_section_data rather
2624 than _cooked_size, and don't overwrite an existing value.
2625 (coff_write_object_contents): If COFF_OBJ_WITH_PE, set s_paddr to
2626 0. If COFF_IMAGE_WITH_PE, set s_paddr to pei_section_data.
2627 * peicode.h (coff_bfd_copy_private_section_data): Define if
2628 COFF_IMAGE_WITH_PE.
2629 (pe_bfd_copy_private_section_data): New static function if
2630 COFF_IMAGE_WITH_PE.
2631
5ecd6d7f
ILT
2632Wed May 8 16:10:38 1996 Ian Lance Taylor <ian@cygnus.com>
2633
db1e2aa7
ILT
2634 * srec.c (srec_set_arch_mach): Write as a function rather than a
2635 macro definition.
2636
5ecd6d7f
ILT
2637 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): If an archive has
2638 no map, just check each member in turn to see whether it is
2639 required.
2640
aefee5c8
MM
2641Wed May 8 09:17:34 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2642
2643 * ppcboot.c (ppcboot_object_p): Check for type 0x41 in partition
2644 table. Call BFD_ASSERT to validate header size, instead of
2645 calling fatal.
2646 (ppcboot_bfd_print_private_bfd_data): Put quotes around partition
2647 name.
2648
0d1fcbbb
MM
2649Tue May 7 16:10:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2650
2651 * ppcboot.c: New target for looking at PPCbug boot records.
2652
2653 * config{ure.in,.bfd}: Add support for ppcboot target.
2654 * targets.c: Ditto.
2655 * configure: Regenerate.
2656
f4597f8c
JL
2657Tue May 7 11:15:19 1996 Jeffrey A Law (law@cygnus.com)
2658
2659 * coff-h8300.c (howto_table): Update names to match recent
2660 changes to include/coff/internal.h. Fix minor errors in the
2661 existing relocs. Add R_MOVL1 and R_MOVL2.
2662 (rtype2howto): Similarly.
2663 (h8300_reloc16_estimate): Rewrite to simplify, fix bugs in the
2664 existing relaxing code and peform more relaxing.
2665 (h8300_reloc16_extra_cases): Likewise.
2666
0dc70e1a
JL
2667Mon May 6 18:24:09 1996 Jeffrey A Law (law@cygnus.com)
2668
2669 * reloc16.c (bfd_coff_reloc16_get_value): Handle common
2670 symbols correctly.
2671
d1b8ccb0
PS
2672Sat May 4 05:08:45 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2673
2674 * elfcode.h (elf_object_p): Reject generic ELF target if
2675 e_machine matches an alternate machine code in a specific backend.
2676
2677 * netbsd-core.c (netbsd_core_vec): Remove initializer for
2678 obsolete align_power_min field.
2679
c9f5444e
JL
2680Fri May 3 13:07:35 1996 Jeffrey A Law (law@cygnus.com)
2681
2682 * coff-h8300.c (reloc_howto_type): Add howto entry for
2683 R_PCRWORD_B.
2684 (rtype2howto): Handle R_PCRWORD_B.
2685 (h8300_reloc16_extra_cases): Handle R_PCRWORD_B.
2686 (h8300_reloc_16_estimate): Likewise. Try to turn a 16bit
2687 pc-relative branch (R_PCRWORD) into an 8bit pc-relative
2688 branch (R_PCWORD_B).
2689
4ad842aa
ILT
2690Fri May 3 10:47:41 1996 Ian Lance Taylor <ian@cygnus.com>
2691
340d654f
ILT
2692 * aoutx.h (translate_from_native_sym_flags): Set the section for
2693 BSF_CONSTRUCTOR symbols.
2694
4ad842aa
ILT
2695 * cofflink.c (_bfd_coff_link_input_bfd): Correct setting of
2696 last_bf_index.
2697
9c7a5748
DE
2698Wed May 1 18:39:32 1996 Doug Evans <dje@canuck.cygnus.com>
2699
2700 * coffcode.h (coff_write_object_contents): In comdat section lookup,
2701 stop looking when section is found.
2702
622c93a3
ILT
2703Wed May 1 14:17:57 1996 Ian Lance Taylor <ian@cygnus.com>
2704
e8f3bb64 2705 * coffcode.h (STRING_SIZE_SIZE): Define.
9aac8e83
ILT
2706 (styp_to_sec_flags): Handle long symbol names when looking for the
2707 section symbol.
e8f3bb64
ILT
2708 (bfd_coff_backend_data): Add _bfd_coff_long_section_names field.
2709 (bfd_coff_long_section_names): Define.
2710 (coff_write_object_contents): Handle long section names.
2711 (bfd_coff_std_swap_table): Initialize new field.
2712 * libcoff.h: Rebuild.
2713 * coffgen.c (make_a_section_from_file): Handle long section
2714 names.
2715 (coff_write_symbols): Handle long section names.
2716 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
2717 * coff-mips.c (mips_ecoff_backend_data): Likewise.
2718 * pe-arm.c (COFF_LONG_SECTION_NAMES): Define.
2719 * pei-arm.c (COFF_LONG_SECTION_NAMES): Define.
2720 * pe-i386.c (COFF_LONG_SECTION_NAMES): Define.
2721 * pei-i386.c (COFF_LONG_SECTION_NAMES): Define.
2722 * pe-ppc.c (COFF_LONG_SECTION_NAMES): Define.
2723 * pei-ppc.c (COFF_LONG_SECTION_NAMES): Define.
2724
622c93a3
ILT
2725 * bout.c (b_out_callback): Set lma of sections.
2726 (b_out_bfd_get_relocated_section_contents): Rename in_abfd
2727 parameter to output_bfd. Used input_bfd instead of output_bfd in
2728 several places.
2729
6b725f83
ILT
2730Tue Apr 30 17:56:39 1996 Ian Lance Taylor <ian@cygnus.com>
2731
b7d1158a
ILT
2732 * aoutx.h (translate_from_native_sym_flags): Don't create
2733 SEC_CONSTRUCTOR sections.
2734 * ecoff.c (ecoff_set_symbol_info): Likewise.
2735
6b725f83
ILT
2736 * elf32-mips.c (mips_elf_copy_private_bfd_data): Copy elf_gp.
2737 From Don Bowman <bowman@waterloo.hp.com>.
2738
e28a1e77
DE
2739Tue Apr 30 17:06:32 1996 Doug Evans <dje@canuck.cygnus.com>
2740
2741 * coff-arm.c (armcoff_little_vec): If COFF_WITH_PE is defined, add
2742 SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags.
2743
abec70b9
ILT
2744Mon Apr 29 13:15:17 1996 Ian Lance Taylor <ian@cygnus.com>
2745
2746 * elf32-mips.c (struct mips_elf_link_hash_entry): Add
2747 mips_32_relocs field.
2748 (mips_elf_link_hash_newfunc): Initialize mips_32_relocs field.
2749 (mips_elf_relocate_section): Copy R_MIPS_REL32 and R_MIPS_32
2750 relocs against a global symbol which is not defined in a regular
2751 file.
2752 (mips_elf_check_relocs): For a R_MIPS_REL32 or R_MIPS_32 reloc
2753 against a global symbol, increment mips_32_relocs.
2754 (mips_elf_adjust_dynamic_symbol): If mips_32_relocs is set, and
2755 the symbol is not defined in a regular file, make room in the
2756 .rel.dyn section.
2757
ecba7a3a
ILT
2758Fri Apr 26 18:00:37 1996 Ian Lance Taylor <ian@cygnus.com>
2759
656c5b6d
ILT
2760 * ecoff.c (ecoff_compute_section_file_positions): Track the real
2761 file position and the virtual file position separately. Set
2762 filepos information bsaed on the real file position.
2763 (_bfd_ecoff_set_section_contents): Handle .lib sections like the
2764 Jan 23 change to coffcode.h.
2765
ecba7a3a
ILT
2766 * som.c (som_slurp_symbol_table): Set the symbol count to the
2767 number of BFD symbols created.
2768
e25a7988
MM
2769Fri Apr 26 12:34:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2770
2771 * elf32-ppc.c (ppc_elf_check_relocs): Forward relocations to the
2772 output file if linking shared objects. Loop to check all relocs,
2773 rather than returning false on first error.
2774
5c28a96e
MM
2775Thu Apr 25 13:25:12 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2776
3f7ca26b
MM
2777 * elf32-ppc.c (ppc_elf_create_linker_section): Add PLT case.
2778 (ppc_elf_additional_program_headers): If .interp section, bump #
2779 of program headers by 1.
2780 (ppc_elf_adjust_dynamic_symbol): Flesh out support.
2781 (ppc_elf_size_dynamic_sections): Add support for .plt section.
2782 (ppc_elf_check_relocs): Print out filename in debug code. Enable
2783 PLT support.
2784 (ppc_elf_finish_dynamic_symbol): Add support for PLT's, beef up
2785 debug output.
2786 (ppc_elf_relocate_section): If the output section isn't defined,
2787 don't abort, just give an error message.
2788
5c28a96e
MM
2789 * elflink.c (_bfd_elf_create_dynamic_sections): If the section
2790 being created is .sdata or .sdata2, don't make the symbol dynamic.
2791
f5d65485
ILT
2792Wed Apr 24 14:04:07 1996 Ian Lance Taylor <ian@cygnus.com>
2793
2794 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through the
2795 members of an archive for dynamic objects with no symbols, and
2796 pass them directly to check_archive_element.
2797 (xcoff_link_check_ar_symbols): Pass dynamic objects to
2798 xcoff_link_check_dynamic_ar_symbols.
2799 (xcoff_link_check_dynamic_ar_symbols): New static function.
2800
2801 * coff-rs6000.c (rs6000coff_vec): Change BFD_JUMP_TABLE_DYNAMIC
2802 from _bfd_nodynamic to _bfd_xcoff.
2803 * libcoff-in.h (_bfd_xcoff_get_dynamic_symtab_upper_bound):
2804 Declare.
2805 (_bfd_xcoff_canonicalize_dynamic_symtab): Declare.
2806 (_bfd_xcoff_get_dynamic_reloc_upper_bound): Declare.
2807 (_bfd_xcoff_canonicalize_dynamic_reloc): Declare.
2808 * libcoff.h: Rebuild.
2809 * xcofflink.c (xcoff_swap_ldrel_in): New static function.
2810 (xcoff_get_section_contents): New static function.
2811 (_bfd_xcoff_get_dynamic_symtab_upper_bound): New function.
2812 (_bfd_xcoff_canonicalize_dynamic_symtab): New function.
2813 (_bfd_xcoff_get_dynamic_reloc_upper_bound): New function.
2814 (xcoff_dynamic_reloc): New static variable.
2815 (_bfd_xcoff_canonicalize_dynamic_reloc): New function.
2816 (xcoff_link_add_dynamic_symbols): Use xcoff_get_section_contents.
2817
2818Tue Apr 23 12:48:42 1996 Ian Lance Taylor <ian@cygnus.com>
2819
2820 * coff-sparc.c (bfd_coff_generic_reloc): Return bfd_reloc_ok even
2821 if reloc_entry->addend is not 0.
2822 (CALC_ADDEND): Just set the addend to reloc.r_offset.
2823
34249b2f
DE
2824Mon Apr 22 18:29:01 1996 Doug Evans <dje@canuck.cygnus.com>
2825
2826 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Fix spelling of
2827 R_SPARC_GLOB_JMP.
2828 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
2829 Add entries for R_SPARC_[56].
2830 (sparc_reloc_map): Add entries for R_SPARC_[56].
2831
af50cd91
ILT
2832Mon Apr 22 15:07:24 1996 Ian Lance Taylor <ian@cygnus.com>
2833
1726b8f0
ILT
2834 Optimize linking of stabs in sections as used in ELF and COFF.
2835 * stabs.c: New file.
2836 * libbfd-in.h (_bfd_link_section_stabs): Declare.
2837 (_bfd_write_section_stabs): Declare.
2838 (_bfd_write_stab_strings): Declare.
2839 * libbfd.h: Rebuild.
2840 * libcoff-in.h (struct coff_section_tdata): Add stab_info field.
2841 (struct coff_link_hash_table): Add stab_info field.
2842 * libcoff.h: Rebuild.
2843 * cofflink.c (_bfd_coff_link_hash_table_init): Initialize
2844 stab_info field.
2845 (coff_link_add_symbols): Call _bfd_link_section_stabs if
2846 appropriate.
2847 (_bfd_coff_final_link): Write out stab strings hash table.
2848 (_bfd_coff_link_input_bfd): Handle optimized stabs sections.
2849 * coff-ppc.c (ppc_bfd_coff_final_link): Write out stab strings
2850 hash table.
2851 * elf-bfd.h (struct elf_link_hash_table): Add stab_info field.
2852 (struct bfd_elf_section_data): Add stab_info field.
2853 * elf.c (_bfd_elf_link_hash_table_init): Initialize stab_info
2854 field.
2855 * elflink.h (elf_link_add_object_symbols): If appropriate, call
2856 _bfd_link_section_stabs.
2857 (elf_bfd_final_link): Write out stab strings hash table.
2858 (elf_link_input_bfd): Handle optimized stabs sections.
2859 * reloc.c (_bfd_final_link_relocate): Check address against
2860 _raw_size rather than _cooked_size.
2861 * Makefile.in: Rebuild dependencies.
2862 (BFD_LIBS): Add stabs.o
2863 (BFD_LIBS_CFILES): Add stabs.c.
2864
2865 * VERSION: Increment for bfdlink.h change.
2866
af50cd91
ILT
2867 * coffgen.c (coff_renumber_symbols): Correct handling of
2868 BSF_NOT_AT_END common symbols.
2869
f9fa5df3
ILT
2870Fri Apr 19 19:21:56 1996 Ian Lance Taylor <ian@cygnus.com>
2871
2872 * coff-ppc.c (record_toc): Add cast to avoid warning.
2873 (ppc_allocate_toc_section): Likewise.
2874 (coff_ppc_relocate_section): Remove ANSI C string concatenation.
2875 (ppc_coff_reloc_type_lookup): Remove unreached code.
2876 * coffcode.h (coff_write_object_contents): Don't take the address
2877 of an array.
2878 * peicode.h (pe_print_idata): Add casts to avoid warning.
2879 (pe_print_edata): Likewise.
2880 (pe_print_reloc): Remove ANSI C string concatenation.
2881
d6e0e2f7
ILT
2882Thu Apr 18 18:51:18 1996 Ian Lance Taylor <ian@cygnus.com>
2883
2884 * libcoff-in.h (struct coff_final_link_info): Add last_bf_index
2885 and last_bf fields.
2886 * libcoff.h: Rebuild.
2887 * coffswap.h (coff_swap_aux_in): Swap endndx field for C_FCN
2888 symbols.
2889 (coff_swap_aux_out): Likewise.
2890 * peicode.h (coff_swap_aux_in): Likewise.
2891 (coff_swap_aux_out): Likewise.
2892 * coffgen.c (coff_pointerize_aux): Check endndx field for C_FCN
2893 symbols.
2894 * cofflink.c (_bfd_coff_final_link): Initialize last_bf_index
2895 field.
2896 (_bfd_coff_link_input_bfd): Check endndx field for C_FCN symbols.
2897 Fix up .bf endndx link fields.
2898 * coff-ppc.c (ppc_bfd_coff_final_link): Initialize last_bf_index
2899 field.
2900 * xcofflink.c (xcoff_link_input_bfd): Check endndx field for C_FCN
2901 symbols.
2902
221d1e19
MM
2903Wed Apr 17 12:08:24 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2904
2905 * pe{,i}-ppc.c (PPC_PE): Define instead of PPC, so that compiling
2906 on Solaris PowerPC systems doesn't get confused.
2907
2908 * ccffcode.h (coff_write_object_contents): Use #ifdef PPC_PE, not
2909 #ifdef PPC.
2910
2911 * elfcore.h (bfd_prstatus, bfd_fpregset): Add thread argument.
2912 (elf_corefile_note): If HAVE_SYS_PROCFS_H is not defined, don't
2913 update did_reg and did_reg2.
2914
8f9a56c6
ILT
2915Wed Apr 17 13:07:37 1996 Ian Lance Taylor <ian@cygnus.com>
2916
f97fca78
ILT
2917 * xcofflink.c (xcoff_link_input_bfd): Check for TOC overflow.
2918
8f9a56c6
ILT
2919 * linker.c (_bfd_generic_link_add_one_symbol): When calling the
2920 callback routines, pass h->root.string rather than name, in case
2921 copy is true and name is transient.
2922
603fdf16
SG
2923Tue Apr 16 16:36:38 1996 Stu Grossman (grossman@lisa.cygnus.com)
2924
2925 * elfcore.h: Add support for core files with multiple threads.
2926 (Primarily for Solaris.)
2927
a2d914e1
ILT
2928Tue Apr 16 13:44:08 1996 Ian Lance Taylor <ian@cygnus.com>
2929
cdf23557
ILT
2930 * aoutx.h (NAME(aout,squirt_out_relocs)): Don't do anything if
2931 section->orelocation is NULL.
2932
a2d914e1
ILT
2933 * coffgen.c (bfd_coff_get_syment): New function.
2934 (bfd_coff_get_auxent): New function.
2935 * bfd-in.h (bfd_coff_get_syment): Declare.
2936 (bfd_coff_get_auxent): Declare.
2937 * bfd-in2.h: Rebuild.
2938
5cf36a32
ILT
2939Mon Apr 15 19:06:59 1996 Ian Lance Taylor <ian@cygnus.com>
2940
2941 * elf32-mips.c (struct mips_hi16): Define.
2942 (mips_hi16_addr, mips_hi16_addend): Remove.
2943 (mips_hi16_list): New static variable.
2944 (mips_elf_hi16_reloc): Maintain a list of unmatched HI16 relocs.
2945 (mips_elf_lo16_reloc): Process mips_hi16_list.
2946 (mips_elf_relocate_section): Permit an arbitrary number of HI16
2947 relocs before the associated LO16 reloc.
2948
b7fce5be
ILT
2949Wed Apr 10 00:23:53 1996 Ian Lance Taylor <ian@cygnus.com>
2950
176512da
ILT
2951 * versados.c (versados_scan): Check bfd_alloc return value.
2952 (versados_object_p): Check all bfd_read return values. Require
2953 that lang field be less than 10, to avoid confusion with Intel Hex
2954 files.
2955
18de3f19
ILT
2956 * libaout.h (WRITE_HEADERS): Write out the relocs even if there
2957 aren't any symbols.
2958 * aoutx.h (NAME(aout,swap_std_reloc_out)): Set r_index to N_ABS,
2959 not 0, for an absolute symbol.
2960 (NAME(aout,swap_ext_reloc_out)): Likewise.
2961
66ab4152
ILT
2962 * ihex.c (ihex_scan): Accept a length of 4 for record type 5.
2963 (ihex_write_object_contents): For a large start address, output
2964 the full 32 bit address in record type 5.
2965
b7fce5be
ILT
2966 * ieee.c (ieee_write_byte): Change second parameter from bfd_byte
2967 to int to avoid promotion problems in prototype.
2968
f1b45745
ILT
2969Tue Apr 9 11:44:21 1996 Ian Lance Taylor <ian@cygnus.com>
2970
f400f358
ILT
2971 * configure.host: Use ${srcdir} when looking for picfrag.
2972
3d9a5986
ILT
2973 * configure.host: Switch on ${libdir}, not $(libdir). From
2974 alan@spri.levels.unisa.edu.au (Alan Modra).
2975
f1b45745
ILT
2976 * aoutx.h (aout_link_add_symbols): Always call add_dynamic_symbols
2977 entry point, not just for DYNAMIC objects.
2978 * sunos.c (sunos_add_dynamic_symbols): Always call
2979 sunos_create_dynamic_sections. If called with a non DYNAMIC
2980 object, don't do anything else.
2981 (sunos_add_one_symbol): Don't call sunos_create_dynamic_sections.
2982
6f21f2e3
ILT
2983Mon Apr 8 12:09:36 1996 Ian Lance Taylor <ian@cygnus.com>
2984
639b5a09
ILT
2985 * configure.in: Permit --enable-shared to specify a list of
2986 directories.
2987 * configure: Rebuild.
2988
6f21f2e3
ILT
2989 * configure.host: Set HLDFLAGS and SHLIB_CFLAGS for *-dec-osf*
2990 host when configuring with --enable-shard.
2991
3f5f565b
ILT
2992Fri Apr 5 12:24:13 1996 Ian Lance Taylor <ian@cygnus.com>
2993
1ac75f5c
ILT
2994 * config.bfd: Add i[345]86-*-freebsdelf* target; from John Polstra
2995 <jdp@polstra.com>.
2996
1a9951a9
ILT
2997 * linker.c (link_action): For WARN_ROW/warn, use MWARN, not CYCLE,
2998 to avoid crashing in bfd_hash_replace.
2999
f1ac3acb 3000 * sysdep.h: Use #ifdef, not #if.
3f5f565b 3001
eb5f58e0
ILT
3002Thu Apr 4 23:32:23 1996 Ian Lance Taylor <ian@cygnus.com>
3003
3004 * config.in: Rebuild.
3005
ab1aa5cd
FF
3006Thu Apr 4 18:49:09 1996 Fred Fish <fnf@cygnus.com>
3007
3008 * configure.in (mips-sony-bsd*): Fix typo in AC_DEFINE.
3009 (AC_CHECK_HEADERS): Check for sys/time.h
3010 (AC_HEADER_TIME): Add macro.
3011 * configure: Rebuild.
3012 * sysdep.h: Use TIME_WITH_SYS_TIME and HAVE_SYS_TIME_H
3013 to control what combination of <time> and <sys/time.h>
3014 get included.
3015
d1f74cd2
DE
3016Tue Apr 2 13:11:53 1996 Doug Evans <dje@canuck.cygnus.com>
3017
3018 * aoutf1.h (sunos_32_set_arch_mach): Handle M_SPARCLET.
3019 (aout_32_sunos4_write_object_contents): Likewise.
3020 * aoutx.h (NAME(aout,machine_type)): Handle
3021 bfd_mach_sparc_{sparclet,sparclite}.
3022 * archures.c (bfd_mach_sparc_{sparclet,sparclite}): Define.
3023 (bfd_mach_sparc_v9_p): Update.
3024 * cpu-sparc.c (arch_info_struct): Add entries for sparclet,sparclite.
3025 * libaout.h (enum machine_type): Add M_SPARCLET.
3026 * sunos.c (MACHTYPE_OK): Define.
3027 * bfd-in2.h: Regenerated.
3028
1dad72bd
ILT
3029Tue Apr 2 00:33:18 1996 Ian Lance Taylor <ian@cygnus.com>
3030
19bfbcbe
ILT
3031 * elf-bfd.h (struct elf_link_hash_table): Add hgot field.
3032 * elf.c (_bfd_elf_link_hash_table_init): Initialize hgot field.
3033 * elflink.c (_bfd_elf_create_got_section): Store the
3034 _GLOBAL_OFFSET_TABLE_ hash table entry in the hgot field.
3035 * elf32-sparc.c (elf32_sparc_check_relocs): If the size of the
3036 global offset table goes over 0x1000, set the value of
3037 _GLOBAL_OFFSET_TABLE_ to 0x1000 into the section.
3038 (elf32_sparc_relocate_section): Subtract the offset of
3039 _GLOBAL_OFFSET_TABLE_ when handling GOT relocations.
3040
1dad72bd
ILT
3041 * elfcode.h: Don't include <string.h>.
3042
ca4e2190
JL
3043Mon Apr 1 10:39:24 1996 Jeffrey A Law (law@cygnus.com)
3044
3045 * linker.c (_bfd_generic_link_hash_newfunc): Renamed from
3046 generic_link_hash_newfunc. All references changed.
3047 * genlink.h (_bfd_generic_link_hash_newfunc): Declaration
3048 moved here from libbfd-in.h.
3049 * libbfd-in.h: Corresponding changes.
3050 * libbfd.h: Regenerated.
3051
ce6a7731
ILT
3052Mon Apr 1 12:35:36 1996 Ian Lance Taylor <ian@cygnus.com>
3053
aad53b0d
ILT
3054 * aoutx.h (aout_link_input_section_std): When reporting an
3055 overflow error, use the name of the symbol in the hash table if
3056 available.
3057 (aout_link_input_section_ext): Likewise.
3058
ce6a7731
ILT
3059 * elflink.h (elf_adjust_dynamic_symbol): If a common symbol got
3060 defined in a regular file, set ELF_LINK_HASH_DEF_REGULAR.
3061
323b430f
SC
3062Sun Mar 31 01:58:41 1996 steve chamberlain <sac@slash.cygnus.com>
3063
3064 * peicode.h (coff_swap_aouthdr_out): Delete test for .junk.
3065 * coffcode.h (coff_compute_section_file_positions): Likewise.
3066 (coff_write_object_contents): Likewise.
3067
7fc1cd16
ILT
3068Fri Mar 29 12:44:36 1996 Ian Lance Taylor <ian@cygnus.com>
3069
5a28331f
ILT
3070 * section.c (SEC_LINK_ONCE): Define.
3071 (SEC_LINK_DUPLICATES): Define.
3072 (SEC_LINK_DUPLICATES_DISCARD): Define.
3073 (SEC_LINK_DUPLICATES_ONE_ONLY): Define.
3074 (SEC_LINK_DUPLICATES_SAME_SIZE): Define.
3075 (SEC_LINK_DUPLICATES_SAME_CONTENTS): Define.
3076 * bfd-in2.h: Rebuild.
3077 * coffcode.h (sec_to_styp_flags): If COFF_WITH_PE, turn
3078 SEC_LINK_ONCE into IMAGE_SCN_LNK_COMDAT.
3079 (styp_to_sec_flags): If COFF_WITH_PE, turn IMAGE_SCN_LNK_REMOVE
3080 into SEC_EXCLUDE. If IMAGE_SCN_LNK_COMDAT is set, set
3081 SEC_LINK_ONCE, and look through the symbol table for the setting
3082 for SEC_LINK_DUPLICATES.
3083 (coff_write_object_contents): If COFF_WITH_PE, if SEC_LINK_ONCE is
3084 set for a section, find the section symbol in the symbol table,
3085 and set the aux entry based on SEC_LINK_DUPLICATES.
3086 * coffgen.c (coff_print_symbol): Add a space before "checksum".
3087 * coff-arm.c (armcoff_big_vec): If COFF_WITH_PE is defined, add
3088 SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags.
3089 * coff-i386.c (i386coff_vec): Likewise.
3090 * coff-ppc.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Likewise.
3091
7fc1cd16
ILT
3092 * VERSION: Bump to 2.6.1.
3093 * Makefile.in (stamp-h): Depend upon VERSION.
3094
9399a257
JL
3095Thu Mar 28 23:48:49 1996 Jeffrey A Law (law@cygnus.com)
3096
3097 * libbfd-in.h (generic_link_hash_newfunc): Add declaration.
3098 * libbfd.h: Rebuilt.
3099 * linker.c (generic_link_hash_newfunc): No longer static.
3100 * coffcode.h (coff_bfd_link_hash_create): Allow specific targets
3101 to override.
3102 * coff-h8300.c: Add two derived hash tables and their associated
3103 funtions and #defines for use by the h8300 linker.
3104 (h8300_reloc16_extra_cases, case R_MEM_INDIRECT): Create entries in
3105 the function vector as needed. Place the address of the function
3106 vector entry in the location specified by the R_MEM_INDIRECT reloc.
3107 Rewrite the vectors section contents as necessary.
3108 (h8300_bfd_link_add_symbols): New function for the h8300 linker.
3109 (coff_bfd_link_add_symbols): Define to use h8300 specific version.
3110 (coff_bfd_link_hash_table_create): Likewise.
3111
506f2bb4
ILT
3112Thu Mar 28 17:44:08 1996 Ian Lance Taylor <ian@cygnus.com>
3113
3114 * libhppa.h: If gcc 2.7 or higher, declare all the functions with
3115 __attribute__ ((__unused__)) so that -Wall doesn't warn about
3116 them.
3117 (hppa_rebuild_insn): Pass pointer to correct type to
3118 low_sign_unext and dis_assemble_21.
3119
05a84ae1
DE
3120Thu Mar 28 11:00:36 1996 Doug Evans <dje@canuck.cygnus.com>
3121
3122 * config.bfd (sparc64-{sysv4*,solaris2*}): Delete.
3123 Stick with sparc-*-{sysv4*,solaris2*}.
3124
919cf4b5
ILT
3125Wed Mar 27 10:43:34 1996 Ian Lance Taylor <ian@cygnus.com>
3126
8230f31c
ILT
3127 * peicode.h (coff_swap_aux_in): Swap in extra PE x_scn fields.
3128 (coff_swap_aux_out): Swap out extra PE x_scn fields.
3129 * coffswap.h (coff_swap_aux_in): Zero out extra PE x_scn fields.
3130 * coffgen.c (coff_print_symbol): If any of the extra PE x_scn
3131 fields is non-zero, print them.
3132
9addd1d4
ILT
3133 * coff-ppc.c (ppc_record_toc_entry): Put inside COFF_IMAGE_WITH_PE
3134 ifdef. Remove unused variables.
3135 (ppc_record_data_in_toc_entry): Ifdef out. Removed unused
3136 variables.
3137 (ppc_mark_symbol_as_glue): Put inside COFF_IMAGE_WITH_PE ifdef.
3138 (get_symbol_value): Ifdef out.
3139 (pe_ppc_reloc): Ifdef out. Remove unused variables.
3140 (coff_ppc_relocate_section): Remove unused variables. Make
3141 fprintf strings and argument types correspond. Put before_addr in
3142 DEBUG_RELOC ifdef.
ff0e4a93
ILT
3143 (dump_toc): Make fprintf strings and argument types correspond.
3144 (ppc_process_before_allocation): Remove unused variables. Always
3145 return a value.
9addd1d4
ILT
3146 (ppc_reflo_reloc): Ifdef out.
3147 (ppc_addr32nb_reloc): Ifdef out.
3148 (ppc_coff_rtype2howto): Make fprintf strings and argument types
3149 correspond.
3150 (coff_ppc_rtype_to_howto): Likewise.
3151 (ppc_coff_swap_sym_in_hook): Remove unused variables.
3152
3153 * peicode.h (pe_print_idata): Move otherwise unused variables into
3154 the #ifdef where they are used. Always return a value.
ff0e4a93
ILT
3155 (pe_print_edata): Make fprintf strings and argument types
3156 correspond. Always return a value.
9addd1d4
ILT
3157 (pe_print_pdata): Removed unused variable addr_value. Always
3158 return a value.
3159 (pe_print_reloc): Remove unused variable onaline. Make fprintf
ff0e4a93 3160 strings and argument types correspond. Always return a value.
9addd1d4
ILT
3161
3162 * elf32-ppc.c (ppc_elf_fake_sections): Return true.
3163 (ppc_elf_finish_dynamic_symbol): Move definition of unused
3164 variable rela inside #if 0 section where it is used.
3165
c877bdf1
ILT
3166 * ns32k.h: New file.
3167 * cpu-ns32k.h: Include ns32k.h. Rename externally visible
3168 functions to start with _bfd_.
3169 * aout-ns32k.c: Include ns32k.h. Change references to renamed
3170 functions in cpu-ns32k.h.
3171 * Makefile.in: Rebuild dependencies.
3172 (HFILES): Add ns32k.h.
3173
ff0e4a93
ILT
3174 * section.c (struct sec): Add linker_mark field. Change
3175 user_set_vma and reloc_done to be single bit fields.
3176 (STD_SECTION): Update accordingly.
7ec49f91
ILT
3177 * bfd-in2.h: Rebuild.
3178 * aoutx.h (NAME(aout,final_link)): Mark sections included in the
3179 link.
3180 (aout_link_input_bfd): Don't link unmarked sections.
3181 * cofflink.c (_bfd_coff_final_link): Mark sections included in the
3182 link.
3183 (_bfd_coff_link_input_bfd): Don't link unmarked sections.
3184 * coff-ppc.c (ppc_bfd_coff_final_link): Mark sections included in
3185 the link.
3186 * elflink.h (elf_bfd_final_link): Mark sections included in the
3187 link.
3188 (elf_link_input_bfd): Don't link unmarked sections.
3189 * xcofflink.c (_bfd_xcoff_bfd_final_link): Mark sections included
3190 in the link.
3191 (xcoff_link_input_bfd): Don't link unmarked sections.
3192
919cf4b5
ILT
3193 * coffswap.h (coff_swap_scnhdr_out): Include section name in
3194 overflow error messages.
3195
986cf3b8
ILT
3196Tue Mar 26 15:46:18 1996 Ian Lance Taylor <ian@cygnus.com>
3197
fd681dcd
ILT
3198 * bfd.c (_bfd_default_error_handler): If _bfd_error_program_name
3199 is not set, print "BFD: " before the error message.
3200
986cf3b8
ILT
3201 * configure.in: Use AC_CHECK_TOOL to find ar and ranlib. From
3202 Miles Bader <miles@gnu.ai.mit.edu>.
3203 * configure: Rebuild.
3204
3998d526
ILT
3205Fri Mar 22 12:17:00 1996 Ian Lance Taylor <ian@cygnus.com>
3206
c3dffbd7
ILT
3207 * xcofflink.c (xcoff_link_input_bfd): Fix scan for C_BINCL/C_EINCL
3208 symbols.
3209
3998d526
ILT
3210 * config.bfd: Add ieee_vec to targ_selvecs for i960 targets and
3211 m68k-aout, m68k-coff, and m68k-elf targets.
3212
e4d27380
ILT
3213Fri Mar 22 11:33:44 1996 Martin Anantharaman <martin@goofy.imech.uni-duisburg.de>
3214
3215 * ieee.c: Changed #ifdef KEEPMINUSPCININST to #if KEEPMINUSPCININST.
3216 (ieee_generic_stat_arch_elt): Restructured to prevent
3217 ieee_object_p from being called repeatedly.
3218
51776a11
SC
3219Thu Mar 21 11:00:47 1996 steve chamberlain <sac@slash.cygnus.com>
3220
3221 * coffcode.h (coff_write_object_contents): Allocate
3222 buffers large enough for any FILEHDR or AOUTHDR.
3223
3224Thu Mar 21 16:28:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
3225
3226 * ecofflink.c (lookup_line): New static function, renamed and
3227 slighly changed from old _bfd_ecoff_locate_line.
3228 (_bfd_ecoff_locate_line): Cache line number information. Use
3229 lookup_line for actual lookup.
3230
9e4ebb1b
MM
3231Thu Mar 21 14:59:11 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3232
3233 * peicode.h (pe_print_pdata): Warn if the .pdata section is not a
3234 multiple of 20 bytes.
3235
9e7427a4
ILT
3236Thu Mar 21 13:54:40 1996 Ian Lance Taylor <ian@cygnus.com>
3237
51776a11
SC
3238 * ecoff.c (_bfd_ecoff_find_nearest_line): Use bfd_zalloc to
3239 allocate ecoff_find_line, and don't initialize by hand.
3240 * elf32-mips.c (mips_elf_find_nearest_line): Use bfd_zalloc for
3241 mips_elf_find_line, and don't call memset.
3242
9e7427a4
ILT
3243 * coffcode.h (coff_compute_section_file_positions): If not
3244 producing a final executable, don't consider sofar when aligning
3245 the section to the correct size.
3246
3247Wed Mar 20 16:53:12 1996 Ian Lance Taylor <ian@cygnus.com>
3248
3249 * coffcode.h (coff_add_missing_symbols): Ifdef out.
3250 (coff_write_object_contents): Don't call coff_add_missing_symbols.
3251 * coffgen.c (coff_section_symbol): Ifdef out.
3252
e7f9ba4f
ILT
3253Mon Mar 18 12:54:41 1996 Ian Lance Taylor <ian@cygnus.com>
3254
3255 * elf32-mips.c (mips_elf_gprel32_reloc): Initialize gp if
3256 output_bfd is not NULL.
3257
34c4d647
DE
3258Thu Mar 14 17:12:06 1996 Doug Evans <dje@charmed.cygnus.com>
3259
3260 * coffgen.c (coff_get_normalized_symtab): Call bfd_zalloc instead
3261 of bfd_alloc (fixes fix_line not being initialized).
3262 Delete zeroing of fix_{value,tag,end,scnlen} fields.
3263
4e054247
JL
3264Thu Mar 14 16:06:06 1996 Jeffrey A Law (law@cygnus.com)
3265
57289b5c
JL
3266 * coffcode.h: Allow specific backends to override the
3267 bfd_link_add_symbols routine.
3268
4e054247
JL
3269 * coff-h8300.c: Include genlink.h.
3270 (howto_table): Add R_MEM_INDIRECT.
3271 (rtype2howto): Support R_MEM_INDIRECT.
3272 (h8300_reloc16_extra_cases): Handle R_MEM_INDIRECT like R_RELBYTE
3273 for now.
3274
a10d3dec
ILT
3275Tue Mar 12 12:41:17 1996 David Mosberger-Tang <davidm@koala.azstarnet.com>
3276
3277 * coff-alpha.c (alpha_relocate_section): Use
3278 info->callbacks_warning, rather than _bfd_error_handler, for
3279 "multiple gp" warning.
3280
ea2488ad
ILT
3281Tue Mar 12 12:10:55 1996 Ian Lance Taylor <ian@cygnus.com>
3282
8881b321
ILT
3283 * linker.c (bfd_wrapped_link_hash_lookup): New function.
3284 (_bfd_generic_link_add_one_symbol): Remove BFD_ASSERT on hash
3285 table string. Use bfd_wrapped_link_hash_lookup.
3286 (_bfd_generic_link_write_global_symbol): Remove BFD_ASSERT on hash
3287 table string.
3288 * aoutx.h (aout_link_write_symbols): Use the name from the hash
3289 table, if any, when writing out symbols.
3290 (aout_link_input_section_std): Use the name from the hash table,
3291 if any, when reporting undefined symbols.
3292 (aout_link_input_section_ext): Likewise.
3293 (aout_link_reloc_link_order): Use bfd_wrapped_link_hash_lookup.
3294 * bout.c (get_value): Likewise.
3295 * cofflink.c (_bfd_coff_reloc_link_order): Likewise.
3296 * ecoff.c (ecoff_reloc_link_order): Likewise.
3297 * elflink.h (elf_link_add_object_symbols): Likewise.
3298 (elf_reloc_link_order): Likewise.
3299 * linker.c (_bfd_generic_link_output_symbols): Likewise.
3300 (_bfd_generic_reloc_link_order): Likewise.
3301 (default_indirect_link_order): Likewise.
3302 * reloc16.c (bfd_coff_reloc16_get_value): Likewise.
3303 * sunos.c (sunos_add_one_symbol): Likewise.
3304 * xcofflink.c (xcoff_link_add_symbols): Likewise.
3305 (bfd_xcoff_link_count_reloc): Likewise.
3306 (xcoff_reloc_link_order): Likewise.
3307
3308 * ecoffswap.h (ecoff_swap_fdr_in): If ECOFF_64, turn 0xffffffff
3309 into -1 for intern->rss.
3310
ea2488ad
ILT
3311 * configure: Rebuild with autoconf 2.8.
3312
c189fdfb
ILT
3313Mon Mar 11 12:28:31 1996 Ian Lance Taylor <ian@cygnus.com>
3314
3315 * stab-syms.c (__define_stab_duplicate): Define.
3316 (bfd_get_stab_name): Rename from aout_stab_name. Rewrite to use a
3317 switch.
3318 * bfd-in.h (bfd_get_stab_name): Declare.
3319 * bfd-in2.h: Rebuild.
3320 * Makefile.in: Rebuild dependencies.
3321 (BFD_LIBS): Add stab-syms.o.
3322 (BFD_LIBS_CFILES): Add stab-syms.c.
3323 (BFD32_BACKENDS): Remove stab-syms.o.
3324 (BFD32_BACKENDS_CFILES): Remove stab-syms.c.
3325 * configure.in: Don't list stab-syms.o in bfd_backends.
3326 * configure: Rebuild.
3327 * libaout.h (aout_stab_name): Don't declare.
3328 * aoutx.h (NAME(aout,get_symbol_info)): Call bfd_get_stab_name,
3329 not aout_stab_name.
3330
3331Fri Mar 8 11:26:20 1996 Ian Lance Taylor <ian@cygnus.com>
3332
3333 * elf.c (assign_file_positions_for_segments): Adjust file offset
3334 for section alignment even if SEC_LOAD is not set.
3335
c5bde1ef
ILT
3336Tue Mar 5 12:02:23 1996 Ian Lance Taylor <ian@cygnus.com>
3337
8f218e05
ILT
3338 * configure.in: Don't set SHLIB or SHLINK to an empty string,
3339 since they appear as targets in Makefile.in.
3340 * configure: Rebuild.
3341
c5bde1ef
ILT
3342 * sunos.c (sunos_scan_ext_relocs): If not making a shared library,
3343 don't fiddle with a symbol which is not defined anywhere.
3344
cb84f028
ILT
3345Mon Mar 4 12:49:16 1996 Ian Lance Taylor <ian@cygnus.com>
3346
4e59f523
ILT
3347 * xcofflink.c (xcoff_mark): Treat undefined imported symbols as
3348 though they are defined in a shared library.
3349 (xcoff_build_ldsyms): Likewise.
3350
ea2504d5
ILT
3351 * coffgen.c (coff_find_nearest_line): Don't look at the line
3352 numbers for the section if section->lineno is NULL.
3353
cb84f028
ILT
3354 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Print a useful error
3355 message rather than calling BFD_ASSERT.
3356 * elfcode.h (write_relocs): Check return value of
3357 _bfd_elf_symbol_from_bfd_symbol.
3358
6e036cf7
MM
3359Fri Mar 1 09:42:59 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3360
3361 * elf32-ppc.c (ppc_elf_add_symbol_hook): Don't set SEC_LOAD flag
3362 for .sbss section.
3363
d08435de
JL
3364Wed Feb 28 11:25:47 1996 Jeffrey A Law (law@cygnus.com)
3365
3366 * libhppa.h (hppa_reloc_field_selector_type): Add R_HPPA_NLSEL
3367 and R_HPPA_NLRSEL.
3368 (e_nsel, e_nlsel, e_nlrsel): Undefine. Add to
3369 hppa_reloc_field_selector_type_alt.
3370 (hppa_field_adjust): Handle e_nlsel, e_nlrsel. Fix e_nsel handling.
3371 * som.c (hppa_som_gen_reloc_type): Handle N', NL' NLR' field
3372 selectors.
3373 (som_write_fixups): Finish handling of R_N0SEL and R_N1SEL.
3374
09609415
ILT
3375Wed Feb 28 11:00:24 1996 Ian Lance Taylor <ian@cygnus.com>
3376
3377 * elf.c (assign_file_positions_for_segments): Adjust the segment
3378 memory size for the alignment of a SEC_ALLOC section, not just a
3379 SEC_LOAD section.
3380
55626bf0
ILT
3381Tue Feb 27 14:17:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3382
3383 * m68klinux.c: New file.
3384 * hosts/m68klinux.h: New file.
3385 * config.bfd (m68*-*-linuxaout*, m68*-*-linux*): New targets.
3386 * configure.in (m68*-*-linux*): New native host.
3387 (m68klinux_vec): New vector.
3388 * configure: Rebuild.
3389 * targets.c (m68klinux_vec): Declare.
3390 * i386linux.c (bfd_i386linux_size_dynamic_sections): Renamed from
3391 bfd_linux_size_dynmic_sections to avoid clash with m68klinux.c.
3392 * bfd-in.h (bfd_i386linux_size_dynamic_sections): Rename
3393 declaration from bfd_linux_size_dynamic_sections.
3394 (bfd_m68klinux_size_dynamic_sections): Declare.
3395 * bfd-in2.h: Rebuild.
3396 * Makefile.in: Rebuild dependencies.
3397 (BFD32_BACKENDS): Add m68klinux.o.
3398 (BFD32_BACKENDS_CFILES): Add m68klinux.c.
3399
6c7b3090
JL
3400Tue Feb 27 11:31:34 1996 Jeffrey A Law (law@cygnus.com)
3401
3402 * libhppa.h (pa_arch): Add pa20.
3403 (hppa_reloc_field_selector_type): Add R_HPPA_NSEL.
3404 (e_nsel): Undefine. Add to hppa_reloc_field_selector_type_alt.
3405 (hppa_field_adjust): Handle e_nsel.
3406 * som.c: Provide default definitions for many new relocs found only
3407 in hpux10 include files.
3408 (som_fixup_formats): Add several new relocs from hpux10.
3409 (som_hppa_howto_table): Add hpux10 relocs.
3410 (som_write_fixups): Handle R_N0SEL and R_N1SEL hpux10 relocs.
3411
14fd4616
SS
3412Mon Feb 26 12:52:48 1996 Stan Shebs <shebs@andros.cygnus.com>
3413
3414 * mpw-make.sed: Edit out recent shared library support, and
3415 rules to rebuild .h files using doc/chew.
3416
3d9f042c
ILT
3417Mon Feb 26 14:48:39 1996 David Mosberger-Tang <davidm@AZStarNet.com>
3418
3419 * ecoff.c (ecoff_compute_section_file_positions): Adjust the file
3420 size even of sections with no contents.
3421
bdec6228
ILT
3422Mon Feb 26 14:01:13 1996 Ian Lance Taylor <ian@cygnus.com>
3423
88358469
ILT
3424 * cofflink.c (_bfd_coff_link_input_bfd): When merging, skip names
3425 starting with '$' the way we skip names starting with '.'. When
3426 updating x_endndx, don't be fooled by an index which has been
3427 merged.
3428
bdec6228
ILT
3429 * cofflink.c (_bfd_coff_link_input_bfd): Don't try to optimize a
3430 struct/union/enum type with no elements.
3431
053ae1d7
ILT
3432Sat Feb 24 11:38:58 1996 Ian Lance Taylor <ian@cygnus.com>
3433
15f4406c
ILT
3434 * bfd.c (bfd_errmsg): Handle a NULL return from strerror.
3435
c8435133
ILT
3436 * archive.c (bfd_generic_archive_p): If the first file in the
3437 archive can not be recognized as an object, don't assume that this
3438 is the wrong format.
3439
053ae1d7
ILT
3440 * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
3441 format is not bfd_object.
3442 (bfd_elf_get_dt_soname): Likewise.
3443
ea74d979
ILT
3444Wed Feb 21 13:58:04 1996 Ian Lance Taylor <ian@cygnus.com>
3445
3446 * coff-sh.c (sh_relax_delete_bytes): Correct range of R_SH_USES
3447 reloc.
3448
871a3f3b
C
3449Tue Feb 20 16:22:44 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3450
3451 * bfd.c (tdata): Add netbsd_core_data.
3452 * bfd-in2.h: Regenerated.
3453
3454Tue Feb 20 16:50:02 1996 Ian Lance Taylor <ian@cygnus.com>
3455
fe6fc35f
ILT
3456 * sunos.c (SUNOS_CONSTRUCTOR): Define.
3457 (sunos_add_one_symbol): Don't let a symbol from a dynamic object
3458 override a constructor symbol. Set SUNOS_CONSTRUCTOR when
3459 appropriate.
3460
871a3f3b
C
3461 * bout.c (b_out_squirt_out_relocs): Use udata.i rather than flags
3462 to get the symbol index, matching 14 Jul 95 change.
3463
d3785301
FF
3464Tue Feb 20 08:26:27 1996 Fred Fish <fnf@phydeaux.cygnus.com>
3465
3466 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
3467 Remove duplicate definition of gp.
3468
60a49e7f
ILT
3469Mon Feb 19 12:37:41 1996 Ian Lance Taylor <ian@cygnus.com>
3470
81bdcecf
ILT
3471 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Don't
3472 assume that we can set the GP value and then get the same value,
3473 since it won't be true if the output file is neither ELF nor
3474 ECOFF.
3475 * coff-mips.c (mips_adjust_reloc_in): Don't bother to use
3476 _bfd_get_gp_value here.
3477 (mips_gprel_reloc): Don't assume we can set and get the GP value.
3478 * elf32-mips.c (mips_elf_hi16_reloc): Get gp value from
3479 mips_elf_final_gp.
3480 (mips_elf_lo16_reloc): Likewise.
3481 (mips_elf_final_gp): Add pgp parameter. Set it to the GP value.
3482 Don't require that the BFD be ELF.
3483 (mips_elf_gprel16_reloc): Get gp value from mips_elf_final_gp.
3484 (mips_elf_gprel32_reloc): Likewise.
3485 (mips_elf_relocate_section): Don't assume we can set and get the
3486 GP value.
3487 (mips_elf_finish_dynamic_symbol): Don't bother to use
3488 _bfd_get_gp_value here.
3489
3490 * elf32-mips.c (mips_elf_create_procedure_table): Initialize sv.
3491 Don't change epdr between malloc and free. Be careful not to free
3492 NULL pointers. Zero out the first RPDR.
3493
7b61165a
ILT
3494 * configure.host: On Linux, only pass -rpath option if $(libdir)
3495 is neither /lib nor /usr/lib. From Alan Modra
3496 <alan@mullet.Levels.UniSA.Edu.Au>.
3497
60a49e7f
ILT
3498 * elf-bfd.h (struct elf_obj_tdata): Rename dt_needed_name to
3499 dt_name.
3500 (elf_dt_name): Rename from elf_dt_needed_name.
3501 * elf.c (bfd_elf_set_dt_needed_name): Use elf_dt_name, not
3502 elf_dt_needed_name.
3503 (bfd_elf_get_dt_soname): New function.
3504 * elflink.h (elf_link_add_object_symbols): Use elf_dt_name, not
3505 elf_dt_needed_name. Save the SONAME back in elf_dt_name.
3506 * bfd-in.h (bfd_elf_get_dt_soname): Declare.
3507 * bfd-in2.h: Rebuild.
3508
b268e261
DE
3509Mon Feb 19 02:50:23 1996 Doug Evans <dje@charmed.cygnus.com>
3510
3511 * elf32-sparc.c (elf32_sparc_reloc_type_lookup): Renamed from
3512 _bfd_sparc_elf_reloc_type_lookup.
3513 (bfd_elf32_bfd_reloc_type_lookup): Update.
3514 * elf64-sparc.c (SPARC64_OLD_RELOCS): Define.
3515 (sparc64_elf_howto_table): Define.
3516 (sparc_reloc_map): Define.
3517 (sparc64_elf_reloc_type_lookup): New function.
3518 (sparc_elf_wdisp16_reloc): New function.
3519 (elf_info_to_howto): Use sparc64_elf_howto_table.
3520 (sparc64_elf_relocate_section): Likewise.
3521 (bfd_elf64_bfd_reloc_type_lookup): Update.
3522
9e2ef098
ILT
3523Sun Feb 18 15:02:25 1996 Ian Lance Taylor <ian@cygnus.com>
3524
3525 * configure.host: Check for 'do not mix' from native linker before
3526 trying to use -rpath.
3527
4c70373f
ILT
3528Fri Feb 16 12:46:18 1996 Ian Lance Taylor <ian@cygnus.com>
3529
cba3f8a9
ILT
3530 * bfd.c (_bfd_get_gp_value): New function.
3531 (_bfd_set_gp_value): New function.
3532 * libbfd-in.h (_bfd_get_gp_value): Declare.
3533 (_bfd_set_gp_value): Declare.
3534 * libbfd.h: Rebuild.
3535 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
3536 _bfd_get_gp_value and _bfd_set_gp_value rather than referring
3537 directly to the fields in the tdata information.
3538 (alpha_relocate_section): Likewise.
3539 * coff-mips.c (mips_adjust_reloc_in): Likewise.
3540 (mips_gprel_reloc): Likewise.
3541 (mips_relocate_section): Likewise.
3542 * elf32-mips.c (mips_elf_hi16_reloc): Likewise.
3543 (mips_elf_lo16_reloc): Likewise.
3544 (mips_elf_final_gp): Likewise.
3545 (mips_elf_gprel16_reloc): Likewise.
3546 (mips_elf_gprel32_reloc): Likewise.
3547 (mips_elf_relocate_section): Likewise.
3548 (mips_elf_finish_dynamic_symbol): Likewise.
3549
4c70373f
ILT
3550 * bout.c (b_out_set_arch_mach): Recognize bfd_mach_i960_jx.
3551
a0a2dd54
ILT
3552Thu Feb 15 11:29:13 1996 Ian Lance Taylor <ian@cygnus.com>
3553
f54c7482 3554 * configure.in: Call AC_PROG_CC before configure.host.
65eed095
ILT
3555 * configure: Rebuild.
3556 * configure.host: Don't set information which autoconf should
3557 figure out, namely CC, CFLAGS, LDFLAGS, AR, and RANLIB.
65eed095 3558
14293419
ILT
3559 * configure.host: Remove go32 and win32 host information, since it
3560 should no longer be needed.
3561
edf3fe48
ILT
3562 * elf.c (map_sections_to_segments): If we have a .dynamic section,
3563 then start a new segment rather than put a writable section in a
3564 readonly segment.
3565
b5e4f369
ILT
3566 * configure.host: Set RPATH_ENVVAR.
3567
f2e33e27
ILT
3568 * Makefile.in: Rebuild dependencies.
3569
a0a2dd54
ILT
3570 * elflink.c (_bfd_elf_create_linker_section): Remove unused
3571 zero_section variable.
3572
52c6bc4d
ILT
3573Thu Feb 15 10:39:17 1996 H.J. Lu <hjl@zoom.com>
3574
3575 * Makefile.in ($(srcdir)/bfd-in2.h): Rename target from bfd-in2.h.
3576 ($(srcdir)/libbfd.h): Rename from libbfd.h.
3577 ($(srcdir)/libcoff.h): Rename from libcoff.h.
3578
c9e5279f
ILT
3579Wed Feb 14 16:29:07 1996 Martin Anantharaman <martin@mail.imech.uni-duisburg.de>
3580
cb50baea
ILT
3581 * ieee.c (ieee_write_expression): Only use an R variable for a
3582 local symbol. Don't output a zero offset. Handle a zero address.
3583 (SRC_MASK, PCREL_OFFSET): Define based on KEEPMINUSPCININST.
3584 (rel32_howto, rel16_howto, rel8_howto): Use SRC_MASK and
3585 PCREL_OFFSET.
3586 (parse_expression): Don't try to handle multiple occurrences of a
3587 P variable. Handle I variables differently from X variables. Fix
3588 the order of minus expressions.
3589 (ieee_slurp_external_symbols): Generate an I variable for an NN
3590 record. Fix handling of ATI and ATX records.
3591 (ieee_slurp_sections): Only set minimal section attributes.
3592 Adjust them later, based on the section contents.
3593 (ieee_object_p): Read in the file until just after the ME record.
3594 Call ieee_slurp_section_data to set the section flags.
3595 (do_one): Add iterations parameter. Only repeat the first load
3596 item. Set the section and file reloc flags.
3597 (ieee_slurp_section_data): Set section flags. Pass iterations to
3598 do_one.
3599 (ieee_canonicalize_reloc): Handle I variables.
3600 (do_with_relocs): Only emit relocation size when necessary.
3601 Increase MAXRUN to 127. Change ov to be assigned, and take
3602 src_mask and pcrel_offset into account.
3603 (ieee_write_data_part): Skip sections that are not loaded.
3604 (ieee_write_external_part): Don't output optional last entry of WX
3605 records.
3606 (ieee_write_me_part): Make setting of me_record neater.
3607 (ieee_generic_stat_arch_elt): Get the size of an archive element.
3608
c9e5279f
ILT
3609 * syms.c (stt): Add entries for zerovars, vars, and code.
3610
3611 * elfcode.h (validate_reloc): New static function.
3612 (write_relocs): Call validate_reloc for non ELF relocs.
3613
3614 * elfxx-target.h (elf_symbol_leading_char): Define if not defined.
3615 (TARGET_BIG_SYM): Use elf_symbol_leading_char.
3616 (TARGET_LITTLE_SYM): Likewise.
3617
3618 * config.bfd (m68*-*-psos*): New target.
3619
d9d65be6
ILT
3620Tue Feb 13 15:56:22 1996 Bryan Ford <baford@snake.cs.utah.edu>
3621
3622 * i386msdos.c: Remove some #if 0 code.
3623 (msdos_write_object_contents): Don't include empty sections in the
3624 size computation, regardless of their address.
3625
3626Tue Feb 13 15:36:37 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3627
3628 * elf32-ppc.c (ppc_elf_relocate_section): Don't segfault if dynboj
3629 is NULL, ie, the -r switch is used.
3630
db5970c7
ILT
3631Tue Feb 13 14:35:15 1996 Ian Lance Taylor <ian@cygnus.com>
3632
e9f03cd4
ILT
3633 * reloc.c (BFD_RELOC_MIPS_GOT_HI16): Define.
3634 (BFD_RELOC_MIPS_GOT_LO16): Define.
b7384d22 3635 (BFD_RELOC_MIPS_CALL_HI16, BFD_RELOC_MIPS_CALL_LO16): Define.
e9f03cd4
ILT
3636 * bfd-in2.h, libbfd.h: Rebuild.
3637 * elf32-mips.c (mips_reloc_map): Map new relocs.
3638
fe7c066a
ILT
3639 * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
3640
1ab628e4
ILT
3641 * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not
3642 $(SHLINK).
3643
db5970c7
ILT
3644 * ieee.c (get_symbol): Set the section to bfd_abs_section.
3645 (do_with_relocs): If EXEC_P is set and there are no relocs, use a
3646 simple number for the section address, rather than an expression.
3647 Limit the number of bytes between relocs to MAXRUN.
3648 (ieee_write_me_part): Set me_record to the file offset after the
3649 start address.
3650 (ieee_write_processor): New static function.
3651 (ieee_write_object_contents): Use ieee_write_processor.
3652
318b7c18
ILT
3653Fri Feb 9 10:53:00 1996 Ian Lance Taylor <ian@cygnus.com>
3654
db5970c7
ILT
3655 * configure.host: Use ${CC-gcc} when testing for -rpath on SunOS.
3656
3657 * coff-aux.c: Change include of aux.h to aux-coff.h.
318b7c18 3658
56b64690
ILT
3659Thu Feb 8 14:01:03 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3660
3661 * elf32-m68k.c (elf_m68k_relocate_section): For a R_68K_RELATIVE
3662 relocation put the addend both in the reloc entry and the data.
3663 (elf_m68k_finish_dynamic_symbol): Likewise. Mask out marker in
3664 GOT offset value.
3665
3666 * elf32-m68k.c (elf_m68k_relocate_section): If -Bsymbolic, resolve
3667 a R_68K_PCxx reloc against a defined global symbol directly.
3668 (elf_m68k_check_relocs): Don't count such a reloc.
3669
3670 * elf32-m68k.c (elf_m68k_check_relocs): Don't record a symbol with
3671 a PLTxx reloc as dynamic. Disallow PLTxxO reloc against a local
3672 symbol for now, otherwise always record the symbol as dynamic.
3673 (elf_m68k_adjust_dynamic_symbol): If a symbol with a PLTxx reloc
3674 is not referenced by a dynamic object, and we are not making a
3675 shared object, then don't make a PLT entry. If we do make a PLT
3676 entry, make sure the symbol has been recorded as dynamic.
3677
5d649ca8
ILT
3678Wed Feb 7 13:56:06 1996 Ian Lance Taylor <ian@cygnus.com>
3679
3680 * configure.host: When making a shared library, set HLDFLAGS to
3681 pass an appropriate -rpath option. Use the make variable SONAME
3682 as the shared library soname, rather than computing it here. On
3683 SunOS, build stamp-tshlink in place of $(SHLINK).
3684 * Makefile.in (SONAME): New variable.
3685 ($(SHLINK)): Make a link to the transformed name, as well.
3686 (stamp-tshlink): New target.
3687 (install): Skip stamp-tshlink during install.
3688
8cc98cd5
MM
3689Wed Feb 7 13:37:39 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3690
56b64690
ILT
3691 * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not assume that the
3692 linker sections have been set up yet.
3693
8cc98cd5
MM
3694 * elf.c (make_mapping): Add an additional argument to suppress
3695 making the first section include the program headers.
3696 (map_sections_to_segments): If the user used -Ttext such that the
3697 program headers are on a different page, do not set the flags
3698 saying that this section includes the program headers.
3699
fe16107d
C
3700Tue Feb 6 14:04:49 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3701
3702 * configure.in (*-*-netbsd*): Set COREFILE to netbsd-core.c.
3703 don't define TRAD_HEADER.
3704 * configure: Rebuild.
3705
3706 * netbsd-core.c: New file, support for NetBSD core files.
3707 * hosts/*nbsd.h: Removed.
3708
f1783016
DE
3709Tue Feb 6 11:47:49 1996 Doug Evans <dje@charmed.cygnus.com>
3710
3711 * reloc.c (BFD_RELOC_SPARC_[567]): New reloc types.
3712 (BFD_RELOC_SPARC_LO7 reloc type): Deleted.
3713 * libbfd.h, bfd-in2.h: Regenerated.
3714 * elf32-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Renamed from
3715 bfd_elf32_bfd_reloc_type_lookup.
3716 (reloc_type{,_names}): Deleted.
3717 (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
3718 Add sparc64 relocs.
3719 (sparc_reloc_map): Add sparc64 relocs.
3720 (sparc_elf_notsupported_reloc): New static function.
3721 (sparc_elf_wdisp16_reloc): New static function.
3722 (elf32_sparc_check_relocs): Handle R_SPARC_WDISP{16,19}.
3723 (elf32_sparc_relocate_section): Likewise.
3724 (bfd_elf32_bfd_reloc_type_lookup): Define.
3725 * elf64-sparc.c (sparc64_elf_wdisp16_reloc): Deleted.
3726 (reloc_type{,_names}): Deleted.
3727 (elf_sparc_howto_table): Deleted.
3728 (sparc_reloc_map): Deleted.
3729 (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
3730 (bfd_elf64_bfd_reloc_type_lookup): Change from function to #define.
3731
48fd00b6
ILT
3732Tue Feb 6 12:12:22 1996 Ian Lance Taylor <ian@cygnus.com>
3733
2300e217
ILT
3734 * configure.host: Make SHLIB_CFLAGS include $(PICFLAG) on a
3735 *-*-hpux* host.
3736
48fd00b6
ILT
3737 * Makefile.in (program_transform_name): New variable.
3738 (install): Transform library name before installing it.
3739
8adca582
ILT
3740Mon Feb 5 10:38:27 1996 Ian Lance Taylor <ian@cygnus.com>
3741
cbe75cb6
ILT
3742 * archures.c (bfd_mach_i960_hx): Define.
3743 * bfd-in2.h: Rebuild.
3744 * cpu-i960.c (scan_960_mach): Accept machine "hx".
3745 (MATRIX): Expand entries for HX.
3746 (arch_info_struct): Add i960:hx entry.
3747 * bout.c (b_out_set_arch_mach): Handle bfd_mach_i960_hx.
3748 * coffcode.h (coff_set_arch_mach_hook): Handle F_I960HX.
3749 (coff_set_flags): Handle bfd_mach_i960_hx.
3750
44f795f7
ILT
3751 Support for building as a shared library, based on patches from
3752 Alan Modra <alan@spri.levels.unisa.edu.au>:
3753 * configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib.
3754 New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC,
3755 SHLIB_CFLAGS, COMMON_SHLIB, PICLIST, SHLINK.
3756 * configure: Rebuild.
3757 * configure.host: If --enable-shared, adjust shared library stuff
3758 based on the host. If the host is SunOS, and the linker supports
3759 -rpath, set HLDFLAGS to use it.
3760 * Makefile.in (ALLLIBS): New variable.
3761 (PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables.
3762 (COMMON_SHLIB, SHLINK): New variables.
3763 (.c.o): If PICFLAG is set, compile twice, once PIC, once normal.
3764 (STAGESTUFF): Remove variable.
3765 (all): Depend upon $(ALLLIBS) and @PICLIST@ rather than
3766 $(TARGETLIB).
3767 (stamp-ofiles): New target, like old ofiles target, but build
3768 using a temporary file and move-if-change, and touch stamp-ofiles
3769 when done.
3770 (ofiles): Just depend upon stamp-ofiles.
3771 (stamp-piclist, piclist): New targets.
3772 ($(SHLIB), $(SHLINK)): New targets.
3773 (targets.o, archures.o): Build twice if PICFLAG is set.
3774 (do_mostlyclean): Remove pic/*.o.
3775 (do_clean): Remove stamp-ofiles, $(SHLIB), $(SHLINK), piclist, and
3776 stamp-piclist.
3777 (do_distclean): Remove pic and stamp-picdir.
3778 (install): Install shared libraries.
3779 ($(OFILES)): Depend upon stamp-picdir.
3780 (stamp-picdir): New target.
3781
cb62d2bc
ILT
3782 * libcoff-in.h: Add comment reminding people that libcoff.h is a
3783 generated file.
3784 * libcoff.h: Rebuild.
3785
8adca582
ILT
3786 * elflink.h (elf_adjust_dynamic_symbol): Don't try to get the
3787 flavour of a section with no owner.
3788
3789 * elf32-mips.c (mips_elf_create_dynamic_sections): Clear
3790 ELF_LINK_NON_ELF flag.
3791 (mips_elf_create_got_section): Likewise.
3792
3793 * elf.c: Revert last change, since it breaks dynamic linking.
3794 * elf-bfd.h (struct elf_backend_data): Remove want_hdr_in_seg
3795 field.
3796 * elf32-mips.c (elf_backend_want_hdr_in_seg): Don't define.
3797 * elfxx-target.h (elf_backend_want_hdr_in_seg): Don't define.
3798 (elfNN_bed): Don't initialize want_hdr_in_seg field.
3799
3800Sun Feb 4 20:45:13 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3801
3802 * elf.c (assign_file_positions_for_segments): If the backend does
3803 not want the elf header or the program headers in the address
3804 space, do not include them in the calculations.
3805
3806 * elf32-ppc.c (ppc_elf_additional_program_headers): New hook
3807 function to determine if we need additional program headers.
3808 (ppc_elf_modify_segment_map): Define as a NOP function for now.
3809 (ppc_elf_create_linker_section): .sdata2 is a read-only section.
3810
0f09ddd4
ILT
3811Sat Feb 3 23:00:03 1996 Ian Lance Taylor <ian@cygnus.com>
3812
3813 * coffcode.h: Move today's libcoff.h change into coffcode.h.
3814
b48f10ba
FF
3815Sat Feb 3 15:43:44 1996 Fred Fish <fnf@cygnus.com>
3816
0f09ddd4
ILT
3817 * libcoff.h (bfd_coff_link_add_one_symbol): Combine macro args
3818 back into one line. Some compilers (sunos 4.1.3 for example)
3819 won't accept args split across more than one line.
b48f10ba 3820
50761d3b
SC
3821Fri Feb 2 11:42:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
3822
3823 * aclocal.m4 (BFD_BINARY_FOPEN): Understand cygwin32.
3824 * configure: Regenerate.
3825
9dce8260
JL
3826Fri Feb 2 12:12:16 1996 Jeffrey A Law (law@cygnus.com)
3827
3828 * elf32-hppa.c (elf32_hppa_backend_symbol_table_processing): Don't
3829 try to do arithmetic on a void *, cast it to a unsigned char * first.
3830
6c55897c
ILT
3831Thu Feb 1 16:04:06 1996 Ian Lance Taylor <ian@cygnus.com>
3832
869b7d80
ILT
3833 * elf-bfd.h (ELF_LINK_NON_ELF): Define.
3834 * elf.c (_bfd_elf_link_hash_newfunc): Set elf_link_hash_flags to
3835 ELF_LINK_NON_ELF.
3836 * elflink.h (elf_link_add_object_symbols): Reset ELF_LINK_NON_ELF
3837 flag for a newly defined symbol.
3838 (NAME(bfd_elf,record_link_assignment)): Likewise.
3839 (elf_adjust_dynamic_symbol): If ELF_LINK_NON_ELF is set, try to
3840 set the DEF or REF_REGULAR flags correctly.
3841
6f6956c6
ILT
3842 * Makefile.in (bfd-in2.h): Make bfd.h, not protos, in docdir.
3843 (libbfd.h, libcoff.h): Corresponding change.
3844
6c55897c
ILT
3845 * elf32-i386.c (elf_i386_check_relocs): Don't record a symbol with
3846 a PLT32 reloc as dynamic.
3847 (elf_i386_adjust_dynamic_symbol): If a symbol with a PLT32 reloc
3848 is not referenced by a dynamic object, and we are not making a
3849 shared object, then don't make a PLT entry. If we do make a PLT
3850 entry, make sure the symbol has been recorded as dynamic.
3851
b06136f2
SC
3852Wed Jan 31 17:23:32 1996 Steve Chamberlain <sac@slash.cygnus.com>
3853
3854 * coff-i386.c (coff_i386_reloc_type_lookup): Add BFD_RELOC_32_PCREL.
3855 * config.bfd (i[345]86-*-win32): Becomes i[345]86-*-cygwin32.
3856 (powerpcle-*-cygwin32): New.
3857 * peicode.h (add_data_entry): Get address from vma.
3858
5c867ecd
MM
3859Wed Jan 31 16:23:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3860
3861 * elflink.c (_bfd_elf_create_linker_section): If the symbol
3862 attached to the section has already been created as an undefined
3863 symbol, treat it as if it hasn't been created yet.
3864
28c16b55
ILT
3865Wed Jan 31 16:16:53 1996 Ian Lance Taylor <ian@cygnus.com>
3866
3867 * elflink.h (elf_bfd_final_link): Don't output initial dummy
3868 symbol or section symbols if stripping all symbols and this is not
3869 a relocateable link. Don't output the symbol string table if
3870 there are no symbols.
3871 (elf_link_flush_output_syms): Don't do anything if there are no
3872 symbols to flush.
3873
d19df9b5
ILT
3874Wed Jan 31 12:55:49 1996 Richard Henderson <rth@tamu.edu>
3875
3876 * coff-aux.c: New file.
3877 * hosts/m68kaux.h: New file.
3878 * config.bfd (m68*-apple-aux*): New target.
3879 * configure.in (m68*-apple-aux*): New native host.
3880 (m68kaux_coff_vec): New vector.
3881 * configure: Rebuild.
3882 * targets.c (m68kaux_coff_vec): Declare.
3883 * coffcode.h (bfd_coff_backend_data): Add field
3884 _bfd_coff_link_add_one_symbol.
3885 (bfd_coff_link_add_one_symbol): Define.
3886 (compare_arelent_ptr): New static function if TARG_AUX.
3887 (coff_write_relocs): If TARG_AUX, sort the relocs.
3888 (coff_write_object_contents): Set A/UX aouthdr magic number.
3889 (coff_link_add_one_symbol): Define if not defined.
3890 (bfd_coff_std_swap_table): Initialize new field.
3891 * libcoff.h: Rebuild.
3892 * cofflink.c (coff_link_add_symbols): Call
3893 bfd_coff_link_add_one_symbol rather than
3894 _bfd_generic_link_add_one_symbol.
3895 * coff-m68k.c (COFF_PAGE_SIZE): Don't define if already defined.
3896 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
3897 * coff-mips.c (mips_ecoff_backend_data): Likewise.
3898 * Makefile.in: Rebuild dependencies.
3899 (BFD32_BACKENDS): Add coff-aux.o.
3900 (BFD32_BACKENDS_CFILES): Add coff-aux.c.
3901
a796aafd
ILT
3902Wed Jan 31 11:37:46 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3903
3904 * elf32-m68k.c (elf_m68k_relocate_section): Fix R_68K_GOT*
3905 relocation; ignore addend with R_68K_{GOT,PLT}*O relocation.
3906
a8763553
ILT
3907Tue Jan 30 12:09:04 1996 Ian Lance Taylor <ian@cygnus.com>
3908
66761e59
ILT
3909 * Makefile.in (do_maintainer_clean): Remove $(srcdir)/bfd-in2.h,
3910 $(srcdir)/libbfd.h and $(srcdir)/libcoff.h.
3911 (maintainer-clean): Warn about deleting special files.
3912 (bfd-in2.h, libbfd.h, libcoff.h): New targets.
3913
cf5138e3
ILT
3914 * elf32-hppa.c (elf32_hppa_relocate_section): Handle indirect and
3915 warning symbols correctly.
3916 * elf32-i386.c (elf_i386_relocate_section): Likewise.
3917 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3918 * elf32-mips.c (mips_elf_relocate_section): Likewise.
3919 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3920 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3921 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3922
a8763553
ILT
3923 * syms.c (_bfd_stab_section_find_nearest_line): Add casts to avoid
3924 warnings.
3925
bdd2e7f1
KK
3926Mon Jan 29 14:27:24 1996 Kim Knuttila <krk@cygnus.com>
3927
3928 * libcoff-in.h: aligned newly exported names with bfd naming
3929 conventions. Removed an erroneous define of POWERPC_LE_PE.
3930 * libcoff.h: Rebuild.
3931 * cofflink.c, coff-ppc.c: the above function name changes
3932
d2bb6c79
ILT
3933Mon Jan 29 13:06:28 1996 Ian Lance Taylor <ian@cygnus.com>
3934
eb5bc1f3
ILT
3935 From Basim Kadhim <kadhim@spock.cs.colorado.edu>:
3936 * ecoff.c (struct extsym_info): Define.
3937 (_bfd_ecoff_bfd_final_link): Pass a pointer to struct extsym_info
3938 to ecoff_link_write_external.
3939 (ecoff_link_write_external): Accept a struct extsym_info pointer.
3940 Strip symbols when appropriate.
3941
052b35d2
ILT
3942 Based on patches from Ronald F. Guilmette <rfg@monkeys.com>:
3943 * syms.c (BSF_OBJECT): Define.
3944 (bfd_print_symbol_vandf): Print 'O' for BSF_OBJECT.
3945 * bfd-in2.h: Rebuild.
3946 * elfcode.h (elf_slurp_symbol_table): Set BSF_OBJECT for an
3947 STT_OBJECT symbol.
3948 * elf.c (swap_out_syms): Only set type to STT_OBJECT if BSF_OBJECT
3949 is set.
3950
53787b23
ILT
3951 * elf32-i386.c (elf_i386_relocate_section): If -Bsymbolic, when
3952 copying relocs into a shared object, treat a defined global symbol
3953 as a local symbol.
3954 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3955 * elf32-mips.c (mips_elf_relocate_section): Likewise.
3956 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3957
d2bb6c79
ILT
3958 * elflink.h (elf_link_add_object_symbols): Only set weakdef to a
3959 real defined symbol, not to a weak defined symbol.
3960
13d1a4dd
KK
3961Mon Jan 29 11:34:36 1996 Kim Knuttila <krk@cygnus.com>
3962
3963 * cofflink.c: removed the POWERPC_LE_PE hack, promoted some types
3964 and made a few static functions externs.
3965
3966 * coff-ppc.c (ppc_bfd_coff_final_link): new function, replaces the
3967 POWERPC_LE_PE hack in cofflink.
3968
3969 * libcoff-in.h: promoted the following from cofflink.c to allow
3970 _bfd_coff_final_link to be overridden - STRING_SIZE_SIZE,
3971 coff_debug_merge_element, struct coff_debug_merge_type,
3972 coff_debug_merge_hash_entry, coff_debug_merge_hash_table,
3973 coff_debug_merge_hash_table_init, coff_debug_merge_hash_table_free,
3974 coff_debug_merge_hash_lookup, coff_link_section_info,
3975 coff_final_link_info, coff_debug_merge_hash_newfunc,
3976 coff_write_global_sym, coff_link_input_bfd, coff_reloc_link_order.
3977
3978 * libcoff.h: re-gen'd
3979
86aac8ea
ILT
3980Fri Jan 26 18:33:35 1996 Ian Lance Taylor <ian@cygnus.com>
3981
3982 * syms.c: Include "bfdlink.h".
3983 (struct stab_find_info): Define.
3984 (_bfd_stab_section_find_nearest_line): New function.
3985 * libbfd-in.h (_bfd_stab_section_find_nearest_line): Declare.
3986 * libbfd.h: Rebuild.
3987 * elf-bfd.h (struct elf_obj_tdata): Add line_info field.
3988 * elf.c (_bfd_elf_find_nearest_line): Try calling
3989 _bfd_stab_section_find_nearest_line before searching the ELF
3990 symbol table. Find the closest STT_FUNC symbol, not the last one.
3991 * libcoff-in.h (coff_data_type): Add line_info field.
bdd2e7f1 3992 * libcoff.h: Rebuild.
86aac8ea
ILT
3993 * coffgen.c (coff_find_nearest_line): Try calling
3994 _bfd_stab_section_find_nearest_line before searching the COFF
3995 symbol table.
3996 * Makefile.in: Rebuild dependencies.
3997
3998Fri Jan 26 16:11:19 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3999
4000 * elf32-ppc.c (R_PPC_EMB_SDA21 relocations): Make relocation size
4001 4 bytes, so we get the correct value when updating the register
4002 field in little endian mode.
4003
43d36aad
ILT
4004Thu Jan 25 12:14:16 1996 Ian Lance Taylor <ian@cygnus.com>
4005
f0a97077
ILT
4006 * libcoff-in.h (struct xcoff_tdata): Remove toc_section and
4007 entry_section fields. Add sntoc and snentry fields.
4008 * libcoff.h: Rebuild.
4009 * coffcode.h (coff_mkobject_hook): Initialize sntoc and snentry,
4010 not toc_section and entry_section (the COFF file does not have any
4011 sections at this point).
4012 (coff_write_object_contents): Set o_snentry and o_sntoc from
4013 snentry and sntoc rather than entry_section and toc_section.
4014 * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy sntoc and
4015 snentry, not toc_section and entry_section.
4016 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't set
4017 entry_section from hentry.
4018 (xcoff_link_input_bfd): If a defined symbol has XCOFF_ENTRY set,
ea2504d5 4019 set snenty.
f0a97077
ILT
4020 (xcoff_link_input_bfd): Set sntoc, not toc_section.
4021 (xcoff_write_global_symbol): Get toc_section from sntoc, rather
4022 than using toc_section directly.
4023
9b4598d0
ILT
4024 * archures.c: Add missing `.' in enum bfd_architecture.
4025 * bfd-in2.h: Rebuild.
4026
43d36aad
ILT
4027 * config.bfd (i[345]86-*-sco*elf*): Use bfd_elf32_i386_vec. From
4028 Robert Lipe <robertl@arnet.com>.
4029
eb82bc60
MM
4030Thu Jan 25 12:08:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4031
4032 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Add .rela.sdata{,2}
4033 to sections we allocate. Use bfd_zalloc to allocate initialial
4034 sections, not bfd_alloc.
4035 (ppc_elf_check_relocs): Remove BFD_ASSERTs for !shared from
4036 SDA{,2}I16 relocations.
4037 (ppc_elf_add_symbol_hook): Use the value of -G nn to determine
4038 whether to put something in .sbss or not.
4039 (ppc_elf_relocate_section): Add support for more relocations. Add
c1e65e24
MM
4040 in sec->output_offset where appropriate. Make error messages
4041 include the symbol name.
eb82bc60
MM
4042
4043 * elflink.c (_bfd_elf_create_linker_section): Lookup symbol before
4044 trying to add it to the symbol table, so _GLOBAL_OFFSET_TABLE_
4045 doesn't get redefined messages if -shared.
4046
4047 * elflink.h (elf_create_pointer_linker_section) Only bump RELA
4048 section if the rel_section field has been set up.
4049
9d621c7d
MM
4050Wed Jan 24 20:40:26 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4051
4052 * elf32-ppc.c (ppc_elf_relocate_section): Fix typo in eabi
4053 relocations.
4054
75c9ddc9
DE
4055Wed Jan 24 10:38:34 1996 Doug Evans <dje@charmed.cygnus.com>
4056
4057 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Delete checking
4058 of flags, only flags used are controlled by mach number. Bump up
4059 output file mach number to highest of input file mach numbers.
4060 (elf32_sparc_object_p): Watch for EF_SPARC_SUN_US1.
4061 (elf32_sparc_final_write_processing): Set EF_SPARC_SUN_US1 if v8plusa.
4062
72c513bc
DE
4063 * config.bfd (sparc64-*-{sysv4*,solaris2*}): Comment out
4064 bfd_elf64_sparc_vec support.
4065
3cbe19d2
MM
4066Tue Jan 23 14:33:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4067
4068 * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Don't complain if
4069 the embedded bit is set on some objects and not on others. Just
4070 or it together.
d8fd85ad
MM
4071 (ppc_elf_relocate_section): Implement R_PPC_EMB_{SDA21,RELSDA}
4072 relocations.
3cbe19d2 4073
5eb83ede
ILT
4074Tue Jan 23 14:22:45 1996 Ian Lance Taylor <ian@cygnus.com>
4075
4a3d3b42
ILT
4076 * coffcode.h (coff_new_section_hook): Don't try to align the
4077 .stabstr section.
4078
5eb83ede
ILT
4079 * coffcode.h (coff_set_section_contents): Fix the handling of the
4080 .lib section to work even if the entire section contents are
4081 written at once. From Gvran Uddeborg <gvran@uddeborg.pp.se> and
4082 Robert Lipe <robertl@arnet.com>.
4083
05f927dd
MM
4084Mon Jan 22 18:45:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4085
4086 * elflink.h (elf_finish_pointer_linker_section): Don't allocate
4087 memory here for contents.
4088
4089 * elf32-ppc.c (ppc_elf_relocate_section): Bump up _SDA_BASE_ and
4090 _SDA2_BASE_ by 32768.
4091 (ppc_elf_size_dynamic_sections): #if out PLT code which we haven't
4092 started using. Allocate contents for .sdata and .sdata2 sections
4093 also.
4094 (ppc_elf_check_relocs): Use bfd_get_section_name in debug message,
4095 rather than _name.
4096 (ppc_elf_finish_dynamic_symbol): Remove code that attempted to
4097 size _SDA{,2}_BASE_.
4098 (ppc_elf_relocate_section): Change how sdata{,2} relocations are
4099 done.
4100
5bc513b4
DE
4101Mon Jan 22 08:52:04 1996 Doug Evans <dje@charmed.cygnus.com>
4102
5a5bac64
DE
4103 * elflink.h (elf_finish_pointer_linker_section): Fix typo.
4104
5bc513b4 4105 * archures.c (bfd_mach_sparc_v9): Renamed from bfd_mach_sparc64.
5bc513b4 4106 (bfd_mach_sparc_{v8plus,v8plusa}): Define.
5bc513b4 4107 (bfd_mach_sparc_v9a): Define.
049f3d4c 4108 (bfd_mach_sparc_v9_p): Define.
5bc513b4
DE
4109 * bfd-in2.h: Regenerated.
4110 * aoutx.h (aout,machine_type): bfd_mach_sparc64 renamed to
4111 bfd_mach_sparc_v9.
d3366d23 4112 * elf64-sparc.c (sparc64_elf_object_p): Likewise.
5bc513b4
DE
4113 * config.bfd (sparc64-*-sysv4*,sparc64-*-solaris2*): Set targ_defvec
4114 to bfd_elf32_sparc_vec.
4115 * cpu-sparc.c (arch_info_struct): Renamed from sparc_arch_info.
5bc513b4 4116 Add v8plus{,a} support.
5bc513b4 4117 Add v9a support.
768b8ade 4118 (sparc_compatible): New function.
5bc513b4 4119 * elf32-sparc.h: #include "elf/sparc.h".
75c9ddc9 4120 (elf32_sparc_merge_private_bfd_data, elf32_sparc_object_p,
5bc513b4 4121 elf32_sparc_final_write_processing): New functions.
75c9ddc9 4122 (bfd_elf32_bfd_merge_private_bfd_data, elf_backend_object_p,
5bc513b4 4123 elf_backend_final_write_processing): Define.
5bc513b4 4124
3b3753b8
MM
4125Mon Jan 22 11:21:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4126
4127 * elf-bfd.h (struct elf_link_hash_entry): Add
4128 linker_section_pointer field.
4129 (enum elf_linker_section_enum): Enumeration for new way of
4130 creating linker dynamic sections and symbols.
4131 (elf_linker_section{,_pointers}): New structures for creating
4132 dynamic sections and symbols.
4133 (elf_obj_tdata): Add linker_section_pointers and linker_section
4134 fields.
4135 (elf_local_ptr_offsets,elf_linker_section): New accessor macros.
4136 (_bfd_elf_create_linker_section): New declarations.
4137 (_bfd_elf_find_pointer_linker_section): Ditto.
4138 (bfd_elf{32,64}_{create,finish}_pointer_linker_section): Ditto.
4139 (_bfd_elf_make_linker_section_rela): Ditto.
4140
4141 * elf.c (_bfd_elf_link_hash_newfunc): Initialize new fields.
4142
4143 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Delete.
4144 (ppc_elf_create_linker_section): New function to create the
4145 sections .got, .sdata, and .sdata2.
4146 (ppc_elf_size_dynamic_sections): Zap .rela.{sdata,sdata2} if
4147 needed.
4148 (ppc_elf_check_relocs): Support more of the eabi relocations.
4149 (ppc_elf_relocate_section): Ditto.
4150 (ppc_elf_finish_dynamic_symbols): Adjust _SDA{,2}_BASE_ by 32768
4151 if the .sdata{,2} + .sbss{,2} section size is > 32k.
4152
4153 * elflink.h (elf_create_pointer_linker_section): New function to
4154 create initialized pointers in dynamic linker sections.
4155 (elf_finish_pointer_linker_section): Actually intialize the
4156 pointers created above.
4157
4158 * elfcode.h (bfd_elf{32,64}_create_pointer_linker_section): New
4159 macros to provide both 32 and 64 bit versions of
4160 elf_create_pointer_linker_section.
4161 (bfd_elf{32,64}_finish_pointer_linker_section): New macros to
4162 provide both 32 and 64 bit versions of
4163 elf_finish_pointer_linker_section.
4164
4165 * elflink.c (_bfd_elf_create_linker_section): New function to
4166 create a linker section.
4167 (_bfd_elf_find_pointer_linker_section): Find a unique pointer to a
4168 given address in the linker pointer offsets created for a given
4169 symbol.
4170 (_bfd_elf_make_linker_section_rela): Make a RELA section
4171 corresponding to the generated linker section.
4172
6b3eb07e
DE
4173Sat Jan 20 08:36:10 1996 Doug Evans <dje@canuck.cygnus.com>
4174
4175 * elf32-sparc.c (ELF_MACHINE_ALT1): Define.
4176
e7894f6b
KK
4177Thu Jan 18 18:25:34 1996 Kim Knuttila <krk@cygnus.com>
4178
4179 * coff-ppc.c (coff_ppc_relocate_section): changed TOCDEFN relocs.
4180 (coff_ppc_relocate_section): Handle special values for gcc built dlls.
4181 (dump_toc): fix diagnosing code to identify out-of-toc-bounds entries.
4182 Also begin the toc at 4 as an eye catcher ('31313131' marks the first
4183 toc entry in an objdump) for now.
4184 (ppc_do_last, ppc_get_last): New function - needed to save processing
4185 the toc owner to the end.
4186 (ppc_coff_swap_sym_in_hook): Removed an incorrect hack for doing the
4187 toc owner last.
4188
4189 * cofflink.c (_bfd_coff_final_link): Added a new hack to keep the
4190 toc owner from being done till last. Must define POWERPC_LE_PC
4191 to enable it.
4192
4193 * coffcode.h (coff_set_alignment_hook): alignment setting for .stab
4194
4195 * peicode.h (coff_swap_scnhdr_out): set section flags for stab/str
4196 to INFO.
4197 (coff_swap_aouthdr_out): Removed a non-working hack for computing the
4198 SizeOfImage for PowerPC. Ignore the size of the .junk section.
4199
80b99ca0
ILT
4200Thu Jan 18 17:42:12 1996 Ian Lance Taylor <ian@cygnus.com>
4201
4202 * elfcore.h: Include <signal.h> before <sys/procfs.h>.
4203
df96df4c
ILT
4204Wed Jan 17 12:40:14 1996 Ian Lance Taylor <ian@cygnus.com>
4205
4206 * cpu-powerpc.c (arch_info_struct): Change last entry to not point
4207 back to first.
4208 (bfd_powerpc_arch): Point at first entry in arch_info_struct.
4209
d49ddb85
ILT
4210Tue Jan 16 15:10:49 1996 Ian Lance Taylor <ian@cygnus.com>
4211
4212 * elf.c (assign_file_positions_for_segments): Don't increment file
4213 offset for a segment which contains no loadable sections.
4214
4500a112
MM
4215Mon Jan 15 17:46:27 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4216
4217 * reloc.c: Add new PowerPC relocations.
4218 * {bfd-in2,libbfd}.h: Regenerate.
4219
4220 * elf32-ppc.c (ppc_elf_howto_raw): Add more PPC relocations.
4221 (ppc_elf_reloc_type_lookup): Lookup new relocations.
4222
252239f8
ILT
4223Mon Jan 15 14:29:44 1996 Ian Lance Taylor <ian@cygnus.com>
4224
20ab764e
ILT
4225 * aoutx.h (howto_table_ext): Fix RELOC_BASE10 and RELOC_BASE22
4226 entries.
4227
0a4ffa2d
ILT
4228 * sunos.c (sunos_scan_ext_relocs): Don't fail assert if
4229 info->shared.
4230
45ca3195
ILT
4231 * coffgen.c (coff_find_nearest_line): Don't try to cache
4232 information in sections that are not owned by a BFD. From Richard
4233 Henderson <richard@atheist.tamu.edu>.
4234
252239f8
ILT
4235 * elf32-mips.c: Numerous changes to dynamic linking code, mostly
4236 from Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>.
4237 * elflink.h (elf_link_output_extsym): Remove special check for
4238 _rld_new_interface.
4239
4240 * ecoffswap.h: Add prototypes for static functions.
4241
bd2d10c0
MM
4242Sun Jan 14 21:36:08 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4243
4244 * elf32-ppc.c (ppc_elf_{unsupported,std}_reloc): Remove functions.
4245 (ppc_elf_howto_raw): Remove ppc_elf_{unsupported,std}_reloc
4246 references.
4247 (ppc_elf_relocate_section): No longer allow .sdata/.sbss sections
4248 to satisfy a TOC16 relocation. Rewrite unsupported relocation
4249 support. Begin support for R_PPC_SDA{2,}REL.
4250
1c3a295b
MM
4251Sat Jan 13 09:36:52 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4252
4253 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New function to
4254 create the .got and .got.neg sections.
4255 (ppc_elf_size_dynamic_sections): Call it.
4256 (ppc_elf_check_relocs): Call it.
4257 (ppc_elf_size_dynamic_sections): Support .got.neg, just like .got.
4258 (ppc_elf_check_relocs): Add error messages for relocations we
4259 don't yet support. Do not include R_PPC_SDAREL16 like a GOT
4260 relocation.
4261
57081126
MM
4262Fri Jan 12 15:27:59 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4263
4264 * elf32-ppc.c (ppc_elf_fake_sections): Define, and handle the new
4265 section flags for V.4 and eabi.
4266
3c38b3df
ILT
4267Fri Jan 12 13:59:16 1996 Ian Lance Taylor <ian@cygnus.com>
4268
14899eb7
ILT
4269 * elf.c (assign_file_positions_for_segments): If a segment
4270 contains no sections, don't mark it as readable.
4271
98bb57ad
ILT
4272 * elf-bfd.h (_bfd_elf_section_from_bfd_section): Declare.
4273 * elfcode.h (_bfd_elf_section_from_bfd_section): Don't declare.
4274
02fcd126
ILT
4275 * elf.c (_bfd_elf_print_private_bfd_data): Dump contents of
4276 dynamic section, if there is one.
4277 * elf-bfd.h (struct elf_size_info): Add swap_dyn_in field.
4278 (bfd_elf32_swap_dyn_in): Change type of second parameter to PTR.
4279 (bfd_elf64_swap_dyn_in): Likewise.
4280 * elfcode.h (elf_swap_dyn_in): Change type of second parameter to
4281 PTR.
4282 (NAME(_bfd_elf,size_info)): Initialize swap_dyn_in field.
4283
3c38b3df
ILT
4284 * elf32-i386.c (elf_i386_size_dynamic_sections): Don't create a
4285 DT_TEXTREL entry because of .rel.plt. From Martin Pirker
4286 <pirker@eiunix.tuwien.ac.at>.
4287
83f4323e
MM
4288Thu Jan 11 17:06:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4289
4290 * section.c (SEC_{EXCLUDE,SORT_ENTRIES}): New section flags for
4291 PowerPC V.4 and eabi.
4292 * bfd-in2.h: Regenerate.
4293 * libfd.h: Regenerate.
4294
4295 * elfxx-target.h (TARGET_{BIG,LITTLE}_SYM): Add new flags.
4296
4297 * elf32-ppc.c (ppc_elf_section_from_shdr): Support SHT_ORDERED
4298 section type and SHF_EXCLUDE section flag, turning them into the
4299 appropriate bfd section flag.
4300
a0271667
ILT
4301Thu Jan 11 11:23:30 1996 Ian Lance Taylor <ian@cygnus.com>
4302
c9746fb6
ILT
4303 * xcofflink.c (xcoff_link_add_symbols): Create the special
4304 sections if we see a DYNAMIC object, in case that is the only
4305 XCOFF input object we see.
4306
5b3b9ff6
ILT
4307 * elf32-mips.c: Extensive changes for a start at dynamic linking
4308 support, from Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>.
4309
4310 * elf-bfd.h (struct elf_backend_data): Add type_change_ok field.
4311 (struct elf_backend_data): Remove
4312 elf_backend_create_program_headers field. Add
4313 elf_backend_additional_program_headers and
4314 elf_backend_modify_segment_map fields.
4315 * elfxx-target.h (elf_backend_type_change_ok): Define if not
4316 defined.
4317 (elf_backend_additional_program_headers): Likewise.
4318 (elf_backend_modify_segment_map): Likewise.
4319 (elf_backend_create_program_headers): Don't define.
4320 (elfNN_bed): Change to account for field changes.
4321 * elf.c (assign_file_positions_for_segments): Call new
4322 modify_segment_map backend function. Don't call old
4323 create_program_headers backend function.
4324 (get_program_header_size): Call additional_program_headers rather
4325 than create_program_headers.
4326 * elflink.h (elf_link_add_object_symbols): Initialize
4327 type_change_ok from new backend field.
4328 (elf_link_output_extsym): Don't warn if _rld_new_interface is
4329 defined.
4330 (elf_reloc_link_order): Treat a reloc against a defined symbol as
4331 a reloc against the appropriate section.
4332
761f377f
ILT
4333 * elf-bfd.h (struct bfd_elf_section_data): Add tdata field.
4334 (struct elf_obj_tdata): Rename ppc_flags_init field to flags_init.
4335 (elf_flags_init): Rename from elf_ppc_flags_init.
4336 * elf32-ppc.c (ppc_elf_set_private_flags): Use elf_flags_init, not
4337 elf_ppc_flags_init.
4338 (ppc_elf_copy_private_bfd_data): Likewise.
4339 (ppc_elf_merge_private_bfd_data): Likewise.
4340
a0271667
ILT
4341 * elf32-m68k.c (howto_table): Change src_mask to 0 for all
4342 relocation entries.
4343
64d5f5d0
ILT
4344Tue Jan 9 15:22:53 1996 David Mosberger-Tang <davidm@azstarnet.com>
4345
4346 * coff-alpha.c (alpha_relocate_section): During final link, allow
4347 output .lita section to be bigger than 64k by adjusting gp value
4348 on a per-input section basis.
4349 * libecoff.h (struct ecoff_tdata): Add issued_multiple_gp_warning
4350 field.
4351 (struct ecoff_section_tdata): Add gp field.
4352
c40d9c77
ILT
4353Tue Jan 9 12:00:36 1996 Ian Lance Taylor <ian@cygnus.com>
4354
64d5f5d0
ILT
4355 Handle Alpha ECOFF changes in OSF/1 3.2.
4356 * libecoff.h (struct ecoff_backend_data): Add get_elt_at_filepos
4357 field.
4358 * coff-alpha.c: Include "aout/ar.h".
4359 (alpha_ecoff_get_relocated_section_contents): Don't require an
4360 ALPHA_R_IGNORE reloc after an ALPHA_R_GPDISP reloc, since OSF/1
4361 3.2 doesn't generate one.
4362 (alpha_relocate_section): Likewise.
4363 (alpha_ecoff_slurp_armap): Define.
4364 (alpha_ecoff_slurp_extended_name_table): Define.
4365 (alpha_ecoff_construct_extended_name_table): Define.
4366 (alpha_ecoff_truncate_arname): Define.
4367 (alpha_ecoff_write_armap): Define.
4368 (alpha_ecoff_generic_stat_arch_elt): Define.
4369 (alpha_ecoff_update_armap_timestamp): Define.
4370 (ARFZMAG): Define.
4371 (alpha_ecoff_read_ar_hdr): New static function.
4372 (alpha_ecoff_get_elt_at_filepos): New static function.
4373 (alpha_ecoff_openr_next_archived_file): New static function.
4374 (alpha_ecoff_get_elt_at_index): New static function.
4375 (alpha_ecoff_backend_data): Initialize get_elt_at_filepos field.
4376 (ecoffalpha_little_vec): Change BFD_JUMP_TABLE_ARCHIVE from
4377 _bfd_ecoff to alpha_ecoff.
4378 * ecoff.c (ecoff_link_add_archive_symbols): Use get_elt_at_filepos
4379 field from backend structure, rather than always calling
4380 _bfd_get_elt_at_filepos.
4381 * coff-mips.c (mips_ecoff_backend_data): Initialize
4382 get_elt_at_filepos field.
4383 * archive.c (_bfd_generic_read_ar_hdr_mag): New function, copied
4384 from _bfd_generic_read_ar_hdr with minor changes.
4385 (_bfd_generic_read_ar_hdr): Use _bfd_generic_read_ar_hdr_mag.
4386 * libbfd-in.h (_bfd_generic_read_ar_hdr_mag): Declare.
4387 * libbfd.h: Rebuild.
4388
4389 * bfd-in.h (BFD_IN_MEMORY): Define.
4390 * libbfd-in.h (struct bfd_in_memory): Define.
4391 * libbfd.c (bfd_read): Handle BFD_IN_MEMORY flag.
4392 (bfd_get_file_window): Don't try to map a BFD_IN_MEMORY file.
4393 (bfd_write, bfd_stat): Abort if BFD_IN_MEMORY is set.
4394 (bfd_tell, bfd_flush, bfd_seek): Handle BFD_IN_MEMORY flag.
4395 * bfd.c (struct _bfd): Change iostream field from char * to PTR.
4396 (bfd_get_size): Handle BFD_IN_MEMORY flag.
4397 * cache.c (bfd_cache_close): Ignore BFD_IN_MEMORY files.
4398 (bfd_open_file): Cast to PTR, not char *, when setting iostream.
4399 (bfd_cache_lookup_worker): Abort if BFD_IN_MEMORY is set.
4400 * opncls.c (bfd_fdopenr): Cast to PTR, not char *, when setting
4401 iostream.
4402 (bfd_openstreamr): Likewise.
4403 * aoutx.h (NAME(aout,some_aout_object_p)): Only fstat iostream if
4404 BFD_IN_MEMORY is not set.
4405 * riscix.c (riscix_some_aout_object_p): Likewise.
4406 * bfd-in2.h, libbfd.h: Rebuild.
4407
4408 * targets.c (bfd_target): Add _bfd_get_elt_at_index field.
4409 (BFD_JUMP_TABLE_ARCHIVE): Add _get_elt_at_index.
4410 (bfd_get_elt_at_index): Define.
4411 * archive.c (_bfd_generic_get_elt_at_index): Rename from
4412 bfd_get_elt_at_index. Change index parameter from int to
4413 symindex.
4414 * libbfd-in.h (_bfd_generic_get_elt_at_index): Declare.
4415 (_bfd_noarchive_get_elt_at_index): Define.
4416 (_bfd_archive_bsd_get_elt_at_index): Define.
4417 (_bfd_archive_coff_get_elt_at_index): Define.
4418 * bfd-in2.h, libbfd.h: Rebuild.
4419 * aout-target.h (MY_get_elt_at_index): Define if not defined.
4420 * coff-rs6000.c (xcoff_get_elt_at_index): Define.
4421 * ieee.c (ieee_get_elt_at_index): Define.
4422 * libecoff.h (_bfd_ecoff_get_elt_at_index): Define.
4423 * oasys.c (oasys_get_elt_at_index): Define.
4424 * som.c (som_get_elt_at_index): Define.
4425
c40d9c77
ILT
4426 * ecoff.c (_bfd_ecoff_find_nearest_line): Don't restrict line
4427 numbers to the .text section.
4428
efa77952
ILT
4429Mon Jan 8 17:00:57 1996 Ian Lance Taylor <ian@cygnus.com>
4430
4431 * ieee.c (ieee_write_debug_part): Change return type to boolean.
4432 If there is a SEC_DEBUGGING section, get the contents of the debug
4433 information part from it.
4434 (ieee_set_section_contents): Store the contents of a SEC_DEBUGGING
4435 section in memory.
4436 (ieee_write_object_contents): Check ieee_write_debug_part return.
4437
767f22d5
FF
4438Thu Jan 4 17:12:37 1996 Fred Fish <fnf@cygnus.com>
4439
4440 * config.bfd (i[345]86-*-freebsd*): Add target.
4441 * configure.in (i386freebsd_vec): Add vec.
4442 * configure: Regenerate.
4443 * Makefile.in (BFD32_BACKENDS): Add i386freebsd.o.
4444 (BFD32_BACKENDS_CFILES): Add i386freebsd.c.
4445 Rebuild dependencies..
4446 * freebsd.h: New file.
4447 * i386freebsd.c: New file.
4448 * targets.c (i386freebsd_vec): Declare.
4449 (bfd_target_vector): Add i386freebsd_vec.
4450 * i386linux.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
4451 * i386netbsd.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
4452
f8254a3c
ILT
4453Thu Jan 4 16:27:46 1996 Ian Lance Taylor <ian@cygnus.com>
4454
4455 * ieee.c (ieee_slurp_debug): New static function.
4456 (ieee_object_p): Call it.
4457 (ieee_slurp_section_data): Skip debugging sections.
4458 (ieee_get_reloc_upper_bound): Likewise.
4459 (ieee_get_section_contents): Likewise.
4460 (ieee_canonicalize_reloc): Likewise.
4461 (ieee_write_section_part): Likewise.
4462 (ieee_write_debug_part): Likewise.
4463 (ieee_write_data_part): Likewise.
4464 (init_for_output): Likewise.
4465
07a159db
MM
4466Wed Jan 3 19:42:47 1996 Michael Meissner <meissner@wogglebug.tiac.net>
4467
4468 * elf32-ppc.c (ppc_elf_relocate_section): Make @GOT relocations
4469 work.
4470 (ppc_elf_howto_raw): Just use bfd_elf_generic_reloc for all howto
4471 relocs, since ppc_elf_relocate_section handles the linker case.
4472 (ppc_elf_{addr16_ha,got16,toc16,brtaken}_reloc): Delete, no longer
4473 used.
4474 (ppc_elf_{addr16_ha,got16,toc16,brtaken}_inner): Merge these into
4475 ppc_elf_relocate_section since that is now the only caller.
4476 (ppc_elf_relocate_section): Ditto.
4477
d812945a
ILT
4478Wed Jan 3 15:11:30 1996 Ian Lance Taylor <ian@cygnus.com>
4479
4480 * coffcode.h (coff_write_object_contents): If we don't know the
4481 section of the entry point for an XCOFF executable, always set the
4482 entry address to -1.
4483
3a56d0b4
MM
4484Tue Jan 2 14:17:15 1996 Michael Meissner <meissner@tiktok.cygnus.com>
4485
4486 * elf.c (bfd_section_from_shdr): Add support for note sections.
4487
c4406e50
ILT
4488Tue Jan 2 13:10:25 1996 Ian Lance Taylor <ian@cygnus.com>
4489
d812945a
ILT
4490 * bfd-in.h (struct _symbol_info): Add stab_type field.
4491 * bfd-in2.h: Rebuild.
4492 * aoutx.h (NAME(aout,get_symbol_info)): Set stab_type.
4493
c4406e50
ILT
4494 * elf32-ppc.c: Remove trailing newline from calls to
4495 _bfd_error_handler.
4496 (ppc_elf_merge_private_bfd_data): Only warn about endianness
4497 difference if target endianness is known.
4498
08556813
MM
4499Thu Dec 21 12:43:49 1995 Michael Meissner <meissner@tiktok.cygnus.com>
4500
4501 * elf32-ppc.c (ppc_elf_howto_raw): Add a phony reloc to handle the
4502 old style TOC16 references without using R_PPC_GOT.
4503 (ppc_reloc_type): Ditto.
4504 (ppc_elf_reloc_type_lookup): Add support for TOC16.
4505 (ppc_elf_toc16_inner): Renamed from ppc_elf_got16_inner.
4506 (ppc_elf_toc16_reloc): Renamed from ppc_elf_toc16_reloc.
4507 (ppc_elf_got16_{inner,reloc}): Stubs for real GOT support.
4508 (ppc_elf_check_relocs): New function for GOT/PLT support that is
4509 work in progress.
4510 (ppc_elf_adjust_dynamic_symbol): Ditto.
4511 (ppc_elf_adjust_dynindx): Ditto.
4512 (ppc_elf_size_dynamic_sections): Ditto.
4513 (ppc_elf_finish_dynamic_symbol): Ditto.
4514 (ppc_elf_finish_dynamic_sections): Ditto.
4515 (ELF_DYNAMIC_INTERPRETER): Define.
4516
86587dd4
KR
4517Wed Dec 20 19:14:18 1995 Ken Raeburn <raeburn@cygnus.com>
4518
4519 * elf.c (copy_private_bfd_data): When attaching sections to
4520 segments ignore sections that won't be allocated. Patch from
4521 Andreas Schwab.
4522
bf7f243f
KR
4523Tue Dec 19 20:01:43 1995 Ken Raeburn <raeburn@cygnus.com>
4524
4525 * config.bfd: Match on m68k-cbm-* only if OS doesn't match
4526 anything else.
4527
d9518e2e
ILT
4528Tue Dec 19 16:38:59 1995 Ian Lance Taylor <ian@cygnus.com>
4529
4530 * coff-i960.c (CALC_ADDEND): Define.
4531 (coff_i960_relocate_section): Add the input section VMA to the
4532 addend for PC relative relocs.
4533
4534Sun Dec 17 20:11:55 1995 Kim Knuttila <krk@cygnus.com>
4535
4536 * peicode.h (pe_print_pdata): Must test the entire entry for zero
4537 to correctly terminate.
4538
010a405a
ILT
4539Fri Dec 15 12:05:57 1995 Ian Lance Taylor <ian@cygnus.com>
4540
dc092b6b
ILT
4541 * targets.c (enum bfd_endian): Define.
4542 (bfd_target): Rename byteorder_big_p to byteorder, and change it
4543 from boolean to enum bfd_endian. Change header_byteorder_big_p
4544 correspondingly.
4545 * bfd-in.h (bfd_big_endian, bfd_little_endian): New macros.
4546 (bfd_header_big_endian, bfd_header_little_endian): New macros.
4547 * bfd-in2.h: Rebuild.
4548 * All targets: Change initialization of byteorder and
4549 header_byteorder to use enum bfd_endian values rather than
4550 booleans.
4551 * All files: Change all references to byteorder_big_p and
4552 header_byteorder_big_p to use new bfd_*_endian macros.
4553
010a405a
ILT
4554 * coffgen.c (make_a_section_from_file): Set lma to s_paddr, not
4555 s_vaddr.
4556 * coffcode.h (coff_write_object_contents): Set s_paddr to lma, not
4557 vma.
4558 * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
4559
fcb43906
SC
4560Fri Dec 15 07:32:09 1995 steve chamberlain <sac@slash.cygnus.com>
4561
4562 * pe[i]-i386.c (TARGET_UNDERSCORE): Define to '_'.
4563
0d709d31
ILT
4564Thu Dec 14 13:45:37 1995 Ian Lance Taylor <ian@cygnus.com>
4565
14578105
ILT
4566 * ieee.c: Lots of minor cleanups. Make many functions return
4567 errors rather than calling abort. Also:
4568 (ieee_write_twobyte): Remove; change callers to call existing
4569 ieee_write_2bytes function.
4570 (ieee_write_expression): Don't output the section twice when
4571 outputting a local symbol. Don't emit an extraneous zero if there
4572 is only one term.
4573 (ieee_slurp_sections): Set the lma as well as the vma.
4574 (ieee_archive_p): Use bfd_alloc_grow rather than an obstack.
4575
0d709d31
ILT
4576 * ihex.c (ihex_set_arch_mach): Don't accept any architecture, just
4577 a recognized one or bfd_arch_unknown.
4578 (ihex_get_symtab_upper_bound): Define as bfd_0l, to permit objcopy
4579 to succeed.
4580 (ihex_get_symtab): Likewise.
4581
14dc2f77
ILT
4582Wed Dec 13 15:44:06 1995 Ian Lance Taylor <ian@cygnus.com>
4583
4584 * aoutx.h: Include <ctype.h>.
4585 (struct aout_link_includes_table): Define.
4586 (struct aout_link_includes_totals): Define.
4587 (struct aout_link_includes_entry): Define.
4588 (aout_link_includes_lookup): Define macro.
4589 (struct aout_final_link_info): Add includes field.
4590 (aout_link_includes_newfunc): New static function.
4591 (NAME(aout,final_link)): Initialize includes hash table.
4592 (aout_link_write_symbols): Eliminate duplicate N_BINCL entries.
4593
480ccad5
SS
4594Wed Dec 13 10:52:14 1995 Stan Shebs <shebs@andros.cygnus.com>
4595
4596 * mpw-config.in: Match on mips-*-* instead of mips-idt-ecoff.
4597
3920d9c9
KK
4598Wed Dec 13 11:07:45 1995 Kim Knuttila <krk@cygnus.com>
4599
4600 * coff-ppc.c (coff_ppc_relocate_section): removed debugging code.
4601
207345f2
KK
4602Tue Dec 12 17:42:06 1995 Kim Knuttila <krk@cygnus.com>
4603
4604 * peicode.h (pe_print_reloc): New function to dump the .reloc section.
4605 (pe_print_private_bfd_data): call pe_print_reloc.
4606 * coffcode.h (coff_set_alignment_hook): .reloc section alignment.
4607 * coff-ppc.c (in_reloc_p): Added missing non-eligible relocs. Spiffed
4608 up some debugging as well.
4609
273c019e
ILT
4610Tue Dec 12 11:34:23 1995 Ian Lance Taylor <ian@cygnus.com>
4611
4612 * config.bfd: Handle sparc-*-elf*. From Ronald F. Guilmette
4613 <rfg@monkeys.com>.
4614
010d9f2d
ILT
4615Fri Dec 8 17:47:07 1995 Ian Lance Taylor <ian@cygnus.com>
4616
4617 * elflink.h (elf_link_add_object_symbols): Set section_count to 0
4618 when setting sections to NULL.
4619
4a4a66bd
ILT
4620Wed Dec 6 17:05:37 1995 Ian Lance Taylor <ian@cygnus.com>
4621
4622 * xcofflink.c (struct xcoff_loader_info): Add export_defineds
4623 field.
4624 (bfd_xcoff_size_dynamic_sections): Add export_defineds parameter.
4625 (xcoff_build_ldsyms): If export_defineds is set, set XCOFF_EXPORT
4626 for all symbols.
4627 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
4628 * bfd-in2.h: Rebuild.
4629
545bf026
KK
4630Mon Dec 4 16:40:47 1995 Kim Knuttila <krk@cygnus.com>
4631
4632 * coffcode.h (coff_set_alignment_hook): Removed some debugging printf's
4633
1f4ae0d6
ILT
4634Mon Dec 4 11:25:39 1995 Ian Lance Taylor <ian@cygnus.com>
4635
55cac920
ILT
4636 * ihex.c (ihex_scan): Handle record types 4 and 5.
4637 (ihex_object_p): Permit types 4 and 5.
4638 (ihex_set_section_contents): Remove check for out of range
4639 addresses.
4640 (ihex_write_object_contents): Generate types 4 and 5.
4641
1f4ae0d6
ILT
4642 * elflink.h (elf_link_output_extsym): Just ignore warning and
4643 indirect references to symbols which don't really exist.
4644
53d45489
KK
4645Sun Dec 3 19:00:27 1995 Kim Knuttila <krk@cygnus.com>
4646
4647 * peicode.h (pe_print_idata): Minor format fixes
4648 (pe_print_edata): New function. Under private printing, this formats
4649 the edata section of a PE file.
4650 (pe_print_private_bfd_data): Added call to pe_print_edata.
4651
361e8876
DE
4652Sun Dec 3 16:46:54 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
4653
4654 * aout-arm.c (MY_swap_std_reloc_out): Use KEEPIT to get the symbol
4655 index, don't call stoi.
4656
58142f10
ILT
4657Fri Dec 1 14:46:51 1995 Ian Lance Taylor <ian@cygnus.com>
4658
ffd15489
ILT
4659 * srec.c (srec_scan): Set lma as well as vma.
4660
4661 * ihex.c: New file; support for Intel Hex format.
4662 * targets.c (enum bfd_flavour): Add bfd_target_ihex_flavour.
4663 (ihex_vec): Declare.
4664 (bfd_target_vector): Always include ihex_vec.
4665 * bfd.c (struct _bfd): Add ihex_data field to tdata union.
4666 * Makefile.in: Rebuild dependencies.
4667 (BFD_LIBS): Add ihex.o
4668 (BFD_LIBS_CFILES): Add ihex.c.
4669 * bfd-in2.h: Rebuild.
4670
ae0a6bea
ILT
4671 * elf.c (assign_file_positions_for_segments): Sort the sections in
4672 each segment.
4673 (get_program_header_size): Return the right size if segment_map is
4674 not NULL.
4675 (copy_private_bfd_data): Don't bother to sort the sections.
4676
4677 * bfd.c (bfd_record_phdr): New function.
4678 * bfd-in.h (bfd_record_phdr): Declare.
4679 * bfd_in2.h: Rebuild.
4680
ce0ee4bf
ILT
4681 * elf32-sparc.c (elf32_sparc_relocate_section): Remove bogus
4682 BFD_ASSERT.
4683
58142f10
ILT
4684 * libbfd.c (bfd_malloc, bfd_realloc): New functions.
4685 (bfd_zmalloc): Return PTR, not char *. Take size_t, not
4686 bfd_size_type.
4687 * libbfd-in.h (bfd_malloc, bfd_realloc): Declare.
4688 (bfd_zmalloc): Change declaration.
4689 * libbfd.h: Rebuild.
4690 * Many files: Use bfd_malloc and bfd_realloc rather than malloc
4691 and realloc. Don't set bfd_error_no_memory if they fail.
4692
59066248
KK
4693Thu Nov 30 19:32:26 1995 Kim Knuttila <krk@cygnus.com>
4694
4695 * coff-ppc.c: Added macros to tidy up toc cell treatment. Numerous
4696 uses as well. Added a new howto to deal with TOCREL16 relocs that
4697 are TOCDEFN as well.
4698 (coff_ppc_relocate_section): Expanded treatment of ADDR32NB relocs
4699 to handle RVA relocs from dlltool.
4700 (ppc_coff_rtype2howto): TOCDEFN reloc addition.
4701 (coff_ppc_rtype_to_howto): TOCDEFN reloc addition.
4702 (ppc_coff_reloc_type_lookup): TOCDEFN reloc addition.
4703
4704 * coffcode.h (coff_set_alignment_hook): check idata$X sections
4705 to get the right section alignment.
4706
6933148a
ILT
4707Thu Nov 30 16:48:18 1995 Ian Lance Taylor <ian@cygnus.com>
4708
4709 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
4710 p_paddr if p_paddr is zero.
4711 (make_mapping): Set includes_filehdr and includes_phdrs for first
4712 PT_LOAD segment.
4713 (map_sections_to_segments): Set includes_phdrs for PT_PHDR
4714 segment.
4715 (assign_file_positions_for_segments): Handle includes_filehdr and
4716 includes_phdrs. Remove special handling of PT_PHDR and first
4717 PT_LOAD segments.
4718 (copy_private_bfd_data): Set includes_filehdr and includes_phdr
4719 when appropriate. Remove special handling of PT_PHDR segment.
4720 Use a more complex condition for when a section is included in a
4721 segment to handle Solaris linker oddities.
4722
f62fed1c
ILT
4723Thu Nov 30 11:17:33 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
4724
4725 * coff-m88k.c (howto_table): Reformatted for easier reading;
4726 special_function now points to new function m88k_special_reloc.
4727 (howto_hvrt16): Function previously used for handling HVRT16 relocs
4728 removed.
4729 (rtype2howto): Do not add reloc's r_offset to the addend, this will
4730 be done correctly by m88k_special_reloc.
4731 (reloc_processing): New function to be used by RELOC_PROCESSING.
4732 (RELOC_PROCESSING): Define to call reloc_processing.
4733
64ecde46
ILT
4734Wed Nov 29 12:42:36 1995 Ian Lance Taylor <ian@cygnus.com>
4735
b00c57ec
ILT
4736 * peicode.h (pe_print_idata): Call malloc rather than xmalloc.
4737 (pe_print_pdata): Likewise.
4738
a9713b91
ILT
4739 * opncls.c (bfd_alloc_by_size_t): Set bfd_error_no_memory if
4740 obstack_alloc fails.
4741 (bfd_alloc_finish): Set bfd_error_no_memory if obstack_finish
4742 fails.
4743 * libbfd.c (bfd_zmalloc): Set bfd_error_no_memory if malloc fails.
4744 * Many files: don't set bfd_error_no_memory if one of the above
4745 routines fails.
4746
3dbf33ee
ILT
4747 * elf.c (assign_file_positions_for_segments): Don't adjust p_paddr
4748 if p_paddr_valid is set.
4749 (copy_private_bfd_data): New static function.
4750 (_bfd_elf_copy_private_section_data): Call copy_private_bfd_data.
4751
44ef8897
ILT
4752 * elf.c (assign_file_positions_for_segments): Fix case where extra
4753 program headers were allocated.
4754
27fb8f29
ILT
4755 * elf.c (_bfd_elf_print_private_bfd_data): New function.
4756 * elf-bfd.h (_bfd_elf_print_private_bfd_data): Declare.
4757 * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define to
4758 _bfd_elf_print_private_bfd_data.
4759
64ecde46
ILT
4760 * coff-alpha.c (alpha_ecoff_swap_reloc_in): Don't abort if
4761 r_symndx is RELOC_SECTION_NONE for an ALPHA_R_IGNORE reloc.
4762 Change a RELOC_SECTION_LITA symndx to RELOC_SECTION_ABS.
4763 (alpha_ecoff_swap_reloc_out): Change RELOC_SECTION_ABS to
4764 RELOC_SECTION_LITA for ALPHA_R_IGNORE.
4765 (alpha_adjust_reloc_out): For ALPHA_R_IGNORE, don't change
4766 RELOC_SECTION_ABS to RELOC_SECTION_NONE.
4767
fd0198f0
ILT
4768Tue Nov 28 16:59:50 1995 Ian Lance Taylor <ian@cygnus.com>
4769
4770 * elf-bfd.h (struct elf_obj_tdata): Add segment_map field.
4771 * elf.c (make_mapping): New static function.
4772 (map_sections_to_segments): New static function.
4773 (elf_sort_sections): New static function.
4774 (assign_file_positions_for_segments): New static function.
4775 (map_program_segments): Remove.
4776 (get_program_header_size): Remove sorted_hdrs, count, and
4777 maxpagesize parameters. Simplify.
4778 (assign_file_positions_except_relocs): When generating an
4779 executable, use assign_file_positions_for_segments.
4780 (elf_sort_hdrs): Remove.
4781 (_bfd_elf_sizeof_headers): Remove eliminated parameters from call
4782 to get_program_header_size.
4783
3b3f7625
ILT
4784Mon Nov 27 12:27:46 1995 Ian Lance Taylor <ian@cygnus.com>
4785
1ff0461b
ILT
4786 * hp300hpux.c (MY(callback)): Set lma as well as vma.
4787
80c8485c
ILT
4788 * configure, config.in: Regenerate with autoconf 2.7.
4789
3b3f7625
ILT
4790 * elf32-i386.c (elf_backend_plt_readonly): Set correctly, to 1.
4791 * elf32-sparc.c (elf_backend_plt_readonly): Set correctly, to 0.
4792
fa63d1ef
ILT
4793Wed Nov 22 12:02:09 1995 Ian Lance Taylor <ian@cygnus.com>
4794
a877f591
ILT
4795 * ecoff.c (_bfd_ecoff_new_section_hook): Handle .rconst section.
4796 (ecoff_sec_to_styp_flags): Likewise.
4797 (_bfd_ecoff_styp_to_sec_flags): Handle STYP_RCONST.
4798 (ecoff_set_symbol_info): Handle scRConst.
4799 (ecoff_slurp_reloc_table): Handle RELOC_SECTION_RCONST.
4800 (ecoff_compute_section_file_positions): Handle .rconst section.
4801 (_bfd_ecoff_write_object_contents): Likewise.
4802 (ecoff_link_check_archive_element): Handle scRConst.
4803 (ecoff_link_add_externals): Likewise.
4804 (ecoff_link_write_external): Handle .rconst section.
4805 (ecoff_reloc_link_order): Likewise.
4806 * ecofflink.c (bfd_ecoff_debug_accumulate): Handle scRConst.
4807 * coff-alpha.c (alpha_convert_external_reloc): Handle .rconst
4808 section.
4809 (alpha_relocate_section): Handle RELOC_SECTION_RCONST.
4810
fa63d1ef
ILT
4811 * sunos.c (sunos_scan_dynamic_symbol): Only set written if the
4812 DEF_DYNAMIC flag is set.
4813
25bada65
KR
4814Tue Nov 21 13:25:29 1995 Ken Raeburn <raeburn@cygnus.com>
4815
4816 * host-aout.c: If TRAD_HEADER is defined, include it.
4817
7938b4cb
ILT
4818Tue Nov 21 13:03:57 1995 Ian Lance Taylor <ian@cygnus.com>
4819
85e493f0
ILT
4820 * aclocal.m4 (AC_PROG_CC): Remove local definition.
4821 (BFD_BINARY_FOPEN): Require AC_CANONICAL_SYSTEM.
4822 (BFD_NEED_DECLARATION): New function.
4823 * configure.in: Use BFD_NEED_DECLARATION.
bd77213b
ILT
4824 * acconfig.h: Put NEED_DECLARATION_* in @TOP@ section.
4825 * configure, config.in: Rebuild with autoconf 2.6.
85e493f0 4826
83dcdc61
ILT
4827 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Clear
4828 special_sections before returning when called with a non XCOFF
4829 BFD.
4830
7938b4cb
ILT
4831 * coffgen.c (coff_renumber_symbols): Sort common symbols with
4832 global symbols.
4833
4834 * coffcode.h (coff_compute_section_file_positions): Only pad the
4835 previous section to force file alignment when creating an
4836 executable.
4837
b5403ad7
ILT
4838Mon Nov 20 14:54:09 1995 Ian Lance Taylor <ian@cygnus.com>
4839
a418e05d
ILT
4840 * coffcode.h (coff_compute_section_file_positions): If
4841 RS6000COFF_C, set up the .debug section.
4842
b5403ad7
ILT
4843 * xcofflink.c (xcoff_link_input_bfd): Adjust the TOC anchor value
4844 if it is not large enough to accomodate the entire TOC area with
4845 signed 16 bit offsets.
4846 (xcoff_write_global_symbol): Handle negative TOC offsets in global
4847 linkage code.
4848 (_bfd_ppc_xcoff_relocate_section): Adjust relocations against a
4849 TOC anchor to use the TOC value used in the output file.
4850
90a7abbc
ILT
4851Sat Nov 18 18:01:41 1995 Ian Lance Taylor <ian@cygnus.com>
4852
4853 * coffgen.c (_bfd_coff_get_external_symbols): Cast malloc return.
4854 (_bfd_coff_read_string_table): Likewise.
4855
177b1932
DE
4856Sat Nov 18 19:43:04 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
4857
4858 * pe-arm.c: Fix typos.
4859 * coff-arm.c: Likewise.
4860
4861Fri Nov 17 16:22:04 1995 Kim Knuttila <krk@cygnus.com>
4862
4863 * coff-ppc.c (list_ele): Added "cat"egory member.
4864 (record_toc): New category parameter (priv or pub).
4865 (ppc_record_toc_entry): Check to see if toc bounds exceeded.
4866 (ppc_process_before_allocation): Removed embrionic data-in-toc from
4867 the mainline. It addes extra toc cells in error.
4868 (ppc_coff_swap_sym_in_hook): Added some documentation.
4869 (dump_toc): Can now diagnose "virtual toc" chicanery.
4870
e34314c4
ILT
4871Fri Nov 17 10:41:25 1995 Philippe De Muyter <phdm@info.ucl.ac.be>
4872
4873 * elf-bfd.h (struct elf_link_hash_table): Change type of
4874 dynsymcount and bucketcount fields from size_t to bfd_size_type.
4875
73a68447
ILT
4876Fri Nov 17 10:02:58 1995 Ian Lance Taylor <ian@cygnus.com>
4877
535e9e29
ILT
4878 * coffcode.h (coff_pointerize_aux_hook): I960 version: don't
4879 pointerize C_LEAFSTAT or C_LEAFEXT entries.
4880
73a68447
ILT
4881 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Only create
4882 DT_INIT and DT_FINI entries if the _init or _fini symbol is
4883 defined or mentioned in a regular file.
4884
cd2b2402
KK
4885Thu Nov 16 15:16:42 1995 Kim Knuttila <krk@cygnus.com>
4886
4887 * coff-ppc.c (ppc_record_data_in_toc_entry): new function
4888 (coff_ppc_relocate_section): Handle TOCDEFN attribute
4889 (coff_ppc_relocate_section): Correct REL24 handling
4890 (ppc_process_before_allocation): Correct TOCDEFN handling
4891
4892 * peicode.h (dir_names): Added name descriptions
4893
b218076e
KR
4894Thu Nov 16 03:38:03 1995 Ken Raeburn <raeburn@cygnus.com>
4895
4896 * VERSION: Updated to cygnus-2.6.
4897
4898Wed Nov 15 19:30:07 1995 Ken Raeburn <raeburn@cygnus.com>
4899
4900 * targets.c (m68k4knetbsd_vec): Declare.
4901
e9f30616
ILT
4902Wed Nov 15 18:05:52 1995 Ian Lance Taylor <ian@cygnus.com>
4903
4904 * targets.c (bfd_target): Change type of second argument to
4905 _bfd_print_private_bfd_data from void * to PTR.
4906 * libbfd-in.h (_bfd_generic_bfd_print_private_bfd_data): Cast
4907 using PTR rather than void *.
4908 * bfd-in2, libbfd.h: Rebuild.
4909 * peicode.h (pe_print_private_bfd_data): Change vfile from void *
4910 to PTR.
4911 * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define as
4912 _bfd_generic_bfd_print_private_bfd_data rather than casting
4913 bfd_true.
4914
ae75c4a4
KR
4915Wed Nov 15 04:09:14 1995 Ken Raeburn <raeburn@cygnus.com>
4916
4917 * Makefile.in (.dep1): Fix stupid typo in last change. Remove any
4918 "DO NOT DELETE" lines or blank lines that mkdep writes on some
4919 systems.
4920 (BFD_LIBS_CFILES, ALL_MACHINES_CFILES, BFD32_BACKENDS_CFILES,
4921 BFD64_BACKENDS_CFILES): New variables.
4922 (CFILES): Use them.
4923
bebcd3db
ILT
4924Tue Nov 14 11:52:23 1995 Ian Lance Taylor <ian@cygnus.com>
4925
4b71e164
ILT
4926 * peicode.h (coff_swap_aouthdr_out): For PPC PE, start isize at 0,
4927 not at the file position of the first section.
4928 * coffcode.h (coff_compute_section_file_positions): Avoid using
4929 unportable #elif.
4930 (coff_write_object_contents): When generating a PPC PE executable
4931 with no symbols, round up the file size to a COFF_PAGE_SIZE
4932 boundary.
4933 * cofflink.c (_bfd_coff_final_link): If there are no symbols,
4934 don't write out a string table.
4935
631b10f4
ILT
4936 * elf.c (bfd_section_from_shdr): When using a different section
4937 header, pass the new one to _bfd_elf_make_section_from_shdr.
4938 (elf_fake_sections): Don't set sh_info and sh_entsize fields.
4939 (elf_map_symbols): Add section VMA to symbol value when comparing
4940 against 0.
4941 (_bfd_elf_compute_section_file_positions): Only build symbol table
4942 if there are some symbols. Set file offset of symtab and strtab
4943 sections.
4944 (assign_file_positions_except_relocs): Remove dosyms parameter.
4945 Change all callers. Never set file offset of symtab and strtab
4946 sections.
4947 (_bfd_elf_copy_private_section_data): New function.
4948 (MAP_ONESYMTAB, MAP_DYNSYMTAB, MAP_STRTAB, MAP_SHSTRTAB): Define.
4949 (_bfd_elf_copy_private_symbol_data): New function.
4950 (swap_out_syms): Check for special mapping of st_shndx created by
4951 copy_private_symbol_data.
4952 * elfxx-target.h: Use new copy routines.
4953 * elf-bfd.h (_bfd_elf_copy_private_symbol_data): Declare.
4954 (_bfd_elf_copy_private_section_data): Declare.
4955
4956 * config.bfd (sh-*-*): Set targ_defvec to shcoff_vec.
4957
4958 * coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE, handle
4959 C_NT_WEAK.
4960
bebcd3db
ILT
4961 * coff-sh.c (shlcoff_vec): Use _bfd_generic_archive_p, not
4962 _bfd_dummy_target, matching the recent change to archive
4963 recognition.
4964
7ad4ba81
ILT
4965Mon Nov 13 13:24:38 1995 Ian Lance Taylor <ian@cygnus.com>
4966
afa67334
ILT
4967 * libbfd.c (bfd_get_file_window): Use casts to avoid doing
4968 arithmetic on PTR types.
4969
f2bd8915
ILT
4970 * aout-target.h (MY(callback)): Set the lma of the sections.
4971
7ad4ba81
ILT
4972 * ecoff.c (ecoff_reloc_link_order): Turn a reloc against a defined
4973 symbol into a reloc against the section.
4974
93b6a3f8
KK
4975Mon Nov 13 07:31:35 1995 Kim Knuttila <krk@cygnus.com>
4976
4977 * coff-ppc.c (ppc_coff_link_hash_entry): added support for inline
4978 glue for the relocs: IMGLUE and IFGLUE.
4979 (record_toc): new function - tracks toc contents
4980 (ppc_mark_symbol_as_glue): new function - supports the IMGLUE reloc
4981 (coff_ppc_relocate_section): Added support and fixes for IMGLUE/IFGLUE
4982 (ppc_coff_rtype2howto): removed invalid IMGLUE hack
4983 (coff_ppc_rtype_to_howto): removed invalid IMGLUE hack
125d37c4 4984 (ppc_record_toc_entry): Removed a debug define (duh)
93b6a3f8
KK
4985
4986 * peicode.h (coff_swap_scnhdr_out): Fixed invalid strcmp for ".reldata"
4987 (pe_print_idata): New function - formats the idata section data
4988 (pe_print_pdata): New function - formats the pdata section data
4989 (pe_print_private_bfd_data): calls to above
4990
c769947b
SS
4991Sun Nov 12 12:23:24 1995 Stan Shebs <shebs@andros.cygnus.com>
4992
4993 * Makefile.in (bfd_libs_here, etc): Provide empty definitions.
4994 * coff-rs6000.c (rs6000coff_vec): Add conditional defines
4995 TARGET_SYM and TARGET_NAME for vector and BFD name.
4996 * coff-pmac.c (pmac_xcoff_vec): Remove.
4997 (TARGET_SYM, TARGET_NAME): Define.
4998 * coffcode.h (coff_set_arch_mach_hook) [POWERMAC]: Set the
4999 machine to 0, not all PowerMacs are 601s.
5000
5001Fri Nov 10 12:10:14 1995 Ian Lance Taylor <ian@cygnus.com>
5002
5003 * elfcode.h (elf_object_p): Read in any program headers.
5004 * elf.c (_bfd_elf_make_section_from_shdr): Adjust section lma
5005 based on the program headers, if any.
5006 (elf_fake_sections): Set sh_addr from the vma, not the lma.
5007 (map_program_segments): Set p_paddr of program headers based on
5008 the lma.
5009
ee174815
ILT
5010Thu Nov 9 13:01:31 1995 Ian Lance Taylor <ian@cygnus.com>
5011
839087b7
ILT
5012 * archive.c (bfd_generic_archive_p): Preserve tdata in case of
5013 failure.
5014
922530a6
ILT
5015 * aoutx.h (NAME(aout,final_link)): Report a reasonable error when
5016 trying to do a relocateable link with a non-a.out object file.
5017
5018 * archive.c (bfd_generic_archive_p): Check the first object file
5019 in an archive even if target_defaulted is set. If the object file
5020 has the wrong xvec, reject it.
5021
a1774c51
ILT
5022 * aoutx.h (NAME(aout,set_section_contents)): If a section can not
5023 be represented, report the name via _bfd_error_handler.
5024 (translate_to_native_sym_flags): Likewise.
5025 * elf32-mips.c (mips_elf_final_link): Likewise.
5026 * oasys.c (oasys_write_sections): Likewise.
5027
4a378b13
ILT
5028 * coffcode.h (coff_set_alignment_hook): Write RS6000COFF_C version
5029 which checks for STYP_OVRFLO sections.
5030 (coff_compute_section_file_positions): If RS6000COFF_C, handle
5031 reloc and lineno count overflows.
5032 (coff_write_object_contents): Call coff_count_linenumbers before
5033 coff_compute_section_file_positions. If RS6000COFF_C, handle
5034 reloc and lineno count overflows.
5035 * xcofflink.c (_bfd_xcoff_bfd_final_link): Count line numbers and
5036 relocs before dealing with .pad sections. Count overflow section
5037 headers when handling .pad sections.
5038
7906bf87
ILT
5039 * coffcode.h (coff_write_object_contents): Set a.out vstamp to 1
5040 if RS6000COFF_C.
5041
ee174815
ILT
5042 * xcofflink.c (XCOFF_DESCRIPTOR): Define.
5043 (struct xcoff_link_hash_table): Add descriptor_section and
5044 special_sections fields.
5045 (_bfd_xcoff_bfd_link_hash_table_create): Initialize new fields.
5046 (xcoff_link_add_symbols): Set linkage section alignment. Create
5047 descriptor section. Check for magic symbol names (_text, etc.),
5048 and record them in special_sections if found. Set
5049 XCOFF_DESCRIPTOR flag for a function descriptor, and set its
5050 descriptor field to point back to the function code symbol.
5051 (xcoff_sweep): Always mark the special descriptor_section.
5052 (bfd_xcoff_export_symbol): Check whether the symbol might be a
5053 function descriptor, and mark it if it is.
5054 (bfd_xcoff_size_dynamic_sections): Add new special_sections
5055 parameter, and fill it in. Allocate space for the descriptor
5056 section.
5057 (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR flag when defining
5058 global linkage code. If an undefined function descriptor is
5059 exported, arrange to define it. Warn about any other undefined
5060 exported symbol.
5061 (_bfd_xcoff_bfd_final_link): Write out the descriptor section.
5062 (xcoff_write_global_symbol): Create a function descriptor when
5063 necessary.
5064 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
5065 * bfd-in2.h: Rebuild.
5066
0e829f18
KK
5067Thu Nov 9 08:40:23 1995 Kim Knuttila <krk@cygnus.com>
5068
5069 * coff-ppc.c (ppc_coff_link_hash_entry): new types for hashing
5070 (ppc_coff_link_hash_table): new types for hashing
5071 (ppc_coff_link_hash_newfunc): hash entry constructor
5072 (ppc_coff_link_hash_table_init): hash table initializer
5073 (ppc_coff_link_hash_table_create): hash table constructor
5074 (ppc_record_toc_entry): changed references to hash table
5075 (coff_ppc_relocate_section): changed references to hash table
5076
5077 * libcoff-in.h (coff_link_hash_entry): removed toc_offset
5078 * libcoff.h: Rebuild
5079
5080 * cofflink.c (_bfd_coff_link_hash_newfunc): removed toc_offset init
5081 (coff_link_add_symbols): removed toc_offset init
5082
7ac84736
KR
5083Thu Nov 9 04:00:38 1995 Ken Raeburn <raeburn@cygnus.com>
5084
b27cc4bc
KR
5085 * Makefile.in (.dep1): Make sure the file mkdep is to write exists
5086 first.
5087
7ac84736
KR
5088 * configure.in: Added new option --with[out]-mmap. Set USE_MMAP
5089 if it is given and mmep is available.
5090 * acconfig.h: Undef USE_MMAP.
5091 * configure, config.in: Regenerated.
5092 * aoutx.h: If USE_MMAP is not defined, do all symbol and string
5093 table handling the old way.
5094 (aout_get_external_symbols): Don't complain if last byte of string
5095 table is nonzero.
5096 * libbfd.c [HAVE_MADVISE]: Include sys/types.h and sys/mman.h.
5097 (bfd_free_window) [! USE_MMAP]: Don't define.
5098 (bfd_get_file_window,
5099 _bfd_generic_get_section_contents_in_window) [! USE_MMAP]: Abort.
5100
1b3b0c03
ILT
5101Wed Nov 8 20:03:44 1995 Eric Freudenthal <freudenthal@nyu.edu>
5102
5103 * coff-a29k.c (SIGN_EXTEND_HWORD): Use ~0xffff rather than
5104 0xffff0000.
5105
092abcdf
ILT
5106Wed Nov 8 11:31:11 1995 Ian Lance Taylor <ian@cygnus.com>
5107
33698029
ILT
5108 * coff-a29k.c (a29k_reloc): Change handling of R_IREL reloc to be
5109 compatible with AMD generated COFF files. Try to support both AMD
5110 and GNU formats simultaneously.
5111 (coff_a29k_relocate_section): Likewise.
5112
0bb8ff19
ILT
5113 * libbfd.c (bfd_get_file_window): Change writable parameter from
5114 int to boolean; update all callers. Pass MAP_SHARED if not
5115 writable--it's required on Solaris. Cast fprintf argument to
5116 avoid warning.
5117 * bfd-in.h (bfd_get_file_window): Update declaration.
5118 * bfd-in2.h: Rebuild.
5119 * aoutx.h: Update calls to bfd_get_file_window.
5120
0634a431
ILT
5121 * xcofflink.c (XCOFF_DEF_DYNAMIC): Rename from XCOFF_REF_DYNAMIC.
5122 Change all uses.
5123 (xcoff_swap_ldhdr_in): New static function.
5124 (xcoff_swap_ldsym_in): New static function.
7812bf9c 5125 (xcoff_find_reloc): Handle the case of a single reloc correctly.
0634a431
ILT
5126 (xcoff_link_add_symbols): If we just created a descriptor, pass it
5127 to _bfd_generic_link_add_one_symbol, to save a hash lookup.
417acf22 5128 Handle XTY_ER/XMC_XO symbols correctly.
0634a431
ILT
5129 (xcoff_link_add_dynamic_symbols): Rewrite to read .loader symbols
5130 rather than normal symbol table.
417acf22
ILT
5131 (bfd_xcoff_import_symbol): It's not an error if the symbol is
5132 already defined with the same absolute value.
0634a431
ILT
5133 (xcoff_mark): When considering called symbols, check whether the
5134 descriptor is from a dynamic object, rather than the symbol
5135 itself.
5136 (xcoff_build_ldsyms): Likewise.
5137
092abcdf
ILT
5138 * libbfd.c (bfd_get_file_window): Change return type to boolean.
5139 Cast realloc and malloc return values. If malloc or realloc fail,
5140 set bfd_error_no_memory.
5141 * bfd-in.h (bfd_get_file_window): Change type to boolean.
5142 * bfd-in2.h: Rebuild.
5143
d6f41a7d
KK
5144Tue Nov 7 11:53:48 1995 Kim Knuttila <krk@cygnus.com>
5145
5146 * coff-ppc.c (ppc_record_toc_entry): new function.
5147 (in_reloc_p): changed return value.
5148 (coff_ppc_relocate_section): much rework.
5149 (ppc_allocate_toc_section): new function.
5150 (ppc_process_before_allocation): new function.
5151 (ppc_coff_swap_sym_in_hook): new function.
5152
5153 * cofflink.c (_bfd_coff_link_hash_newfunc): initialize toc_offset.
5154 (coff_link_add_symbols): initialize toc_offset.
5155
5156 * peicode.h (coff_swap_sym_in): Added coff_swap_sym_in_hook
5157 (coff_swap_aouthdr_out): Added more sections to the data
5158 dictionary for the pe file header. Also changed linker version
5159 number on the ppc side.
5160 (dir_names): small improvements to the dictionary printing.
5161 (pe_mkobject_hook): save the file level flags.
5162
5163 * libcoff-in.h (coff_link_hash_entry): added toc_offset field
5164 (pe_tdata): added real_flags field
5165 (coff_tdata): added local_toc_sym_map and access macro
5166
5167 * libcoff.h (coff_link_hash_entry): added toc_offset field
5168 (pe_tdata): added real_flags field
5169 (coff_tdata): added local_toc_sym_map and access macro
5170
5171 * coffcode.h (coff_set_alignment_hook): added hook for PE.
5172 (coff_mkobject): init for local_toc_sym_map
5173 (coff_write_object_contents): set the internal_a.magic to
5174 IMAGE_NT_OPTIONAL_HDR_MAGIC which appears to be what other
5175 ppc compilers use.
5176
6bc200f2
ILT
5177Tue Nov 7 13:48:58 1995 Ian Lance Taylor <ian@cygnus.com>
5178
c0971298
ILT
5179 * ecofflink.c (_bfd_ecoff_locate_line): Keep looking through stabs
5180 entries until both the line number address and the function name
5181 address are too large.
5182
6a468850
ILT
5183 * configure.in: Call AC_CHECK_PROG to find and cache AR.
5184 * configure: Rebuilt.
5185
6bc200f2
ILT
5186 * aclocal.m4 (BFD_CC_FOR_BUILD): Don't define CC_FOR_BUILD if it
5187 is defined in the environment.
5188
c44bf94c
JL
5189Tue Nov 7 10:57:24 1995 Jeffrey A Law (law@cygnus.com)
5190
5191 * som.c (som_get_section_contents_in_window): Define to use
5192 generic version.
5193
cf587de8
ILT
5194Mon Nov 6 17:13:15 1995 Harry Dolan <dolan@ssd.intel.com>
5195
5196 * coff-i860.c: New file, based on coff-i386.c.
5197 * cpu-i860.c: New file, based on cpu-i386.c.
5198 * hosts/i860mach3.h: New file, based on hosts/i386mach3.h.
5199 * config.bfd (i860-*-mach3*, i860-*-osf1*, i860-*-coff*): New
5200 targets, using i860coff_vec.
5201 * configure.in (i860-*-mach3*, i860-*-osf1*): New hosts, using
5202 trad-core.o and hosts/i860mach3.h.
5203 (i860coff_vec): Use coff-i860.o and cofflink.o.
5204 * configure: Rebuild.
5205 * Makefile.in: Rebuild dependencies.
5206 (ALL_MACHINES): Add cpu-i860.o.
5207 (BFD32_BACKENDS): Add coff-i860.o.
5208 (CFILES): Add cpu-i860.c and coff-i860.c.
5209 * targets.c (i860coff_vec): Declare.
5210 (bfd_target_vector): Add &i860coff_vec.
5211 * archures.c (bfd_i860_arch): Declare.
5212 (bfd_archures_list): Add &bfd_i860_arch.
5213 * coffcode.h (coff_set_arch_mach_hook): Handle I860 magic number.
5214 (coff_set_flags): Handle bfd_arch_i860.
5215 (coff_write_object_contents): Handle I860 a.out magic number.
5216
83c23fca
ILT
5217Mon Nov 6 14:34:07 1995 Ian Lance Taylor <ian@cygnus.com>
5218
5219 * xcofflink.c (xcoff_link_add_symbols): Set the alignment power of
5220 the created .tc section to 2.
5221 (xcoff_mark): Don't keep a .loader reloc for a call to an
5222 undefined symbol when creating a shared library.
5223 (xcoff_build_ldsyms): When creating a shared library, generate
5224 global linkage code for a call to an undefined symbol.
5225
5d9eb9c3
KR
5226Sun Nov 5 21:44:13 1995 Ken Raeburn <raeburn@cygnus.com>
5227
5228 * Makefile.in (CFILES): Rebuild list from BFD_LIBS, ALL_MACHINES,
5229 BFD32_BACKENDS, BFD64_BACKENDS.
5230 (.dep1): Put mkdep output in a separate file.
5231 Rebuilt dependencies.
5232
ffacb892
KR
5233 * ecoff.c (_bfd_ecoff_slurp_armap): Cast _bfd_read_ar_hdr return
5234 value.
5235
4fe6d901
KR
5236 Permit use of mmap when available:
5237
5238 * configure.in: Check for mmap, madvise, mprotect.
5239 * config.in, configure: Regenerated.
5240
5241 * libbfd.c (struct _bfd_window_internal): Define type.
5242 (bfd_init_window, bfd_free_window, bfd_get_file_window): New
5243 functions.
5244 (ok_to_map): New static variable for debugging.
5245 (_bfd_generic_get_section_contents_in_window): New function.
5246 * bfd-in.h (bfd_window_internal): Declare type.
5247 (bfd_window): Define type.
5248 (bfd_init_window, bfd_free_window, bfd_get_file_window): Declare.
5249 * libbfd-in.h (_bfd_generic_get_section_contents_in_window):
5250 Declare.
5251
5252 * libaout.h (struct aoutdata): Add two window fields.
5253 (obj_aout_sym_window, obj_aout_string_window): New macros.
5254 * aoutx.h (some_aout_object_p): Initialize windows.
5255 (aout_get_external_symbols): Get symbol data and strings in
5256 windows instead of explicitly allocated buffers.
5257 (slurp_symbol_table): Free window instead of memory.
5258 (bfd_free_cached_info): Release windows instead of freeing storage
5259 directly.
5260 (aout_link_free_symbols): Ditto.
5261
5262 * targets.c (bfd_target): Add new field for
5263 get_section_contents_in_window.
5264 (BFD_JUMP_TABLE_GENERIC): Updated.
5265 * aout-adobe.c, aout-target.h, binary.c, bout.c, coff-alpha.c,
5266 coff-mips.c, elfxx-target.h, i386msdos.c, i386os9k.c, ieee.c,
5267 libcoff-in.h, oasys.c, srec.c, tekhex.c, versados.c: Added new
5268 macros for get_section_contents_in_window field.
5269
d9e771e3
FF
5270Sat Nov 4 12:23:26 1995 Fred Fish <fnf@cygnus.com>
5271
5272 * core.c: Renamed to corefile.c
5273 * makefile.dos (OBJS): Change core.o to corefile.o
5274 * Makefile.in (CFILES, BFD_LIBS): Use corefile.c instead of core.c
5275
bf917766
SG
5276start-sanitize-gm
5277Sat Nov 4 10:16:54 1995 Stu Grossman (grossman@cygnus.com)
5278
5279 * config.bfd (mips*-*-magic*): Add bfd_elf32_bigmips_vec to
5280 targ_selvecs to allow debugging under Irix-5 native.
5281
5282end-sanitize-gm
583db7a8
ILT
5283Fri Nov 3 15:54:59 1995 Ian Lance Taylor <ian@cygnus.com>
5284
5285 * xcofflink.c (xcoff_link_add_symbols): Rename local variable sub
5286 to o. Clobber and restore the list of new csects around the call
5287 to _bfd_generic_link_add_one_symbol, in case it wants to report a
5288 linker error and the linker wants to read the symbol table. Reset
5289 the line number count of a real section even if it has no relocs.
5290 (_bfd_xcoff_bfd_final_link): If shared, set the DYNAMIC flag.
5291
5292 * coffgen.c (_bfd_coff_read_string_table): Warn if the string size
5293 is too small.
5294
68aed7db
ILT
5295Thu Nov 2 23:16:39 1995 Ian Lance Taylor <ian@cygnus.com>
5296
18a9609c
ILT
5297 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Don't warn about
5298 an undefined symbol in a shared link.
5299
68aed7db
ILT
5300 * linker.c (_bfd_generic_link_add_one_symbol): Correct type of
5301 oldtype from bfd_link_order_type to bfd_link_hash_type. From
5302 phdm@info.ucl.ac.be (Philippe De Muyter).
5303
7f82c7e1
ILT
5304Wed Nov 1 14:26:02 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
5305
5306 * coff-m88k.c (rtype2howto): New static function.
5307 (RTYPE2HOWTO): Use it rather than a macro definition.
5308
5309 * coffcode.h (coff_write_object_contents): set internal_a.magic
5310 to PAGEMAGICPEXECPAGED #if defined (M68) && !defined (LYNXOS).
5311
4c8b9746 5312 * configure.in: m68*-motorola-sysv* does not use ptrace-core.o;
7f82c7e1
ILT
5313 define TRAD_HEADER to new file hosts/delta68.h.
5314 m88*-motorola-sysv*, however, does use ptrace-core.o.
5315 * hosts/delta68.h: New file.
5316
5317 * ptrace-core.c (ptrace_unix_core_file_p): change bfd_zmalloc to
5318 bfd_zalloc; provide proper parm abfd to calls to bfd_zalloc.
5319
619c7730
KR
5320Wed Nov 1 13:51:54 1995 Ken Raeburn <raeburn@cygnus.com>
5321
5322 * i386linux.c (MY(vec)): Declare before use.
5323
73246ff8
ILT
5324Wed Nov 1 11:45:07 1995 Ian Lance Taylor <ian@cygnus.com>
5325
e8d6d5d0
ILT
5326 * reloc16.c (bfd_coff_reloc16_get_relocated_section_contents):
5327 Pass input_bfd, not in_bfd, to bfd_coff_reloc16_extra_cases.
5328
b2193cc5
ILT
5329 * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
5330 BFD is not of the right type.
5331 (bfd_elf_get_needed_list): Likewise.
5332 * i386linux.c (bfd_linux_size_dynamic_sections): Likewise.
5333 * sunos.c (bfd_sunos_get_needed_list): Likewise.
5334 * xcofflink.c (XCOFF_XVECP): Define.
5335 (bfd_xcoff_link_record_set): Don't do anything if the BFD is not
5336 of the right type.
5337 (bfd_xcoff_import_symbol): Likewise.
5338 (bfd_xcoff_export_symbol): Likewise.
5339 (bfd_xcoff_link_count_reloc): Likewise.
5340 (bfd_xcoff_record_link_assignment): Likewise.
5341 (bfd_xcoff_size_dynamic_sections): Likewise.
5342
baabeb74
ILT
5343 * sunos.c (sunos_scan_ext_relocs): Only check the reloc symbol
5344 table index against the number of symbols for a base relative
5345 reloc.
5346
73246ff8
ILT
5347 * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Change from macro to
5348 static function.
5349 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Set
5350 full_aouthdr flag here...
5351 (_bfd_xcoff_bfd_final_link): ...not here.
5352
6ab826bd
FF
5353Tue Oct 31 12:52:02 1995 Fred Fish <fnf@cygnus.com>
5354
5355 * libelf.h: Rename to elf-bfd.h to avoid conflict with
5356 systems that have a system <libelf.h>.
5357 * Makefile.in: Globally replace libelf.h with elf-bfd.h.
5358 * bfd.c, elf.c, elf32-arc.c, elf32-gen.c, elf32-hppa.c,
5359 elf32-hppa.h, elf32-i386.c, elf32-i860.c, elf32-m68k.c,
5360 elf32-m88k.c, elf32-mips.c, elf32-ppc.c, elf32-sparc.c,
5361 elf64-gen.c, elf64-sparc.c, elfcode.h, elflink.c,
5362 elfxx-target.h: Include elf-bfd.h rather than libelf.h.
5363 * elfxx-target.h: Change libelf.h reference to elf-bfd.h.
5364
999cc186
ILT
5365Tue Oct 31 15:30:07 1995 David Mosberger-Tang <davidm@azstarnet.com>
5366
0652d579
ILT
5367 * ecoff.c (ecoff_set_symbol_info): Add new parameter weak. If
5368 set, set BSF_WEAK in symbol. Change all callers.
5369 (ecoff_get_extr): Set weakext based on BSF_WEAK.
5370 (ecoff_link_add_externals): If weakext is set, pass BSF_WEAK to
5371 _bfd_generic_link_add_one_symbol.
5372 (ecoff_indirect_link_order): Check that the section tdata relocs
5373 are not NULL before using them.
5374
999cc186
ILT
5375 * configure.in (alpha*-*-linux*): Set COREFILE to trad-core.o and
5376 define TRAD_HEADER as hosts/alphalinux.h.
5377 * configure: Rebuild.
5378 * hosts/alphalinux.h: New file.
5379 * trad-core.c (trad_unix_core_file_p): Cast u.u_ar0 to bfd_vma,
5380 not int.
5381
e6080520
ILT
5382Tue Oct 31 12:34:11 1995 Ian Lance Taylor <ian@cygnus.com>
5383
2bd0aeb9
ILT
5384 * coffcode.h (coff_slurp_symbol_table): Accept C_BCOMM and
5385 C_ECOMM storage classes.
5386
e6080520
ILT
5387 * xcofflink.c (xcoff_mark_symbol): New static function, broken out
5388 of xcoff_mark.
5389 (xcoff_mark): Call xcoff_mark_symbol.
5390 (bfd_xcoff_export_symbol): Call xcoff_mark_symbol.
5391 (bfd_xcoff_link_count_reloc): Call xcoff_mark_symbol rather than
5392 doing it by hand.
5393 (xcoff_build_ldsyms): Build a .loader symbol for an export symbol.
5394
5fe14a9f
ILT
5395Mon Oct 30 14:53:48 1995 Ian Lance Taylor <ian@cygnus.com>
5396
f630a0a4
ILT
5397 * xcofflink.c (struct xcoff_final_link_info): Add new line_filepos
5398 field.
5399 (xcoff_find_reloc): New static function.
5400 (xcoff_link_add_symbols): Use it.
5401 (_bfd_xcoff_bfd_final_link): Set finfo.line_filepos.
5402 (xcoff_link_input_bfd): Handle C_BINCL and C_EINCL. Don't
5403 relocate the value of C_DECL.
5404
5fe14a9f
ILT
5405 * elf.c (elf_fake_sections): Remove bogus BFD_ASSERT.
5406
dff77ed7
SC
5407Sat Oct 28 01:25:34 1995 steve chamberlain <sac@slash.cygnus.com>
5408
5409 * cofflink.c (_bfd_coff_generic_relocate_section): Make
5410 callback decide what goes in .relocs.
5411 * pe[i]-i386.c (TARGET_UNDERSCORE): Define.
5412 * peicode.h (pe_mkobject_hook): Only copy aouthdr if
5413 there is one.
5414
697a8fe8
ILT
5415Sat Oct 28 01:51:02 1995 Ian Lance Taylor <ian@cygnus.com>
5416
5417 * xcofflink.c (xcoff_link_add_symbols): Handle csects in the
5418 absolute section.
5419
2d7de17d
ILT
5420Fri Oct 27 18:14:39 1995 Ian Lance Taylor <ian@cygnus.com>
5421
5422 * xcofflink.c: More improvements, mostly to fix handling of
5423 constructors and a few other special cases.
5424 * coff-rs6000.c (rs6000coff_vec): Set symbol_leading_char back to
5425 zero, reverting yesterday's change.
5426 * bfd-in.h (bfd_xcoff_link_record_set): Declare.
5427 (bfd_xcoff_link_count_reloc): Declare.
5428 (bfd_xcoff_record_link_assignment): Declare.
5429 * bfd-in2.h: Rebuild.
5430
f552f751
NH
5431Fri Oct 27 14:42:15 1995 Niklas Hallqvist <niklas@appli.se>
5432
4906b2a3 5433 * PORTING, aout-arm.c, aout-encap.c, aout-target.h,
f552f751
NH
5434 aoutx.h, gen-aout.c, host-aout.c, hp300bsd.c, i386aout.c
5435 i386bsd.c, i386dynix.c, i386linux.c, i386lynx.c, i386mach3.c,
5436 i386netbsd.c, m68klynx.c, m88kmach3.c, mipsbsd.c, newsos3.c,
5437 ns32knetbsd.c, pc532-mach.c, riscix.c, sparclynx.c, sparcnetbsd.c:
5438 Change PAGE_SIZE to TARGET_PAGE_SIZE.
5439
5440 * m68knetbsd.c: Ditto as well as add support for the m68k4k object
5441 format.
5442
5443 * netbsd.h: Double ditto (incl. m68k4k support). NetBSD's text
5444 segments includes the a.out header. See to that the magic number
5445 *always* is big-endian.
5446
5447 * config.bfd: Add m68*-hp*-netbsd* case. Cross-pollinate m68k and
5448 m68k4k NetBSD configurations.
5449
5450 * configure.in, configure: Separate i386 & mips NetBSD
5451 configurations from other BSD ones. Don't assume DEC is the only
5452 thing NetBSD/mips run on. Add {m68k,ns32k,sparc}-*-netbsd*
5453 configurations. Add support for m68k4k NetBSD object format.
5454
5455 * libaout.h: Added M_68K4K_NETBSD magic.
6fd1f40d
NH
5456
5457 * m68k4knetbsd.c: New file.
f552f751
NH
5458
5459 * hosts/{m68k,sparc}nbsd.h: Don't define HOST_BIG_ENDIAN_P.
5460
5461 * hosts/nbsd.h: Define HOST_BIG_ENDIAN_P according to
5462 <machine/endian.h>.
5463
6fd1f40d
NH
5464 * hosts/mipsnbsd.h: New file.
5465
d6d44ef9
SG
5466start-sanitize-gm
5467Fri Oct 27 09:41:51 1995 Stu Grossman (grossman@cygnus.com)
5468
5469 * config.bfd: Add config stuff for mips*-*-magic* to set
5470 targ_defvec to ecoff_big_vec.
5471
5472end-sanitize-gm
867d923d
ILT
5473Thu Oct 26 14:16:47 1995 Ian Lance Taylor <ian@cygnus.com>
5474
5475 * xcofflink.c: Numerous changes to get closer to a working XCOFF
5476 linker.
5477 * libcoff-in.h (struct xcoff_tdata): Add full_aouthdr,
5478 toc_section, and entry_section fields.
5479 (struct xcoff_section_tdata): Remove ldrel_count field.
5480 * libcoff.h: Rebuild.
5481 * coffcode.h (coff_mkobject_hook): Initialize new xcoff_data
5482 fields.
5483 (coff_compute_section_file_positions): If RS6000COFF_C, generate
5484 full a.out header if full_aouthdr is set in xcoff_data.
5485 (coff_write_object_contents): Likewise. Set o_snentry and o_sntoc
5486 based on sections stored in xcoff_data.
5487 * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy new xcoff_data
5488 fields.
aad2c618
ILT
5489 (xcoff_reloc_type_lookup): Handle BFD_RELOC_CTOR.
5490 (rs6000coff_vec): Set symbol_leading_char to '.'.
867d923d
ILT
5491 * coffgen.c (coff_get_symbol_info): If fix_value is set, fix the
5492 value stored in ret rather than returning a pointer value.
5493
6bd9ffdb
MM
5494Wed Oct 25 23:10:39 1995 Michael Meissner <meissner@tiktok.cygnus.com>
5495
5496 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Remove MAC
5497 format for now.
5498
9d14250f
JL
5499Wed Oct 25 16:19:27 1995 Jeffrey A Law (law@cygnus.com)
5500
5501 * som.c (som_slurp_string_table): Allocate the strings with malloc
5502 since they're free'd by free_cached_info.
5503 (som_slurp_symbol_table): Similarly for the symbol table.
5504
a2bd0529
PB
5505Wed Oct 25 14:59:22 1995 Per Bothner <bothner@kalessin.cygnus.com>
5506
5507 * Makefile.in (diststuff): Don't make headers.
5508
28a0c103
ILT
5509Wed Oct 25 11:32:54 1995 Ian Lance Taylor <ian@cygnus.com>
5510
356cd465
ILT
5511 * Makefile.in: Rebuild dependencies.
5512
1edd3a7b
ILT
5513 * sunos.c (bfd_sunos_record_link_assignment): Don't do anything if
5514 output_bfd is not SunOS.
5515 (bfd_sunos_size_dynamic_sections): Likewise. Don't scan relocs of
5516 non-SunOS input files.
5517
28a0c103
ILT
5518 * xcofflink.c: Extensive changes to support linking shared objects
5519 and generating a .loader section.
5520 * libcoff-in.h (struct xcoff_tdata): Add import_file_id field.
b73322d9
ILT
5521 (struct xcoff_section_tdata): Add lineno_count, first_symndx,
5522 last_symndx, and ldrel_count fields.
28a0c103
ILT
5523 * libcoff.h: Rebuild.
5524 * coff-rs6000.c (xcoff_howto_table): Correct reloc names.
5525 * coffcode.h (styp_to_sec_flags): Don't set any flags if STYP_PAD
5526 is set.
5527 * bfd-in.h (bfd_xcoff_import_symbol): Declare.
5528 (bfd_xcoff_export_symbol): Declare.
5529 (bfd_xcoff_size_dynamic_sections): Declare.
5530 * bfd-in2.h: Rebuild.
5531
aadf04f7
SS
5532Tue Oct 24 17:44:20 1995 Stan Shebs <shebs@andros.cygnus.com>
5533
5534 * configure.in: Add xcofflink.o to pmac_xcoff_vec.
5535 * configure: Rebuild.
5536 * mpw-config.in: Add xcofflink.c.o to powerpc-apple-macos.
5537 * coff-pmac.c: Include coff-rs6000.c instead of duplicating its
5538 contents.
5539 (pmac_xcoff_vec): Update to use new xcoff support.
5540 * coff-rs6000.c (xcoff_generic_stat_arch_elt): Make static.
5541 (xcoff_write_armap): Declare buf as unsigned char.
5542 * xcofflink.c (xcoff_link_add_symbols): Declare a local as PTR.
5543
5544 * mpw-make.sed: Generalize subdir_do edit.
5545
ddf4639b
JL
5546Tue Oct 24 10:25:01 1995 Jeffrey A Law (law@cygnus.com)
5547
5548 * hppabsd-core.c (make_bfd_asection): Initialize asect->filepos
5549 correctly. Don't initialize asect->vma.
5550
e7bedf65
KR
5551Fri Oct 20 13:23:48 1995 Ken Raeburn <raeburn@cygnus.com>
5552
5553 * opncls.c (_bfd_new_bfd): If _bfd_chunksize wasn't preset, use
5554 something a little less than the page size.
5555
5556Thu Oct 19 13:06:09 1995 Ian Lance Taylor <ian@cygnus.com>
5557
5558 * coff-i960.c (coff_i960_adjust_symndx): Clear *adjustedp.
5559
3a70e298
SC
5560Wed Oct 18 16:20:08 1995 steve chamberlain <sac@slash.cygnus.com>
5561
5562 * coff-i386.c (coff_i386_reloc_type_lookup): New.
5563 * coffcode.h (coff_write_object_contents): If .bss is before
5564 .data us that as data_start.
5565 * cofflink.c (_bfd_coff_generic_relocate_section): Get reloc
5566 calc correct.
5567 * peicode.h (add_data_entry): Use _cooked_size of data directory.
5568 (coff_swap_outhdr_out): Hardwire in version number.
5569
5a2846e3
KR
5570Wed Oct 18 16:50:54 1995 Ken Raeburn <raeburn@cygnus.com>
5571
3c3a5268
KR
5572 * sunos.c (sunos_add_dynamic_symbols): Rename local variables
5573 major and minor to *_vno, since the former are also macros in
5574 SunOS header files. Cast result of bfd_alloc to appropriate
5575 type.
5576
5a2846e3
KR
5577 * coffgen.c (coff_find_nearest_line): Cast used_by_bfd value
5578 before assigning to sec_data.
5579
0f6c885e
ILT
5580Wed Oct 18 13:25:17 1995 Ian Lance Taylor <ian@cygnus.com>
5581
5582 * ecoff.c (_bfd_ecoff_find_nearest_line): The offset argument is
5583 now relative to the section, not absolute.
5584 * ecofflink.c (_bfd_ecoff_locate_line): Use the right symbol to
5585 get the file name when there is a N_SO directory name. When
5586 handling stabs, remember that section->vma was added to the
5587 offset.
5588
11fa6636
ILT
5589Tue Oct 17 18:24:54 1995 Ian Lance Taylor <ian@cygnus.com>
5590
5591 * sunos.c (struct sunos_link_hash_table): Add needed field.
5592 (sunos_link_hash_table_create): Call bfd_release, not free.
5593 (sunos_link_hash_table_create): Initialize needed field.
5594 (sunos_add_dynamic_symbols): Record needed objects.
5595 (bfd_sunos_get_needed_list): New function.
5596 * bfd-in.h (bfd_sunos_get_needed_list): Declare.
5597 * bfd-in2.h: Rebuild.
5598
c974e19e
SC
5599Mon Oct 16 14:43:59 1995 steve chamberlain <sac@slash.cygnus.com>
5600
5601 * libcoff-in.h (pe_data_type.in_reloc_p): New.
5602
22a35f0b
ILT
5603Mon Oct 16 10:52:50 1995 Ian Lance Taylor <ian@cygnus.com>
5604
54406786
ILT
5605 * bfd-in.h (struct bfd_link_needed_list): Rename from
5606 bfd_elf_link_needed_list.
5607 * bfd-in2.h: Rebuild.
5608 * elf.c, elflink.h, libelf.h: Corresponding changes.
5609
dd984644
ILT
5610 Add start at AIX linker support; no shared libraries yet.
5611 * xcofflink.c: New file.
5612 * configure.in (rs600coff_vec): Use xcofflink.o.
5613 * configure: Rebuild.
5614 * libcoff-in.h (struct xcoff_tdata): Add csects and debug_indices
5615 fields.
5616 (struct xcoff_section_tdata): Define.
5617 (xcoff_section_data): Define macro.
5618 (_bfd_xcoff_bfd_link_hash_table_create): Declare.
5619 (_bfd_xcoff_bfd_link_add_symbols): Declare.
5620 (_bfd_xcoff_bfd_final_link): Declare.
5621 (_bfd_ppc_xcoff_relocate_section): Declare.
5622 * libcoff.h: Rebuild.
5623 * coff-rs6000.c: Clean up a bit.
5624 (xcoff_mkobject): Default modtype to 1L, not RE. Initialize
5625 cputype, csects, and debug_indices.
5626 (xcoff_copy_private_bfd_data): Copy cputype.
5627 (xcoff_howto_table): Rename from rs6000coff_howto_table.
5628 (xcoff_rtype2howto): Rename from rs6000coff_rtype2howto.
5629 (xcoff_reloc_type_lookup): Rename from
5630 rs6000coff_reloc_type_lookup.
5631 (coff_relocate_section): Define.
5632 (_bfd_xcoff_sizeof_headers): Define.
5633 (_bfd_xcoff_bfd_get_relocated_section_contents): Define.
5634 (_bfd_xcoff_bfd_relax_section): Define.
5635 (_bfd_xcoff_bfd_link_split_section): Define.
5636 (rs6000coff_vec): For BFD_JUMP_TABLE_LINK, use _bfd_xcoff, not
5637 coff.
5638 * coffcode.h (coff_compute_section_file_positions): If AIX,
5639 increment sofar by SMALL_AOUTSZ if not executable.
5640 (coff_write_object_contents): If AIX, always output an a.out
5641 header; if not executable, header size of SMALL_AOUTSZ.
5642 * hash.c (struct bfd_strtab_hash): Add xcoff field.
5643 (_bfd_stringtab_init): Initialize xcoff field.
5644 (_bfd_xcoff_stringtab_init): New function.
5645 (_bfd_stringtab_add): In XCOFF mode, leave two bytes for length.
5646 (_bfd_stringtab_emit): In XCOFF mode, write out length.
5647 * libbfd-in.h (_bfd_xcoff_stringtab_init): Declare.
5648 * libbfd.h: Rebuild.
5649 * Makefile.in: Rebuild dependencies.
5650 (BFD32_BACKENDS): Add xcofflink.o.
5651 (CFILES): Add xcofflink.c.
5652
22a35f0b
ILT
5653 * elf32-mips.c (mips_elf_symbol_processing): Set SEC_ALLOC, not
5654 SEC_NO_FLAGS, for .acommon section. From Peter Schauer
5655 <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>.
5656
fb417a21
MM
5657Sat Oct 14 21:36:02 1995 Michael Meissner <meissner@tiktok.cygnus.com>
5658
5659 * coff-ppc.c (in_reloc_p): Add, clone from coff-i386.c.
5660
5661Fri Oct 13 17:48:43 1995 Ken Raeburn <raeburn@cygnus.com>
5662
5663 * acconfig.h (HAVE_SYS_PROCFS_H): Undef, with comment.
5664 * config.in: Regenerated.
5665
5666 * opncls.c (getpagesize) [!HAVE_GETPAGESIZE]: Define as 2048.
5667 (_bfd_chunksize): New variable.
5668 (_bfd_new_bfd): Set it to getpagesize() if negative, and use it
5669 for obstack chunk size.
5670 * configure.in: Check for getpagesize.
5671 * configure: Regenerated.
5672
5673 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5674
5675 * trad-core.c (rawptr): Make it a local variable of
5676 ptrace_unix_core_file_p.
5677
b1e46369
SC
5678Fri Oct 13 11:22:01 1995 steve chamberlain <sac@slash.cygnus.com>
5679
5680 * coff-arm.c (in_reloc_p): New.
5681 * coff-i386.c (in_reloc_p): New.
5682 * coffcode.h: Allways include peicode.h if COFF_WITH_PE.
5683 (coff_write_object_contents): Only set has_reloc_section
5684 if PE_IMAGE.
5685 * cofflink.c (_bfd_coff_generic_relocate_section): Call
5686 in_reloc_p to decide if reloc should be emitted.
5687 * libcoff.h (pe_data_type.in_reloc_p): New.
5688 * peicode.h (pe_mkobject): Initialize in_reloc_p.
5689
ee9f09cd
ILT
5690Wed Oct 11 00:49:29 1995 Ian Lance Taylor <ian@cygnus.com>
5691
b1e46369
SC
5692 * cofflink.c (_bfd_coff_internal_syment_name): Move to coffgen.c.
5693 (_bfd_coff_read_internal_relocs): Likewise.
5694 * coffgen.c (_bfd_coff_internal_syment_name): Copy from coffgen.c.
5695 (_bfd_coff_read_internal_relocs): Likewise.
5696
ee9f09cd
ILT
5697 * elflink.h (elf_link_add_object_symbols): Correct conditions
5698 under which type and size change warnings are issued.
5699
78b31b6b
ILT
5700Tue Oct 10 18:32:46 1995 Ian Lance Taylor <ian@cygnus.com>
5701
5702 * coffgen.c (coff_count_linenumbers): Don't count line numbers for
5703 a symbol which is not in a real section.
5704 (coff_write_native_symbol): Corresponding change.
5705
5706 * cofflink.c (_bfd_coff_link_hash_newfunc): Rename from
5707 coff_link_hash_newfunc and make non-static.
5708 (_bfd_coff_link_hash_table_init): New function, broken out of
5709 _bfd_coff_link_hash_table_create.
5710 (_bfd_coff_link_hash_table_create): Use it.
5711 (process_embedded_commands): Make static.
5712 * libcoff-in.h ((_bfd_coff_link_hash_newfunc): Declare.
5713 (_bfd_coff_link_hash_table_init): Declare.
5714 * libcoff.h: Rebuild.
5715
5716 * coffcode.h (coff_mkobject_hook): If RS6000COFF_C, set cputype
5717 field in XCOFF tdata.
5718 (coff_set_arch_mach_hook): Check ifdef RS6000COFF_C, not ifdef
5719 U802ROMAGIC, for clarity. Try to set arch and machine correctly
5720 based on cputype stored in a.out header, or in n_type of initial
5721 .file symbol.
5722 (coff_write_object_contents): Set cputype correctly in a.out
5723 header.
5724 (coff_slurp_symbol_table): Add casts to file_ptr to avoid
5725 warnings.
5726 * coffswap.h (coff_swap_aouthdr_in): Swap in cputype field.
5727 (coff_swap_aouthdr_out): Swap out cputype field. Don't clear
5728 old resv1 field.
5729 * libcoff-in.h (struct xcoff_tdata): Add cputype field.
5730 * libcoff.h: Rebuild.
5731
5732 * cpu-rs6000.c (rs6000_compatible): New static function.
5733 (bfd_rs6000_arch): Use it.
5734 * cpu-powerpc.c (powerpc_compatible): New static function.
5735 (arch_info_struct): Define various flavours of PowerPC.
5736 (bfd_powerpc_arch): Use powerpc_compatible. Point at
5737 arch_info_struct.
5738
9dd7e56f
FF
5739Tue Oct 10 10:50:46 1995 Fred Fish <fnf@cygnus.com>
5740
78b31b6b 5741 * Makefile.in (FLAGS_TO_PASS): Remove BISON.
9dd7e56f 5742
8235c112
ILT
5743Tue Oct 10 01:28:29 1995 Ian Lance Taylor <ian@cygnus.com>
5744
5745 * elflink.h (elf_link_add_object_symbols): Don't warn about
5746 changing the size or type if the old definition was weak.
5747
0322af0d
ILT
5748Mon Oct 9 11:24:08 1995 Ian Lance Taylor <ian@cygnus.com>
5749
49488f2b
ILT
5750 * coffcode.h (combined_entry_type): Add fix_line field.
5751 (coff_slurp_line_table): Warn if we try to set the lineno field of
5752 a symbol twice.
5753 (coff_slurp_symbol_table): If RS6000COFF_C, handle C_BINCL and
5754 C_EINCL by setting fix_line. Fix C_BSTAT symbol value.
5755 * coffgen.c (coff_mangle_symbols): Handle fix_line.
5756 (coff_write_symbol): Only use N_DEBUG if the symbol is in the
5757 absolute section.
5758 (coff_print_symbol): Print fix_value symbols in a useful fashion.
5759 * libcoff.h: Rebuild.
5760
5f710a3a
ILT
5761 * libcoff-in.h (struct xcoff_tdata): Define.
5762 (xcoff_data): Define.
5763 * bfd.c (struct _bfd): Add xcoff_obj_data field to tdata union.
5764 * bfd-in2.h, libcoff.h: Rebuild.
5765 * coff-rs6000.c (xcoff_mkobject): New static function.
5766 (coff_mkobject): Define.
5767 (xcoff_copy_private_bfd_data): New static function.
5768 (coff_bfd_copy_private_bfd_data): Define.
5769 (rs6000coff_howto_table): Change R_TOC complain_on_overflow from
5770 signed to bitfield.
5771 (rs6000coff_vec): Add DYNAMIC to object_flags.
5772 * coffcode.h (sec_to_styp_flags): If RS6000COFF_C, handle .pad and
5773 .loader sections specially.
5774 (coff_new_section_hook): If RS6000COFF_C, get the .text and .data
5775 section alignment from the XCOFF tdata information.
5776 (coff_mkobject_hook): If RS6000COFF_C, set DYNAMIC based on
5777 F_SHROBJ, and copy the extra a.out header information into the
5778 XCOFF tdata structure.
5779 (coff_write_object_contents): If RS6000COFF_C, set F_SHROBJ,
5780 F_DYNLOAD and the extra a.out header information.
5781 (coff_slurp_symbol_table): Set BSF_NOT_AT_END for a C_EXT or
5782 C_HIDEXT symbol with attached csect information.
5783 * coffswap.h (coff_swap_aouthdr_in): If RS6000COFF_C, swap
5784 in the o_maxdata field.
5785 (coff_swap_aouthdr_out): If RS6000COFF_C, swap extra XCOFF fields.
5786 * coffgen.c (coff_renumber_symbols): Don't move any symbol to the
5787 end if BSF_NOT_AT_END is set.
3f2c5b2d 5788
0322af0d
ILT
5789 * targets.c (bfd_target): Rename _bfd_read_ar_hdr field to
5790 _bfd_read_ar_hdr_fn.
5791 * libbfd-in.h (_bfd_read_ar_hdr): Update accordingly.
5792 * bfd-in2.h, libbfd.h: Rebuild.
5793 * archive.c (_bfd_get_elt_at_filepos): Cast _bfd_read_ar_hdr
5794 return value.
5795 (do_slurp_bsd_armap, do_slurp_coff_armap): Likewise.
5796 (bfd_slurp_bsd_armap_f2): Likewise.
5797 (_bfd_slurp_extended_name_table): Likewise.
5798
3266eaff
KR
5799Fri Oct 6 16:18:35 1995 Ken Raeburn <raeburn@cygnus.com>
5800
5801 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5802
5803 * archive.c (bfd_get_next_mapent): Return BFD_NO_MORE_SYMBOLS
5804 when the symbol table is empty.
5805
5806 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Don't reserve
5807 space for section symbols, since we don't output them either.
5808 (elf_m68k_adjust_dynindx): Removed.
5809
5810 * ptrace-core.c (rawptr): Make it a local variable of
5811 ptrace_unix_core_file_p.
3266eaff 5812
249479fa
MM
5813Fri Oct 6 12:24:47 1995 Michael Meissner <meissner@tiktok.cygnus.com>
5814
45b5d2f0
MM
5815 * coff-rs6000.c (xcoff_write_archive_contents): Return false, not
5816 NULL.
5817
249479fa
MM
5818 * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Add NT, and
5819 Mac object file formats.
5820
c53fac12
ILT
5821Fri Oct 6 12:04:02 1995 Ian Lance Taylor <ian@cygnus.com>
5822
4372f33f
ILT
5823 * coffgen.c (coff_fix_symbol_name): Don't try to set up file
5824 auxent if there isn't one.
5825 (coff_write_symbols): If there is no file auxent, use SYMNMLEN
5826 rather than FILNMLEN as the maximum name length.
5827
0fc9ada9
ILT
5828 * coffcode.h (bfd_coff_backend_data): Add new field
5829 _bfd_coff_print_aux.
5830 (bfd_coff_print_aux): New static function.
5831 (coff_pointerize_aux_hook (RS6000COFF_C version)): Pointerize the
5832 scnlen field of an XTY_LD csect aux entry.
5833 (coff_print_aux): New static function.
5834 (coff_slurp_symbol_table): Don't pointerize scnlen field; now done
5835 in coff_pointerize_aux_hook.
5836 (bfd_coff_std_swap_table): Initialize new field.
5837 * coffgen.c (coff_print_symbol): Call bfd_coff_print_aux.
5838 * libcoff.h: Rebuild.
5839 * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
5840 * coff-mips.c (mips_ecoff_backend_data): Likewise.
5841
7860fe38
ILT
5842 * coffcode.h (coff_write_object_contents): On AIX, clear F_RELFLG
5843 if there are symbols, for native AIX ld compatibility.
5844
c80cc833
ILT
5845 * coffcode.h (bfd_coff_backend_data): Add new field
5846 _bfd_coff_pointerize_aux_hook.
5847 (coff_pointerize_aux_hook): Define as a function if RS6000COFF_C
5848 or I960, and as 0 otherwise.
5849 (bfd_coff_std_swap_table): Initialize new field.
5850 * libcoff.h: Rebuild.
5851 * coffgen.c (coff_pointerize_aux): Change parameters to take
5852 symbol pointer instead of type and class, and to take aux index.
5853 Call _bfd_coff_pointerize_aux_hook if it is defined.
5854 (coff_get_normalized_symtab): Always call coff_pointerize_aux.
5855 * coff-alpha.c (alpha_ecoff_backend_data): Initialize all fields.
5856 * coff-mips.c (mips_ecoff_backend_data): Likewise.
5857
c53fac12
ILT
5858 * coff-rs6000.c: Add full support for AIX archives. Rewrite old
5859 read-only/host-only support.
5860
5861 * coffcode.h (coff_slurp_symbol_table): Set C_HIDEXT symbols to be
5862 BSF_LOCAL.
d11e6b52
ILT
5863 (OTHER_GLOBAL_CLASS): Do not define to be C_HIDEXT if
5864 RS6000COFF_C.
c53fac12
ILT
5865
5866 * targets.c (bfd_target): Add _bfd_read_ar_hdr field. Modify
5867 BFD_JUMP_TABLE_ARCHIVE accordingly.
5868 * libbfd-in.h (_bfd_snarf_ar_hdr): Don't declare.
5869 (_bfd_compute_and_write_armap): Declare.
5870 (_bfd_generic_read_ar_hdr): Declare.
5871 (_bfd_read_ar_hdr): Define.
5872 (_bfd_noarchive_read_ar_hdr): Define.
5873 (_bfd_archive_bsd_read_ar_hdr): Define.
5874 (_bfd_archive_coff_read_ar_hdr): Define.
5875 * archive.c: Change all callers of _bfd_snarf_ar_hdr to call
5876 _bfd_read_ar_hdr instead.
5877 (_bfd_generic_read_ar_hdr): Rename from _bfd_snarf_ar_hdr.
5878 (_bfd_compute_and_write_armap): Rename from
5879 compute_and_write_armap. Make non-static. Change all callers.
5880 * ecoff.c (_bfd_ecoff_slurp_armap): Call _bfd_read_ar_hdr rather
5881 than _bfd_snarf_ar_hdr.
5882 * aout-target.h (MY_read_ar_hdr): Define if not defined.
5883 * ieee.c (ieee_read_ar_hdr): Define.
5884 * libecoff.h (_bfd_ecoff_read_ar_hdr): Define.
5885 * oasys.c (oasys_read_ar_hdr): Define.
5886 * som.c (som_read_ar_hdr): Define.
5887 * bfd-in2.h, libbfd.h: Rebuild.
5888
f8e47484
SC
5889Thu Oct 5 14:04:07 1995 steve chamberlain <sac@slash.cygnus.com>
5890
5891 * peicode.c (coff_swap_filehdr_in): If symptr is
5892 zero, there aren't any symbols, even if nsyms is set.
5893
2b874a2d
ILT
5894Thu Oct 5 11:45:02 1995 Ian Lance Taylor <ian@cygnus.com>
5895
aca73687
ILT
5896 * libecoff.h (struct ecoff_backend_data): Add adjust_headers
5897 field.
5898 * ecoff.c (ecoff_sec_to_styp_flags): Check for various Alpha
5899 sections, and set styp correctly for them: .got, .hash, .dynamic,
5900 .liblist, .rel.dyn, .conflic, .dynstr, .dynsym, .comment.
5901 (_bfd_ecoff_styp_to_sec_flags): Check for various Alpha section
5902 types.
5903 (ecoff_sort_hdrs): New static function.
5904 (ecoff_compute_section_file_positions): Return boolean, not void.
5905 Sort the sections by VMA before looking through them. Put the
5906 first non SEC_ALLOC section on a new page. Put every SEC_ALLOC
5907 section on an appropriate boundary within the page.
5908 (ecoff_compute_reloc_file_positions): Check return value of
5909 ecoff_compute_section_file_positions.
5910 (_bfd_ecoff_set_section_contents): Likewise.
5911 (_bfd_ecoff_write_object_contents): Check for various Alpha
5912 section types when incrementing text_size and data_size. Call
5913 adjust_headers backend function if it exists.
5914 * coff-alpha.c (alpha_adjust_headers): New static function.
5915 (alpha_ecoff_backend_data): Initialize adjust_headers field.
5916 * coff-mips.c (mips_ecoff_backend_data): Likewise.
5917
2b874a2d
ILT
5918 * hosts/i386bsd.h: Restore file incorrectly deleted on Sep 6.
5919
c780e5db
JL
5920Wed Oct 4 18:15:02 1995 Jeff Law (law@hurl.cygnus.com)
5921
5922 * rs6000-core.c (CORE_VERSION_1): Use CORE_VERSION_1 instead
5923 of ALTERNATE_AIX_CORE_FORMAT.
5924 * configure.in (aix4): No longer need CORE_FLAGS.
5925 * configure: Updated.
5926
2a01c351
KR
5927Wed Oct 4 15:36:36 1995 Ken Raeburn <raeburn@cygnus.com>
5928
5929 NS32k changes from Ian Dall:
5930 * aoutx.h (MY_final_link_relocate, MY_relocate_contents): New
5931 macros.
5932 (aout_link_input_section_std, aout_link_input_section_ext,
5933 aout_link_reloc_link_order): Call them instead of _bfd_*
5934 versions.
5935 * aout-target.h (MY_exec_header_not_counted): New macro, defaults
5936 to zero.
5937 (backend_data): Use it instead of hardcoded zero.
5938
5939 * aout-ns32k.c (CTOR_TABLE_RELOC_HOWTO): New macro.
5940 (MY_swap_std_reloc_out): Use udata.i for KEEPIT, don't call stoi.
5941
5942 * ns32knetbsd.c: Include bfd.h.
5943 (MY_text_includes_header, MY_bfd_reloc_type_lookup): New macros.
5944 (MY_bfd_reloc_type_lookup): Declare function too.
5945 * pc532-mach.c (set_sizes): Don't declare.
5946 (MY_text_includes_header, MY_exec_header_not_counted): Define.
5947 (backend_data, MY_backend_data): Don't define.
5948
5949 * config.bfd: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
5950 ns32k-*-lites* like ns32k-*-netbsd*.
5951
5952 * hosts/nbsd.h: Swap order of sys/vmparam.h and sys/param.h, to
5953 compile on lites.
5954
5944d75b
ILT
5955Wed Oct 4 14:15:52 1995 Ian Lance Taylor <ian@cygnus.com>
5956
5957 * coffcode.h (coff_write_object_contents): Restore setting
5958 f_timdat to 0, deleted on August 22.
5959
db344f82
SC
5960Tue Oct 3 16:28:32 1995 steve chamberlain <sac@slash.cygnus.com>
5961
5962 * coffcode.h (coff_bfd_copy_private_symbol_data,
5963 coff_bfd_copy_private_section_data,
5964 coff_bfd_copy_private_bfd_data): ifdef to allow overrides.
5965 * peicode.h (coff_bfd_copy_private_bfd_data): New
5966 (pe_bfd_copy_private_bfd_data): New.
5967 (coff_swap_scnhdr_in): Swap bss size into the right place.
5968 (pe_print_private_bfd_data): Add some newlines.
5944d75b 5969
c780e5db 5970Tue Oct 3 11:53:04 1995 Jeff Law (law@hurl.cygnus.com)
97f1feda
JL
5971
5972 * som.c (setup_sections): Don't die if a space has no subspaces.
5973
3d7c42c9
ILT
5974Mon Oct 2 14:08:55 1995 Ian Lance Taylor <ian@cygnus.com>
5975
5976 * elflink.h (elf_link_add_object_symbols): Don't let a weak
5977 dynamic symbol override a common symbol. Don't change the size or
5978 type if they have been set and the new symbol is not a definition.
5979 Warn if the size or type changes.
5980
c780e5db 5981Sun Oct 1 01:34:41 1995 Jeff Law (law@hurl.cygnus.com)
709af562
JL
5982
5983 * som.c (som_begin_writing): Don't write the symbol table or
5984 symbol strings.
5985 (som_finish_writing): Write them here. Place them after the
5986 subspace data, but before the relocs.
5987
5988Fri Sep 29 11:01:55 1995 Ian Lance Taylor <ian@cygnus.com>
5989
5990 * sunos.c (sunos_add_one_symbol): Just pass false, not
5991 info->shared_library, to sunos_create_dynamic_sections.
5992 (sunos_scan_ext_relocs): Don't warn about a reloc in the .text
5993 section.
5994 (sunos_check_dynamic_reloc): Remove .text section assertion.
5995
7009e451
SS
5996Thu Sep 28 18:48:47 1995 Stan Shebs <shebs@andros.cygnus.com>
5997
5998 * config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*.
5999 * configure, configure.in: Add pmac_xcoff_vec case.
6000 * Makefile.in (BFD32_BACKENDS): Add coff-pmac.o.
6001 * coff-pmac.c: New file, PowerMac XCOFF support.
6002 * coffcode.h (coff_set_arch_mach_hook): Add PowerMac case.
6003 * targets.c (pmac_xcoff_vec): Declare.
6004
6005 * mpw-config.in: Various changes to be compatible with the
6006 autoconf-based configury.
6007 * mpw-make.sed: New file, sed commands to translate Unix
6008 makefile into MPW syntax.
6009 * mpw-make.in: Remove.
6010 * hosts/mpw.h: Remove.
6011 * bfd-in.h, bfd-in2.h: If MPW, include the file that defines
6012 true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED.
6013
b91537be
SC
6014Thu Sep 28 17:06:23 1995 steve chamberlain <sac@slash.cygnus.com>
6015
6016 * binary.c (binary_get_symtab): Return an empty string on error.
6017 * opncls.c (bfd_fdpenr): Change WIN32 restriction to WINGDB.
6018
30360a6f
KK
6019Thu Sep 28 15:30:44 1995 Kim Knuttila <krk@nellie>
6020
6021 * coff-ppc.c: Reformatted according to gnu conventions
6022 Removed irrelevant "if 0" code
6023
20d1e233
ILT
6024Thu Sep 28 11:19:53 1995 Ian Lance Taylor <ian@cygnus.com>
6025
69fd4fdd
ILT
6026 * hp300hpux.c (convert_sym_type): Treat secondary symbols as weak
6027 symbols rather than as indirect symbols.
6028 (MY(slurp_symbol_table)): Don't do anything special about
6029 secondary symbols.
6030
46b5a892
ILT
6031 * coffcode.h (coff_new_section_hook): Make sure that the alignment
6032 of .ctors and .dtors sections is no larger than 2.
6033
9db59230
ILT
6034 * sunos.c (sunos_add_one_symbol): Don't change
6035 bfd_link_hash_common to bfd_link_hash_new, since it may be on the
6036 undef list.
6037 (bfd_sunos_record_link_assignment): Don't put __DYNAMIC in the
6038 dynamic symbols when creating a shared library.
6039 (sunos_scan_ext_relocs): Handle relocs correctly when creating a
6040 shared library.
6041 (sunos_scan_dynamic_symbol): Don't mark the __DYNAMIC symbol as
6042 written even if it is not defined in a regular object.
6043 (sunos_write_dynamic_symbol): Use plt_offset for the address of
6044 the jump table reloc. Add an assertion. Use RELOC_JMP_SLOT
6045 rather than the constant 22.
6046 (sunos_check_dynamic_reloc): Handle creating a shared library.
6047 (sunos_finish_dynamic_link): Set the first entry in the GOT to
6048 zero when creating a shared library.
6049 * aoutx.h (NAME(aout,final_link)): If there is a symbol __DYNAMIC,
6050 write it out at the start of the symbol table.
6051
20d1e233
ILT
6052 * Makefile.in (BFD32_BACKENDS): Add coff-arm.o.
6053
a11e10fe
DE
6054Thu Sep 28 00:58:05 1995 Doug Evans <dje@deneb.cygnus.com>
6055
6056 * config.bfd: Add arm-*-coff.
6057 * configure.in, configure: Add armcoff_{little,big}_vec.
6058 * targets.c (armcoff_{little,big}_vec): Declare.
6059 (bfd_target_vector): Add armcoff_{little,big}_vec.
6060 * coff-arm.c (armcoff_{little,big}_vec): Always define.
6061
99062cfc
ILT
6062Wed Sep 27 10:37:14 1995 Ian Lance Taylor <ian@cygnus.com>
6063
6064 * targets.c (bfd_find_target): Remove debugging code.
6065
deacbe0f
KK
6066Wed Sep 27 07:23:39 1995 Kim Knuttila <krk@nellie>
6067
6068 * coff-ppc.c, pe-ppc.c, pei-ppc.c: Initial bfd for coff/PE
6069 support on powerpc.
6070 * Makefile.in: added *-ppc files
6071 * coffcode.h: ppc MAGIC, and use peicode.h rather than coffswap.h to
6072 allow pe based .o's to be shared with other tools on ppc/NT
6073 * config.bfd: added powerpc[le]-[pe|winnt] config support
6074 * configure, configure.in: added bfd_powerpc[le]_pe[i]_vec
6075 * peicode.h: Added more section flags for PE on ppc
6076 Added coff_swap_filehdr_out to allow peicode.h to be
6077 used for non-image PE files on ppc.
6078 Check for image, or not, before copying pe_opthdr
6079 * targets.c: Added new bfd's
30360a6f
KK
6080 * targets.c: Removed two inactive bfds that shouldn't have made it this
6081 far.
deacbe0f 6082
d22b02e0
MM
6083Tue Sep 26 14:06:41 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6084
6085 * elf32-ppc.c (ppc_reloc_type): Rename from reloc_type, and use
6086 explicit values to initialize all relocs. Change all users.
6087 (ppc_elf_brtaken_inner): New function to handle branch predicition
6088 relocs.
6089 (ppc_elf_brtaken_reloc): Ditto.
6090 (ppc_elf_howto_raw): Use new functions. Make sure all unsupported
6091 relocs use ppc_elf_unsupported_reloc.
6092 (ppc_elf_merge_private_bfd_data): Keep track of whether an error
6093 needs to be reported.
6094 (ppc_elf_relocate_section): Support branch prediction relocs.
6095
fcf490c0
ILT
6096Tue Sep 26 12:48:05 1995 Ian Lance Taylor <ian@cygnus.com>
6097
e6cb7b41
ILT
6098 * bfd.c (bfd_assert): Remove \n from string passed to
6099 _bfd_error_handler.
6100
1af85fbb
ILT
6101 * coff-i386.c: (TWO_DATA_SECS): Don't define.
6102 * coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook.
6103 (bfd_coff_make_section_hook): Don't define.
6104 (coff_make_section_hook): Remove.
6105 (sec_to_styp_flags): Remove TWO_DATA_SECS case.
6106 (styp_to_sec_flags): Likewise.
6107 (coff_write_object_contents): Likewise.
6108 (bfd_coff_std_swap_table): Don't initialize make_section_hook
6109 field.
6110 * libcoff.h: Rebuild.
6111 * coffgen.c (make_a_section_from_file): Just call
6112 bfd_make_section_anyway, not bfd_make_section or
6113 bfd_coff_make_section_hook.
6114 * ecoff.c (_bfd_ecoff_make_section_hook): Remove.
6115 * libecoff.h (_bfd_ecoff_make_section_hook): Don't declare.
6116 * coff-alpha.c (alpha_ecoff_backend_data): Don't initialize
6117 make_section_hook field.
6118 * coff-mips.c (mips_ecoff_backend_data): Likewise.
6119
fcf490c0
ILT
6120 * aoutx.h (translate_from_native_sym_flags): Don't try to stuff
6121 pointers into value field for warning and indirect symbols; just
6122 leave the value field alone.
6123 * linker.c (generic_link_add_symbol_list): Use next symbol for
6124 warning and indirect symbols, rather than looking in symbol value.
6125 * ecoff.c (ecoff_set_symbol_info): Remove indirect_ptr_ptr
6126 parameter. Change all callers. Remove support for indirect
6127 symbols; it didn't work anyhow.
6128 (_bfd_ecoff_slurp_symbol_table): Remove indirect_ptr variable.
6129 * syms.c: Change comments about BSF_WARNING and BSF_INDIRECT.
6130 * bfd-in2.h: Rebuild.
6131
cc47d19a
MM
6132Mon Sep 25 16:04:09 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6133
6134 * elf32-ppc.c (ppc_elf_howto_raw): For all 14-bit branch relocs,
6135 go back to telling the tools this reloc operates on 32 bits.
6136
81449d47
ILT
6137Mon Sep 25 11:48:02 1995 Ian Lance Taylor <ian@cygnus.com>
6138
7a7fbffb
ILT
6139 * aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler
6140 rather than a direct fprintf.
6141 * archive.c (_bfd_write_archive_contents): Likewise.
6142 * coffcode.h (coff_slurp_symbol_table): Likewise.
6143 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Likewise.
6144 (ppc_elf_unsupported_reloc): Likewise.
6145 (ppc_elf_relocate_section): Likewise.
6146 * i386linux.c (linux_tally_symbols): Likewise.
6147 (linux_finish_dynamic_link): Likewise.
6148 * osf-core.c (osf_core_core_file_p): Likewise.
6149 * rs6000-core.c (rs6000coff_get_section_contents): Likewise.
6150 * som.c (som_sizeof_headers): Likewise.
6151 * srec.c (srec_bad_byte): Likewise.
6152 * bfd.c (bfd_assert): Likewise. Also change file to be const.
6153 * libbfd-in.h (bfd_assert): Declare first parameter const.
6154 * libbfd.h: Rebuild.
6155 * coff-a29k.c (a29k_reloc): Don't bother to fprintf; returning
6156 bfd_reloc_overflow is enough.
6157 * coff-h8300.c (rtype2howto): Don't bother to fprintf; just abort.
6158 * coff-h8500.c (rtype2howto): Likewise.
6159 * coff-z8k.c (rtype2howto): Likewise.
6160 * coffcode.h (dummy_reloc16_extra_cases): Likewise.
6161 * elf.c (_bfd_elf_get_lineno): Likewise.
6162 (_bfd_elf_no_info_to_howto): Likewise.
6163 (_bfd_elf_no_info_to_howto_rel): Likewise.
6164 * hp300hpux.c (convert_sym_type): Likewise.
6165 (MY(swap_std_reloc_in)): Likewise.
6166 * elf.c (bfd_section_from_shdr): Remove #if 0 sections.
6167
f1c6dd5d
ILT
6168 * libaout.h (struct aoutdata): Add line_buf field.
6169 * aoutx.h (NAME(aout,find_nearest_line)): Remove statics buffer
6170 and filename_buffer. Instead, use a malloc buffer stored in the
6171 new line_buf field. Remove length restrictions.
6172
f0500a41
ILT
6173 * coffgen.c (string_size): Remove static variable.
6174 (debug_string_size, debug_string_section): Likewise.
6175 (coff_fix_symbol_name): Add string_size_p, debug_string_section_p,
6176 and debug_string_size_p parameters. Use them instead of the
6177 global variables. Change all callers.
6178 (coff_write_symbol): Likewise.
6179 (coff_write_alien_symbol, coff_write_native_symbol): Likewise.
6180 (coff_write_symbols): Add local variables to replace removed
6181 global variables.
6182
25b5a53d
ILT
6183 * libcoff-in.h (struct coff_section_tdata): Add offset, i,
6184 function, and line_base fields.
6185 * libcoff.h: Rebuild.
6186 * coffgen.c (coff_find_nearest_line): Use section tdata to cache
6187 information, rather than using static variables.
6188
641ac26a
ILT
6189 * sunos.c (sunos_read_dynamic_info): Adjust offsets in an NMAGIC
6190 file. From Peter DeWolf <pld@amt.tay1.dec.com>.
6191
81449d47
ILT
6192 * init.c (initialized): Remove static variable.
6193 (bfd_init): Don't bother setting initialized.
6194 (bfd_check_init): Remove.
6195 * opncls.c (_bfd_new_bfd): Don't call bfd_check_init.
6196 * libbfd.h: Rebuild.
6197
138b9b81
PS
6198Sat Sep 23 01:22:23 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
6199
6200 * rs6000-core.c (rs6000coff_core_p): Don't check the core file
6201 size for full core dumps. Copy core file header to private data.
6202 (rs6000coff_core_file_failing_command,
6203 rs6000coff_core_file_failing_signal): New functions to extract
6204 the file name and terminating signal from the core file.
6205 * coff-rs6000.c: Use them.
6206
2ffbb79a
ILT
6207Fri Sep 22 17:44:47 1995 Ian Lance Taylor <ian@cygnus.com>
6208
6209 Change arch info to be const, initialized at compile time.
6210 * archures.c: Reindent many functions. Change CONST to const.
6211 (bfd_arch_info_type): Make arch_name const. Remove disassemble;
6212 nothing set it anyhow. Make next const.
6213 (bfd_arch_info_list): Remove.
6214 (bfd_archures_list): Rename from archures_init_table. Change from
6215 a table of function pointers to a table of bfd_arch_info_type
6216 structure addresses.
6217 (bfd_scan_arch): Rewrite accordingly. Return a const pointer.
6218 (bfd_lookup_arch): Likewise.
6219 (bfd_set_arch_info): Rewrite accordingly. Change argument to be a
6220 const pointer.
6221 (bfd_default_arch_struct): Make const.
6222 (bfd_arch_init, bfd_arch_linkin): Remove.
6223 (bfd_get_arch_info): Return a const pointer.
6224 * init.c (bfd_init): Don't call bfd_arch_init.
6225 * bfd.c (struct _bfd): Make arch_info const.
6226 * bfd-in2.h: Rebuild.
6227 * libbfd.h: Rebuild.
6228 * configure.in: Put & before everything in $selarchs.
6229 * configure: Rebuild.
6230 * cpu-*.c: Change bfd_*_arch from a function which calls
6231 bfd_arch_linkin to a const structure.
6232 * ieee.c (ieee_object_p): Make arch const.
6233
02f85cda
MM
6234Fri Sep 22 16:23:18 1995 Michael Meissner <meissner@tiktok.cygnus.com>
6235
6236 * reloc.c (bfd_reloc_code_type): Add relocations to support all of
6237 PowerPC V.4.
6238 * bfd-in2.h: Regenerate.
6239 * libbfd.h: Regenerate.
6240
6241 * elf32-ppc.c (reloc_type): Update names to match current draft.
6242 (ppc_elf_howto_raw): Mark 14 bit relocs as short sized and PC
6243 relative. Update names to current V.4 draft.
6244 (ppc_elf_reloc_type_lookup): Add support for more relocations.
6245 (ppc_elf_relocate_section): Rename relocations to match draft.
6246
dd82c578
MM
6247Thu Sep 21 21:53:18 1995 Michael Meissner <meissner@cygnus.com>
6248
6249 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Allow modules
6250 compiled with -mrelocatable-lib to be linked with either normal
6251 modules or -mrelocatable modules.
6252
f69e888e
ILT
6253Wed Sep 20 12:03:26 1995 Ian Lance Taylor <ian@cygnus.com>
6254
e18c4e8f
ILT
6255 * coffcode.h (coff_write_object_contents): Clear the vstamp field
6256 in the a.out header.
6257
f69e888e
ILT
6258 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for
6259 a reloc against a local symbol, even if it's not a section.
6260
a5655244
ILT
6261Tue Sep 19 17:02:26 1995 Ian Lance Taylor <ian@cygnus.com>
6262
6263 * targets.c (bfd_target): Remove unused align_power_min field.
6264 * bfd-in2.h: Rebuild.
6265 * All backends: Remove initialization of align_power_min.
6266
500d7394
SC
6267Tue Sep 19 14:02:21 1995 steve chamberlain <sac@slash.cygnus.com>
6268
6269 * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right.
500d7394 6270
049df0a8
ILT
6271Mon Sep 18 14:35:01 1995 Arne H. Juul <arnej@pvv.unit.no>
6272
6273 * config.bfd (mips-dec-netbsd*): New target.
6274 * configure.host (mips-dec-netbsd*): New host.
6275 * configure.in (mips-dec-netbsd*): New native.
6276 * configure: Rebuild.
6277
1862bbd8
ILT
6278Fri Sep 15 10:24:36 1995 Ian Lance Taylor <ian@cygnus.com>
6279
6280 Make the COFF backend linker merge common types:
6281 * cofflink.c (struct coff_debug_merge_element): Define.
6282 (struct coff_debug_merge_type): Define.
6283 (struct coff_debug_merge_hash_entry): Define.
6284 (struct coff_debug_merge_hash_table): Define.
6285 (coff_debug_merge_hash_table_init): Define.
6286 (coff_debug_merge_hash_table_free): Define.
6287 (coff_debug_merge_hash_lookup): Define.
6288 (struct coff_final_link_info): Add debug_merge field.
6289 (coff_debug_merge_hash_newfunc): New static function.
6290 (_bfd_coff_final_link): Allocate and free debug_merge table.
6291 (coff_link_input_bfd): Merge identical enum, struct and union
6292 types.
6293
a208a70f
ILT
6294Thu Sep 14 14:53:58 1995 Ian Lance Taylor <ian@cygnus.com>
6295
6296 Convert i960 COFF to use COFF backend linker.
6297 * coff-i960.c (coff_i960_relocate): Use a coff_section_data
6298 structure to store the symbol being used.
6299 (coff_i960_start_final_link): New static function.
6300 (coff_i960_relocate_section): New static function.
6301 (coff_i960_adjust_symndx): New static function.
6302 (coff_start_final_link): Define.
6303 (coff_relocate_section): Define.
6304 (coff_adjust_symndx): Define.
6305 * coffcode.h (bfd_coff_backend_data): Add new callback function
6306 _bfd_coff_start_final_link.
6307 (bfd_coff_start_final_link): Define.
6308 (coff_start_final_link): Define if not defined.
6309 (bfd_coff_std_swap_table): Add coff_start_final_link.
6310 * cofflink.c (_bfd_coff_internal_syment_name): Make globally
6311 visible.
6312 (_bfd_coff_final_link): Call bfd_coff_start_final_link if the
6313 function callback is not NULL.
6314 * libcoff-in.h (struct coff_section_tdata): Add tdata field.
6315 (_bfd_coff_internal_syment_name): Declare.
6316 * libcoff.h: Rebuild.
6317 * configure.in (icoff_big_vec): Add cofflink.o.
6318 (icoff_little_vec): Likewise.
6319 * configure: Rebuild.
6320
f0abedbe
FF
6321Wed Sep 13 17:38:23 1995 Fred Fish <fnf@rtl.cygnus.com>
6322
6323 * Makefile.in (clean-info): Remove extraneous tab from line
6324 following action.
6325
aa4b3dc5
ILT
6326Wed Sep 13 13:27:53 1995 Ian Lance Taylor <ian@cygnus.com>
6327
6328 * cofflink.c (coff_link_input_bfd): Fail if a section with no
6329 contents has relocs.
6330
4ca63811 6331Thu Sep 12 12:45:34 1995 steve chamberlain <sac@slash.cygnus.com>
beee31b1
SC
6332
6333 * coffcode.h (coff_compute_section_file_positions): Keep the
6334 raw size safe.
6335 (coff_write_object_contents): Remember if it's a relocatable
6336 file.
6337 * libcoff-in.h (pe_data_type): New member 'has_reloc_section'
6338 * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag
6339 if relocatable file. Swap out saved raw size.
6340
ae115e51
ILT
6341Tue Sep 12 12:14:33 1995 Ian Lance Taylor <ian@cygnus.com>
6342
9521bac3
ILT
6343 * Makefile.in (do_maintainer_clean): Rename from do_realclean.
6344 (maintainer-clean): Rename from realclean, passing
6345 maintainer-clean down to subdirectories, but leave realclean as a
6346 synonym.
6347
4ca63811
ILT
6348 * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
6349 warning callback.
6350
5aa4c3ff
ILT
6351 * dep-in.sed: Remove config.h from generated dependencies.
6352
396aaeb2
ILT
6353 * sunos.c (sunos_slurp_dynamic_symtab): New static function,
6354 broken out of sunos_canonicalize_dynamic_symtab.
6355 (sunos_canonicalize_dynamic_symtab): Call new function
6356 sunos_slurp_dynamic_symtab.
6357 (sunos_add_dynamic_symbols): Add three new parameters. Return the
6358 dynamic symbol table to the caller.
6359 * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols
6360 callback to override the symbols being read.
6361 * libaout.h (struct aout_backend_data): Add three new parameters
6362 to add_dynamic_symbols callback.
6363
ae115e51
ILT
6364 Extensive minor changes to avoid various gcc warnings. Also:
6365 * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
6366 * archures.c (bfd_arch_info_type): Change mach field from long to
6367 unsigned long.
6368 (bfd_lookup_arch): Change machine parameter from long to unsigned
6369 long.
6370
b088e4b2
ILT
6371Mon Sep 11 10:55:47 1995 Ian Lance Taylor <ian@cygnus.com>
6372
6373 * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
6374 a symbol with a non-zero plt_offset.
6375
1dff7902
ILT
6376Fri Sep 8 11:47:24 1995 Ian Lance Taylor <ian@cygnus.com>
6377
2b71e1e4
ILT
6378 * elfcode.h (align_file_position): Remove; not used.
6379
1dff7902
ILT
6380 * configure.in: Only check for <sys/procfs.h> on a native system,
6381 and make sure it defines prstatus_t.
6382 * configure: Rebuild.
6383
870015b1
ILT
6384Thu Sep 7 12:48:01 1995 Ian Lance Taylor <ian@cygnus.com>
6385
535c89f0
ILT
6386 * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.
6387
936b870c
ILT
6388 * config.in: Rename from config.h.in.
6389 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
a7873a6c 6390 Check for config.h:config.in when creating stamp-h.
936b870c 6391 * configure: Rebuild.
a7873a6c
ILT
6392 * Makefile.in (stamp-h): Depend upon config.in rather than
6393 config.h.in. Set CONFIG_HEADERS to config.h:config.in when
6394 calling config.status.
936b870c 6395
870015b1
ILT
6396 * Makefile.in (do_distclean): Remove config.h and stamp-h.
6397 (Makefile): Just rebuild Makefile.
6398 (config.h, stamp-h): New targets.
6399 * configure.in: Create stamp-h when rebuilding config.h.
6400 * configure: Rebuild.
6401
b7577823
ILT
6402Wed Sep 6 15:00:33 1995 Ian Lance Taylor <ian@cygnus.com>
6403
6404 * configure.in: Call AC_CONFIG_HEADER. Substitute
6405 HOST_64BIT_LONG. Check that various header files exist. Check
6406 that fcntl exists. Call BFD_BINARY_FOPEN. Check whether malloc
6407 and/or free need to be declared. Don't make a link to sysdep.h.
6408 Define TRAD_HEADER for various hosts.
6409 * configure: Rebuild.
6410 * configure.host: Don't set my_host. Add definitions taken from
6411 host header files for various entries. Remove entries which now
6412 do nothing.
6413 * acconfig.h: New file.
6414 * config.h.in: New file, built by autoheader.
6415 * sysdep.h: New file.
6416 * Makefile.in (do_distclean): Don't remove sysdep.h.
6417 (RECONFIG): Remove.
6418 (LOCAL_H_DEPS): New variable.
6419 ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
6420 $(RECONFIG).
6421 ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise.
6422 ($(OPTIONAL_BACKENDS)): Likewise.
6423 (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than
6424 looking through sysdep.h.
6425 * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile.
6426 (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG.
6427 (fprintf_vma, sprintf_vma): Likewise.
6428 (int64_type, uint64_type): Don't define.
6429 * bfd-in2.h: Rebuild.
6430 * archures.c, bfd.c, srec.c: Include <ctype.h>.
6431 * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS.
6432 * lynx-core.c: Include stuff from old hosts/lynx.h.
6433 * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL),
6434 rather than NO_FCNTL.
6435 * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__
6436 rather than NATIVE_HPPAHPUX_COMPILER.
6437 * trad-core.c: Don't include <errno.h>. Include TRAD_HEADER if it
6438 is defined.
6439 * hosts/*.h: Remove all header files which merely include,
6440 declare, and define things. Leave header files which define
6441 information needed by trad-core.c.
6442
6443 * aclocal.m4 (BFD_BINARY_FOPEN): Define.
6444 (BFD_CC_FOR_BUILD): Define.
6445 * configure.in: Use BFD_CC_FOR_BUILD.
6446 * configure: Rebuild.
6447
7a93ebdd
ILT
6448Tue Sep 5 19:35:28 1995 Ian Lance Taylor <ian@cygnus.com>
6449
4c2e4d0e
ILT
6450 * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
6451 * configure: Rebuild.
6452
7a93ebdd
ILT
6453 * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
6454 a global symbol.
6455
866bb9e5
JM
6456Tue Sep 5 12:48:26 1995 Jason Molenda (crash@phydeaux.cygnus.com)
6457
6458 * config.bfd: i386pe_ve -> i386pe_vec.
6459
2b79a104
ILT
6460Mon Sep 4 14:02:43 1995 Ian Lance Taylor <ian@cygnus.com>
6461
f515fb2f
ILT
6462 * configure.host: Incorporate host Makefile fragments by setting
6463 shell variables.
6464 * configure.in: Call AC_PROG_CC. Substitute CFLAGS, HDEFINES and
6465 AR. Call AC_PROG_INSTALL. Substitute CC_FOR_BUILD, choosing a
6466 value based on whether the code is being compiled by a cross
6467 compiler. Don't substitute host_makefile_frag or frags.
6468 * aclocal.m4: New file to define local AC_PROG_CC.
6469 * configure: Rebuild.
6470 * Makefile.in (INSTALL): Set to @INSTALL@.
6471 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
6472 (INSTALL_DATA): Set to @INSTALL_DATA@.
6473 (AR): Set to @AR@.
6474 (CC): Define as @CC@.
6475 (CFLAGS): Set to @CFLAGS@.
6476 (CC_FOR_BUILD): Set to @CC_FOR_BUILD@.
6477 (@host_makefile_frag@): Remove.
6478 (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@. Move $(CFLAGS)
6479 after other options.
6480 (config.status): Remove dependency upon @frags@.
6481 * config/*.mh, config/README: Remove.
6482
2b79a104
ILT
6483 * config.bfd: Rewrite to incorporate the contents of the Makefile
6484 fragments by setting shell variables, rather than merely returning
6485 the name of a Makefile fragment.
6486 * configure.in: Use shell variables set by config.bfd rather than
6487 looking at the target Makefile fragment files. Don't substitute
6488 target_makefile_frag. Do substitute TDEFINES.
6489 * configure: Rebuild.
6490 * Makefile.in (@target_makefile_frag@): Remove.
6491 (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@.
6492 * config/*.mt: Remove.
6493
2cb159a5
KR
6494Mon Sep 4 03:13:28 1995 Ken Raeburn <raeburn@cygnus.com>
6495
6496 * configure.in: Put changequote lines around "i[345]86" patterns
6497 section of core file support.
6498
ef07871c
JL
6499Sun Sep 3 11:31:58 1995 Jeff Law (law@snake.cs.utah.edu)
6500
6501 * som.c (som_bfd_print_private_bfd_data): Define to use the
6502 generic version.
6503
1613e075
SC
6504Fri Sep 1 17:08:40 1995 steve chamberlain <sac@slash.cygnus.com>
6505
6506 * peicode.h (coff_swap_aouthdr_in): Add ImageBase to
6507 entry, text_start and data_start.
6508
a52a3ce8
ILT
6509Fri Sep 1 18:06:28 1995 Ian Lance Taylor <ian@cygnus.com>
6510
a21227ef
ILT
6511 * Makefile.in (OFILES): Remove $(TDEPFILES).
6512 * config/apollo.mt (TDEPFILES): Remove.
6513 * config/README: Update.
6514
a52a3ce8
ILT
6515 * configure.in: For a native configuration, set COREFILE and
6516 COREFLAG based on the canonical host name.
6517 * configure: Rebuild.
6518 * Makefile.in: Rebuild dependencies.
6519 (ALL_CFLAGS): Add @COREFLAG@.
6520 (OFILES): Replace $(HDEPFILES) with @COREFILE@.
6521 * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file
6522 support routines. Check LYNX_CORE rather than HOST_LYNX.
6523 * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX.
6524 * i386lynx.c: Likewise.
6525 * m68klynx.c: Likewise.
6526 * sparclynx.c: Likewise.
6527 * rs6000-core.c: Check AIX_CORE rather than HOST_AIX.
6528 * *-core.c: Comment changes.
6529 * config/decstation.mh (HDEPFILES): Remove.
6530 (HDEFINES): Remove -DTRAD_CORE.
6531 * config/irix3.mh (RANLIB): Remove.
6532 * config/irix4.mh (HDEPFILES, RANLIB): Remove.
6533 (HDEFINES): Remove -DIRIX_CORE.
6534 * config/riscos.mh (RANLIB, HDEPFILES): Remove.
6535 (HDEFINES): Remove -DTRAD_CORE.
6536 * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove.
6537 * config/ultra3.mh (RANLIB): Remove.
6538 * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove.
6539 * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove.
6540 * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove.
6541 * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove.
6542 * config/hppahpux.mh, config/hppaosf.mh: Remove.
6543 * config/i386aix.mh, config/i386bsd.mh: Remove.
6544 * config/i386linux.mh, config/i386mach3.mh: Remove.
6545 * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove.
6546 * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove.
6547 * config/mipsmach3.mh, config/news-mips.mh: Remove.
6548 * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove.
6549 * config/rs600.mh, config/rs6000lynx.mh: Remove.
6550 * config/solaris2.mh, config/stratus.mh: Remove.
6551 * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove.
6552 * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove.
6553
d6f672b8
ILT
6554Fri Sep 1 15:18:50 1995 Kazumoto Kojima <kkojima@info.kanagawa-u.ac.jp>
6555
6556 * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or
6557 DT_FINI entry if the appropriate symbol is not in the hash table.
6558
6559 * libelf.h (struct elf_backend_data): Add create_program_headers
6560 and want_hdr_in_seg fields.
6561 * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not
6562 defined.
6563 (elf_backend_create_program_headers): Likewise.
6564 (elfNN_bed): Initialize create_program_headers and
6565 want_hdr_in_seg.
6566 * elf.c (get_program_header_size): Call create_program_headers
6567 backend routine.
6568 (map_program_segments): Check want_hdr_in_seg backend field. Call
6569 create_program_headers backend routine.
6570
6571 * elf.c (assign_file_positions_except_relocs): Align non allocated
6572 sections when creating an executable.
6573
6574 * elfcode.h (elf_swap_phdr_in): Make non static.
6575 (elf_swap_phdr_out): Make non static.
6576 * libelf.h (bfd_elf32_swap_phdr_in): Declare.
6577 (bfd_elf32_swap_phdr_out): Declare.
6578 (bfd_elf64_swap_phdr_in): Declare.
6579 (bfd_elf64_swap_phdr_out): Declare.
6580
6581 * ecofflink.c (ecoff_collect_shuffle): New static function.
6582 (_bfd_ecoff_get_accumulated_pdr): New function.
6583 (_bfd_ecoff_get_accumulated_sym): New function.
6584 (_bfd_ecoff_get_accumulated_ss): New function.
6585 * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare.
6586 (_bfd_ecoff_get_accumulated_sym): Declare.
6587 (_bfd_ecoff_get_accumulated_ss): Declare.
6588 * libbfd.h: Rebuild.
6589
0cb70568
ILT
6590Fri Sep 1 13:20:25 1995 Ian Lance Taylor <ian@cygnus.com>
6591
d6f672b8
ILT
6592 * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo.
6593
0cb70568
ILT
6594 * elflink.h (elf_link_add_object_symbols): Handle indirect and
6595 warning symbols. If any section is named .gnu.warning.XXX, treat
6596 the contents as a warning to be issued if the symbol XXX is
6597 referenced.
6598 (elf_link_output_extsym): For an indirect or warning symbol, just
6599 output the symbol it points to.
6600
6601 * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error
6602 if bfd_hash_allocate fails, since it will already be set.
6603 (generic_link_hash_newfunc): Likewise.
6604 (archive_hash_newfunc): Likewise.
6605 (hash_entry_bfd): New static function.
6606 (_bfd_generic_link_add_one_symbol): Pass new arguments to warning
6607 callback. Allocate a new warning using the hash table newfunc.
6608 Use bfd_hash_replace to update the entry in the hash table, rather
6609 than assuming we can copy the fields with structure assignment.
6610
6611 * hash.c (bfd_hash_replace): New function.
6612 * bfd-in.h (bfd_hash_replace): Declare.
6613 * bfd-in2.h: Rebuild.
6614
f14db880
JSC
6615Fri Sep 1 08:12:50 1995 James G. Smith <jsmith@beauty.cygnus.com>
6616
6617 * config.bfd: Add mips*vr4300-*-elf* target.
6618 * config/mipsbvr4300.mt: Added.
6619
1613e075 6620See file ChangeLog.2
e6d739eb 6621
41126f15
JK
6622\f
6623Local Variables:
c6c7035c 6624mode: change-log
41126f15 6625left-margin: 8
6ec3bb6a
ILT
6626fill-column: 74
6627version-control: never
6628End:
This page took 0.545994 seconds and 4 git commands to generate.