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