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