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