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