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