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