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