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