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