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