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