* coffcode.h Copy changes mistakenly done to libcoff.h in
[binutils-gdb.git] / bfd / ChangeLog
1 Fri Apr 28 21:34:44 2000 Clinton Popetz <cpopetz@cygnus.com>
2
3 * coffcode.h Copy changes mistakenly done to libcoff.h in
4 4/24/2000 patch.
5
6 2000-04-29 Andreas Jaeger <aj@suse.de>
7
8 * libbfd-in.h: Correctly check GCC version.
9 * bfd-in.h: Likewise.
10 * libhppa.h: Likewise.
11 * libbfd.h: Regenerate.
12 * bfd-in2.h: Regenerate.
13
14 Fri Apr 28 14:58:37 2000 Clinton Popetz <cpopetz@cygnus.com>
15
16 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
17 coffdu-rs6000.{lo,c}.
18 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
19 on xcoff.h
20 * Makefile.in: Regenerate.
21 * xcoff.h: New file.
22 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
23 * coff-rs6000.c: Move all declarations and defines that are
24 common to the xcoff backends into xcoff.h
25 * coff64-rs6000.c: Ditto,
26
27 Fri Apr 28 08:35:21 2000 Clinton Popetz <cpopetz@cygnus.com>
28
29 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
30 _bfd_coff_force_symnames in strings and
31 _bfd_coff_debug_string_prefix_length to their default values.
32 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
33
34 Fri Apr 28 08:05:12 2000 Clinton Popetz <cpopetz@cygnus.com>
35
36 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
37 _bfd_coff_force_symnames in strings and
38 _bfd_coff_debug_string_prefix_length to their default values.
39
40 2000-04-27 Alan Modra <alan@linuxcare.com.au>
41
42 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
43 Check local_got_refcounts before dereferencing.
44
45 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
46 before deciding we don't need R_PPC_PLT32 relocation.
47 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
48 dereferencing.
49
50 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
51
52 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
53 .plt entries.
54 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
55 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
56 (elf_i386_relocate_section): Allow for .plt to go missing.
57 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
58 can use a relative reloc for got as elf_i386_relocate_section.
59 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
60
61 Wed Apr 26 16:31:28 2000 Clinton Popetz <cpopetz@cygnus.com>
62
63 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
64
65 Mon Apr 24 15:20:35 2000 Clinton Popetz <cpopetz@cygnus.com>
66
67 * Makefile.am (coff64-rs6000.lo): New rule.
68 * Makefile.in: Regenerate.
69 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
70 xcoff_is_local_label_name, xcoff_rtype2howto,
71 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
72 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
73 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
74 (NO_COFF_SYMBOLS): Define.
75 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
76 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
77 internally.
78 (MINUS_ONE): New macro.
79 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
80 relocation.
81 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
82 coff_SWAP_aux_out): Map to the new functions.
83 * coff64-rs6000.c: New file.
84 * libcoff.h (bfd_coff_backend_data): Add new fields
85 _bfd_coff_force_symnames_in_strings and
86 _bfd_coff_debug_string_prefix_length.
87 (bfd_coff_force_symnames_in_strings,
88 bfd_coff_debug_string_prefix_length): New macros for above fields.
89 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
90 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
91 of using coff_swap_sym_in directly.
92 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
93 (coff_set_flags) Set magic for XCOFF64.
94 (coff_compute_section_file_positions): Add symbol name length to
95 string section length if bfd_coff_debug_string_prefix_length is
96 true.
97 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
98 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
99 using coff_swap_lineno_in directly.
100 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
101 and _bfd_coff_debug_string_prefix_length fields.
102 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
103 symbol names into strings table when
104 bfd_coff_force_symnames_in_strings is true.
105 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
106 SET_RELOC_VADDR): New macros.
107 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
108 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
109 code.
110 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
111 changes within RS6000COFF_C specific code.
112 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
113 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
114 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
115 Extend existing hack on target name.
116 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
117 target name.
118 * coff-tic54x.c (ticof): Keep up to date with new fields
119 in bfd_coff_backend_data.
120 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
121 targ_selvecs to include rs6000coff64_vec for rs6000.
122 * configure.in: Add rs6000coff64_vec case.
123 * cpu-powerpc.c: New bfd_arch_info_type.
124
125 Mon Apr 24 02:17:31 2000 Jeffrey A Law (law@cygnus.com)
126
127 * config.bfd: Only disable elf32-hppa vectors, not all of the
128 BSD and OSF configuration support. Provide (disabled) clauses
129 for PA64 support.
130 * configure.in: Add clause for PA64 support.
131 * configure: Rebuilt.
132
133 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
134 (bfd_elf64_hppa_vec): Declare.
135
136 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
137 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
138 (elf64-hppa.lo): Add dependencies.
139 * Makefile.in: Rebuilt.
140
141 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
142
143 Mon Apr 24 02:14:29 2000 Jason Eckhardt <jle@cygnus.com>
144
145 * libhppa.h (dis_assemble_16): New function.
146 (pa_arch): Added pa20w element.
147
148 Mon Apr 24 01:49:03 2000 Ulrich Drepper <drepper@cygnus.com>
149
150 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
151 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
152 bfd_elf64_slurp_reloc_table.
153
154 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
155 definitions to get external names.
156 (elf_write_relocs): Renamed from write_relocs and make global.
157 (elf_slurp_reloc_table): Make global.
158 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
159
160 * archive.c (hpux_uid_gid_encode): New function.
161 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
162 defined and the ID is greater than 99999.
163 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
164 special uid/gid fields into 32 bit values.
165
166 2000-04-21 Matthew Green <mrg@cygnus.com>
167
168 * config.bfd: Add NetBSD/sparc64 support.
169
170 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
171 David Mosberger <davidm@hpl.hp.com>
172 Timothy Wall <twall@cygnus.com>
173 Jim Wilson <wilson@cygnus.com>
174
175 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
176 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
177 (BFD64_BACKENDS): Add elf64-ia64.lo.
178 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
179 (cpu-ia64.lo, elf64-ia64.lo): New rules.
180 * Makefile.in: Rebuild.
181 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
182 (bfd_ia64_arch): Declare.
183 (bfd_archures_list): Add bfd_ia64_arch.
184 * bfd-in2.h: Rebuild.
185 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
186 * configure: Rebuild.
187 * configure.host: (ia64-*-linux*): New host.
188 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
189 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
190 * elf.c (prep_headers): Add bfd_arch_ia64.
191 * libbfd.h: Rebuild.
192 * reloc.c: Add IA-64 relocations.
193 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
194 Declare.
195 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
196 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
197
198 2000-04-21 Richard Henderson <rth@cygnus.com>
199
200 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
201 contents when performing a partial link.
202 (bfd_elf_d30v_reloc_21): Likewise.
203
204 2000-04-20 H.J. Lu <hjl@gnu.org>
205
206 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
207 patch to symbols defined by a shared object.
208 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
209
210 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
211
212 K&R compiler fixes.
213 * dwarf2.c (concat_filename): Avoid string literal concatenation.
214 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
215
216 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
217
218 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
219 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
220 (coff-ia64.lo): Add dependency.
221 * Makefile.in: Regenerate.
222 * coff-ia64.c: New file.
223 * efi-app-ia32.c: Ditto.
224 * efi-app-ia64.c: Ditto.
225 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
226 (coff_set_flags): Ditto.
227 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
228 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
229 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
230 * configure: Regenerate.
231 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
232 (PUT_OPTHDR_IMAGE_BASE): Ditto.
233 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
234 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
235 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
236 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
237 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
238 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
239 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
240 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
241 (GET_PDATA_ENTRY): Ditto.
242 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
243 data_start. Use above macros to read fields that are 64 bit wide for
244 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
245 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
246 FileAlignment and SectionAlignment to minimum alignment if they
247 are zero.
248 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
249 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
250 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
251 Use above macros to write fields that are 64 bit wide for
252 COFF_WITH_PEP64.
253 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
254 5*4 otherwise. This should be right for IA-32 and IA-64, but may
255 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
256 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
257 begin address, end address, and unwind info address only. Use
258 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
259 print addresses.
260 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
261 HIGH3ADJ relocation names.
262 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
263 * targets.c: Declare bfd_efi_app_ia32_vec and
264 bfd_efi_app_ia64_vec.
265 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
266 bfd_efi_app_ia64_vec.
267
268 2000-04-17 Timothy Wall <twall@cygnus.com>
269
270 * bfd-in2.h: Add prototypes for tic54x load page access.
271 * bfd-in.h: Regenerate.
272 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
273 in customized _set_arch_mach function.
274 * coffcode.h (coff_set_alignment_hook): Set section load page if
275 the appropriate macro is defined.
276 (write_object_contents): Read section load page.
277
278 2000-04-13 Alan Modra <alan@linuxcare.com.au>
279
280 * elf32-hppa.h: Update copyright date.
281
282 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
283 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
284
285 * elf32-d30v.c (MAX32): Don't use LL suffix.
286 (MIN32): Define in terms of MAX32.
287 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
288
289 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
290 expression.
291
292 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
293
294 2000-04-12 Alan Modra <alan@linuxcare.com.au>
295
296 * dep-in.sed: Match space before file name, not after.
297
298 * Makefile.am: Regenerate dependencies.
299 * Makefile.in: Regenerate.
300
301 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
302 case, allow address wrap-around stupidly removed 2000-03-17. Sign
303 extend without an if statement.
304
305 2000-04-11 Alan Modra <alan@linuxcare.com.au>
306
307 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
308 signed quantites.
309 * elf32-mips.c (gprel16_with_gp): Likewise.
310 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
311 here using -0x40000, not (int)0xfffc0000.
312 (elf32_hppa_size_of_stub): Likewise.
313
314 2000-04-11 Timothy Wall <twall@cygnus.com>
315
316 * coff-tic54x.c: Now builds with all targets.
317 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
318 * Makefile.in: Regenerate.
319 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
320 unitialized variable.
321
322 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
323
324 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
325 --enable-build-warnings option.
326 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
327 * Makefile.in, configure: Re-generate.
328
329 2000-04-07 Nick Clifton <nickc@cygnus.com>
330
331 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
332 BFD_RELOC_THUMB_PCREL_BLX.
333
334 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
335 R_ARM_XPC25 and R_ARM_THM_PC22.
336
337 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
338 R_ARM_XPC25 and R_ARM_THM_XPC22.
339 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
340 R_ARM_[XPC25|THM_XPC22].
341
342 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
343 elf/arm-oabi.h to elf/arm.h
344
345 * Makefile.am: Fix dependency for elfarm-oabi.c
346 * Makefile.in: Regenerate.
347
348 * bfd-in2.h: Regenerate.
349 * libbfd.h: Regenerate.
350
351 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
352
353 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
354 and restore it on failure. Release newly allocated tdata on
355 failure.
356
357 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
358
359 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
360 (decode_line_info): Set it. Report error if unit->line_offset is
361 equal to or larger than it.
362
363 2000-04-07 Timothy Wall <twall@cygnus.com>
364
365 * targets.c: Added vecs for tic54x.
366 * reloc.c: Added relocs for tic54x.
367 * libbfd.h: Regenerated.
368 * configure: Add TI COFF vecs for tic54x.
369 * configure.in: Ditto.
370 * config.bfd (targ_cpu): Recognize new tic54x target.
371 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
372 * bfd-in2.h: Add tic54x target and relocations.
373 * Makefile.am, Makefile.in: Add tic54x target.
374 * archures.c (bfd_archures_list): Add tic54x target.
375 * coff-tic54x.c: New.
376 * cpu-tic54x.c: New.
377
378 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
379
380 * elfcore.h (elf_core_file_p): call backend_object_p which
381 thereby gets an opportunity to update the arch/machine type.
382
383 2000-04-06 Timothy Wall <twall@cygnus.com>
384
385 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
386 class. Handle SEC_CLINK and SEC_BLOCK flags.
387 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
388 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
389
390 2000-04-06 Nick Clifton <nickc@cygnus.com>
391
392 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
393 EF_INTERWORK if this is an unknown EABI.
394 (elf32_arm_merge_private_bfd_data): Check EABI version
395 numbers. Only check EF_xxx flags if the EABI version number
396 is unknown.
397 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
398 if the EABI version number is unknown.
399 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
400 if the EABI version number is unknown.
401
402 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
403
404 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
405 BFD_RELOC_SH_LOOP_END.
406 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
407 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
408 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
409 (sh_elf_reloc_loop): New function.
410 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
411 any more.
412 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
413 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
414 * bfd-in2.h, libbfd.h: Regenerate.
415
416 2000-04-04 Alan Modra <alan@linuxcare.com.au>
417
418 * po/bfd.pot: Regenerate.
419
420 * Makefile.am: Remove extraneous mkdep comment.
421 (MKDEP): Use gcc -MM rather than mkdep.
422 (DEP): Quote when passing vars to sub-make. Add warning
423 message to end.
424 (DEP1): Rewrite for "gcc -MM".
425 (CLEANFILES): Add DEP2.
426 Update dependencies.
427 * Makefile.in: Regenerate.
428
429 2000-04-03 Kevin Buettner <kevinb@redhat.com>
430
431 * configure.in: Added corefile support for AIX 4.3. In particular,
432 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
433 compiling rs6000-core.c.
434 * configure: Regenerated.
435
436 2000-04-03 H.J. Lu <hjl@gnu.org>
437
438 * cache.c (bfd_open_file): Unlink the output file only if
439 it has non-zero size.
440
441 2000-04-01 Ken Block USG <block@zk3.dec.com>
442
443 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
444 relative relocations for non-loaded sections in shared objects.
445 (elf64_alpha_check_relocs): Similarly.
446
447 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
448
449 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
450 BFD_RELOC_16 to switch for extended relocs.
451 (MY_swap_ext_reloc_in): New.
452 (MY_swap_ext_reloc_out): New.
453 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
454 than NAME(aout,swap_ext_reloc_in) for extended relocs.
455 (NAME(aout,squirt_out_relocs)): Similarly use
456 MY_swap_ext_reloc_out.
457 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
458
459 2000-04-03 Kazu Hirata <kazu@hxi.com>
460
461 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
462 the R_PCRWORD_B case.
463
464 2000-03-31 Thomas de Lellis <tdel@wrs.com>
465
466 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
467 on some targets.
468 * ihex.c : Ditto.
469
470 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
471
472 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
473 HOWTO references to bfd_elf_generic_reloc, that have
474 partial_inplace == true, now use the new function. The function
475 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
476 extends its fixes to the R_M32R_{16,24,32} relocs.
477 The new logic in m32r_elf_lo16_reloc() has been removed, and
478 it instead calls the new routine to obtain that functionality.
479
480 2000-03-27 Alan Modra <alan@linuxcare.com.au>
481
482 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
483 elf32_avr_check_relocs, avr_final_link_relocate,
484 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
485 elf32_avr_object_p): Add prototypes.
486 (elf32_avr_gc_mark_hook): Add default for h->root.type.
487 (bfd_elf_avr_final_write_processing): Make static.
488
489 2000-03-27 Denis Chertykov <denisc@overta.ru>
490
491 * cpu-avr.c: New file. BFD support routines for AVR architecture.
492 * archures.c (bfd_architecture): Add AVR architecture.
493 (bfd_archures_list): Add reference to AVR architecture info.
494 * elf.c (prep_headers): Handle bfd_arch_avr.
495 * reloc.c: Add various AVR relocation enums.
496 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
497 list.
498 * Makefile.am: Add support for AVR elf.
499 * configure.in: Likewise.
500 * config.bfd: Likewise.
501 * Makefile.in: Regenerate.
502 * configure: This too.
503 * bfd-in2.h: And this.
504 * libbfd.h: And this.
505
506 2000-03-24 H.J. Lu <hjl@gnu.org>
507
508 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
509 (elf64_alpha_find_reloc_at_ofs): Likewise.
510
511 2000-03-17 Alan Modra <alan@linuxcare.com.au>
512
513 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
514 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
515 allowable range used to be -2**(n-1) to 2**n-1.
516 * reloc.c (_bfd_relocate_contents): Same here. Also replace
517 "boolean overflow" with "bfd_reloc_status_type flag".
518
519 2000-03-14 Doug Evans <dje@casey.transmeta.com>
520
521 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
522
523 2000-03-14 Kazu Hirata <kazu@hxi.com>
524
525 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
526 of shrinks properly, including the last reloc.
527
528 2000-03-13 Kazu Hirata <kazu@hxi.com>
529
530 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
531 check for R_MOVL2.
532
533 2000-03-11 Alan Modra <alan@linuxcare.com.au>
534
535 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
536 a format mismatch rather than an "error" from bfd_read such as
537 bfd_error_file_truncated.
538
539 2000-03-10 Geoff Keating <geoffk@cygnus.com>
540
541 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
542 sign-extension and big-endian compensation for
543 R_MIPS_64 even in ld -r.
544
545 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
546
547 * elf32-mips.c (mips_elf_next_relocation): Rename from
548 mips_elf_next_lo16_relocation, and generalize to look
549 for any relocation type.
550 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
551 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
552 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
553 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
554 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
555 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
556 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
557 (mips_rtype_to_howto): Likewise.
558 (mips_elf_calculate_relocation): Handle new relocs.
559 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
560 are paired. The addend for R_MIPS_GNU_REL16_S2
561 is shifted right two bits.
562
563 2000-03-10 Alan Modra <alan@linuxcare.com.au>
564
565 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
566 comment, and ensure it doesn't happen again.
567 (bfd_install_relocation): Same here.
568 (_bfd_relocate_contents): Don't bother assigning unused signmask
569 shift result. Fix typos in comments.
570 Remove trailing whitespace throughout file.
571
572 2000-03-07 Doug Evans <dje@casey.transmeta.com>
573
574 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
575 * bfd-in2.h: Rebuild.
576
577 2000-03-06 Nick Clifton <nickc@cygnus.com>
578
579 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
580 sym_ptr_ptr fields.
581 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
582 (SIZEOF_ILF_STRINGS): Redefine.
583 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
584 relative reloc, as opposed to a section relative reloc.
585 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
586 not C_LABEL.
587 Add length of symbol's prefix to string pointer.
588 Store a pointer to the symbol in the symbol pointer table.
589 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
590 Initialise the symbol pointer table.
591 Store the hint in the Hint/Name table.
592 Make the jump reloc be symbol realtive, not section relative.
593 Create an import symbol for imported code.
594
595 2000-03-06 Catherine Moore <clm@cygnus.com>
596
597 * elf.c (swap_out_syms): Check for null type_ptr.
598
599 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
600
601 * aout-target.h (MY(write_object_contents)): Remove unused
602 and unusable "#if CHOOSE_RELOC_SIZE".
603 * pc532-mach.c (MY(write_object_contents)): Ditto.
604 * netbsd.h (MY(write_object_contents)): Ditto.
605 * hp300hpux.c (MY(write_object_contents)): Ditto.
606 * freebsd.h (MY(write_object_contents)): Ditto.
607 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
608
609 2000-02-29 H.J. Lu <hjl@gnu.org>
610
611 * peicode.h (jtab): Make it static.
612
613 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
614 defined and COFF_IMAGE_WITH_PE is not defined.
615 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
616 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
617
618 2000-03-01 Nick Clifton <nickc@cygnus.com>
619
620 * coff-arm.c (bfd_arm_process_before_allocation): Make
621 'symndx' signed to prevent compile time warning.
622
623 * coff-mcore.c: Remove unused prototype for pe_object_p.
624
625 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
626 functions that are not used when COFF_IMAGE_WITH_PE is
627 defined.
628 (struct sh_opcode): Change type of 'flags' field to unsigned
629 long so that it can hold the USESAS flag.
630
631 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
632
633 * elf-m10300.c (mn10300_elf_relax_section): Initialise
634 'sym_sec'.
635
636 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
637 parameters.
638 Remove unusued variables and code.
639 (elf_backend_add_symbol_hook): Fix prototype.
640
641 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
642 'srelgot'.
643
644 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
645 'oldinst'.
646
647 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
648 parameters.
649 Remove unusued variables and code.
650 (elf_backend_add_symbol_hook): Fix prototype.
651
652 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
653
654 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
655 to unused function parameter.
656
657 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
658 parameters.
659 Use EMPTY_HOWTO to initialise empty howto slots.
660 Remove unused variables.
661
662 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
663
664 2000-03-01 H.J. Lu <hjl@gnu.org>
665
666 * aoutx.h (aout_link_input_section_std): Pass "true" to
667 the undefined_symbol callback.
668 (aout_link_input_section_ext): Likewise.
669 * bout.c (get_value): Likewise.
670 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
671 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
672 Likewise.
673 (alpha_relocate_section): Likewise.
674 * coff-arm.c (coff_arm_relocate_section): Likewise.
675 * coff-i960.c (coff_i960_relocate_section): Likewise.
676 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
677 * coff-mips.c (mips_relocate_section): Likewise.
678 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
679 * coff-sh.c (sh_relocate_section): Likewise.
680 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
681 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
682 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
683 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
684 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
685 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
686 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
687 * elf32-i370.c (i370_elf_relocate_section): Likewise.
688 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
689 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
690 * elf32-sh.c (sh_elf_relocate_section): Likewise.
691 * elf32-v850.c (v850_elf_relocate_section): Likewise.
692 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
693 * elflink.h (elf_link_output_extsym): Likewise.
694 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
695 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
696 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
697
698 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
699 undefined_symbol callback when building shared library with
700 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
701 "true".
702 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
703 * elf32-i386.c (elf_i386_relocate_section): Likewise.
704 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
705 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
706 (elf32_mips_get_relocated_section_content): Likewise.
707 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
708 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
709 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
710 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
711
712 2000-02-28 Nick Clifton <nickc@cygnus.com>
713
714 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
715 * Makefile.in: Regenerate.
716
717 * configure.in: Add support for mips and sh pe vectors.
718 * configure: regenerate.
719
720 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
721 targets.
722
723 * targets.c: Add mips and sh pe vectors.
724
725 * libpei.h (coff_final_link_postscript): Only define if not
726 already defined.
727
728 * coffcode.h: Add support for WinCE magic numbers.
729
730 * peigen.c (pe_print_reloc): Update comment and rearrange
731 appending of newline character.
732
733 * peicode.h: Add support for Image Library Format.
734 (pe_ILF_vars): Structure containing data used by ILF code.
735 (pe_ILF_make_a_section): New function. Create a section based
736 on ILF data.
737 (pe_ILF_make_a_reloc): New function. Create a reloc based on
738 ILF data.
739 (pe_ILF_make_a_symbol): New function. Create a symbol based
740 on ILF data.
741 (pe_ILF_save_relocs): New function. Store the relocs created
742 by pe_ILF_make_a_reloc in a section.
743 (pe_ILF_build_a_bfd): New function. Create a BFD describing
744 an ILF object.
745 (pe_ILF_object_p): New function. Return a bfd_target pointer
746 for an ILF object.
747 (pe_bfd_object_p): If an ILF object is detected call
748 pe_ILF_object_p on it.
749
750 * coff-arm.c: Add support for WinCE relocs which are different
751 from normal ARM COFF relocs.
752 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
753
754 * coff-sh.c: Add support for sh-pe target.
755 * pe-sh.c: New file. Support code for sh-pe target.
756 * pei-sh.c: New file. Support code for sh-pe target.
757
758 * pe-mips.c: New file. Support code for mips-pe target.
759 * pei-mips.c: New file. Support code for mips-pe target.
760
761 2000-02-27 Jakub Jelinek <jakub@redhat.com>
762
763 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
764 architecture if the object causing the bump is dynamic.
765 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
766 and also don't it for memory ordering.
767 (sparc64_elf_write_relocs): Take src_rela out of the loop.
768
769 2000-02-27 Ian Lance Taylor <ian@zembu.com>
770
771 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
772 calling bfd_get_section_size_before_reloc.
773 (decode_line_info): Likewise.
774 (_bfd_dwarf2_find_nearest_line): Likewise.
775
776 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
777
778 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
779 name of the libtool directory.
780 * Makefile.in: Rebuild.
781
782 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
783
784 * som.c (SOM_HOWTO): Define.
785 (som_hppa_howto_table): Use it.
786
787 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
788
789 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
790
791 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
792
793 2000-02-24 Catherine Moore <clm@cygnus.com>
794
795 * som.c (som_misc_symbol_info): Add field
796 secondary_def.
797 (som_bfd_derive_misc_symbol_info): Initialize
798 secondary_def.
799 (som_build_and_write_symbol_table): Keep track
800 of secondary_def field.
801 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
802 if secondary_def field is set.
803 (som_bfd_ar_write_symbol_stuff): Initialize
804 secondary_def.
805
806 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
807
808 * dwarf2.c (read_address): Read 16-bits addresses.
809 (parse_comp_unit): Accept addr_size == 2.
810
811 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
812
813 * bfd-in.h: Update copyright date.
814
815 2000-02-23 Linas Vepstas <linas@linas.org>
816
817 * cpu-i370.c: New file.
818 * elf32-i370.c: New file.
819 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
820 (bfd_i370_arch): New.
821 (bfd_archures_list): Add bfd_i370_arch.
822 * elf.c (prep_headers): Add bfd_arch_i370.
823 * Makefile.am: Add support for IBM 370 elf.
824 * config.bfd: Likewise.
825 * configure.in: Likewise.
826 * libbfd.h (bfd_reloc_code_real_names): Likewise.
827 * reloc.c (bfd_reloc_code_type): Likewise.
828 * targets.c: Likewise.
829
830 * Makefile.in: Regenerate.
831 * configure: Regenerate.
832 * bfd-in2.h: Regenerate.
833
834 2000-02-22 Ian Lance Taylor <ian@zembu.com>
835
836 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
837 invalid relocation types, and change them to R_386_NONE.
838
839 2000-02-22 H.J. Lu <hjl@gnu.org>
840
841 * elflink.h (elf_link_add_object_symbols): If a version symbol is
842 not defined, don't add a second ELF_VER_CHR.
843
844 * elflink.h (elf_bfd_final_link): Call output_extsym for global
845 symbols converted to local symbols even when stripping all
846 symbols.
847 (elf_link_output_extsym): Process global symbols converted to
848 local symbols even if they are being stripped.
849
850 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
851
852 * archures.c (bfd_octets_per_byte): Return unsigned int.
853 (bfd_arch_mach_octets_per_byte): Ditto.
854 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
855 comparison warning.
856 * section.c (bfd_get_section_size_before_reloc): Quell signed
857 vs. unsigned comparison warning.
858 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
859 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
860 change. What was I thinking?
861 * bfd-in2.h: Regenerate.
862
863 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
864 (elf_gc_sections): Same here.
865 (elf_gc_common_finalize_got_offsets): And here.
866
867 2000-02-21 Ian Lance Taylor <ian@zembu.com>
868
869 ELF HPPA doesn't work at present; remove it until it does.
870 * config.bfd: Comment out setting targ_defvec to
871 bfd_elf32_hppa_vec.
872 * Makefile.am: Rebuild dependencies.
873 (BFD32_BACKENDS): Remove elf32-hppa.lo.
874 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
875 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
876 * Makefile.in: Rebuild.
877 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
878
879 2000-02-18 Geoff Keating <geoffk@cygnus.com>
880
881 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
882 is no bfd_free(). Revert bfd_free part of previous change.
883
884 2000-02-18 Geoff Keating <geoffk@cygnus.com>
885
886 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
887 arrays.
888 (coff_compute_section_file_positions): Use bfd_free to pair
889 bfd_malloc.
890 (coff_write_object_contents): Likewise.
891
892 * coff-rs6000.c (xcoff_howto_table_16): New variable.
893 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
894
895 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
896
897 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
898 (xcoff_ar_file_hdr_big): New structure.
899 (SIZEOF_AR_FILE_HDR_BIG): New macro.
900 (xcoff_ar_hdr_big): New structure.
901 (SIZEOF_AR_HDR_BIG): New macro.
902 (xcoff_big_format_p): New macro.
903 (xcoff_ardata_big): New macro.
904 (arch_xhdr_big): New macro.
905 (xcoff_slurp_armap): Handle large archives.
906 (xcoff_archive_p): Detect large archives.
907 (xcoff_read_ar_hdr): Handle large archives.
908 (xcoff_openr_next_archived_file): Handle large archives.
909 (xcoff_generic_stat_arch_elt): Handle large archives.
910 (xcoff_write_armap_old): Rename from xcoff_write_armap.
911 (xcoff_write_armap_big): New function.
912 (xcoff_write_armap): New function, dispatch to _old or _big.
913 (xcoff_write_archive_contents_old): Rename from
914 xcoff_write_archive_contents.
915 (xcoff_write_archive_contents_big): New function.
916 (xcoff_write_archive_contents): New function, dispatch to _old or
917 _big.
918
919 2000-02-18 Richard Henderson <rth@cygnus.com>
920
921 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
922 and hide_symbol members.
923 (elf_link_hash_copy_indirect): Remove.
924 (elf_link_hash_hide_symbol): Remove.
925 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
926 and elf_backend_hide_symbol.
927 (_bfd_elf_link_hash_copy_indirect): Declare.
928 (_bfd_elf_link_hash_hide_symbol): Declare.
929 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
930 (_bfd_elf_link_hash_hide_symbol): Likewise.
931 (_bfd_elf_link_hash_table_init): Don't init killed members.
932 * elflink.h (elf_link_add_object_symbols): Use the bed function
933 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
934 (elf_link_assign_sym_version): Likewise.
935 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
936 (elf_backend_hide_symbol): Likewise.
937 (elfNN_bed): Update for new members.
938
939 2000-02-17 Kevin Buettner <kevinb@redhat.com>
940
941 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
942 STACK_END_ADDR): Define for new core file format.
943 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
944 for handling the vagaries of the various core file structures used
945 by AIX over the years.
946 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
947 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
948 core_dumpx structure.
949
950 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
951
952 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
953 (bfd_mach_sh3_dsp): Likewise.
954 (bfd_mach_sh4): Reinstate.
955 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
956 * bfd-in2.h: Regenerate.
957 * coff-sh.c (struct sh_opcode): flags is no longer short.
958 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
959 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
960 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
961 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
962 (sh_opcodes): No longer const.
963 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
964 (sh_insn_uses_reg): Check for USESAS and USESR8.
965 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
966 (_bfd_sh_align_load_span): Return early for SH4.
967 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
968 Take into account that field b of a parallel processing insn
969 could be mistaken for a separate insn.
970 * cpu-sh.c (arch_info_struct): New array elements for
971 sh2, sh-dsp and sh3-dsp.
972 Reinstate element for sh4.
973 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
974 (SH4_NEXT): Reinstate.
975 (SH3_NEXT, SH3E_NEXT): Adjust.
976 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
977 * elf32-sh.c (sh_elf_set_private_flags): New function.
978 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
979 (sh_elf_merge_private_data): New function.
980 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
981 (bfd_elf32_bfd_copy_private_bfd_data): Define.
982 (bfd_elf32_bfd_merge_private_bfd_data): Change to
983 sh_elf_merge_private_data.
984
985 2000-02-13 Richard Henderson <rth@cygnus.com>
986
987 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
988 hide_symbol members.
989 (elf_link_hash_copy_indirect): New.
990 (elf_link_hash_hide_symbol): New.
991 * elflink.h (elf_link_add_object_symbols): Break out copy from
992 indirect new new symbol to elf.c.
993 (elf_link_assign_sym_version): Break out privatization of
994 non-exported symbol to elf.c.
995 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
996 (_bfd_elf_link_hash_hide_symbol): New.
997 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
998
999 2000-02-13 Ian Lance Taylor <ian@zembu.com>
1000
1001 * section.c (_bfd_strip_section_from_output): Add info parameter.
1002 If it passed as non-NULL, use it to check whether any input BFD
1003 has an input section which uses this output section. Change all
1004 callers.
1005 * bfd-in2.h: Rebuild.
1006
1007 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
1008 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
1009 1999-11-29.
1010 * bfd-in2.h: Rebuild.
1011
1012 2000-02-10 Timothy Wall <twall@cygnus.com>
1013
1014 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
1015 allow final modifications of swapped-in symbol.
1016 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
1017 * coffcode.h (coff_write_relocs): Use macro
1018 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
1019 symbol index should be set to -1.
1020
1021 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
1022
1023 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
1024 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
1025 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
1026 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
1027 sh_insns_uses_or_sets_freg): New functions.
1028 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
1029 * (sh_insns_conflict): Use new functions and new macros to
1030 detect conflicts when two instructions both set same integer registers,
1031 both set same fp register, and both set special register.
1032
1033 2000-02-09 Timothy Wall <twall@cygnus.com>
1034
1035 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
1036 swapping in sections, so that the swapping routines have access to
1037 the arch/mach info.
1038
1039 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
1040
1041 * coff-go32.c: Update comment. Update copyright.
1042
1043 2000-01-27 Thomas de Lellis <tdel@windriver.com>
1044
1045 * syms.c (bfd_decode_symclass)
1046 Two new class characters were added - 'V' and 'v'. The
1047 meaning of 'W' is now restricted to just weak non-object
1048 symbols. This allows differentiation between, for example,
1049 weak functions vs weak objects. nm for example now dumps:
1050 'W' = weak global
1051 'w' = weak unresolved
1052 'V' = weak global object
1053 'v' = weak unresolved object
1054
1055 (bfd_is_undefined_symclass): New function. Return true if the
1056 given symbol class represents and undefined/unresolved symbol.
1057
1058 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
1059 unresolved symbols.
1060
1061 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
1062
1063 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
1064 STT_ARM_16BIT flag set, but it is not attached to a data object
1065 return STT_ARM_16BIT so that it will be treated as code by the
1066 disassembler.
1067
1068 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
1069
1070 * coff-i386.c (i3coff_object_p): Remove prototype.
1071 Update copyright.
1072
1073 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
1074 to name. Update copyright.
1075
1076 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
1077 assignment to avoid warning. Update copyright.
1078
1079 2000-01-24 Robert Lipe (robertl@sco.com)
1080
1081 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
1082 instead of using GNU C extension.
1083
1084 2000-01-21 Nick Clifton <nickc@cygnus.com>
1085
1086 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
1087 amount from a bfd_in_memory structure.
1088 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
1089 structure.
1090
1091 2000-01-14 Nick Clifton <nickc@cygnus.com>
1092
1093 * linker.c (default_indirect_link_order): oops - fix incorrectly
1094 applied patch from Tim Wall.
1095
1096 2000-01-13 Timothy Wall (twall@tiac.net>
1097
1098 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
1099 = scnhsz, filhsz, relsz, aoutsz, etc)
1100
1101 * coffswap.h: Ditto.
1102
1103 2000-01-13 Nick Clifton <nickc@cygnus.com>
1104
1105 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
1106 interwork thumb to arm stub.
1107
1108 2000-01-13 Timothy Wall (twall@tiac.net>
1109
1110 * archures.c (bfd_octets_per_byte): New function: Return
1111 target byte size.
1112 (bfd_arch_mach_octets_per_byte): New function: Return target
1113 byte size.
1114
1115 * section.c: Distinguish between octets and bytes for usage of
1116 _cooked_size, _raw_size, and output_offset. Clarify
1117 description of bfd_set_section_contents.
1118
1119 * bfd-in2.h: Regenerate.
1120
1121 * coffgen.c: Indicate that the offset parameter is in bytes, not
1122 octets.
1123
1124 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
1125 where appropriate to get the octet offset when calling
1126 bfd_set_section_contents.
1127 (bfd_coff_reloc_link_order): Ditto.
1128
1129 * linker.c (bfd_generic_reloc_link_order): Ditto.
1130 (_bfd_default_link_order): Ditto.
1131
1132 * reloc.c (bfd_perform_relocation): Distinguish between octets
1133 and bytes. Use octets when indexing into octet data; use bytes
1134 when calculating target addresses.
1135 (bfd_install_relocation): Ditto.
1136
1137 * srec.c (srec_write_section): Ditto.
1138
1139 2000-01-13 Nick Clifton <nickc@cygnus.com>
1140
1141 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
1142 3 to 2. This allows 4 byte sized sections, which is necessary for
1143 dlltool to build funcitoning DLLs.
1144
1145 2000-01-10 Philip Blundell <pb@futuretv.com>
1146
1147 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
1148 (arm*-*-conix*): New target.
1149
1150 2000-01-10 Egor Duda <deo@logos-m.ru>
1151
1152 * config.bfd: Include elf32_i386 vector to target list for cygwin
1153 and mingw.
1154
1155 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
1156 * configure.in: Test for structure win32_pstatus_t in
1157 <sys/procfs.h>
1158 * configure: Regenerate.
1159
1160 * elf.c (elfcore_grok_win32pstatus): New function: process
1161 win32_pstatus_t notes in elf core file.
1162 (elfcore_grok_note): Detect win32_pstatus notes.
1163
1164 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
1165
1166 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
1167 visibility.
1168 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
1169 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
1170
1171 1999-12-29 Richard Henderson <rth@cygnus.com>
1172
1173 * elflink.h (bfd_elf,size_dynamic_sections): Don't export all
1174 if no dynamic sections created.
1175
1176 1999-12-27 Nick Clifton <nickc@cygnus.com>
1177
1178 * peicode.h (pe_bfd_object_p): Only define for PE format
1179 targets.
1180
1181 1999-12-17 Nick Clifton <nickc@cygnus.com>
1182
1183 * coff-i386.c (i3coff_object_p): Delete.
1184 (i386coff_vec): Replace reference to i3coff_object_p with a
1185 reference to coff_object_p.
1186
1187 * coff-mcore.c (pe_object_p): Delete.
1188
1189 * peicode.h (pe_bfd_object_p): New function: Detect the
1190 presence of a PE format COFF object file. Also detect and
1191 warn about the presence of LINK6 format Image Library Format
1192 object files.
1193
1194 1999-12-16 Nick Clifton <nickc@cygnus.com>
1195
1196 * coff-arm.c (NUM_ELEM): New macro.
1197 (NUM_RELOCS): New macro: The number of known ARM relocs.
1198 (RTYPE2HOWTO): Return NULL if the reloc type is out of range.
1199 (coff_arm_rtype_to_howto): Return NULL if the reloc type is out
1200 of range.
1201 (bfd_arm_process_before_allocation): Produce a warning message if
1202 an out of range symbol index is encountered.
1203
1204 1999-12-14 Nick Clifton <nickc@cygnus.com>
1205
1206 * elflink.h (is_global_symbol_definition): New Function: Return
1207 true iff the symbol is being given a global definition in this
1208 bfd.
1209 (elf_link_is_defined_archive_symbol): Do not bother processing
1210 symbols for an archive element that has already been included
1211 in the link.
1212 Use is_global_symbol_definition().
1213
1214 1999-12-09 Andrew Cagney <cagney@cygnus.com>
1215
1216 * config.bfd: Add support for sparc-*-netbsdelf* and
1217 sparc-*-netbsdaout*.
1218
1219 1999-12-13 Nick Clifton <nickc@cygnus.com>
1220
1221 * elflink.h (elf_link_is_defined_archive_symbol): Check to see
1222 if the symbol is in the common section.
1223
1224 1999-12-10 Nick Clifton <nickc@cygnus.com>
1225
1226 * elflink.h (elf_link_is_defined_archive_symbol): New
1227 function: Decide if a symbol, in an archive map is there
1228 because it is defined in the archive element, or because it is
1229 just another common declaration of it.
1230 (elf_link_add_archive_symbols): Use
1231 elf_link_is_defined_archive_symbol to decide if an archive
1232 element contain a reference to a common symbol should be
1233 linked in or not.
1234
1235 1999-12-10 Nick Clifton <nickc@cygnus.com>
1236
1237 * elflink.h: Revert previous patch.
1238 * targets.c: Revert previous patch.
1239 * libbfd-in2.h: Revert previous patch.
1240 * libbfd.h: Revert previous patch.
1241 * elfxx-target.h: Revert previous patch.
1242 * archive.c: Revert previous patch.
1243 * aout-target.h: Revert previous patch.
1244 * aout-tic30.h: Revert previous patch.
1245 * bfd.c: Revert previous patch.
1246 * coff-alpha.c: Revert previous patch.
1247 * coff-rs6000.c: Revert previous patch.
1248 * elf64-mips.c: Revert previous patch.
1249 * ieee.c: Revert previous patch.
1250 * libecoff.h: Revert previous patch.
1251 * oasys.c: Revert previous patch.
1252 * som.c: Revert previous patch.
1253 * vms.c: Revert previous patch.
1254
1255 1999-12-09 Nick Clifton <nickc@cygnus.com>
1256
1257 * elflink.h (elf_link_add_archive_symbols): Add an archive
1258 element even if contains a symbol which is currently only
1259 considered to be a common.
1260
1261 * targets.c (struct bfd_target): Add new field
1262 _bfd_allow_commons_in_armap.
1263 * bfd-in2.h:Regenerate.
1264
1265 * libbfd-in2.h (_bfd_noarchive_allow_commons_in_armap):
1266 Define.
1267 (_bfd_archive_bsd_allow_commons_in_armap): Define.
1268 * libbfd.h: Regenerate.
1269
1270 * elfxx-target.h: If using COFF archive map, override
1271 definition of allow_commons_in_armap and replace with
1272 bfd_false.
1273
1274 * archive.c (bfd_compute_and_write_armap): Do not place common
1275 symbols into the archive map unless _bfd_allow_commons_in_armap
1276 returns true.
1277
1278 * aout-target.h (MY_allow_commons_in_armap): Define.
1279 * aout-tic30.h (MY_allow_commons_in_armap): Define.
1280 * bfd.c (bfd_allow_commons_in_armap): Define.
1281 * coff-alpha.h (alpha_ecoff_allow_commons_in_armap): Define.
1282 * coff-rs6000.h (xcoff_allow_commons_in_armap): Define.
1283 * elf64-mips.c (bfd_elf64_allow_commons_in_armap): Define.
1284 * ieee.c (ieee_ecoff_allow_commons_in_armap): Define.
1285 * libecoff.h (_bfd_ecoff_allow_commons_in_armap): Define.
1286 * oasys.c (oasys_allow_commons_in_armap): Define.
1287 * som.c (som_allow_commons_in_armap): Define.
1288 * vms.c (vms_allow_commons_in_armap): Define.
1289
1290 1999-12-07 Jim Blandy <jimb@cygnus.com>
1291
1292 Add support for SSE registers in ELF core files.
1293 * elf.c (elfcore_make_note_pseudosection): New function.
1294 (elfcore_grok_prfpreg): Use it.
1295 (elfcore_grok_prxfpreg): New function.
1296 (elfcore_grok_note): Recognize Linux NT_PRXFPREG notes.
1297
1298 1999-12-03 Ian Lance Taylor <ian@zembu.com>
1299
1300 * elf32-mips.c (mips_elf_calculate_relocation): Divide R_MIPS_PC16
1301 value by 4 before storing it back in the field. From
1302 Koundinya. K <kk@ddeorg.soft.net>.
1303
1304 Tue Nov 30 22:41:14 1999 Jeffrey A Law (law@cygnus.com)
1305
1306 * archures.c (bfd_mach_am33): Define.
1307 * bfd-in2.h: Rebuilt.
1308 * cpu-m10300.c (bfd_am33_arch): Add to the mn103 architecture list
1309 * elf-m10300.c (mn10300_elf_relax_section): Handle am33 instructions.
1310 (compute_function_info): Handle additional registers saved by
1311 movm on the am33.
1312 (elf_mn10300_mach): Handle E_MN10300_MACH_AM33.
1313 (_bfd_mn10300_elf_final_write_processing): Handle bfd_mach_am33.
1314
1315 1999-11-29 Jim Blandy <jimb@cygnus.com>
1316
1317 * elf.c (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): New
1318 functions.
1319 * bfd-in2.h (bfd_get_elf_phdrs, bfd_get_elf_phdr_upper_bound): New
1320 declarations.
1321
1322 1999-11-27 Michael Meissner <meissner@cygnus.com>
1323
1324 * reloc.c (BFD_RELOC_ALPHA_USER_LITERAL): New relocation for
1325 internal use within gas for alpha explicit relocations.
1326 (BFD_RELOC_ALPHA_USER_LITUSE_BASE): Ditto.
1327 (BFD_RELOC_ALPHA_USER_LITUSE_BYTOFF): Ditto.
1328 (BFD_RELOC_ALPHA_USER_LITUSE_JSR): Ditto.
1329 (BFD_RELOC_ALPHA_USER_GPDISP): Ditto.
1330 (BFD_RELOC_ALPHA_USER_GPRELHIGH): Ditto.
1331 (BFD_RELOC_ALPHA_USER_GPRELLOW): Ditto.
1332
1333 * elf64-alpha.c (elf64_alpha_reloc_map): Add mappings for
1334 BFD_RELOC_ALPHA_USER_*.
1335
1336 * bfd-in2.h: Regenerate.
1337 * libbfd.h: Regenerate.
1338
1339 1999-11-26 Fred Fish <fnf@cygnus.com>
1340
1341 * elf.c (elfcore_read_notes): Add prototype for static function.
1342 (_bfd_elf_make_section_from_phdr): Renamed from bfd_section_from_phdr.
1343 (bfd_section_from_phdr): Replacement function that calls
1344 _bfd_elf_make_section_from_phdr for generic segment types and
1345 backend fucntion pointed to by elf_backend_section_from_phdr for
1346 backend specific segment types.
1347 (_bfd_elfcore_section_from_phdr): Remove call to elfcore_read_notes,
1348 now called by _bfd_elf_make_section_from_phdr. Note that this func
1349 is now just a stub between the caller and bfd_section_from_phdr.
1350
1351 * elf-bfd.h (struct elf_backend_data): Add new function pointer
1352 elf_backend_section_from_phdr.
1353 (elf_backend_section_from_phdr): Add prototype.
1354
1355 * elfxx-target.h (elf_backend_section_from_phdr): Define default.
1356 (elfNN_bed): Add elf_backend_section_from_phdr.
1357
1358 1999-11-25 Nick Clifton <nickc@cygnus.com>
1359
1360 * coff-arm.c (bfd_arm_get_bfd_for_interworking): Add
1361 SEC_CODE and SEC_READONLY flags to glue sections.
1362
1363 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Add
1364 SEC_CODE and SEC_READONLY flags to glue sections.
1365
1366 1999-11-20 Nick Clifton <nickc@cygnus.com>
1367
1368 * coff-mcore.c (coff_mcore_relocate_section): Fix typo in previous
1369 delta.
1370
1371 1999-11-19 Catherine Moore <clm@cygnus.com>
1372
1373 * elf32-m68k.c (elf_cpu32_plt0_entry): Fix encoding.
1374 (elf_cpu32_plt_entry): Likewise.
1375
1376 1999-11-18 Nick Clifton <nickc@cygnus.com>
1377
1378 * coff-mcore.c (coff_mcore_rtype_to_howto): Special case handling
1379 for RVA relocs.
1380 (coff_mcore_relocate_section): Initialise addend to 0.
1381 Special case processing of RVA reloc.
1382
1383 1999-11-17 Richard Henderson <rth@cygnus.com>
1384
1385 * elf-bfd.h (struct elf_backend_data): Reorder collect and
1386 type_change_ok; add sign_extend_vma.
1387 * elf32-mips.c (elf_backend_sign_extend_vma): Define.
1388 * elfcode.h (elf_swap_symbol_in): Mind be->sign_extend_vma.
1389 (elf_swap_shdr_in, elf_swap_phdr_in): Likewise.
1390 * elfxx-target.h (elf_backend_sign_extend_vma): Default.
1391 (elfNN_bed): Follow struture changes.
1392
1393 1999-11-09 Ian Lance Taylor <ian@zembu.com>
1394
1395 * libbfd.c (bfd_read): Check result of read against desired result
1396 using !=, not <.
1397 (_bfd_generic_get_section_contents): Set bfd_error if the seek is
1398 invalid compared to the section size.
1399
1400 * ieee.c (ieee_slurp_debug): Get the length of the debug
1401 information right if there is no data part.
1402
1403 Tue Nov 2 01:44:41 1999 Jeffrey A Law (law@cygnus.com)
1404
1405 * som.c (som_fixup_formats): Improve handling of R_AUX_UNWIND,
1406 R_LINETAB, R_LINETAB_ESC, and R_COMMENT.
1407
1408 1999-10-28 Ian Lance Taylor <ian@zembu.com>
1409
1410 * elflink.h (elf_bfd_final_link): Make last_local signed.
1411
1412 1999-10-27 Ian Lance Taylor <ian@zembu.com>
1413
1414 * stabs.c (_bfd_link_section_stabs): Make sure .stabstr section
1415 starts with a zero.
1416
1417 Sat Oct 23 17:36:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
1418
1419 * archures.c: Add definitions bfd_mach_d10v, bfd_mach_d10v_ts2 and
1420 bfd_mach_d10v_ts3.
1421 * cpu-d10v.c (d10v_ts3_info, d10v_ts2_info): Add.
1422 * bfd-in2.h: Regenerate.
1423
1424 1999-10-15 Andrew Haley <aph@cygnus.com>
1425
1426 * dwarf1.c (parse_die): Fail to parse a die if its length is zero.
1427
1428 Sun Oct 17 17:19:00 1999 Jeffrey A Law (law@cygnus.com)
1429
1430 * libhppa.h (bfd_hppa_insn2fmt): Change to return an int.
1431
1432 1999-10-08 Ian Lance Taylor <ian@zembu.com>
1433
1434 * elflink.h (elf_merge_symbol): When overriding a weak symbol with
1435 a defined symbol in a shared library, clear the DEF_DYNAMIC flag
1436 too.
1437
1438 Fri Oct 8 13:03:45 1999 Geoffrey Keating <geoffk@cygnus.com>
1439
1440 * elf32-mips.c (mips_elf_calculate_relocation): R_MIPS_LITERAL
1441 relocs also need the GP value.
1442 (_bfd_mips_elf_relocate_section): Handle unpaired LO16 relocs
1443 properly. Handle sign-extension for R_MIPS_64 correctly. Correct
1444 the GP value for R_MIPS_LITERAL relocs too. Handle
1445 R_MIPS_64 relocs properly on big-endian MIPS.
1446 (mips_elf_sign_extend): Behave properly with 'long long'.
1447 (mips_elf_highest): Correct typo.
1448
1449 Mon Oct 4 17:49:45 1999 Nick Clifton <nickc@cygnus.com>
1450
1451 * cpu-m32r.c (arch_info_struct): New static global.
1452 (bfd_m32r_arch): Refer to it.
1453 * elf32-m32r.c (m32r_elf_object_p): Recognize E_M32RX_ARCH.
1454 (m32r_elf_print_private_bfd_data): Ditto.
1455 (m32r_elf_final_write_processing): Handle bfd_mach_m32rx.
1456 * archures.c (bfd_mach_m32rx): Define it.
1457 * bfd-in2.h: Rebuild.
1458
1459 1999-09-28 Fred Fish <fnf@cygnus.com>
1460
1461 * targets.c (cisco_core_vec): Replaced with two new vecs ...
1462 (cisco_core_big_vec): Add new bigendian vec.
1463 (cisco_core_little_vec): Add new little endian vec.
1464
1465 * cisco-core.c (CRASH_INFO): Fixed offset replaced with ...
1466 (crash_info_locs): Add array of possible offsets.
1467 (MASK_ADDR): Mask to apply to crash info offset.
1468 (crashinfo_external): Add textbase, database, bssbase and
1469 turn into a typedef.
1470 (cisco_core_file_validate): Renamed from cisco_core_file_p.
1471 Many small changes to account for additional hardware versions.
1472 Pick a reasonable size for ".reg" section. Add a ".crash"
1473 section to allow access to crashinfo_external struct.
1474 (cisco_core_file_p): New version of this function that
1475 iterates over crash_info_locs, calling cisco_core_file_validate.
1476 (cisco_core_vec): Old big endian only vec replaced with ...
1477 (cisco_core_big_vec): Add big endian version.
1478 (cisco_core_little_vec): Add little endian version.
1479
1480 * configure.in (cisco_core_vec): Split to two new vectors ...
1481 (cisco_core_big_vec): New target vector.
1482 (cisco_core_little_vec): New target vector.
1483 * configure: Regenerate.
1484 * config.bfd (targ): For m68*-*-aout* targ, change cisco_core_vec
1485 to cisco_core_big_vec in targ_selvecs.
1486
1487 1999-09-28 Geoffrey Keating <geoffk@cygnus.com>
1488
1489 * elf32-mips.c (mips_elf_relocate_hi16): Unused, delete.
1490 (mips_elf_relocate_got_local): Unused, delete.
1491 (mips_elf_relocate_global_got): Unused, delete.
1492
1493 1999-09-24 Fred Fish <fnf@cygnus.com>
1494
1495 * elf.c (bfd_section_from_phdr): Add typename variable. Use p_type
1496 to initialize it to something meaningful. Then use it to generate
1497 more useful segment names.
1498
1499 Sun Sep 19 12:16:47 1999 Jeffrey A Law (law@cygnus.com)
1500
1501 * som.c (NO_PCREL_MODES): Define if the system does not define
1502 R_SHORT_PCREL_MODE.
1503 (hppa_som_gen_reloc_type): Handle both short and long pcrel branches.
1504 (som_write_fixups): Eliminate redundant pcrel mode relocs. Handle
1505 R_LONG_PCREL_MODE and R_SHORT_PCREL_MODE
1506 * libhppa.h (dis_assemble_22): New function.
1507 (bfd_hppa_insn2fmt): Handle long branch.
1508
1509 * libhppa.h (bfd_hppa_insn2fmt): Decode and handle formats found
1510 in PA2.0.
1511
1512 1999-09-17 Alan Modra <alan@spri.levels.unisa.edu.au>
1513
1514 * coff-i386.c (coff_i386_reloc_type_lookup): Support BFD_RELOC_16,
1515 BFD_RELOC_16_PCREL, BFD_RELOC_8, BFD_RELOC_8_PCREL relocs.
1516 (reloc_howto_type howto_table): Tidy comments and whitespace.
1517
1518 1999-09-17 Nick Clifton <nickc@cygnus.com>
1519
1520 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Undo
1521 previous delta. Set sec->gc_mark instead.
1522
1523 Thu Sep 16 11:21:13 1999 Catherine Moore <clm@cygnus.com>
1524
1525 * elf32-m68k.c (elf_cpu32_plt0_entry): Use a1 instead of a0.
1526 (elf_cpu32_plt_entry): Likewise.
1527
1528 Thu Sep 16 10:48:17 1999 Jeffrey A Law (law@cygnus.com)
1529
1530 * elf-hppa.h (elf_hppa_final_write_processing): Turn on TRAPNIL.
1531
1532 * elf-hppa.h (elf_hppa_final_link): If unable to find __gp in the
1533 symbol table, then just compute a suitable value (but do not
1534 create a __gp symbol).
1535
1536 * elf-hppa.h (elf_hppa_relocate_section): Allow undefined
1537 symbols when building shared libraries.
1538 (elf_hppa_final_link_relocate): Correct handling of PCREL
1539 relocations against undefined symbols.
1540
1541 1999-09-16 Nick Clifton <nickc@cygnus.com>
1542
1543 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Mark
1544 interworking sections as linker created so that they will not
1545 be removed by garbage collection.
1546
1547 Wed Sep 15 02:31:57 1999 Jeffrey A Law (law@cygnus.com)
1548
1549 * elf-hppa.h (elf_hppa_final_link): Revamp __gp handling.
1550 (elf_hppa_final_link_relocate): Consistently create an absolute
1551 address, then subtract out the value of __gp.
1552
1553 1999-09-14 Michael Meissner <meissner@cygnus.com>
1554
1555 * configure.in (Canonicalization of target names): Remove adding
1556 ${CONFIG_SHELL} in front of $ac_config_sub, since autoconfig 2.14
1557 generates $ac_config_sub with a ${CONFIG_SHELL} already.
1558 * configure: Regenerate.
1559
1560 1999-09-14 Nick Clifton <nickc@cygnus.com>
1561
1562 * elf32-m32r.c (ELF_MAXPAGESIZE): Change to 0x1 (at request of
1563 Mitsubishi).
1564
1565 Mon Sep 13 20:01:47 1999 Jeffrey A Law (law@cygnus.com)
1566
1567 * elf-hppa.h (elf_hppa_record_segment_addrs): New function.
1568 (elf_hppa_final_link): Initialize text_segment_base and
1569 data_segment_base.
1570 (elf_hppa_final_link_relocate): Handle SEGREL relocations.
1571
1572 * elf-hppa.h (elf_hppa_final_link): Remove unused variables.
1573 (elf_hppa_final_link_relocate): Likewise.
1574 (elf_hppa_relocate_insn): Likewise.
1575 (elf_hppa_relocate_section): Initialize HOWTO.
1576
1577 1999-09-13 Donn Terry <donn@interix.com>
1578
1579 * coffcode.h (styp_to_sec_flags): Further refinement of COMDAT
1580 handling to support both GNU and MS objects.
1581
1582 * coffcode.h (coff_write_object_contents): Don't check reloc_count
1583 when determining whether to set F_RELFLG.
1584
1585 1999-09-13 Philip Blundell <pb@nexus.co.uk>
1586
1587 * elf32-arm.h (elf32_arm_final_link_relocate): Don't range-check
1588 PC24 relocs if the target is an undefined weak symbol.
1589 (arm_add_to_rel): Fix compiler warning.
1590 (elf32_arm_plt0_entry): Correct comments.
1591
1592 1999-09-13 Alan Modra <alan@spri.levels.unisa.edu.au>
1593
1594 * elfcode.h (write_relocs): Check for the_bfd NULL when handling
1595 an absolute symbol in REL relocs.
1596
1597 Sun Sep 12 23:47:58 1999 Jeffrey A Law (law@cygnus.com)
1598
1599 * elf-hppa.h (elf_hppa_final_link_relocate): Handle SECREL32.
1600 Stub SEGREL32. Return an error for any relocation not handled.
1601
1602 1999-09-12 Ian Lance Taylor <ian@zembu.com>
1603
1604 * cofflink.c (coff_link_add_symbols): Look for special MSVC string
1605 constant symbols, and avoid multiple definition errors on them.
1606
1607 1999-09-12 Donn Terry <donn@interix.com>
1608
1609 * libbfd.c (bfd_log2): Rewrite to avoid infinite loop if most
1610 significant bit is set.
1611
1612 1999-09-11 Ian Lance Taylor <ian@zembu.com>
1613
1614 * coff-ppc.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
1615
1616 * elfcode.h (write_relocs): Handle an absolute symbol in REL
1617 relocs as we do for RELA relocs.
1618
1619 1999-09-11 Donn Terry <donn@interix.com>
1620
1621 * libpei.h (_bfd_pei_final_link_postscript): Declare.
1622 (coff_final_link_postscript): Define.
1623 * peigen.c (_bfd_pei_swap_aouthdr_out): Don't set value for data
1624 directory entries here.
1625 (_bfd_pei_final_link_postscript): New function.
1626
1627 * peigen.c (_bfd_pei_swap_scnhdr_out): Remove code which sets
1628 section flags based on the section name.
1629
1630 * peicode.h (coff_swap_scnhdr_in): If COFF_IMAGE_WITH_PE, the
1631 get the overflow of the s_nlnno field from the s_nreloc field.
1632 * peigen.c (_bfd_pei_swap_scnhdr_out): If doing a final link, swap
1633 the s_nlnno overflow of the .text section into the s_nreloc
1634 field.
1635
1636 * peigen.c (add_data_entry): Declare.
1637 (pei_swap_aouthdr_out): Get image size right. Set linker version
1638 more intuitively.
1639 (pei_swap_scnhdr_out): Test for UNINIT section, not .bss.
1640 (pe_print_idata): Code cleanup, print more info, get rid of (now)
1641 extraneous ImageBase.
1642 (pe_print_edata): Likewise.
1643 (pe_print_pdata): Likewise. Print exception entries.
1644 (pe_print_reloc): Likewise. Print MIPS_JMPADDR.
1645 (tbl): Make const, add "UNKNOWN".
1646 (_bfd_pe_print_private_bfd_data_common): Print timestamp.
1647 (_bfd_pe_bfd_copy_private_bfd_data_common): Don't copy deleted
1648 section data directory.
1649 (_bfd_pe_bfd_copy_private_section_data): Copy pe_flags.
1650
1651 * libpei.h (_bfd_pe_bfd_get_symbol_info): Declare.
1652 * peigen.c (_bfd_pe_bfd_get_symbol_info): New function.
1653 * peicode.h (coff_get_symbol_info): Define.
1654
1655 * config.bfd (i[3456]86-*-interix*): Set targ_cflags to
1656 -DSTRICT_PE_FORMAT.
1657 * coffcode.h (styp_to_sec_flags): Check STRICT_PE_FORMAT rather
1658 than __INTERIX.
1659 (coff_classify_symbol): Re-revert 1999-08-08 patch if
1660 STRICT_PE_FORMAT.
1661
1662 * libpei.h: New file, broken out of peicode.h.
1663 * peigen.c: New file, broken out of peicode.h.
1664 * peicode.h: A bunch of code moved out to libpei.h and peigen.c.
1665 * configure.in: Add peigen.lo to list of files required for each
1666 PE target.
1667 * Makefile.am: Rebuild dependencies.
1668 (BFD32_BACKENDS): Add peigen.lo.
1669 (BFD32_BACKENDS_CFILES): Add peigen.c.
1670 (SOURCE_HFILES): Add libpei.h.
1671 * configure, Makefile.in: Rebuild.
1672
1673 * peicode.h (coff_swap_scnhdr_in): Don't check for a special
1674 section name of _BSS; check IMAGE_SCN_CNT_UNINITIALIZED_DATA
1675 instead. Don't clear the s_paddr field for an uninitialized data
1676 section.
1677
1678 * coffcode.h (coff_mkobject_hook): Set timestamp field in
1679 coff_data_type to f_timdat.
1680 * peicode.h (pe_mkobject_hook): Likewise.
1681
1682 * peicode.h (coff_swap_filehdr_in): Check the NT executable magic
1683 number if COFF_IMAGE_WITH_PE.
1684
1685 * coffcode.h (coff_mkobject_hook): If COFF_WITH_PE, set HAS_DEBUG
1686 to the reverse of IMAGE_FILE_DEBUG_STRIPPED.
1687 (coff_write_object_contents): Set IMAGE_FILE_DEBUG_STRIPPED if
1688 there is no SEC_DEBUGGING section.
1689 * peicode.h (pe_mkobject_hook): Set HAS_DEBUG to the reverse of
1690 IMAGE_FILE_DEBUG_STRIPPED.
1691
1692 * pe-i386.c (COFF_LONG_FILENAMES): Define.
1693 (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
1694 * pei-i386.c (COFF_LONG_FILENAMES): Define.
1695 (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
1696
1697 * coffswap.h (IMAGE_BASE): Don't define.
1698 * pei-arm.c (IMAGE_BASE): Don't define.
1699 * pei-i386.c (IMAGE_BASE): Don't define.
1700 * pei-mcore.c (IMAGE_BASE): Don't define.
1701 * pei-ppc.c (IMAGE_BASE): Don't define.
1702
1703 * cofflink.c (_bfd_coff_link_input_bfd): When writing out a
1704 symbol, switch on the class when determining whether to modify the
1705 value. For PE, don't modify the value of a C_FCN symbol not named
1706 .bf.
1707
1708 * libbfd-in.h (_bfd_abort): Declare.
1709 (abort): Define.
1710 * bfd.c (_bfd_abort): New function.
1711 * libbfd.h: Rebuild.
1712
1713 * coffcode.h (coff_set_alignment_hook): Delete POWERPC_LE_PE
1714 special handling.
1715
1716 * cofflink.c (_bfd_coff_link_input_bfd): If a symbol is stripped,
1717 don't write out the associated line numbers.
1718
1719 * cofflink.c (_bfd_coff_write_global_sym): Handle section symbol
1720 aux entries.
1721
1722 * cofflink.c (coff_link_add_symbols): Don't warn about symbol type
1723 changes when the base type is unknown.
1724
1725 * coffgen.c (coff_print_symbol): Fix printing of aux record for
1726 function symbols.
1727
1728 * syms.c (BSF_DEBUGGING_RELOC): Define.
1729 * coffcode.h (coff_slurp_symbol_table): If PE, set BSF_DEBUGGING
1730 for C_FCN/C_EFCN symbols, and set BSF_DEBUGGING_RELOC for such
1731 symbols named .bf.
1732 * coffgen.c (fixup_symbol_value): Relocate a symbol which has
1733 BSF_DEBUGGING_RELOC set.
1734 * bfd-in2.h: Rebuild.
1735
1736 1999-09-10 Ian Lance Taylor <ian@zembu.com>
1737
1738 * ecoff.c (bfd_debug_section): Update initialization for new
1739 comdat_info field.
1740 (_bfd_ecoff_styp_to_sec_flags): Add section parameter.
1741 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Update declaration.
1742
1743 1999-09-10 H.J. Lu <hjl@gnu.org>
1744
1745 * coff-alpha.c (alpha_ecoff_backend_data): Initialize the new
1746 _bfd_filnmlen field.
1747 * coff-mips.c (mips_ecoff_backend_data): Likewise.
1748
1749 Fri Sep 10 00:35:14 1999 Jeffrey A Law (law@cygnus.com)
1750
1751 * elf-hppa.h (elf_hppa_final_link_relocate): Create .opd entries
1752 for FPTR relocs involving local symbols.
1753
1754 * elf-hppa.h (elf_hppa_final_link_relocate): Get the right
1755 value for the stub address in a call through a stub.
1756 Install the value for a local symbol directly into the DLT
1757 instead of generating a reloc. Correctly handle FPTR64 relocs.
1758
1759 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): New function.
1760 (elf_hppa_remark_useless_dynamic_symbols): Similarly.
1761 (elf_hppa_final_link): Call them.
1762
1763 1999-09-10 Ian Lance Taylor <ian@zembu.com>
1764
1765 * elflink.h (elf_fix_symbol_flags): Move weakdef handling here...
1766 (elf_adjust_dynamic_symbol): ...from here.
1767
1768 Wed Sep 8 17:56:11 1999 Jeffrey A Law (law@cygnus.com)
1769
1770 * elf-hppa.h (elf_hppa_howto_table); There is no DIR64WR, DIR64DR
1771 relocation, remove them. SECREL64->LTOFF16WF.
1772 (elf_hppa_final_link_relocate): Handle LTOFF* relocations. Handle
1773 DIR* relocations.
1774 (elf_hppa_relocate_insn): Similarly.
1775
1776 * elf-hppa.h (elf_hppa_final_link_relocate): Handle PLTOFF* relocs.
1777 (elf_hppa_relocate_insn): Similarly.
1778
1779 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DPREL* and
1780 GPREL* relocations.
1781 (elf_hppa_relocate_insn): Similarly.
1782
1783 * elf-hppa.h (elf_hppa_link_final_relocate): Fix typos.
1784 Handle LTOFF_TP* relocs.
1785 (elf_hppa_relocate_insn): Similarly.
1786
1787 * elf-hppa.h (elf_hppa_final_link_relocate): Handle PCREL* relocs.
1788 Consistently deal with addends. Handle DLTIND14F and DLTREL14F.
1789 (elf_hppa_relocate_insn): Handle PCREL* relocs.
1790
1791 * elf-hppa.h (elf_hppa_final_link_relocate): Handle LT_OFF_FPTR*,
1792 DIR32, DIR64 and FPTR64 relocations.
1793 (elf_hppa_relocate_insn): Similarly.
1794
1795 * elf-hppa.h (elf_hppa_final_link): Set the value of __gp to the
1796 address of the .PARISC.global section.
1797 (elf_hppa_relocate_section): Lookup and pass the PA64 hash
1798 table entry elf_hppa_final_link_relocate. Do not give a warning
1799 for a reloc against an external symbol if it has a PA64 hash
1800 table entry.
1801 (elf_hppa_final_link_relocate): Significantly rework. Handle
1802 DLTIND relocations. Compute the final value of the relocation
1803 before passing the value of elf_hppa_relocate_insn.
1804 (elf_hppa_relocate_insn): Revamp to handle just bit tiwiddling
1805 relocation support. Handle DLTIND relocation requests just like
1806 DLTREL relocation requests. Simplify branch handling.
1807
1808 1999-09-08 Ulrich Drepper <drepper@cygnus.com>
1809
1810 * elf-hppa.h (elf_hppa_relocate_section): Catch problems with
1811 non-allocated section as done in i386 version.
1812 (elf_hppa_final_link_relocate): Uncomment R_PARISC_14F in switch
1813 statement since this is no know relocation.
1814
1815 Tue Sep 7 17:25:12 1999 Jeffrey A Law (law@cygnus.com)
1816
1817 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14F
1818 relocs.
1819 (elf_hppa_relocate_insn): Similarly.
1820
1821 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14WR and
1822 DLTREL14WD relocs.
1823 (elf_hppa_relocate_insn): Similarly.
1824
1825 * elf-hppa.h (elf_hppa_final_link_relocate): Handle DLTREL14R and
1826 DLTREL21L relocs. Pass the output bfd to elf_hppa_relocate_insn.
1827 Pass the relocate type rather than the insn format to
1828 elf_hppa_relocate_insn.
1829 (elf_hppa_relocate_insn): Make switch dependent on relocation type
1830 rather than the opcode. Handle DLTREL21L and DLTREL14R relocs.
1831
1832 1999-09-07 Ian Lance Taylor <ian@zembu.com>
1833
1834 * coffcode.h (bfd_coff_backend_data): Add _bfd_filnmlen field.
1835 (bfd_coff_filnmlen): Define.
1836 (bfd_coff_std_swap_table): Initialize new field.
1837 * coffgen.c (coff_fix_symbol_name): Use bfd_coff_filnmlen rather
1838 than FILNMLEN.
1839 (coff_write_symbols): Likewise.
1840 (coff_get_normalized_symtab): Likewise.
1841 * coff-sh.c (bfd_coff_small_swap_table): Initialize new field.
1842 * libcoff.h: Rebuild.
1843
1844 1999-09-06 Donn Terry <donn@interix.com>
1845
1846 * coffcode.h (sort_by_secaddr): New static function if
1847 COFF_IMAGE_WITH_PE.
1848 (coff_compute_section_file_positions): If COFF_IMAGE_WITH_PE, sort
1849 sections by VMA when assigning target_index values. Always set
1850 virt_size.
1851
1852 * libcoff-in.h (struct pei_section_tdata): Add pe_flags field.
1853 * coffcode.h (coff_set_alignment_hook) [COFF_WITH_PE version]: Set
1854 pe_flags field.
1855 * libcoff.h: Rebuild.
1856
1857 * coffcode.h (coff_set_custom_section_alignment): Add const to
1858 declaration to match definition.
1859 (coff_write_object_contents): Don't set F_AR32W(R)? if
1860 COFF_WITH_PE.
1861
1862 * coff-i386.c (in_reloc_p): Add declaration.
1863 (i386coff_vec): Simplify initialization of
1864 application_section_flags.
1865
1866 * coffcode.h (sec_to_styp_flags): Write separate COFF_WITH_PE
1867 version. Move COFF_WITH_PE specific code to new version.
1868 (stype_to_sec_flags): Likewise. Add section parameter.
1869 * coffgen.c (make_a_section_from_file): Set target_index before
1870 calling styp_to_sec_flags. Pass section to styp_to_sec_flags.
1871 * libcoff.h: Rebuild.
1872
1873 * syms.c (stt): Add some PE/PEI section names.
1874 (bfd_decode_symclass): Return 'w', not 'U', for a weak undefined
1875 symbol.
1876 (bfd_symbol_info): Check for 'w'.
1877
1878 * section.c (struct bfd_comdat_info): Define.
1879 (asection): Add comdat field.
1880 (STD_SECTION): Initialize comdat field.
1881 (bfd_make_section_anyway): Likewise.
1882 * bfd-in2.h: Rebuild.
1883
1884 1999-09-06 Andreas Schwab <schwab@suse.de>
1885
1886 * elflink.h (elf_link_add_object_symbols): Copy NON_GOT_REF flag
1887 to version symbols.
1888
1889 1999-09-06 Nick Clifton <nickc@cygnus.com>
1890
1891 * elflink.h (elf_gc_record_vtentry): Use bfd_zmalloc and
1892 bfd_realloc instead of calloc and realloc.
1893
1894 1999-09-04 Steve Chamberlain <sac@pobox.com>
1895
1896 * cpu-pj.c: New file.
1897 * elf32-pj.c: New file.
1898 * config.bfd (pj*): New cpu.
1899 (pj-*-*, pjl-*-*): New targets.
1900 * configure.in (bfd_elf32_pj_vec): New target vector.
1901 (bfd_elf32_pjl_vec): New target vector.
1902 * archures.c (bfd_arch_pj): Define.
1903 * elf.c (prep_headers): Handle bfd_arch_pj.
1904 * reloc.c: Define BFD_RELOC_PJ_* relocations.
1905 * targets.c (bfd_elf32_pj_vec, bfd_elf32_pjl_vec): Declare and add
1906 to target vector list.
1907 * Makefile.am: Rebuild dependencies.
1908 (ALL_MACHINES): Add cpu-pj.lo.
1909 (ALL_MACHINES_CFILES): Add cpu-pj.c.
1910 (BFD32_BACKENDS): Add elf32-pj.lo.
1911 (BFD32_BACKENDS_CFILES): Add elf32-pj.c.
1912 * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
1913
1914 1999-09-04 Ian Lance Taylor <ian@zembu.com>
1915
1916 * elf-bfd.h (ELF_LINK_NON_GOT_REF): Define.
1917 * elflink.h (elf_adjust_dynamic_symbol): Copy REF_REGULAR_NONWEAK
1918 and NON_GOT_REF from weak defined symbol to real symbol.
1919 * elf32-i386.c (elf_i386_check_relocs): Set NON_GOT_REF.
1920 (elf_i386_adjust_dynamic_symbol): If NON_GOT_REF is not set, don't
1921 create a COPY reloc.
1922 * elf32-sparc.c (elf32_sparc_check_relocs): Set NON_GOT_REF.
1923 (elf32_sparc_adjust_dynamic_symbol): If NON_GOT_REF is not set,
1924 don't create a COPY reloc.
1925
1926 1999-09-03 Ian Lance Taylor <ian@zembu.com>
1927
1928 * elflink.h (elf_bfd_final_link): When counting relocations, don't
1929 count those in sections we are not including in the link.
1930
1931 Thu Sep 2 17:41:20 1999 Jeffrey A Law (law@cygnus.com)
1932
1933 * elflink.h (elf_link_add_object_symbols): Work around bogus SH_LINK
1934 field in hpux11 shared libraries.
1935
1936 1999-09-02 Nick Clifton <nickc@cygnus.com>
1937
1938 * elflink.h (elf_gc_record_vtentry): Fix memory leak.
1939
1940 Wed Sep 1 13:34:29 1999 Jeffrey A Law (law@cygnus.com)
1941
1942 * elf-hppa.h (elf_hppa_add_symbol_hook): New function.
1943 (elf_hppa_final_link, elf_hppa_relocate_section): Likewise.
1944 (elf_hppa_final_link_relocate, elf_hppa_relocate_insn): Likewise.
1945
1946 1999-08-31 Alexandre Petit-Bianco <apbianco@cygnus.com>
1947
1948 * elflink.h (record_link_assignment): When possible, keep the
1949 original type of the symbol.
1950
1951 Mon Aug 30 15:26:48 1999 Jeffrey A Law (law@cygnus.com)
1952
1953 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Allow both
1954 R_PARISC_DIR32 and R_PARISC_DIR64 regardless of how the
1955 tools were configured.
1956 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Declare.
1957
1958 1999-08-26 Mark Mitchell <mark@codesourcery.com>
1959
1960 * elf32-mips.c (_bfd_mips_elf_check_relocs): Don't allocate local
1961 GOT entries for GOT16 relocations; they're not required.
1962
1963 1999-08-24 Nick Clifton <nickc@cygnus.com>
1964
1965 From a patch submitted by Roland McGrath <roland@baalperazim.frob.com>
1966
1967 * config.bfd (arm-*-netbsd*): New target.
1968 * configure.in (armnetbsd_vec): New target vector.
1969 * configure: Regenerate
1970 * targets.c (bfd_target_vector): Add &armnetbsd_vec.
1971
1972 * Makefile.am (BFD32_BACKENDS): Add armnetbsd.lo.
1973 (ALL_MACHINES_CFILES): Add armnetbsd.c.
1974 (armnetbsd.lo): New rule with deps.
1975 * Makefile.in: Regenerate.
1976
1977 * armnetbsd.c: New file: Definitions specific to arm-netbsd
1978 target.
1979
1980 Tue Aug 24 00:25:58 1999 Jeffrey A Law (law@cygnus.com)
1981
1982 * som.c (som_slurp_symbol_table): Fix typo in comment.
1983
1984 Fri Aug 20 17:01:23 1999 Jeffrey A Law (law@cygnus.com)
1985
1986 * elf-hppa.h (elf_hppa_fake_sections): Compute section indices
1987 here instead of using elf_section_data...
1988
1989 1999-08-19 Nick Clifton <nickc@cygnus.com>
1990
1991 * coff-mcore.c (mcore_emit_base_file_entry): New function: Emit
1992 relocations into the base file.
1993 (coff_mcore_relocate_section): Call mcore_emit_base_file_entry if
1994 we are building a base file.
1995
1996 1999-08-19 Nick Clifton <nickc@cygnus.com>
1997
1998 * elf32-arm.h (arm_add_to_rel): New function. Add a value to
1999 a REL style reloc.
2000 (elf32_arm_relocate_section): Use arm_add_to_rel to increment
2001 REL relocs when performing a partial relocation.
2002
2003 1999-08-18 Donn Terry <donn@interix.com>
2004
2005 * cofflink.c: Move definitions of N_TMASK, et. al., out of
2006 _bfd_coff_link_input_bfd into top level.
2007
2008 * coff-i386.c (coff_i386_reloc): Handle R_IMAGEBASE.
2009 (RTYPE2HOWTO): Return NULL if reloc type is out of range.
2010 (coff_i386_rtype_to_howto): Likewise.
2011 * coffcode.h (coff_slurp_symbol_table): Change a -2 to N_DEBUG.
2012 Completely ignore symbols which are all zero.
2013 (dummy_reloc16_estimate): Add return 0.
2014 * cofflink.c (_bfd_coff_link_input_bfd): Rename inner scope
2015 variable copy to name_copy to avoid shadowing outer scope
2016 variable.
2017 * libcoff-in.h (coff_data_type): Change raw_syment_count field
2018 from unsigned int to unsigned long. Add timestamp field.
2019 * libcoff.h: Rebuild.
2020
2021 1999-08-17 H.J. Lu <hjl@gnu.org>
2022
2023 * elf32-hppa.c (bfd_elf32_bfd_is_local_label_name): Fix typo in
2024 macro definition.
2025
2026 1999-08-17 Ian Lance Taylor <ian@zembu.com>
2027
2028 * elf32-mips.c (_bfd_mips_elf_add_symbol_hook): Set BSF_DYNAMIC
2029 for special section symbols.
2030 * elflink.h (elf_merge_symbol): If we have no old BFD, check
2031 BSF_DYNAMIC on the section symbol to see whether the old BFD is
2032 dynamic.
2033
2034 1999-08-15 Mark Mitchell <mark@codesourcery.com>
2035
2036 * elf32-mips.c (mips_elf_calculate_relocation): Fix unfortunate
2037 coincidence of variable names between old and new code.
2038
2039 1999-08-12 Nick Clifton <nickc@cygnus.com>
2040
2041 * elf32-arm.h (elf32_arm_to_thumb_stub): Make 'offset' parameter
2042 into a bfd_vma and 'addend' parameter a 'bfd_signed_vma'.
2043 (elf32_thumb_to_arm_stub): Make 'offset' parameter into a bfd_vma
2044 and 'addend' parameter a 'bfd_signed_vma'.
2045 (elf32_arm_final_link_relocate): Do not involve stubs in
2046 R_ARM_THM_PC22 relocs relative to section symbols, they are long
2047 jumps, not function calls.
2048
2049 1999-08-11 Robin Farine <advanc@dial.eunet.ch>
2050
2051 * elf32-arm.h (elf32_arm_final_link_relocate): Check for overflow
2052 in R_ARM_PC24 relocs.
2053
2054 Tue Aug 10 12:48:09 1999 Jeffrey A Law (law@cygnus.com)
2055
2056 * elf-hppa.h (elf_hppa_fake_sections): New function.
2057 * elf32-hppa.c (elf_backend_fake_sections): Define.
2058
2059 * elf-hppa.h (elf_hppa_final_write_processing): Update for
2060 recent changes to the arch_info structure.
2061
2062 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle
2063 R_HPPA_SEGBASE and R_HPPA_SEGREL32.
2064 * cpu-hppa.c (bfd_hppa20w_arch): New entry in architecture info
2065 list.
2066
2067 Tue Aug 10 00:34:29 1999 Mark P. Mitchell <mark@codesourcery.com>
2068 Ralf Baechle <ralf@uni-koblenz.de>
2069
2070 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Always
2071 output DT_MIPS_GOTSYM.
2072 (_bfd_mips_elf_finish_dynamic_sections): Use the same value as
2073 DT_MIPS_SYMTABNO if there are no global GOT symbols.
2074
2075 Tue Aug 10 00:21:08 1999 Mark P. Mitchell <mark@codesourcery.com>
2076
2077 * elf32-mips.c (mips_elf_create_dynamic_relocation): Change
2078 prototype. Handle local symbols. Add commentary.
2079 (mips_elf_calculate_relocation): Adjust accordingly.
2080 (_bfd_mips_elf_check_relocs): Handle local symbols in R_MIPS_32
2081 relocations.
2082
2083 * elflink.h (elf_bfd_final_link): Tweak last change.
2084
2085 1999-08-09 Mark Mitchell <mark@codesourcery.com>
2086
2087 * elflink.h (elf_link_size_reloc_section): Use the counts in the
2088 elf-section data to allocate just the right amount of relocation
2089 space. Don't allocate the hash space twice.
2090 (elf_bfd_final_link): Calculate the amount of space to allocate in
2091 each relocation section.
2092
2093 Mon Aug 9 17:37:30 1999 Jeffrey A Law (law@cygnus.com)
2094
2095 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type, case 32): When in
2096 64bit mode, generate a section relative relocation for a 32bit
2097 wide relocation.
2098 (elf_hppa_is_local_label_name): New function.
2099 * elf32-hppa.c (elf_hppa_is_local_label_name): Deleted. To be
2100 shared between 32bit and 64bit port.
2101
2102 1999-08-09 Mark Mitchell <mark@codesourcery.com>
2103
2104 * elf32-mips.c (elf_mips_howto_table): Fix src_mask for
2105 R_MIPS_GOT16 and R_MIPS_CALL16.
2106 (mips_elf_got16_entry): Use mips_elf_high to calculate the value
2107 to use when looking for a preexisting GOT entry.
2108
2109 1999-08-09 Jakub Jelinek <jj@ultra.linux.cz>
2110
2111 * elf64-sparc.c (sparc64_elf_relocate_section): Back out part of
2112 the Sep. 4th, 1998 change. glibc 2.0.x dynamic linker had bug,
2113 not binutils.
2114 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2115
2116 1999-08-09 Geoff Keating <geoffk@cygnus.com>
2117
2118 * elflink.h (elf_link_output_extsym): Don't output a weak
2119 reference to an undefined symbol just because it was defined weak
2120 in a shared object.
2121
2122 1999-08-09 Eli Zaretskii <eliz@is.elta.co.il>
2123
2124 * coffgen.c (coff_find_nearest_line): When looking for file, use
2125 last best match rather than first. If address is beyond last line
2126 number record, don't return the last line as the correct value.
2127
2128 1999-08-08 Ian Lance Taylor <ian@zembu.com>
2129
2130 * section.c (SEC_SMALL_DATA): Rename from SEC_SHORT.
2131 * bfd-in2.h: Rebuild.
2132
2133 1999-08-08 Mark Elbrecht <snowball3@bigfoot.com>
2134
2135 * libcoff-in.h (struct coff_section_alignment_entry): Define.
2136 * coffcode.h (coff_set_custom_section_alignment): New static
2137 function.
2138 (coff_section_alignment_table): New static array.
2139 (coff_new_section_hook): Use coff_set_customer_section_alignment.
2140 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
2141 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
2142 * libcoff.h: Rebuild.
2143
2144 1999-08-08 Ian Lance Taylor <ian@zembu.com>
2145
2146 * Makefile.am: Rename .dep* files to DEP*. Change DEP variable to
2147 MKDEP.
2148 * Makefile.in: Rebuild.
2149
2150 1999-08-08 Mumit Khan <khan@xraylith.wisc.edu>
2151
2152 * section.c (SEC_SHARED): Define.
2153 * coffcode.h (sec_to_styp_flags): Handle SEC_SHARED.
2154 (styp_to_sec_flags): Likewise.
2155 * peicode.h (coff_swap_scnhdr_out): Likewise.
2156 * bfd-in2.h: Rebuild.
2157
2158 1999-08-08 Ian Lance Taylor <ian@zembu.com>
2159
2160 * coffcode.h (coff_classify_symbol): Comment out part of
2161 1999-08-05 change which breaks cygwin DLLs.
2162
2163 * acinclude.m4 (BFD_BINARY_FOPEN): Change -windows to -windows*.
2164 * aclocal.m4, configure: Rebuild.
2165
2166 1999-08-06 Ian Lance Taylor <ian@zembu.com>
2167
2168 * section.c (global_syms): Only initialize union field if
2169 __STDC__.
2170
2171 1999-08-04 Mark Mitchell <mark@codesourcery.com>
2172
2173 * elf32-mips.c (mips_elf_got16_entry): Don't multiply GOT index by
2174 the size of a GOT entry here.
2175 (mips_elf_calculate_relocation): Don't create a local GOT entry
2176 for the symbol in a GOT16 relocation; just for it's high-order bit
2177 (_bfd_mips_elf_relocate_section): Fix thinko.
2178
2179 1999-08-05 Ian Lance Taylor <ian@zembu.com>
2180
2181 Based on patches from Donn Terry <donn@interix.com>:
2182 * coffcode.h (enum coff_symbol_classification): Define.
2183 (bfd_coff_backend_data): Rename _bfd_coff_sym_is_global to
2184 _bfd_coff_classify_symbol. Change return type.
2185 (bfd_coff_classify_symbol): Rename from bfd_coff_sym_is_global.
2186 (coff_slurp_symbol_table): Use coff_classify_symbol.
2187 (coff_classify_symbol): New static function.
2188 (coff_sym_is_global): Never define.
2189 (bfd_coff_std_swap_table): Initialize with coff_classify_symbol.
2190 * cofflink.c (coff_link_check_ar_symbols): Use
2191 bfd_coff_classify_symbol rather than bfd_coff_sym_is_global.
2192 (coff_link_add_symbols): Likewise.
2193 (_bfd_coff_link_input_bfd): Likewise.
2194 * coff-sh.c (bfd_coff_small_swap_table): Initialize with
2195 coff_classify_symbol.
2196 * libcoff.h: Rebuild.
2197
2198 Wed Aug 4 18:08:07 1999 Jeffrey A Law (law@cygnus.com)
2199
2200 * libhppa.h (R_HPPA_LTPSEL, R_HPPA_RTPSEL): New field selectors
2201 (e_ltpsel, e_rtpsel): Similarly.
2202
2203 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle 21bit e_ltpsel
2204 and 14bit ertpsel. Handle 64bit psel.
2205
2206 1999-08-04 Mark Mitchell <mark@codesourcery.com>
2207
2208 * elf32-mips.c (_bfd_mips_elf_relocate_section): Tweak HI16/LO16
2209 handling for REL relocations. And only left-shift R_MIPS26
2210 relocation addends where necessary.
2211
2212 1999-08-03 Mark Mitchell <mark@codesourcery.com>
2213
2214 * elf32-mips.c (mips_elf_next_lo16_addend): Rename to ...
2215 (mips_elf_next_lo16_relocation): Don't compute the addend here.
2216 Just return the relocation found.
2217 (mips_elf_relocate_section): Pull the LO16 addend out of the
2218 section itself when using REL relocations.
2219
2220 * elf32-mips.c (mips_elf_calculate_relocation): Restore
2221 _DYNAMIC_LINK handling and handling of undefined symbols in shared
2222 libraries.
2223
2224 1999-08-03 Ian Lance Taylor <ian@zembu.com>
2225
2226 * elf32-ppc.c (ppc_elf_relocate_section): Don't use the relocation
2227 value of a symbol in a SEC_DEBUGGING section. Warn when doing a
2228 relocation against a symbol in an input section with no output
2229 section. From Daniel Jacobowitz <drow@false.org>.
2230
2231 * coff-stgo32.c (go32_stubbed_coff_object_p): Remove; not used.
2232
2233 * acinclude.m4 (BFD_CC_FOR_BUILD): Change to use conftest, and to
2234 look for generated file correctly.
2235 * aclocal.m4, configure: Rebuild.
2236
2237 1999-08-02 Mark Mitchell <mark@codesourcery.com>
2238
2239 * elf32-mips.c (_bfd_mips_elf_relocate_section): Handle R_MIPS_26
2240 and R_MIPS16_26 relocations correctly when relocating.
2241 (_bfd_mips_elf_check_relocs): Don't assume that R_MIPS_CALL_HI16
2242 and R_MIPS_CALL_LO16 are for global symbols.
2243
2244 1999-08-02 Jakub Jelinek <jj@ultra.linux.cz>
2245
2246 * elflink.h (elf_bfd_final_link): Copy the whole isym, not just
2247 some fields.
2248 * elf64-sparc.c (sparc64_elf_output_arch_syms): Declare used
2249 variables and initialize them.
2250
2251 1999-08-01 Mark Mitchell <mark@codesourcery.com>
2252
2253 * elf32-mips.c (_bfd_mips_elf_final_link): Handle the case where
2254 there are no global symbols requiring GOT entries.
2255 (_bfd_mips_elf_size_dynamic_sections): Likewise.
2256 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
2257 (_bfd_mips_elf_finish_dynamic_sections): Likewise.
2258
2259 * elf32-mips.c (mips_elf_calculate_relocation): Undefined weak
2260 symbols are considered to have the value zero.
2261 (_bfd_mips_elf_relocate_section): Don't try to perform a
2262 relocation for an undefined symbol.
2263 (_bfd_mips_elf_check_relocs): Allocate locate GOT space for local
2264 GOT16 relocations.
2265
2266 1999-07-30 Jakub Jelinek <jj@ultra.linux.cz>
2267
2268 * elf64-sparc.c (sparc64_elf_build_plt): Cosmetic change - ABI
2269 wants ba,a,pt %xcc instead of %icc.
2270 Emit correct .PLT0-(.PLTN+4) initial value into the pointer slots
2271 of large PLT entries.
2272 (sparc64_elf_plt_ptr_offset): Fix calculation.
2273 (sparc64_elf_finish_dynamic_symbol): Negative value of R_SPARC_JMP_SLOT
2274 addend should be relative to load address, not .plt section start.
2275 (sparc64_elf_size_info): Sparc64 uses 32bit .hash entries.
2276
2277 1999-07-30 Jakub Jelinek <jj@ultra.linux.cz>
2278
2279 * elf-bfd.h (struct elf_backend_data): Add
2280 print_symbol_all and output_arch_syms backend methods.
2281 * elfxx-target.h: Likewise.
2282 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create,
2283 sparc64_elf_add_symbol_hook, sparc64_elf_output_arch_syms,
2284 sparc64_elf_get_symbol_type, sparc64_elf_symbol_processing): New
2285 functions.
2286 (sparc64_elf_size_dynamic_sections): Leave space for STT_REGISTER
2287 symbols in .dynsym, add their names into .dynstr. Put those symbols
2288 into dynlocal.
2289 (sparc64_elf_finish_dynamic_sections): Fix up DT_SPARC_REGISTER
2290 pointers to STT_REGISTER symbols in dynsym section.
2291 (sparc64_elf_print_symbol_all): New function.
2292 * elf.c (bfd_elf_print_symbol): Allow special backend symbol
2293 printing using the print_symbol_all hook.
2294
2295 1999-07-30 Catherine Moore <clm@cygnus.com>
2296
2297 * elf32-arm.h (elf32_arm_check_relocs): Use r_offset for
2298 R_ARM_GNU_VTENTRY.
2299
2300 1999-07-29 Richard Henderson <rth@cygnus.com>
2301
2302 * elf32-mips.c (_bfd_mips_elf_final_link): Only re-sort dynsyms if
2303 dynamic_sections_created.
2304
2305 1999-07-29 Richard Henderson <rth@cygnus.com>
2306
2307 * elf32-mips.c (mips_info_to_howto_rel): Split out switch to ...
2308 (mips_rtype_to_howto): ... new function.
2309 (_bfd_mips_elf_relocate_section): Use it.
2310
2311 1999-07-28 Mark Mitchell <mark@codesourcery.com>
2312
2313 * elf32-mips.c (_bfd_mips_elf_relocate_section): Fix typo.
2314
2315 1999-07-27 Nick Clifton <nickc@cygnus.com>
2316
2317 Patch generated by Bernd Schmidt. <bernds@cygnus.co.uk>
2318
2319 * coff-arm.c (coff_arm_is_local_label_name): Change to strip
2320 out only symbols that start with LOCAL_LABEL_PREFIX followed by 'L'.
2321
2322 1999-07-23 Donn Terry <donn@interix.com>
2323
2324 * libcoff-in.h (coff_link_hash_entry): Add coff_link_hash_flags
2325 field, and define COFF_LINK_HASH_PE_SECTION_SYMBOL.
2326 * cofflink.c (coff_link_add_symbols): If PE, handle section
2327 symbols specially.
2328 * libcoff.h: Rebuild.
2329
2330 * config.bfd (i[3456]86-*-interix*): New target.
2331
2332 1999-07-21 Mark Elbrecht <snowball3@bigfoot.com>
2333
2334 * coffcode.h (styp_to_sec_flags): If COFF_LONG_SECTION_NAMES and
2335 COFF_SUPPORT_GNU_LINKONCE, mark sections whose names begin with
2336 .gnu.linkonce with SEC_LINKONCE and SEC_LINK_DUPLICATES_DISCARD.
2337 * coff-go32.c: (COFF_LONG_SECTION_NAMES): Define.
2338 (COFF_SUPPORT_GNU_LINKONCE): Define.
2339 * coff-stgo32.c: (COFF_LONG_SECTION_NAMES): Define.
2340 (COFF_SUPPORT_GNU_LINKONCE): Define.
2341
2342 1999-07-21 Ian Lance Taylor <ian@zembu.com>
2343
2344 From Mark Elbrecht:
2345 * makefile.dos: Remove; obsolete.
2346 * configure.bat: Remove; obsolete.
2347
2348 1999-07-21 H.J. Lu <hjl@gnu.org>
2349
2350 * config.bfd (i[3456]86-*-vxworks*): Add targ_underscore=yes.
2351
2352 1999-07-21 Philippe De Muyter <phdm@macqel.be>
2353
2354 * cofflink.c (_bfd_coff_generic_relocate_section): Issue an error
2355 message and fail if a symbol index is out of range.
2356
2357 1999-07-21 Ian Lance Taylor <ian@zembu.com>
2358
2359 * elf32-mips.c (mips_elf_calculate_relocation): Get the GP value
2360 when looking at a R_MIPS_GOT16 relocation.
2361
2362 1999-07-20 Nick Clifton <nickc@cygnus.com>
2363
2364 * coff-m88k.c: Use CREATE_BIG_COFF_TARGET_VEC.
2365
2366 Mon Jul 19 14:03:44 1999 Mark P. Mitchell <mark@codesourcery.com>
2367
2368 * elf32-mips.c (_bfd_mips_elf_final_link): Restore setting of GP
2369 removed in previous change.
2370 (_bfd_mips_elf_relocate_section): Adjust GP relative relocations
2371 in relocateable output.
2372
2373 1999-07-19 Ian Lance Taylor <ian@zembu.com>
2374
2375 * coff-m88k.c (m88kbcs_vec): Initialize new field of bfd_target
2376 structure.
2377
2378 * elflink.h (elf_merge_symbol): Do merge symbols from the same BFD
2379 if they appear to be specially created by the linker.
2380
2381 1999-07-19 Nick Clifton <nickc@cygnus.com>
2382
2383 * targets.c (alternative_target): New field in bfd_target
2384 structure.
2385 (bfd_search_for_target): New function: Find a target that
2386 satisifies a search function.
2387 * bfd-in2.h: Regenerate.
2388
2389 * elfxx-target.h: Initialise the alternative_target field of
2390 the bfd_target structures to point to the other target (if
2391 defined).
2392 * nlm-target.h: Initialise the alternative_target field of
2393 the bfd_target structures to point to the other target (if
2394 defined).
2395
2396 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): New macro.
2397 (CREATE_LITTLE_COFF_TARGET_VEC): New macro.
2398
2399 * aix386-core.c: Initialise new field of bfd_target structure.
2400 * aout-adobe.c: Initialise new field of bfd_target structure.
2401 * aout-arm.c: Initialise new field of bfd_target structure.
2402 * aout-target.h: Initialise new field of bfd_target structure.
2403 * aout-tic30.c: Initialise new field of bfd_target structure.
2404 * binary.c: Initialise new field of bfd_target structure.
2405 * bout.c: Initialise new field of bfd_target structure.
2406 * cisco-core.c: Initialise new field of bfd_target structure.
2407 * coff-a29k.c: Use CREATE_BIG_COFF_TARGET_VEC.
2408 * coff-alpha.c: Initialise new field of bfd_target structure.
2409 * coff-apollo.c: Use CREATE_BIG_COFF_TARGET_VEC.
2410 * coff-arm.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC.
2411 * coff-h8300.c: Use CREATE_BIG_COFF_TARGET_VEC.
2412 * coff-h8500.c: Use CREATE_BIG_COFF_TARGET_VEC.
2413 * coff-i386.c: Initialise new field of bfd_target structure.
2414 * coff-i860.c: Initialise new field of bfd_target structure.
2415 * coff-i960.c: Use CREATE_LITTLE_COFF_TARGET_VEC.
2416 * coff-m68k.c: Use CREATE_BIG_COFF_TARGET_VEC.
2417 * coff-mcore.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC.
2418 * coff-mips.c: Initialise new field of bfd_target structure.
2419 * coff-ppc.c: Initialise new field of bfd_target structure.
2420 * coff-rs6000.c: Initialise new field of bfd_target structure.
2421 * coff-sh.c: Use CREATE_{BIG|LITTLE}_COFF_TARGET_VEC.
2422 * coff-sparc.c: Use CREATE_BIG_COFF_TARGET_VEC.
2423 * coff-tic30.c: Initialise new field of bfd_target structure.
2424 * coff-tic80.c: Use CREATE_LITTLE_COFF_TARGET_VEC.
2425 * coff-w65.c: Use CREATE_LITTLE_COFF_TARGET_VEC.
2426 * coff-we32k.c: Use CREATE_BIG_COFF_TARGET_VEC.
2427 * coff-z8k.c: Use CREATE_BIG_COFF_TARGET_VEC.
2428 * hppabsd-core.c: Initialise new field of bfd_target structure.
2429 * hpux-core.c: Initialise new field of bfd_target structure.
2430 * i386msdos.c: Initialise new field of bfd_target structure.
2431 * i386os9k.c: Initialise new field of bfd_target structure.
2432 * ieee.c: Initialise new field of bfd_target structure.
2433 * ihex.c: Initialise new field of bfd_target structure.
2434 * irix-core.c: Initialise new field of bfd_target structure.
2435 * mipsbsd.c: Initialise new field of bfd_target structure.
2436 * netbsd-core.c: Initialise new field of bfd_target structure.
2437 * oasys.c: Initialise new field of bfd_target structure.
2438 * osf-core.c: Initialise new field of bfd_target structure.
2439 * ppcboot.c: Initialise new field of bfd_target structure.
2440 * ptrace-core.c: Initialise new field of bfd_target structure.
2441 * sco5-core.c: Initialise new field of bfd_target structure.
2442 * som.c: Initialise new field of bfd_target structure.
2443 * srec.c: Initialise new field of bfd_target structure.
2444 * tekhex.c: Initialise new field of bfd_target structure.
2445 * trad-core.c: Initialise new field of bfd_target structure.
2446 * versados.c: Initialise new field of bfd_target structure.
2447 * vms.c: Initialise new field of bfd_target structure.
2448
2449 1999-07-19 Andreas Schwab <schwab@suse.de>
2450
2451 * elflink.h (elf_bfd_final_link): Remove unused variables rel_hash
2452 and rel_hdr.
2453
2454 Sat Jul 17 02:28:28 1999 Mark P. Mitchell <mark@codesourcery.com>
2455
2456 * elflink.h (elf_link_adjust_relocs): New function.
2457 (elf_bfd_final_link): Use it.
2458 (elf_link_input_bfd): Deal with the fact that there can be
2459 two relocation sections for a single section.
2460 (elf_reloc_link_order): Likewise.
2461
2462 * elf32-mips.c (_bfd_mips_elf_final_link): Don't set GP for
2463 a relocateable object.
2464 (_bfd_mips_elf_relocate_section): Handle relocateable links.
2465
2466 1999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
2467
2468 * elf64-sparc.c (sparc64_elf_info_to_howto): Use ELF64_R_TYPE_ID.
2469 (sparc64_elf_get_reloc_upper_bound,
2470 sparc64_elf_get_dynamic_reloc_upper_bound,
2471 sparc64_elf_slurp_one_reloc_table, sparc64_elf_slurp_reloc_table,
2472 sparc64_elf_canonicalize_dynamic_reloc, sparc64_elf_write_relocs):
2473 New functions.
2474 (sparc64_elf_check_relocs, sparc64_elf_relocate_section): Use
2475 ELF64_R_TYPE_ID/DATA where appropriate.
2476
2477 1999-07-16 Jakub Jelinek <jj@ultra.linux.cz>
2478
2479 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Remove
2480 DT_SPARC_PLTFMT.
2481
2482 1999-07-16 Ian Lance Taylor <ian@zembu.com>
2483
2484 * elf32-mips.c (mips_elf_local_relocation_p): New static
2485 function.
2486 (mips_elf_next_lo16_addend): Call bfd_set_error on failure.
2487 (mips_elf_calculate_relocation): Use mips_elf_local_relocation_p.
2488 Always set *require_jalxp.
2489 (mips_elf_stub_section_p): Mark abfd parameter as unused.
2490 (_bfd_mips_elf_relocate_section): Only look for LO16 following
2491 GOT16 if the GOT16 is against a local symbol. Don't return false
2492 for an undefined symbol. If there is an overflow, assert that we
2493 have a name.
2494
2495 1999-07-16 Andreas Schwab <schwab@suse.de>
2496
2497 * elflink.h (elf_link_record_local_dynamic_symbol): Remove unused
2498 variables `link' and `elfsec'.
2499 (elf_bfd_final_link): Remove unused variable `os'.
2500
2501 Thu Jul 15 17:55:31 1999 Mark P. Mitchell <mark@codesourcery.com>
2502
2503 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Don't require
2504 a PT_PHDR program headers.
2505 (_bfd_mips_elf_final_link): Don't assume there are going to be
2506 section symbols when we're not building a shared object.
2507 (_bfd_mips_elf_check_relocs): Make sure we have a GOT when
2508 we need one.
2509
2510 1999-07-15 J.T. Conklin <jtc@redback.com>
2511
2512 * config.bfd (i[3456]86-*-vxworks*): New target.
2513
2514 1999-07-15 Mark Mitchell <mark@codesourcery.com>
2515
2516 * elf32-mips.c (mips_elf_stub_section_p): New function.
2517 (mips_elf_calculate_relocation): Handle MIPS16 stub functions.
2518 (mips_elf_relocate_section): Adjust calling sequence for
2519 mips_elf_calculate_relocation and mips_elf_perform_relocation.
2520 (mips_elf_perform_relocation): Turn `jal' into `jalx' where
2521 required.
2522
2523 1999-07-15 Ian Lance Taylor <ian@zembu.com>
2524
2525 * configure.in: Bump version number to 2.9.5.
2526 * configure: Rebuild.
2527
2528 Thu Jul 15 02:56:15 1999 Jeffrey A Law (law@cygnus.com)
2529
2530 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type, case R_HPPA): Handle
2531 64bit format.
2532 (_bfd_elf_hppa_gen_reloc_type, case R_GOTOFF): Use base reloc type
2533 to derive final type instead of hardwiring a selection.
2534
2535 1999-07-14 Mark Mitchell <mark@codesourcery.com>
2536
2537 * elf32-mips.c (mips_elf_obtain_contents): Swap 16-bit halves of
2538 things relocated by R_MIPS16_GPREL.
2539 (mips_elf_perform_relocation): Likewise.
2540
2541 Wed Jul 14 15:23:19 1999 Jim Wilson <wilson@cygnus.com>
2542
2543 * elfxx-target.h (elfNN_bed): Add elf_backend_want_dynbss.
2544
2545 1999-07-14 Richard Henderson <rth@cygnus.com>
2546
2547 * elf32-mips.c (struct mips_got_info): Add global_gotno.
2548 (_bfd_mips_elf_size_dynamic_sections): Set it.
2549 (_bfd_mips_elf_final_link): Re-sort; verify the got did not grow.
2550 (mips_elf_sort_hash_table): Set max_non_got_dynindex based off
2551 new argument max_local.
2552
2553 1999-07-14 Mark Mitchell <mark@codesourcery.com>
2554
2555 * elf32-mips.c (mips_elf_obtain_contents): Swap the 16-bit
2556 subwords when handling an R_MIPS16_26 relocation.
2557 (mips_elf_perform_relocation): Don't be paranoid abour right-shift
2558 semantics.
2559
2560 * elf32-mips.c (elf_mips16_gprel_howto): Adjust src_mask and
2561 dst_mask to match reality.
2562 (_bfd_mips_elf_calculate_relocation): Handle R_MIPS16_GPREL.
2563 (mips_elf_obtain_contents): Use bfd_get.
2564 (mips_elf_perform_relocation): Handle R_MIPS16_GPREL.
2565 (mips_elf_relocate_section): Likewise.
2566
2567 1999-07-13 Mark Mitchell <mark@codesourcery.com>
2568
2569 * elf32-mips.c (mips_elf_calculate_relocation): Handle R_MIPS16_26.
2570 (mips_elf_relocate_section): Adjust calling sequence for
2571 mips_elf_perform_relocation.
2572 (mips_elf_perform_relocation): Take additional argument. Handle
2573 R_MIPS16_26. Use bfd_put for convenience.
2574
2575 1999-07-13 Richard Henderson <rth@cygnus.com>
2576
2577 * elf.c (assign_file_positions_for_segments): Thinko last change.
2578 Always overwrite p_flags.
2579
2580 1999-07-13 Richard Henderson <rth@cygnus.com>
2581
2582 * elf-bfd.h (struct elf_backend_data): Add want_dynbss.
2583 * elflink.c (_bfd_elf_create_dynamic_sections): Only create
2584 .dynbss and .rel[a].bss if want_dynbss.
2585 * elfxx-target.h (elf_backend_want_dynbss): Provide default.
2586
2587 1999-07-13 Richard Henderson <rth@cygnus.com>
2588
2589 * elf.c (assign_file_positions_for_segments): Don't overwrite p_flags.
2590
2591 1999-07-13 Richard Henderson <rth@cygnus.com>
2592
2593 * elf-bfd.h (struct elf_link_local_dynamic_entry): New.
2594 (struct elf_link_hash_table): Add dynlocal.
2595 (_bfd_elf_link_lookup_local_dynindx): Prototype.
2596 (_bfd_elf_link_adjust_dynindx): Delete.
2597 (_bfd_elf_link_renumber_dynsyms): Prototype.
2598 (_bfd_elf,link_record_local_dynamic_symbol): Prototype.
2599 * elfcode.h (elf_link_record_local_dynamic_symbol): New alias.
2600 * elflink.c (_bfd_elf_link_adjust_dynindx): Delete.
2601 (_bfd_elf_link_lookup_local_dynindx): New function.
2602 (elf_link_renumber_hash_table_dynsyms): New function.
2603 (_bfd_elf_link_renumber_dynsyms): New function.
2604 * elflink.h (elf_link_record_local_dynamic_symbol): New function.
2605 (struct elf_assign_sym_version_info): Delete removed_dynamic.
2606 (bfd_elf,size_dynamic_sections): Use _bfd_strip_section_from_output
2607 instead of elf_link_remove_section_and_adjust_dynindices.
2608 Remove removed_dynamic code. Use _bfd_elf_link_renumber_dynsyms.
2609 (elf_link_assign_sym_version): Remove removed_dynamic code.
2610 (elf_link_renumber_dynsyms): Delete.
2611 (elf_bfd_final_link): Install section and local symbols into .dynsym.
2612
2613 * elf32-m68k.c (elf_m68k_adjust_dynindx): Delete.
2614 (elf_m68k_size_dynamic_sections): Don't set section dynindicies.
2615 (elf_m68k_finish_dynamic_sections): Don't write section dynsyms.
2616 * elf32-mips.c: Similarly.
2617 * elf32-ppc.c: Similarly.
2618 * elf32-sparc.c: Similarly.
2619 * elf64-alpha.c: Similarly.
2620 * elf64-sparc.c: Similarly.
2621
2622 1999-07-13 Mark Mitchell <mark@codesourcery.com>
2623
2624 * elf32-mips.c (mips_elf_calculate_relocation): Do not complain
2625 when _gp_disp is undefined. Do not check R_MIPS_LO16 for overflow
2626 when the relocation is against _gp_disp.
2627
2628 1999-07-12 Mark Mitchell <mark@codesourcery.com>
2629
2630 * dwarf2.c (read_attribute): Support DW_FORM_ref8.
2631 * elf32-mips.c (mips_elf_link_hash_entry): Change mips_32_relocs
2632 to possibly_dynamic_relocs. Adjust usage throughout code.
2633 (elf_mips_howto_table): Handle R_MIPS_64 correctly.
2634 (elf_mips_ctor64_howto): Likewise.
2635 (mips_elf_calculate_relocation): Handle R_MIPS_64 like R_MIPS_32.
2636 Adjust indentation.
2637 (mips_elf_relocate_section): Handle R_MIPS_64 in 32-bit mode.
2638 (_bfd_mips_elf_check_relocs): Handle R_MIPS_64 like R_MIPS_32.
2639 Use MIPS_ELF_GOT_SIZE to calculate the size of GOT entries.
2640 * elf64-mips.c (elf_backend_may_use_rel_p): Define.
2641
2642 1999-07-12 Ian Lance Taylor <ian@zembu.com>
2643
2644 * Makefile.am: Rebuild dependencies.
2645 * Makefile.in: Rebuild.
2646
2647 * bfd-in.h: Remove tests of COFF_IMAGE_WITH_PE.
2648 * bfd-in2.h: Rebuild.
2649
2650 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
2651 as appropriate. Use EMPTY_HOWTO as appropriate. Fill in
2652 structure initializations. Add casts.
2653 * reloc.c (EMPTY_HOWTO): Define.
2654 * bfd-in2.h: Rebuild.
2655 * coff-h8300.c (h8300_reloc16_extra_cases): Remove useless
2656 comparisons against 0.
2657 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Change
2658 previous_ibfd_e_flags to unsigned long.
2659 * vms.h (struct vms_private_data_struct): Change section_count to
2660 unsigned.
2661 * vms-gsd.c (_bfd_vms_slurp_gsd): Change psect_idx to unsigned.
2662 (_bfd_vms_write_gsd): Change symnum to unsigned.
2663 * vms-hdr.c (_bfd_vms_write_hdr): Change symnum to unsigned.
2664 * vms-tir.c (etir_sta): Change psect to unsigned.
2665 (alloc_section): Change idx to unsigned.
2666 (tir_sta, tir_ctl): Change psect to unsigned.
2667 (_bfd_vms_write_tir): Change len and before to bfd_size_type.
2668 * vms.c (priv_section_count): Change to unsigned.
2669
2670 1999-07-12 Andreas Schwab <schwab@suse.de>
2671
2672 * elf32-m68k.c: Add some ATTRIBUTE_UNUSED.
2673 * m68klinux.c: Likewise.
2674
2675 1999-07-12 Ian Lance Taylor <ian@zembu.com>
2676
2677 * Many files: Changes to avoid gcc warnings: Remove unused local
2678 variables. Add default case to enum switches.
2679 * coff-arm.c (bfd_arm_allocate_interworking_sections): Only
2680 compile if not COFF_IMAGE_WITH_PE.
2681 (record_arm_to_thumb_glue, record_thumb_to_arm_glue): Likewise.
2682 (bfd_arm_get_bfd_for_interworking): Likewise.
2683 (bfd_arm_process_before_allocation): Likewise.
2684 * epoc-pei-arm.c: Don't rename bfd_arm functions.
2685 * pei-arm.c: Likewise.
2686 * elf32-mips.c (mips_elf_link_hash_table_create): Don't declare.
2687 (MIPS_ELF_ADD_DYNAMIC_ENTRY): Correct last change.
2688 (mips_elf_got16_entry): Put parens around & in body of ==.
2689 (mips_elf_calculate_relocation): Correct test for empty string.
2690 * vms-gsd.c: Use _bfd_error_handler rather than fprintf to
2691 stderr.
2692 * vms-misc.c (_bfd_vms_length_hash_symbol): Correct sprintf
2693 format.
2694
2695 1999-07-11 Ian Lance Taylor <ian@zembu.com>
2696
2697 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
2698 as appropriate. Fill in structure initializations. Add variable
2699 initializations. Add casts.
2700 * dwarf1.c (parse_line_table): Change eachLine to unsigned long.
2701 (dwarf1_unit_find_nearest_line): Change i to unsigned long.
2702
2703 * elf.c (bfd_elf_hash): Change parameter from unsigned char * to
2704 char *.
2705 * elf-bfd.h (bfd_elf_hash): Update declaration.
2706 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Remove casts
2707 when calling bfd_elf_hash.
2708
2709 1999-07-11 Mark Mitchell <mark@codesourcery.com>
2710
2711 * libbfd.c (bfd_put_8): Make it of type `void'.
2712 * bfd-in2.h: Regenerated.
2713 * elf32-mips.c (MIPS_ELF_ADD_DYNAMIC_ENTRY): Conditionalize
2714 for 32-bit hosts.
2715 (_bfd_mips_elf_final_link): Likewise.
2716
2717 * elflink.h (elf_link_read_relocs_from_section): Be type-correct.
2718
2719 Thu Jul 8 12:32:23 1999 John David Anglin <dave@hiauly1.hia.nrc.ca>
2720
2721 * config.bfd (hppa*-*-linux-gnu*): New target
2722
2723 1999-07-07 Mark Mitchell <mark@codesourcery.com>
2724
2725 * elf-bfd.h (_bfd_mips_elf_section_from_shdr): Constify.
2726 (_bfd_mips_elf_create_dynamic_sections): New function.
2727 (_bfd_mips_elf_add_symbol_hook): Likewise.
2728 (_bfd_mips_elf_adjust_dynamic_symbol): Likewise.
2729 (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
2730 (_bfd_mips_elf_finish_dynamic_sections): Likewise.
2731 (_bfd_mips_elf_gc_mark_hook): Likewise.
2732 (_bfd_mips_elf_gc_sweep_hook): Likewise.
2733 (_bfd_mips_elf_always_size_sections): Likewise.
2734 (_bfd_mips_elf_size_dynamic_sections): Likewise.
2735 (_bfd_mips_elf_check_relocs): Likewise.
2736 (_bfd_mips_elf_link_hash_table_create): Likewise.
2737 (_bfd_mips_elf_print_private_data): Likewise.
2738 (_bfd_mips_elf_link_output_symbol_hook): Likewise.
2739 (_bfd_mips_elf_final_link): Likewise.
2740 (_bfd_mips_elf_additional_program_headers): Likewise.
2741 (_bfd_mips_elf_modify_segment_map): Likewise.
2742 (_bfd_mips_elf_relocate_section): Likewise.
2743 * elf32-mips.c (mips_elf32_object_p): Move contents into
2744 _bfd_mips_elf_object_p.
2745 (mips_elf_additional_program_headers): Rename to
2746 _bfd_mips_elf_additional_program_headers.
2747 (mips_elf_modify_segment_map): Rename to
2748 _bfd_mips_elf_modify_segment_map.
2749 (elf_mips_abi_name): Change prototype.
2750 (mips_elf32_section_from_shdr): Merge into
2751 _bfd_mips_elf_section_from_shdr.
2752 (mips_elf32_section_processing): Merge into
2753 _bfd_mips_elf_section_processing.
2754 (mips_elf_final_link): Rename to _bfd_mips_elf_final_link. Invoke
2755 the right back-end ELF linker.
2756 (mips_elf_relocate_section): Rename to
2757 _bfd_mips_elf_relocate_section. Clean up. Adjust for 64-bit code.
2758 (mips_elf_link_output_symbol_hook): Rename to
2759 _bfd_mips_elf_link_output_symbol_hook.
2760 (mips_elf_create_dynamic_section): Rename to
2761 _bfd_mips_elf_create_dynamic_section.
2762 (mips_elf_check_relocs): Rename to _bfd_mips_elf_check_relocs.
2763 Adjust for 64-bit code. Use mips_elf_got_section.
2764 (mips_elf_adjust_dynamic_symbol): Rename to
2765 _bfd_mips_elf_adjust_dynamic_symbol. Use
2766 mips_elf_allocate_dynamic_relocations.
2767 (mips_elf_finish_dynamic_symbol): Rename to
2768 _bfd_mips_elf_finish_dynamic_symbol. Use mips_elf_got_section.
2769 Adjust for 64-bit code.
2770 (mips_elf_finish_dynamic_sections): Rename to
2771 _bfd_mips_elf_finish_dynamic_sections. Adjust for 64-bit code.
2772 (mips_elf_always_size_sections): Rename to
2773 _bfd_mips_elf_always_size_sections.
2774 (mips_elf_add_symbol_hook): Rename to
2775 _bfd_mips_elf_add_symbol_hook.
2776 (mips_elf_next_lo16_addend): Constify.
2777 (mips_elf_calculate_relocation): Likewise.
2778 (mips_elf_obtain_contents): Likewise.
2779 (mips_elf_perform_relocation): Likewise.
2780 (mips_elf_create_dynamic_relocation): Likewise.
2781 (mips_elf_allocate_dynamic_relocations): New function.
2782 (MIPS_ELF_REL_DYN_SECTION_NAME): New macro.
2783 (MIPS_ELF_REL_SIZE): Likewise.
2784 (MIPS_ELF_DYN_SIZE): Likewise.
2785 (MIPS_ELF_GOT_SIZE): Likewise.
2786 (MIPS_ELF_SYM_SIZE): Likewise.
2787 (MIPS_ELF_LOG_FILE_ALIGN): Likewise.
2788 (MIPS_ELF_GET_WORD): Likewise.
2789 (MIPS_ELF_PUT_WORD): Likewise.
2790 (MIPS_ELF_ADD_DYNAMIC_ENTRY): Likewise.
2791 (STUB_LW): Conditionalize for 64-bit value.
2792 (elf_mips_howto_table): Add R_MIPS_HIGHER and R_MIPS_HIGHEST
2793 entries.
2794 (_bfd_mips_elf_merge_private_bfd_data): Merge e_ident[EI_CLASS].
2795 Check it for inconsistency.
2796 (_bfd_mips_elf_print_private_bfd_data): Print ABI=64 for 64-bit
2797 ABI.
2798 (_bfd_mips_elf_fake_sections): Remove duplicate handling of
2799 .msym.
2800 (mips_elf_global_got_index): Use MIPS_ELF_GOT_SIZE.
2801 (mips_elf_got_offset_from_index): Use misp_elf_got_section.
2802 (mips_elf_create_local_got_entry): Use MIPS_ELF_GOT_SIZE.
2803 (mips_elf_local_got_index): Likewise.
2804 (mips_elf_got_page): Likewise.
2805 (mips_elf_got_info): Likewise.
2806 (mips_elf_create_dynamic_relocation): Handle 32-bit/64-bit split.
2807 (ELF_DYNAMIC_INTERPRETER): Handle 64-bit code.
2808 (mips_elf_create_dynamic_sections): Use MIPS_ELF_LOG_FILE_ALIGN,
2809 instead of constant `2'.
2810 (mips_elf_create_got_section): Tidy. Use MIPS_ELF_GOT_SIZE.
2811 (mips_elf_create_msym_section): Use MIPS_ELF_LOG_FILE_ALIGN.
2812 (mips_elf_size_dynamic_sections): Use
2813 MIPS_ELF_REL_DYN_SECTION_NAME, MIPS_ELF_GOT_SIZE,
2814 MIPS_ELF_ADD_DYNAMIC_ENTRY. Remove #if 0'd code.
2815 Adjust all releveant entries in elf backend table.
2816 * elf64-mips.c (mips_elf64_section_from_shdr): Remove.
2817 (mips_elf64_section_processing): Likewise.
2818 Adjust elf backend entries to use _bfd_mips_elf variants now
2819 publicly available.
2820
2821 * elflink.h (elf_link_create_dynamic_sections): Handle non-standard
2822 hash-entry sizes.
2823 (size_dynamic_sections): Likewise.
2824 (elf_link_output_extsym): Likewise.
2825 * elf.c: (elf_fake_sections): Likewise.
2826 * libbfd.c (bfd_get): New macro.
2827 (bfd_put): Likewise.
2828 * bfd-in2.h: Regenerated.
2829
2830 1999-07-07 Mark Mitchell <mark@codesourcery.com>
2831
2832 * elf-bfd.h (elf_size_info): Add hash_entry_size,
2833 int_rels_per_ext_rel, swap_dyn_out, swap_reloc_in, swap_reloc_out,
2834 wap_reloca_in, and swap_reloca_out.
2835 * elflink.h (elf_link_read_relocs_from_section): Adjust to handle
2836 multiple internal relocations per external relocation.
2837 (link_read_relocs): Likewise.
2838 (elf_bfd_final_link): Likewise.
2839 (elf_link_input_bfd): Likewise.
2840 (elf_gc_mark): Likewise.
2841 (elf_gc_smash_unused_vtentry_relocs): Likewise.
2842 * elfcode.h (elf_swap_dyn_out): Adjust type to match
2843 elf_swap_dyn_in.
2844 (size_info): Add entries for new fields.
2845 * elf64-mips.c (mips_elf64_swap_reloc_out): Enable.
2846 (mips_elf64_be_swap_reloc_in): New function.
2847 (mips_elf64_be_swap_reloc_out): Likewise.
2848 (mips_elf64_be_swap_reloca_in): Likewise.
2849 (mips_elf64_be_swap_reloca_out): Likewise.
2850 (mips_elf64_size_info): Add entries for new fields.
2851
2852 1999-07-07 Ian Lance Taylor <ian@zembu.com>
2853
2854 * elflink.h (elf_bfd_final_link): Assert that section reloc_count
2855 field equals the new rel_count field.
2856 (elf_link_input_bfd): When doing a relocateable link, use the new
2857 rel_count field rather than the reloc_count field.
2858 (elf_reloc_link_order): Likewise.
2859 (elf_finish_pointer_linker_section): Likewise.
2860
2861 Based on patch from H.J. Lu <hjl@gnu.org>:
2862 * elflink.h (elf_merge_symbol): Permit a non-weak definition in a
2863 shared library to override a weak definition in a regular object.
2864
2865 Tue Jul 6 10:23:39 1999 Jeffrey A Law (law@cygnus.com)
2866
2867 * libhppa.h: Revert July 2, 1999 patch.
2868
2869 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): T mode selectors
2870 need to generate DLTIND relocations, not DLTREL relocations.
2871
2872 1999-07-05 Nick Clifton <nickc@cygnus.com>
2873
2874 * coffcode.h (coff_set_arch_mach_hook): Recognise arm 5
2875 architectures.
2876 (coff_set_flags): Recognise arm 5 architectures.
2877
2878 * cpu-arm.c: Add support for strongarm and arm9 cpus.
2879 Add support for armv5 architecture.
2880
2881 * archures.c: Add bfd_mach_arm_5 and bfd_mach_arm_5T.
2882
2883 * reloc.c: Add new, assembler only, ARM reloc:
2884 BFD_RELOC_ARM_ADRL_IMMEDIATE.
2885
2886 * bfd-in2.h: Regenerate.
2887
2888 1999-07-02 Mark Mitchell <mark@codesourcery.com>
2889
2890 * dwarf2.c (parse_comp_unit): Add ABBREV_LENGTH parameter.
2891 (_bfd_dwarf2_find_nearest_line): Add ADDR_SIZE parameter.
2892 * elf.c (_bfd_elf_find_nearest_line): Pass it.
2893 * elf32-arm.h (elf32_arm_find_nearest_line): Likewise.
2894 * elf32-mips.c (ABI_64_P): New macro.
2895 (IRIX_COMPAT): We are IRIX6-compatible if ABI_64_P.
2896 (_bfd_mips_elf_find_nearest_line): Adjust call to
2897 _bfd_dwarf2_find_nearest_line.
2898 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
2899 * libbfd.h: Regenerated.
2900
2901 1999-07-02 Ian Lance Taylor <ian@zembu.com>
2902
2903 * config.bfd: Add * at the end of i[3456]86-*-unixware.
2904
2905 Fri Jul 2 12:21:10 1999 Jeffrey A Law (law@cygnus.com)
2906
2907 * libhppa.h (HPPA_R_ARG_RELOC): Delete.
2908 (HPPA_R_CONSTANT, HPPA_R_ADDEND): Likewise.
2909
2910 1999-07-01 Mark Mitchell <mark@codesourcery.com>
2911
2912 * elf-bfd.h (bfd_elf_section_data): Add rel_count and rel_count2
2913 fields.
2914 (_bfd_elf_init_reloc_shdr): New function.
2915 * elf.c (_bfd_elf_new_section_hook): Use bfd_zalloc, rather than
2916 bfd_alloc followed by memset.
2917 (_bfd_elf_init_reloc_shdr): New function, split out from ...
2918 (elf_fake_sections): Here.
2919 (assign_section_numbers): Assign section numbers for the second
2920 relocation section, if required.
2921 * elflink.h (elf_link_output_relocs): New function.
2922 (elf_link_size_reloc_section): Likewise.
2923 (elf_bfd_final_link): Use elf_link_size_reloc_section.
2924 (elf_link_input_bfd): Use elf_link_output_relocs.
2925
2926 * elf32-mips.c (_bfd_mips_elf_fake_sections): Use
2927 _bfd_elf_init_reloc_shdr to initialize rel_hdr2.
2928
2929 Thu Jul 1 13:58:48 1999 Jeffrey A Law (law@cygnus.com)
2930
2931 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle R_PCREL_CALL
2932 with 22bit format.
2933
2934 1999-06-28 Mark Mitchell <mark@codesourcery.com>
2935
2936 * elf32-mips.c (mips_elf_got_info): Move declaration before
2937 prototypes. Change global_gotsym to be a pointer to a hash entry,
2938 rather than a number index.
2939 (mips_elf_link_hash_entry): Move declaration before prototypes.
2940 (mips_elf_irix6_finish_dynamic_symbol): New function.
2941 (mips_elf_sign_extend): Likewise.
2942 (mips_elf_high): Likewise.
2943 (mips_elf_higher): Likewise.
2944 (mips_elf_highest): Likewise.
2945 (mips_elf_global_got_index): Likewise.
2946 (mips_elf_local_got_index): Likewise.
2947 (mips_elf_got_offset_from_index): Likeiwse.
2948 (mips_elf_record_global_got_symbol): Likewise.
2949 (mips_elf_got_page): Likewise.
2950 (mips_elf_next_lo16_addend): Likewise.
2951 (mips_elf_calculate_relocation): Likewise.
2952 (mips_elf_obtain_contents): Likewise.
2953 (mips_elf_perform_relocation): Likewise.
2954 (mips_elf_assign_gp): Likewise.
2955 (mips_elf_sort_hash_table_f): Likewise.
2956 (mips_elf_sort_hash_table): Likewise.
2957 (mips_elf_got_section): Likewise.
2958 (mips_elf_got_info): Likewise.
2959 (mips_elf_create_local_got_entry): Likewise.
2960 (mips_elf_got16_entry): Likewise.
2961 (mips_elf_create_dynamic_relocation): Likewise.
2962 (elf_mips_howto_table): Add description of R_MIPS_SCN_DISP.
2963 (mips_elf_final_gp): Use mips_elf_assign_gp.
2964 (_bfd_mips_elf_symbol_processing): Don't move SHN_COMMON symbols
2965 into SHN_SCOMMON automatically on IRIX6.
2966 (mips_elf_add_symbol_hook): Likewise.
2967 (mips_elf_relocate_section): Rewrite, using
2968 mips_elf_calculate_relocation and mips_elf_perform_relocation.
2969 (mips_elf_create_dynamic_section): Use MIPS_ELF_STUB_SECTION_NAME.
2970 Don't deal with .rld_map on IRIX6.
2971 (mips_elf_create_got_section): Adjust use of global_gotsym. Set
2972 section flags appropriately for .got.
2973 (mips_elf_check_relocs): Handle IRIX6 relocations making use of
2974 the got. Call mips_elf_record_global_got_symbol and allocate
2975 local got space appropriately.
2976 (mips_elf_size_dynamic_sections): Use bfd_byte *, not unsigned
2977 char *. Rework calculation of GOT size. Sort dynamic symbol
2978 table entries so entries that do not require GOT entries appear at
2979 the beginning. Don't use DT_MIPS_HIPAGENO on IRIX6. Remove dead
2980 code dealing with DT_INIT and DT_FINI. Remove fiddling with
2981 global_gotsym.
2982 (mips_elf_finish_dynamic_symbol): Adjust creation of global GOT
2983 entries.
2984 (mips_elf_finish_dynamic_symbol): Use
2985 mips_elf_irix6_finish_dynamic_symbol.
2986 (mips_elf_finish_dynamic_sections): Correct off-by-one error
2987 setting DT_MIPS_UNREFEXTNO. Adjust setting of DT_MIPS_GOTSYM for
2988 change to global_gotsym. Set DT_MIPS_OPTIONS on IRIX6.
2989
2990 1999-06-30 Ian Lance Taylor <ian@zembu.com>
2991
2992 * elf32-mips.c (mips_elf_final_link): Don't set CPIC when doing a
2993 relocateable link. From Ralf Baechle <ralf@uni-koblenz.de>.
2994
2995 1999-06-04 Philip Blundell <philb@gnu.org>
2996
2997 * elf32-arm.h (elf_backend_got_header_size): Define.
2998 (elf_backend_plt_header_size): Likewise.
2999
3000 1999-06-28 Jim Pick <jim@jimpick.com>
3001
3002 * elf32-arm.h (elf32_arm_relocate_section): Mind no_undefined
3003
3004 Tue Jun 29 02:25:03 1999 Jeffrey A Law (law@cygnus.com)
3005
3006 * elf-hppa.c (elf_hppa_howto_table): Use bfd_elf_generic_reloc as
3007 relocation function.
3008 * elf32-hppa.c (hppa_elf_reloc): Kill unused/unwanted function.
3009
3010 1999-06-27 Mark Mitchell <mark@codesourcery.com>
3011
3012 * elf32-mips.c (MIPS_ELF_SRDATA_SECTION_NAME): New macro.
3013 (MIPS_ELF_OPTIONS_SECTION_NAME): Likewise.
3014 (MIPS_ELF_STUB_SECTION_NAME): Likewise.
3015 (_bfd_mips_elf_section_from_shdr): Use them.
3016 (_bfd_mips_elf_fake_sections): Likewise. Add .srdata to the list
3017 of GP-relative sections.
3018 (_bfd_mips_elf_set_section_contents): Use them.
3019 (_bfd_mips_elf_section_processing): Share code between .sdata and
3020 .lit4/.lit8 sections. Set appropriate flags for .srdata.
3021 (mips_elf_additional_program_headers): Add handling for
3022 PT_MIPS_OPTIONS segment on IRIX6.
3023 (mips_elf_modify_segment_map): Likeiwse.
3024 (mips_elf_final_link): Set EF_MIPS_CPIC when required by the ABI.
3025 Include the options sections on IRIX6. Don't look for GP-relative
3026 sections by name; use SHF_MIPS_GPREL instead.
3027 (ELF_DYNAMIC_INTERPRETER): Adjust to use /usr/lib32/libc.so.1 for
3028 the N32 ABI.
3029 (mips_elf_create_dynamic_sections): Don't muck about with section
3030 alignments and such on IRIX6.
3031 (mips_elf_adjust_dynamic_symbol): Use MIPS_ELF_STUB_SECTION_NAME.
3032 (mips_elf_size_dynamic_sections): Likewise. Adjust to handle the
3033 fact that ELF_DYNAMIC_INTERPRETER is no longer a constant. Use
3034 bfd_zalloc rather than bfd_alloc and memset.
3035 (mips_elf_finish_dynamic_symbol): Use MIPS_ELF_STUB_SECTION_NAME.
3036 Don't assert the existence of .rld_map on IRIX6.
3037 (mips_elf_finish_dynamic_sections): Use MIPS_ELF_STUB_SECTION_NAME.
3038
3039 * elf32-mips.c (mips_elf_adjust_dynindx): Remove.
3040 (mips_elf_size_dynamic_sections): Use _bfd_elf_link_adjust_dynindx
3041 instead.
3042
3043 1999-06-26 Mark Mitchell <mark@codesourcery.com>
3044
3045 * elf32-mips.c (mips_elf_swap_msym_in): New function.
3046 (mips_elf_swap_msym_out): New function.
3047 (mips_elf_create_msym_section): Likewise.
3048 (MIPS_ELF_MSYM_SECTION_NAME): New macro.
3049 (_bfd_mips_elf_final_write_processing): Set sh_link for .msym.
3050 (_bfd_mips_elf_section_from_shdr): Reject an SHT_MIPS_MSYM
3051 section not named .msym.
3052 (_bfd_mips_elf_fake_sections): Use MIPS_ELF_MSYM_SECTION_NAME, not
3053 .msym directly. Set appropriate attributes for the .msym
3054 section.
3055 (mips_elf_link_hash_entry): Add min_dyn_reloc_index field.
3056 (mips_elf_link_hash_newfunc): Clear it.
3057 (mips_elf_create_dynamic_sections): Create the .msym section
3058 on IRIX6.
3059 (mips_elf_size_dynamic_sections): Allocate space for the
3060 .msym section. Add a DT_MIPS_MSYM entry.
3061 (mips_elf_finish_dynamic_symbol): Write out a .msym entry for
3062 the symbol.
3063 (mips_elf_finish_dynamic_sections): Assign a value for
3064 DT_MIPS_MSYM. Add .msym entries for the section symbols as well.
3065
3066 * elf32-mips.c (irix_compat_t): New enumeration.
3067 (ABI_N32_P): New macro.
3068 (IRIX_COMPAT): Likewise.
3069 (SGI_COMPAT): Implement in terms of IRIX_COMPAT.
3070 (mips_elf_relocate_section): Fix typo.
3071
3072 1999-06-26 Mumit Khan <khan@xraylith.wisc.edu>
3073
3074 * peicode.h (coff_swap_scnhdr_out): Mark non readonly BFD sections
3075 as writable PE sections.
3076
3077 1999-06-26 David Mosberger <davidm@hpl.hp.com>
3078
3079 * dwarf2.c (struct arange): New type.
3080 (struct comp_unit): Replace LOW and HIGH by member ARANGE.
3081 (arange_add): New function.
3082 (decode_line_info): Keep track of address ranges that a compilation
3083 unit covers.
3084 (comp_unit_contains_address): Return true if address is contained
3085 in _any_ of the address ranges associated with a compilation unit.
3086 (_bfd_dwarf2_find_nearest_line): Call comp_unit_find_nearest_line
3087 on the first comp_unit that contains the address.
3088
3089 1999-06-26 David Mosberger <davidm@hpl.hp.com>
3090
3091 * dwarf2.c (struct dwarf2_debug): Add member dwarf_line_buffer.
3092 (decode_line_info): Add variable STASH and initialize it to point
3093 to the per-bfd dwarf2_debug info. Remove static variable
3094 dwarf_line_buffer and use stash->dwarf_line_buffer in its place.
3095
3096 1999-06-26 Ian Lance Taylor <ian@zembu.com>
3097
3098 * elflink.h (elf_link_output_extsym): It's OK for a -Bsymbolic
3099 shared library to have an undefined symbol.
3100
3101 From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>:
3102 * elf32-ppc.c (ppc_elf_relocate_section): Fix last patch.
3103
3104 Thu Jun 24 20:59:11 1999 Jeffrey A Law (law@cygnus.com)
3105
3106 * elf-hppa.c (elf_hppa_final_write_processing): New function.
3107 * elf32-hppa.c: Remove everything related to symbol extension
3108 sections & records. Use the common elf_hppa_final_write_processing.
3109
3110 1999-06-22 Mark Mitchell <mark@codesourcery.com>
3111
3112 * elflink.h (size_dynamic_sections): Use user-specified init/fini
3113 functions instead of _init/_fini if requested.
3114
3115 1999-06-23 Ian Lance Taylor <ian@zembu.com>
3116
3117 * elf.c (bfd_section_from_shdr): Avoid crashing on a bogus sh_link
3118 field.
3119
3120 1999-06-22 Ian Lance Taylor <ian@zembu.com>
3121
3122 From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>:
3123 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set unused dynindx
3124 field to 0, not -1.
3125 (ppc_elf_finish_dynamic_sections): Check for positive section
3126 dynindx field, rather than comparing against -1.
3127 (ppc_elf_relocate_section): Only return false if undefined_symbol
3128 or reloc_overflow fail, not always upon encountering an error.
3129
3130 1999-06-22 Mark Mitchell <mark@codesourcery.com>
3131
3132 * elflink.h (link_read_relocs): Explicitly cast external_relocs to
3133 bfd_byte * before performing pointer arithmetic.
3134
3135 Tue Jun 22 13:06:25 1999 Jeffrey A Law (law@cygnus.com)
3136
3137 * elf-hppa.h: New file. Common stuff for elf32 and elf64 PA
3138 support.
3139 * elf32-hppa.c: Include elf-hppa.h.
3140 (ARCH_SIZE): Define.
3141 (elf_hppa_reloc_type_lookup): Delete. Found in the common code
3142 now.
3143 (elf32_hppa_info_to_howto): Similarly.
3144 (elf_hppa_howto_table): Similarly.
3145 (elf_hppa_reloc_type_lookup): Similarly.
3146 (hppa_elf_gen_reloc_type): Similarly.
3147 * elf32-hppa.h (ELF_HOWTO_TALBE, N_PARISC_RELOCS): Delete.
3148
3149 1999-06-22 Nick Clifton <nickc@cygnus.com>
3150
3151 * elf32-v850.c (v850_elf_final_link_relocate): Catch overflow
3152 handling R_V850_22_PCREL relocation.
3153
3154 1999-06-21 Ian Lance Taylor <ian@zembu.com>
3155
3156 * coff-arm.c (arm_emit_base_file_entry): Explicitly declare return
3157 type.
3158
3159 Sun Jun 20 14:13:57 1999 Richard Henderson <rth@cygnus.com>
3160
3161 * section.c (_bfd_strip_section_from_output): Ignore sections
3162 DISCARDed by the link script.
3163
3164 1999-06-19 Ian Lance Taylor <ian@zembu.com>
3165
3166 * elflink.h (elf_link_remove_section_and_adjust_dynindices):
3167 Remove unused local variable spp.
3168
3169 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't crash if
3170 the entry symbol is not set.
3171
3172 Fri Jun 18 04:24:57 1999 Richard Henderson <rth@cygnus.com>
3173
3174 * elf64-alpha.c (elf64_alpha_relocate_section): Don't adjust
3175 GPDISP or LITUSE in a relocatable link.
3176
3177 Thu Jun 17 21:24:43 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
3178
3179 * dwarf1.c (alloc_dwarf1_unit): Allocate using bfd_zalloc.
3180 * (alloc_dwarf1_func): Likewise.
3181
3182 Wed Jun 16 03:09:57 1999 Jeffrey A Law (law@cygnus.com)
3183
3184 * libhppa.h: Fix various formatting errors.
3185 (assemble_3); Rewrite using CATENATE.
3186 (assemble_17): Fix various bugs.
3187
3188 1999-06-16 Nick Clifton <nickc@cygnus.com>
3189
3190 * elf32-mcore.c (R_MCORE_RAW): Fix definition.
3191
3192 1999-06-15 Richard Henderson <rth@cygnus.com>
3193
3194 * section.c (SEC_SHORT): Define.
3195 * bfd-in2.h: Rebuild.
3196
3197 1999-06-13 Mark Mitchell <mark@codesourcery.com>
3198
3199 * elflink.h (elf_link_remove_section_and_adjust_dynindices):
3200 Remove abfd parameter. Use _bfd_strip_section_from_output.
3201 (bfd_elf_size_dynamic_sections): Adjust callers accordingly.
3202
3203 * elf-bfd.h (_bfd_elf_link_adjust_dynindx): New function.
3204 * elflink.c (_bfd_elf_link_adjust_dynindx): Define it.
3205 * elflink.h (elf_link_remove_section_and_adjust_dynindices): New
3206 function.
3207 (bfd_elf_size_dynamic_sections): Use it.
3208
3209 1999-06-13 Alan Modra <alan@spri.levels.unisa.edu.au>
3210
3211 * elf32-i386.c (elf_howto_table): Change R_386_PC8 from
3212 complain_overflow_bitfield to complain_overflow_signed.
3213
3214 1999-06-13 Mark Mitchell <mark@codesourcery.com>
3215
3216 * elflink.h (elf_link_read_relocs_from_section): New function,
3217 split out from ...
3218 (elf_link_read_relocs): Here. Use it for both relocation
3219 sections.
3220
3221 1999-06-12 Mark Mitchell <mark@codesourcery.com>
3222
3223 * elfcode.h (elf_slurp_reloc_table_from_section): Don't assume
3224 asect->reloc_count is valid.
3225
3226 1999-06-12 Ian Lance Taylor <ian@zembu.com>
3227
3228 * elf32-mips.c (mips_elf32_section_processing): Permit a
3229 SHT_MIPS_REGINFO section to have a size of 0.
3230
3231 1999-06-12 David O'Brien <obrien@freebsd.org>
3232
3233 * config.bfd (alpha*-*-freebsd*): New target.
3234 (i[3456]86-*-freebsd*): Now defaults to ELF.
3235
3236 1999-06-11 Ian Lance Taylor <ian@zembu.com>
3237
3238 * reloc.c (_bfd_relocate_contents): Permit bitfield relocations to
3239 wrap if the relocation covers the high bit of an address.
3240
3241 * dwarf2.c (decode_line_info): Remove unused variable first_time.
3242
3243 1999-06-10 Jakub Jelinek <jj@ultra.linux.cz>
3244
3245 * elf64_sparc.c (sparc64_elf_relocate_section): Use R_SPARC_max_std
3246 instead of R_SPARC_max.
3247 (sparc64_elf_info_to_howto): Likewise.
3248 * elf32_sparc.c (elf32_sparc_relocate_section): Likewise.
3249 (elf32_sparc_info_to_howto): Likewise; handle vtable relocations.
3250
3251 1999-06-07 Richard Henderson <rth@cygnus.com>
3252
3253 * section.c (_bfd_strip_section_from_output): Remove output
3254 sections with no initial link_order.
3255
3256 1999-06-07 Nick Clifton <nickc@cygnus.com>
3257
3258 * elf32-m88k.c (ELF_MAXPAGESIZE): Define.
3259
3260 Mon Jun 7 11:49:43 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3261
3262 * Makefile.am (SOURCE_HFILES): Add missing headers.
3263 * Makefile.in: Regenerated.
3264
3265 1999-06-06 Mark Mitchell <mark@codesourcery.com>
3266
3267 * elf32-mips.c (_bfd_mips_elf_print_private_data): Recognize
3268 the N32 ABI.
3269
3270 1999-06-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3271
3272 * elf32-ppc.c (ppc_elf_relocate_section): Don't barf on out of
3273 range undefweak symbols.
3274 * hash.c: Add missing comma after @xref{}
3275 * linker.c: Likewise.
3276
3277 1999-06-04 Nick Clifton <nickc@cygnus.com>
3278
3279 * elfxx-target.h (ELF_MAXPAGESIZE): Produce an error message
3280 if not defined.
3281 * elf32-gen.c (ELF_MAXPAGESIZE): Define.
3282 * elf32-i860.c (ELF_MAXPAGESIZE): Define.
3283 * elf32-i960.c (ELF_MAXPAGESIZE): Define.
3284 * elf64-gen.c (ELF_MAXPAGESIZE): Define.
3285
3286 1999-06-04 Ian Lance Taylor <ian@zembu.com>
3287
3288 * Makefile.am: Rebuild dependencies.
3289 (BFD32_BACKENDS): Add dwarf1.lo.
3290 (BFD32_BACKENDS_CFILES): Add dwarf1.c.
3291 * Makefile.in: Rebuild.
3292
3293 1999-06-04 Nick Clifton <nickc@cygnus.com>
3294
3295 * Makefile.am: Add epoc-arm-pe target.
3296 * Makefile.in: Regenerate.
3297 * pe-arm.c: Only redefine interworking function names if they have
3298 not already been redefined.
3299 * pei-arm.c: Only redefine interworking function names if they have
3300 not already been redefined.
3301 * epoc-pe-arm.c: Redefine interworking function names to avoid a
3302 name space clash.
3303 * epoc-pei-arm.c: Redefine interworking function names to avoid a
3304 name space clash.
3305
3306 1999-06-03 Nick Clifton <nickc@cygnus.com>
3307
3308 * elfxx-target.h (ELF_MAXPAGESIZE): Default to 0x1000 not 1.
3309
3310 Fri Jun 4 10:05:11 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3311
3312 * elf.c (elf_fake_sections): Undo change of 1999-05-10.
3313
3314 Fri Jun 4 03:10:49 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
3315
3316 * elf32-sh.c (sh_elf_relax_delete_bytes): Fix setting of
3317 start / stop for recalculating of r_addend of R_SH_SWITCH*.
3318
3319 Fri Jun 4 02:53:13 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
3320
3321 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH32
3322 in other text sections.
3323
3324 Fri Jun 4 02:29:34 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
3325
3326 * libbfd.c (_bfd_generic_verify_endian_match): New function.
3327 * libbfd-in.h (_bfd_generic_verify_endian_match): Declare.
3328 * libbfd.h: Regenerate.
3329 * coff-sh.c (sh_merge_private_data): Delete.
3330 (coff_bfd_merge_private_bfd_data): Change to
3331 _bfd_generic_verify_endian_match.
3332 (elf32-sh.c): bfd_elf32_bfd_merge_private_bfd_data: Define.
3333
3334 1999-06-03 Ulrich Drepper <drepper@cygnus.com>
3335
3336 * elf32-arm.h: Fix typo: change ELF_MAXPAGE_SIZE to ELF_MAXPAGESIZE.
3337
3338 1999-06-03 Ian Lance Taylor <ian@zembu.com>
3339
3340 * bfd-in.h (bfd_elf32_arm_allocate_interworking_sections): Correct
3341 prototype.
3342 (bfd_elf32_arm_process_before_allocation): Likewise.
3343 * bfd-in2.h: Rebuild.
3344
3345 1999-06-03 David Mosberger <davidm@hpl.hp.com>
3346
3347 * dwarf2.c (struct line_info): Add member END_SEQUENCE to keep
3348 track of end_sequence markers.
3349 (add_line_info): Add END_SEQUENCE arg.
3350 (decode_line_info): Don't try to infer lo_pc and hi_pc from the
3351 debug-line info---it doesn't work right if a compilation unit
3352 consists of multiple discontiguous code-sequences. It would be
3353 worthwhile to optimize for the common case where a compilation
3354 unit results in a contiguous set of code sequences, but this is
3355 quite tricky to get right for arbitrary DWARF2 files.
3356 (lookup_address_in_line_info_table): Don't use the last line entry
3357 for a compilation unit for anything with an address higher than
3358 this line entry. Also, check for end_sequence markers to
3359 correctly handle discontinuities.
3360 (_bfd_dwarf2_find_nearest_line): When checking previously loaded
3361 compilation units, check all compilation units with each->high==0
3362 just like when reading compilation units.
3363
3364 * dwarf2.c (decode_line_info): Initialize table->files and
3365 table->last_line to NULL to avoid segfaults due to random
3366 values in these members.
3367 (concat_filename): Check for out-of-range file number before
3368 indexing filename table. Segfaults suck.
3369
3370 * dwarf2.c (decode_line_info): Don't truncate address to least
3371 significant 32 bits (breaks 64 bit targets).
3372 (lookup_address_in_function_table): Ditto.
3373 (comp_unit_contains_address): Ditto.
3374
3375 1999-06-02 Mark Mitchell <Mark Mitchell <mark@codesourcery.com>>
3376
3377 * elf32-mips.c (elf_mips_howto_table): Add R_MIPS_JALR.
3378 * elf64-mips.c (mips_elf64_howto_table_rel): Likewise.
3379 (mips_elf64_howto_table_rela): Likewise.
3380
3381 * elfcode.h (elf_slurp_reloc_table_from_section): New function,
3382 split out from ...
3383 (elf_slurp_reloc_table): Here. Use it to handle the case where a
3384 single section has two associated relocation sections.
3385
3386 1999-06-02 Mark Salter <msalter@cygnus.com>
3387
3388 * coffcode.h (coff_set_alignment_hook): Set lma from s_vaddr if
3389 COFF_WITH_PE defined.
3390
3391 1999-06-02 Nick Clifton <nickc@cygnus.com>
3392
3393 * pe-arm.c: Rename global arm interworking functions to avoid name
3394 collision when all targets BFD is built.
3395 * pei-arm.c: Ditto.
3396
3397 1999-05-31 Mark Mitchell <mark@codesourcery.com>
3398
3399 * elf-bfd.h (elf_backend_data): Remove use_rela_p. Add
3400 may_use_rel_p, may_use_rela_p, default_use_rela_p.
3401 (bfd_elf_section_data): Add use_rela_p.
3402 * elf.c (bfd_section_from_shdr): Set use_rela_p appropriately.
3403 (_bfd_elf_new_section_hook): Likewise.
3404 (elf_fake_sections): Use may_use_rela_p, etc., instead of
3405 use_rela_p.
3406 (_bfd_elf_copy_private_section_data): Copy use_rela_p.
3407 * elfcode.h (write_relocs): Determine whether or not use rela
3408 relocs based on the relocation section header.
3409 * elflink.c (_bfd_elf_create_dynamic_sections): Use default_use_rela_p
3410 instead of use_rela_p.
3411 * elfxx-target.h (elf_backend_may_use_relp): New macro.
3412 (elf_backend_may_use_rela_p): Likewise.
3413 (elf_backend_default_use_rela_p): Likewise.
3414 (elfNN_bed): Use them.
3415
3416 Wed Jun 2 12:38:49 1999 Miodrag Vallat <miodrag@multimania.com>
3417
3418 * hosts/alphalinux.h (TRAD_CORE_EXTRA_SIZE_ALLOWED): Expand to 4096.
3419
3420 Tue Jun 1 17:57:58 1999 Mark P. Mitchell <mitchell@n02.acl.lanl.gov>
3421
3422 * reloc.c (BFD_RELOC_MIPS_SUB): New relocation.
3423 (BFD_RELOC_MIPS_GOT_PAGE): Likewise.
3424 (BFD_RELOC_MIPS_GOT_OFST): Likewise.
3425 (BFD_RELOC_MIPS_GOT_DISP): Likewise.
3426 * bfd-in2.h: Regenerated.
3427 * libbfd.h: Likewise.
3428 * elf32-mips.c (mips_info_to_howto_rela): New function.
3429 (USE_REL): Adjust for new conventions.
3430 (MINUS_ONE): New macro.
3431 (elf_mips_howto_table): Add R_MIPS_SUB.
3432 (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE, MIPS_GOT_OFST,
3433 and MIPS_GOT_DISP.
3434 (mips_elf_final_write_processing): Set sh_link, not sh_info, for a
3435 .MIPS.content section.
3436 (_bfd_mips_elf_fake_sections): Treat all sections that begin
3437 with .MIPS.content as .MIPS.content sections. Set
3438 SHF_MNIPS_NOSTRIP for such section.
3439 (elf_info_to_howto): Define to mips_info_to_howto_rela.
3440 * elf64-mips.c (mips_r): Add entries for MIPS_SUB, MIPS_GOT_PAGE,
3441 MIPS_GOT_OFST, and MIPS_GOT_DISP.
3442
3443 Wed Jun 2 11:51:12 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3444
3445 * vms-misc.c (_bfd_vms_hash_newfunc): Fix use of uninitialized
3446 variable.
3447
3448 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Avoid ambigous
3449 `else'.
3450
3451 1999-05-30 Philip Blundell <philb@gnu.org>
3452
3453 * elf32-arm.h (elf32_arm_relocate_section): Reinstate change of
3454 1993-03-25 (!!). Take into account the bitmasks for the reloc so
3455 the addend does not overflow into the rest of the word.
3456
3457 1999-05-29 Nick Clifton <nickc@cygnus.com>
3458
3459 * bfd-in.h: Amend prototype for
3460 bfd_elf32_arm_process_before_allocation .
3461 * bfd-in.h: Regenerate.
3462
3463 * elfarm-oabi.c (NUM_ELEM): New macro: Compute the number of
3464 elements in a fixed sized array.
3465 (ARM_ELF_ABI_VERSION): Define.
3466 (ARM_ELF_OS_ABI_VERSION): Define.
3467 (R_ARM_THM_ABS5): Fix rightshift and size.
3468 (R_ARM_THM_PC22): Fix size.
3469 (R_ARM_PLT32): Define Howto.
3470 (find_howto): New function: Locate a howto based on a reloc
3471 number.
3472 (elf32_arm_info_to_howto): Use find_howto if necessary.
3473 (elf32_arm_reloc_map): Change type of field bfd_reloc_val to
3474 bfd_reloc_code_real_type.
3475 (elf32_arm_reloc_map[]): Add entries for BFD_RELOC_VTABLE_INHERIT
3476 and BFD_RELOC_VTABLE_ENTRY.
3477 (elf32_arm_reloc_type_lookup): Use find_howto if necessary.
3478
3479 * elfarm-nabi.c (NUM_ELEM): New macro: Compute the number of
3480 elements in a fixed sized array.
3481 (ARM_ELF_ABI_VERSION): Define.
3482 (ARM_ELF_OS_ABI_VERSION): Define.
3483 (R_ARM_THM_ABS5): Fix rightshift and size.
3484 (R_ARM_THM_PC22): Fix size.
3485 (elf32_arm_info_to_howto_rel): Rename to elf32_arm_info_to_howto.
3486 (elf32_arm_reloc_map): Change type of field bfd_reloc_val to
3487 bfd_reloc_code_real_type.
3488
3489 * elf32-arm.h (struct elf32_arm_link_hash_table): Add new field:
3490 no_pipeline_knowledge.
3491 (elf32_arm_link_hash_create): Initialise new field to zero.
3492 (bfd_elf32_arm_process_before_allocation): Add new paraemter:
3493 no_pipeline_knowledge. Use this parameter to initialise the field
3494 in the globals data structure.
3495 (elf32_arm_final_link_relocate): Only add in pipeline offset if
3496 no_pipeline_knowledge is false and the binary is from an old
3497 toolchain.
3498 (elf32_arm_merge_private_data): Generate an error if an attempt is
3499 made to linl together big endian and little endian code.
3500 (elf32_arm_post_process_headers): New function: Initialise the
3501 EI_OSABI and EI_ABIVERSION fields of the newly created ELF program
3502 header.
3503 (elf_backend_post_process_headers): Define.
3504
3505 1999-05-28 Nick Clifton <nickc@cygnus.com>
3506
3507 * elf-bfd.h (struct elf_backend_data): Add new field:
3508 elf_backend_post_process_headers.
3509
3510 * elfxx-target.h (elf_backend_post_process_headers): Define to
3511 NULL if not already defined.
3512 (elfNN_bed): Initialise elf_backend_post_process_headers field.
3513
3514 * elf.c (prep_headers): Set the EI_OSABI and EI_ABIVERSION fields
3515 to zero.
3516 (_bfd_elf_compute_section_file_positions): Call
3517 elf_backend_post_process_headers if defined.
3518
3519 1999-05-28 Ian Lance Taylor <ian@zembu.com>
3520
3521 * configure.in: Check whether getuid and getgid exist.
3522 * archive.c: Define getuid and getgid as macros if HAVE_GETUID or
3523 HAVE_GETGID are not defined, respectively.
3524 (bfd_write_armap): Don't special case on _WIN32 for getuid and
3525 getgid.
3526 * configure.host: Set ac_cv_func_get{ug}id for *-*-windows*.
3527 * configure, config.in: Rebuild.
3528
3529 1999-05-28 Martin Dorey <mdorey@madge.com>
3530
3531 * elf32-i960.c: New file.
3532 * elf.c (prep_headers): Handle bfd_arch_i960.
3533 * targets.c (bfd_target_vector): Add &bfd_elf32_i960_vec.
3534 * config.bfd (i960-*-elf*): New target.
3535 * configure.in (bfd_elf32_i960_vec): New target vector.
3536 * Makefile.am (BFD32_BACKENDS): Add elf32-i960.lo.
3537 (BFD32_BACKENDS_CFILES): Add elf32-i960.c.
3538 * Makefile.in, aclocal.m4, configure: Rebuild.
3539
3540 1999-05-27 Nick Clifton <nickc@cygnus.com>
3541
3542 * elfarm-oabi.c (elf32_arm_howto_table): Add entry for
3543 R_ARM_PLT32.
3544 (find_howto): New function: Find entries in the
3545 elf32_arm_howto_table.
3546 (elf32_arm_info_to_howto): Use find_howto if the entry cannot be
3547 computed simply.
3548 (elf32_arm_reloc_type_lookup): Add lookup for
3549 BFD_RELOC_ARM_PLT32.
3550
3551 1999-05-25 Philip Blundell <pb@nexus.co.uk>
3552
3553 * bfd/elf32-arm.h (elf32_arm_link_hash_newfunc): New function.
3554 (elf32_arm_link_hash_table_create): Use above function as the
3555 constructor for hash table entries.
3556 (elf32_arm_relocate_section): Avoid crash when there is no output
3557 section.
3558 (elf32_arm_final_link_relocate): New parameter h.
3559 (elf32_arm_relocate_section): Pass symbol hash entry to above
3560 routine.
3561 (elf32_arm_gc_sweep_hook, elf32_arm_check relocs): Correct
3562 comments.
3563
3564 1999-05-25 Catherine Moore <clm@cygnus.com>
3565
3566 * coff-arm.c (coff_arm_relocate_section): Don't emit
3567 base file entries for pc-relative values.
3568
3569 1999-05-25 DJ Delorie <dj@cygnus.com>
3570
3571 * peicode.h (coff_swap_sym_in): When we create the actual section
3572 to reflect the not-there section C_SECTION symbols refer to,
3573 change the symbol class to C_STAT as the section is now really
3574 there.
3575
3576 1999-05-24 Philip Blundell <pb@nexus.co.uk>
3577
3578 * elf32-arm.h (elf32_arm_relocate_section): Undo change of
3579 1999-03-25.
3580
3581 Mon May 17 13:35:35 1999 Stan Cox <scox@cygnus.com>
3582
3583 * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed
3584 F_PIC_INT to F_PIC.
3585 * coffcode.h (coff_set_arch_mach_hook): Added F_ARM_2a, and
3586 F_ARM_3M labels. Changed F_PIC_INT to F_PIC.
3587
3588 1999-05-16 Nick Clifton <nickc@cygnus.com>
3589
3590 * coff-mcore.c (in_reloc_p): Reinstate.
3591
3592 1999-05-15 Nick Clifton <nickc@cygnus.com>
3593
3594 * reloc.c (BFD_RELOC_MCORE_RVA): Define.
3595 * bfd-in2.h: Regenerate.
3596 * coff-mcore.c (in_reloc_p): Remove defintion.
3597 (mcore_coff_howto): Add IMAGE_REL_MCORE_RVA.
3598 (mcore_coff_reloc_type_lookup): Map BFD_RELOC_RVA to
3599 IMAGE_REL_MCORE_RVA.
3600 (coff_mcore_rtype_to_howto): Add special processing for
3601 IMAGE_REL_MCORE_RVA.
3602 (coff_mcore_relocate_section): Add support for
3603 IMAGE_REL_MCORE_RVA.
3604 * elf32-mcore (mcore_elf_howto_): Add R_MCORE_RELATIVE.
3605 (mcore_elf_reloc_type_lookup): Map BFD_RELOC_RVA to
3606 R_MCORE_RELATIVE.
3607 (mcore_elf_relocate_section): Delete redundant case labels.
3608
3609 Fri May 14 10:59:55 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3610
3611 * elf32-arm.h (elf32_arm_relocate_section): Fix operator
3612 precedence between bit-and and comparison.
3613
3614 Thu May 13 09:45:23 1999 Joel Sherrill (joel@OARcorp.com)
3615
3616 * config.bfd (i[3456]86*-*-rtems*, m68k*-*-rtems*): Added to
3617 list of target formats (targ_selvecs).
3618 (i[3456]86*-*-rtemself*, mips*el-*-rtems*): New targets.
3619 (powerpcle*-*rtems*, sh-*-rtemself*): New targets.
3620
3621 1999-05-10 DJ Delorie <dj@cygnus.com>
3622
3623 * ecoff.c (_bfd_ecoff_write_armap): give the symtab element a
3624 reasonable mode until "ar x" is smart enough to skip it (fixes
3625 gcc/libgcc.a builds on mips-ecoff targets
3626
3627 * coffcode.h (styp_to_sec_flags): Explain how COMDATs are supposed
3628 to work. Hack to support MS import libraries, which use different
3629 COMDAT types than GNU.
3630 (coff_slurp_symbol_table): C_SECTION symbols are local; they refer
3631 to implied zero-length sections (see peicode below)
3632 * coffgen.c (coff_get_normalized_symtab): Properly read long MS
3633 filename symbols, which use one *or more* auxents.
3634 * coffswap.h (coff_swap_aux_in): ditto
3635 * peicode.h (coff_swap_sym_in): Build the implied zero-length
3636 sections
3637
3638 Tue May 11 15:51:58 1999 Jeffrey A Law (law@cygnus.com)
3639
3640 * elf32-v850.c (v850_elf_howto_table): Make partial_inplace false
3641 for all relocations.
3642
3643 1999-05-10 Catherine Moore <clm@cygnus.com>
3644
3645 * bfd-in.h (bfd_arm_allocate_interworking_sections): Static
3646 if COFF_IMAGE_WITH_PE.
3647 (bfd_arm_process_before_allocation): Likewise.
3648 (bfd_arm_get_bfd_for_interworking): Likewise.
3649 * coff-arm.c: Likewise.
3650 * bfd-in2.h: Regenerate.
3651 * configure.in (armpe_little_vec): Remove coff-arm.lo.
3652 (armpe_big_vec): Likewise.
3653 * configure: Rebuild.
3654
3655 1999-05-10 Nick Clifton <nickc@cygnus.com>
3656
3657 * elf.c (elf_fake_sections): Check for .rel. as start of rel
3658 section, not just .rel. Same for .rela.
3659
3660 1999-05-07 Nick Clifton <nickc@cygnus.com>
3661
3662 * coff-mcore.c (coff_mcore_relocate_section): Replace assert about
3663 endianism with an error message.
3664
3665 Thu May 6 17:09:09 1999 Fred Fish <fnf@be.com>
3666
3667 * dwarf2.c (read_abbrevs): Change cast of dwarf_abbrev_buffer
3668 assignment from "unsigned char *" to "char *".
3669 (decode_line_info): Likewise for dwarf_line_buffer assignment.
3670
3671 1999-05-05 Catherine Moore <clm@cygnus.com>
3672
3673 * coff-arm.c (coff_arm_relocate_section): Add one to
3674 address of ARM_RVA32 thumb functions.
3675
3676 1999-05-05 Catherine Moore <clm@cygnus.com>
3677
3678 * elf32-m68k.c (elf32_m68k_set_private_flags): New.
3679 (elf32_m68k_copy_private_bfd_data): New.
3680 (elf32_m68k_merge_private_bfd_data): New.
3681 (elf32_m68k_print_private_bfd_data): New.
3682 (CPU32_FLAG): Define.
3683 (PLT_CPU32_ENTRY_SIZE): Define.
3684 (elf_cpu32_plt0_entry): Declare.
3685 (elf_cpu32_plt_entry): Declare.
3686 (elf_m68k_adjust_dynamic_symbol): Generate cpu32 plt entries.
3687 (elf_m68k_finish_dynamic_symbol): Likewise.
3688 (elf_m68k_finish_dynamic_sections): Likewise.
3689 (elf_backend_plt_header_size): Remove definition.
3690 (bfd_elf32_bfd_copy_private_bfd_data): Define.
3691 (bfd_elf32_bfd_merge_private_bfd_data): Define.
3692 (bfd_elf32_bfd_set_private_flags): Define.
3693 (bfd_elf32_bfd_print_private_bfd_data): Define.
3694
3695 Mon May 3 09:24:49 1999 Jeffrey A Law (law@cygnus.com)
3696
3697 * som.c (som_fixup_formats): Fix comments for R_SHORT_PCREL_MODE
3698 and R_LONG_PCREL_MODE.
3699
3700 1999-04-29 Nick Clifton <nickc@cygnus.com>
3701
3702 * coff-mcore.c (coff_mcore_relocate_section): Fix typos.
3703
3704 Fri Apr 28 16:36:19 1999 Stan Cox <scox@cygnus.com>
3705
3706 * elf32-sh.c (sh_elf_relocate_section): Include relocation addend
3707 in relocation calculation.
3708
3709 1999-04-26 Tom Tromey <tromey@cygnus.com>
3710
3711 * aclocal.m4, configure: Updated for new version of libtool.
3712
3713 1999-04-21 Nick Clifton <nickc@cygnus.com>
3714
3715 * coff-mcore.c: Add support for mcore relocs.
3716
3717 1999-04-20 Gavin Romig-Koch <gavin@cygnus.com>
3718
3719 * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): Scrap the
3720 incorrect use EF_MIPS_xxBITPTRS.
3721
3722 1999-04-18 Ian Lance Taylor <ian@zembu.com>
3723
3724 * elf64-alpha.c (elf64_alpha_relax_section): Remove unused local
3725 variable insn.
3726
3727 * bfd-in2.h: Rebuild.
3728 * libbfd.h: Rebuild.
3729
3730 Sat Apr 17 20:55:15 1999 Catherine Moore <clm@cygnus.com>
3731
3732 * coff-arm.c (coff_arm_rtype_to_howto): Remove ARM26D transform.
3733 (coff_arm_relocate_section): Add ARM26D transform. Only
3734 change to ARM26D for relocateable links.
3735
3736 1999-04-16 Gavin Romig-Koch <gavin@cygnus.com>
3737
3738 * elf32-mips.c (_bfd_mips_elf_print_private_bfd_data): New.
3739 (bfd_elf32_bfd_print_private_bfd_data): New.
3740
3741 1999-04-15 Doug Evans <devans@casey.cygnus.com>
3742
3743 * elf32-arm.h (elf32_arm_final_link_relocate): For R_ARM_THM_ABS5,
3744 refetch addend if USE_REL, add many comments regarding current state.
3745 For R_ARM_THM_PC22, refetch addend if USE_REL, simplify.
3746 * elfarm-nabi.c (elf32_arm_howto_table): For R_ARM_THM_ABS5, fix
3747 size and rightshift. For R_ARM_THM_PC22, fix bitsize.
3748 * elfarm-oabi.c (elf32_arm_howto_table): Ditto.
3749
3750 Wed Apr 14 14:33:08 1999 Richard Henderson <rth@cygnus.com>
3751
3752 * elf32-mips.c (_bfd_mips_elf_read_ecoff_info): Zero `debug'.
3753 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Likewise.
3754
3755 1999-04-13 David Mosberger <davidm@hpl.hp.com>
3756
3757 * dwarf2.c (decode_line_info): Don't truncate address to least
3758 significant 32 bits (breaks 64 bit targets).
3759 (lookup_address_in_function_table): Ditto.
3760 (comp_unit_contains_address): Ditto.
3761
3762 Tue Apr 13 21:27:19 1999 Catherine Moore <clm@cygnus.com>
3763
3764 * coff-arm.c (arm_emit_base_file_entry): New routine.
3765 (A2T3_OFFSET): Define.
3766 (T2A3_OFFSET): Define.
3767 (coff_arm_relocate_section): Emit base file entries for interworking
3768 stubs.
3769
3770 1999-04-13 Philip Blundell <philb@gnu.org>
3771
3772 * elfarm-nabi.c (elf32_arm_howto_table): Add dummy entries for
3773 relocs 17 through 19.
3774
3775 Sun Apr 11 01:25:17 1999 Richard Henderson <rth@cygnus.com>
3776
3777 * elfcode.h: Remove fnmatch.h.
3778 * elflink.h (elf_link_assign_sym_version): Call back to ld
3779 instead of calling fnmatch.
3780
3781 * config.bfd (i?86-*-beoself): Include pe vecs.
3782
3783 Sun Apr 11 01:14:06 1999 Richard Henderson <rth@cygnus.com>
3784
3785 * elf32-i386.c (elf_i386_finish_dynamic_sections): Allow .plt
3786 to go missing.
3787
3788 1999-04-10 Richard Henderson <rth@cygnus.com>
3789
3790 * elf32-i386.c (elf_i386_relocate_section): Mind no_undefined
3791 when trying to resolve dynamic symbol references.
3792 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3793 * elf32-mips.c (mips_elf_relocate_section): Likewise.
3794 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3795 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3796 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
3797 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3798 * elflink.h (elf_link_output_extsym): Likewise.
3799
3800 Sat Apr 10 15:12:09 1999 Richard Henderson <rth@cygnus.com>
3801
3802 * section.c (_bfd_strip_section_from_output): New function moved from
3803 * elf64-alpha.c (elf64_alpha_strip_section_from_output): ... here.
3804 * elf32-i386.c (elf_i386_size_dynamic_sections): Use it.
3805 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
3806 * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise.
3807 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
3808 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
3809 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
3810 * bfd-in2.h: Update.
3811
3812 1999-04-09 Ian Lance Taylor <ian@zembu.com>
3813
3814 * elf64-sparc.c: Fix incorrect calls to bfd_check_overflow.
3815
3816 1999-04-08 Nick Clifton <nickc@cygnus.com>
3817
3818 * coff-mcore.c: New File: Support for mcore-pe targets.
3819 * cpu-mcore.c: New File: Support for mcore targets.
3820 * elf32-mcore.c: New File: Support for mcore-elf target.
3821 * pe-mcore.c: New File: Definitions for mcore-pe target.
3822 * pei-mcore.c: New File: Definitions for mcore-pei target.
3823 * Makefile.am: Add support for MCore targets.
3824 * Makefile.in: Regenerate.
3825 * config.bfd: Add support for MCore targets.
3826 * configure.in: Add support for MCore targets.
3827 * configure: Regenerate.
3828 * archures.c: Add support for MCore architecture.
3829 * bfd-in2.h: Regenerate.
3830 * coffcode.h: Add support for mcore-pe targets.
3831 * elf.c: Add support for mcore-elf target.
3832 * reloc.c: Add support for MCore relocs.
3833 * targets.c: Add support for MCore targets.
3834
3835 1999-04-07 Nick Clifton <nickc@cygnus.com>
3836
3837 * elfarm-nabi.c (elf32_arm_howto_table): Add entries for
3838 R_ARM_XPC25 and R_ARM_THM_XPC22.
3839 (elf32_arm_reloc_map): Remove redundant entries.
3840
3841 1999-04-06 Ian Lance Taylor <ian@zembu.com>
3842
3843 * sysdep.h (LC_MESSAGES): Never define.
3844
3845 1999-04-06 Chris Torek <torek@bsdi.com>
3846
3847 * reloc.c (bfd_check_overflow): Add addrsize parameter. Change
3848 all callers. Rewrite completely.
3849 (_bfd_relocate_contents): Rewrite overflow checking.
3850 * bfd-in2.h: Rebuild.
3851
3852 1999-04-05 Ian Lance Taylor <ian@zembu.com>
3853
3854 From Gabriel Paubert <paubert@iram.es>:
3855 * elf32-ppc.c (ppc_elf_howto_raw): Set R_PPC_GOT16_LO,
3856 R_PPC_PLT16_LO and R_PPC_SECTOFF_LO to be complain_overflow_dont.
3857 Set R_PPC_PLT16_HA, R_PPC_SECTOFF_HA and R_PPC_EMB_NADDR16_HA to
3858 have a rightshift of 16 and use ppc_elf_addr16_ha_reloc.
3859 * ppcboot.c (ppcboot_vec): Use little endian routines for
3860 headers.
3861
3862 * elf.c (elfcore_strndup): Only define if it will be used.
3863 * elf32-ppc.c (ppc_elf_relax_section): Remove unused locals irel
3864 and irelend.
3865 (ppc_elf_check_relocs): Remove unused local i.
3866 (ppc_elf_gc_mark_hook): Add default case to switch.
3867
3868 From Bernd Nitzler <nitzler@kagcpd01.ag01.kodak.COM>:
3869 * srec.c (srec_scan): Accept \r in symbol definitions.
3870 (srec_object_p): Set HAS_SYMS if we saw any symbols.
3871 (symbolsrec_object_p): Likewise.
3872
3873 1999-04-04 Don Bowman <don@pixsci.com>
3874
3875 * config.bfd: Add mips*el-*-vxworks* and mips*-*-vxworks*.
3876
3877 1999-04-04 Ian Lance Taylor <ian@zembu.com>
3878
3879 * dwarf1.c (parse_line_table): Remove unused locals last_pc and
3880 last_line.
3881 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Declare.
3882 * elf32-i386.c (elf_i386_gc_mark_hook): Add default case to
3883 switch.
3884 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Remove unused
3885 local i.
3886 * syms.c (_bfd_stab_section_find_nearest_line): Remove unused
3887 local val.
3888
3889 1999-03-31 Nick Clifton <nickc@cygnus.com>
3890
3891 * config.bfd: Add support for arm-epoc-pe target.
3892 * configure.in: Add support for arm-epoc-pe target.
3893 * configure: Regenerate.
3894 * targets.c: Add support for arm-epoc-pe target.
3895 * coff-arm.c: Allow header files to override definition of
3896 TARGET_UNDERSCORE and USER_LABEL_PREFIX.
3897 * pe-arm.h: Allow previous header files to override definition of
3898 TARGET_LITTLE_SYM and TARGET_BIG_SYM.
3899 * pei-arm.h: Allow previous header files to override definition of
3900 TARGET_LITTLE_SYM and TARGET_BIG_SYM.
3901 * epoc-pe-arm.c: New file. Support arm-epoc-pe target.
3902 * epoc-pei-arm.c: New file. Support arm-epoc-pei target.
3903
3904 1999-03-30 Nick Clifton <nickc@cygnus.com>
3905
3906 * elf.c (elf_map_symbols): Handle the case where section
3907 symbols are generated for content-less sections which are
3908 not mapped to the output file.
3909
3910 * linker.c: Replace direct references to fields in BFD structure
3911 with accessor macros.
3912
3913 * elflink.h: Replace direct references to fields in BFD structure
3914 with accessor macros.
3915
3916 1999-03-25 Philip Blundell <pb@nexus.co.uk>
3917
3918 * config.bfd: Eliminate redundancy in checks for Linux/ARM.
3919
3920 * elf32-arm.h (elf32_arm_relocate_section): Take the rightshift into
3921 account when adjusting section symbols during a partial link.
3922
3923 1999-03-24 Nick Clifton <nickc@cygnus.com>
3924
3925 * coff-sparc.c (struct coff_reloc_map): Change type of field
3926 'bfd_reloc_val' to bfd_reloc_code_real_type.
3927 * elf-m10200.c (struct mn10200_reloc_map): Ditto.
3928 * elf-m10300.c (struct mn10300_reloc_map): Ditto.
3929 * elf32-arc.c (struct arc_reloc_map): Ditto.
3930 * elf32-d10v.c (struct d10v_reloc_map): Ditto.
3931 * elf32-d30v.c (struct d30v_reloc_map): Ditto.
3932 * elf32-fr30.c (struct fr30_reloc_map): Ditto.
3933 * elf32-m32r.c (struct m32r_reloc_map): Ditto.
3934 * elf32-sh.c (struct elf_reloc_map): Ditto.
3935 * elf32-sparc.c (struct elf_reloc_map): Ditto.
3936 * elf32-v850.c (struct v850_reloc_map): Ditto.
3937 * elf64-sparc.c (struct elf_reloc_map): Ditto.
3938 * elfarm-nabi.c (struct elf32_arm_reloc_map): Ditto.
3939 * elfarm-oabi.c (struct elf32_arm_reloc_map): Ditto.
3940
3941 1999-03-17 Martin Hunt <hunt@cygnus.com>
3942
3943 * syms.c (_bfd_stab_section_find_nearest_line): Changed this
3944 function so source-level assembly works. If multiple N_SOs
3945 are seen without and N_FUNs, create an indextable entry with
3946 a NULL function name.
3947
3948 1999-03-16 Gavin Romig-Koch <gavin@cygnus.com>
3949
3950 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data) Allow merging
3951 of certian similar cpus.
3952
3953 1999-03-16 Gavin Romig-Koch <gavin@cygnus.com>
3954
3955 * elf32-mips.c (_bfd_mips_elf_final_write_processing):
3956 Add the 5000. Change the architecture for the 5400 to mips4.
3957 (elf_mips_mach): Add r5000.
3958
3959 1999-03-11 Doug Evans <devans@casey.cygnus.com>
3960
3961 * cpu-i960.c (scan_i960_mach): Recognize i960:ka_sa and i960:kb_sb.
3962
3963 1999-03-11 Nick Clifton <nickc@cygnus.com>
3964
3965 * binary.c (binary_set_section_contents): Generate warning about
3966 huge file offsets for any section that will occupy file space, not
3967 just those that are loadable.
3968
3969 1999-02-24 Jim Blandy <jimb@zwingli.cygnus.com>
3970
3971 * libbfd.h: Regenerate after Nick Clifton's Feb 17 changes.
3972
3973 1999-02-22 Jim Lemke <jlemke@cygnus.com>
3974
3975 * elf32-ppc.c: Add ppc_elf_relax_section() for the ld option mpc860c0.
3976
3977 Mon Feb 22 18:26:51 1999 Ian Lance Taylor <ian@cygnus.com>
3978
3979 * elf-bfd.h (ELF_LINK_HASH_REF_REGULAR_NONWEAK): Define.
3980 * elflink.h: Revert all changes since Feb 16. Instead:
3981 (elf_link_add_object_symbols): Set REF_REGULAR_NONWEAK flag if
3982 appropriate. Copy it to version symbols.
3983 (elf_fix_symbol_flags): Set REF_REGULAR_NONWEAK for non ELF
3984 symbols if appropriate.
3985 (elf_adjust_dynamic_symbol): Set REF_REGULAR_NONWEAK for weakdef
3986 symbol if appropriate.
3987 (elf_link_output_extsym): If symbol is marked as undefined, and
3988 has no nonweak references, mark it as weak undefined.
3989
3990 Fri Feb 19 16:01:12 1999 Ian Lance Taylor <ian@cygnus.com>
3991
3992 * elflink.h (elf_merge_symbol): When overriding a dynamic
3993 definition with a weak undefined symbol, set NEEDS_PLT if it is a
3994 function.
3995 (elf_link_add_object_symbols): Don't copy the other field if we
3996 are overridding.
3997
3998 Thu Feb 18 18:07:43 1999 Ian Lance Taylor <ian@cygnus.com>
3999
4000 * elflink.h (elf_merge_symbol): Do not merge any symbol from a
4001 shared object with a weak undefined symbol.
4002
4003 1999-02-18 Nick Clifton <nickc@cygnus.com>
4004
4005 * elfarm-nabi.c: Set partial_inplace back to false.
4006
4007 1999-02-17 Nick Clifton <nickc@cygnus.com>
4008
4009 * coff-arm.c (TARGET_UNDERSCORE): Re-enable.
4010 (USER_LABEL_PREFIX): Set to "_".
4011
4012 The following patches are from: Scott Bambrough
4013 <scottb@corelcomputer.com>
4014
4015 * libaout.h (M_ARM6_NETBSD): Set to 143.
4016
4017 * reloc.c: Add ARM PIC relocs: BFD_RELOC_ARM_GOT12,
4018 BFD_RELOC_ARM_GOT32, BFD_RELOC_ARM_JUMP_SLOT, BFD_RELOC_ARM_COPY,
4019 BFD_RELOC_ARM_GLOB_DAT, BFD_RELOC_ARM_PLT32,
4020 BFD_RELOC_ARM_RELATIVE, BFD_RELOC_ARM_GOTOFF, BFD_RELOC_ARM_GOTPC.
4021 * bfd-in2.h: Regenerate.
4022
4023 * elfarm-nabi.c (elf32_arm_howto_table): Set partial_inplace to
4024 'true' as REL relocs are now being used. Add new PIC relocs:
4025 R_ARM_COPY, R_ARM_GLOB_DAT, R_ARM_JUMP_SLOT, R_ARM_RELATIVE,
4026 R_ARM_GOTOFF, R_ARM_GOTPC, R_ARM_GOT32, R_ARM_PLT32.
4027
4028 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Check byte order
4029 of targets.
4030 (elf32_arm_final_link_relocate): Change parameters so that entire
4031 reloc is passed. Add support for PIC relocs.
4032 (elf32_arm_relocate_section): Pass entire reloc to
4033 elf32_arm_final_link_relocate.
4034 (elf32_arm_check_relocs): Handle new PIC relocs.
4035 (elf32_arm_adjust_dynamic_symbol): New function.
4036 (elf32_arm_size_dynamic_sections): New function.
4037 (elf32_arm_discard_copies): New function.
4038 (elf32_arm_finish_dynamic_symbol): New function.
4039 (elf32_arm_finish_dynamic_sections): New function.
4040 (ELF_MAXPAGE_SIZE): Define.
4041 (bfd_elf32_bfd_reloc_type_lookup): Define.
4042 (elf_backend_relocate_section): Define.
4043 (elf_backend_adjust_dynamic_symbol): Define.
4044 (elf_backend_create_dynamic_sections): Define.
4045 (elf_backend_finish_dynamic_symbol): Define.
4046 (elf_backend_finish_dynamic_sections): Define.
4047 (elf_backend_size_dynamic_sections): Define.
4048 (elf_backend_plt_readonly): Define.
4049 (elf_backend_want_got_plt): Define.
4050 (elf_backend_want_plt_sym): Define.
4051
4052 Wed Feb 17 12:02:26 1999 Stan Cox <scox@cygnus.com>
4053
4054 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Make reginfo
4055 sections SEC_LINK_ONCE and SEC_LINK_DUPLICATES_SAME_SIZE.
4056 (_bfd_mips_elf_fake_sections): Likewise.
4057
4058 Wed Feb 17 12:07:23 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4059
4060 * elfarm-oabi.c (bfd_elf32_arm_allocate_interworking_sections,
4061 bfd_elf32_arm_get_bfd_for_interworking,
4062 bfd_elf32_arm_process_before_allocation): Define to avoid clash
4063 with elfarm-nabi.c.
4064
4065 * elf32-arm.h: Don't declare elf32_arm_info_to_howto.
4066 (elf32_thumb_to_arm_stub, elf32_arm_to_thumb_stub,
4067 elf32_arm_find_nearest_line): Make them static.
4068
4069 Tue Feb 16 22:44:37 1999 Ian Lance Taylor <ian@cygnus.com>
4070
4071 * elflink.h (elf_merge_symbol): Add pflags parameter. Change all
4072 callers. Do not merge a definition from a shared object with a
4073 weak undefined symbol.
4074 (elf_link_add_object_symbols): Do not change the symbol type or
4075 size if the old symbol overrides the new one.
4076
4077 1999-02-08 Nick Clifton <nickc@cygnus.com>
4078
4079 * config.bfd: Add support for strongarm target.
4080
4081 Mon Feb 8 11:18:14 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4082
4083 * elf32-m68k.c (reloc_map): Use the correct types for the struct
4084 fields instead of unsigned char.
4085
4086 Fri Feb 5 00:22:36 1999 Ian Lance Taylor <ian@cygnus.com>
4087
4088 * Makefile.am: Rebuild dependencies.
4089 * Makefile.in: Rebuild.
4090
4091 Thu Feb 4 22:30:13 1999 Ian Lance Taylor <ian@cygnus.com>
4092
4093 * configure.in: Change AC_PREREQ to 2.13. Remove AM_CYGWIN32.
4094 Change AM_EXEEXT to AC_EXEEXT and AM_PROG_INSTALL to
4095 AC_PROG_INSTALL. Add comments to uses of AC_DEFINE.
4096 * acinclude.m4: Add comments to uses of AC_DEFINE.
4097 * acconfig.h: Remove.
4098 * configure: Rebuild with current autoconf/automake.
4099 * aclocal.m4: Likewise.
4100 * config.in: Likewise.
4101 * Makefile.in: Likewise.
4102
4103 1999-02-04 DJ Delorie <dj@cygnus.com>
4104
4105 * libbfd.c (real_read): don't call fread for zero bytes. This
4106 covers up a bug (or misuse of bfd) that's exposed by Solaris.
4107
4108 Thu Feb 4 12:38:10 1999 Stan Cox <scox@cygnus.com>
4109
4110 * elf32-mips.c (mips_elf_relocate_section): Insure that the target
4111 of a jump is in the current 256 MB region.
4112
4113 Thu Feb 4 12:15:38 1999 Ian Lance Taylor <ian@cygnus.com>
4114
4115 * format.c (bfd_check_format_matches): Change last patch to only
4116 take effect for the binary target.
4117
4118 Wed Feb 3 19:40:12 1999 Ian Lance Taylor <ian@cygnus.com>
4119
4120 * elf32-i386.c (elf_i386_reloc_type_lookup): Add BFD_RELOC_CTOR.
4121
4122 Wed Feb 3 15:02:44 1999 Catherine Moore <clm@cygnus.com>
4123
4124 * elf32-fr30.c (fr30_elf_check_relocs): New routine.
4125
4126 Tue Feb 2 21:38:28 1999 Ian Lance Taylor <ian@cygnus.com>
4127
4128 * format.c (bfd_check_format_matches): If the target was
4129 previously specified, don't check other targets when checking for
4130 an archive file.
4131
4132 Tue Feb 2 18:16:43 1999 Catherine Moore <clm@cygnus.com>
4133
4134 * elf32-arm.h (elf32_arm_reloc_map): Removed.
4135 (elf32_arm_reloc_type_lookup): Removed
4136 * elfarm-nabi.c (elf32_arm_reloc_map): New.
4137 (elf32_arm_reloc_type_lookup): New.
4138 * elfarm-oabi.c (elf32_arm_reloc_map): New.
4139 (elf32_arm_reloc_type_lookup): New.
4140
4141 Mon Feb 1 19:49:21 1999 Catherine Moore <clm@cygnus.com>
4142
4143 * elfarm-nabi.c: Renamed from elf32-arm-newabi.c.
4144 * elfarm-oabi.c: Renamed from elf32-arm-oldabi.c
4145 * Makefile.am: Use new files.
4146 * Makefile.in: Regenerate.
4147 * configure.in: Use new files.
4148 * configure: Regenerate.
4149
4150 1999-02-01 Nick Clifton <nickc@cygnus.com>
4151
4152 * elf32-fr30.c (fr30_elf_gc_mark_hook): New function.
4153 (fr30_elf_gc_sweep_hook): New function.
4154 (elf_backend_can_gc_sections): Define.
4155
4156 Mon Feb 1 12:21:47 1999 Catherine Moore <clm@cygnus.com>
4157
4158 * targets.c (bfd_target_vector): Add bfd_elf32_littlearm_oabi_vec
4159 and bfd_elf32_bigarm_oabi_vec.
4160
4161 Mon Feb 1 11:46:31 1999 Catherine Moore <clm@cygnus.com>
4162
4163 * Makefile.am (elf32-arm-oldabi.lo): New.
4164 (elf32-arm-newabi.lo): New.
4165 * Makefile.in: Regenerate.
4166 * config.bfd (thumb-*-elf): Remove definition of targ_underscore.
4167 (arm-*-elf): Likewise.
4168 (arm-*-oabi): New.
4169 (thumb-*-oabi): New.
4170 * configure: Regenerate.
4171 * configure.in (bfd_elf32_littlearm_oabi_vec): New.
4172 (bfd_elf32_bigarm_oabi_vec): New.
4173 * elf32-arm-newabi.c: New.
4174 * elf32-arm-oldabi.c: New.
4175 * elf32-arm.c: Removed.
4176 * elf32-arm.h: New.
4177
4178 Mon Feb 1 11:52:12 1999 Frank Ch. Eigler <fche@cygnus.com>
4179
4180 * binary.c (binary_set_section_contents): Omit warnings for
4181 unloadable sections.
4182
4183 1999-01-31 Michael Meissner <meissner@cygnus.com>
4184
4185 * config.bfd (powerpc{,le}-*-vxworks*): Add aliases to
4186 powerpc{,le}-*-eabi.
4187
4188 1999-01-29 Nick Clifton <nickc@cygnus.com>
4189
4190 * dwarf2.c (read_unsigned_leb128): Remove unused variables.
4191 * dwarf2.c (read_signed_leb128): Remove unused variables.
4192
4193 Fri Jan 29 00:47:21 1999 H.J. Lu <hjl@gnu.org>
4194
4195 * elf.c (assign_file_positions_for_segments): Only adjust
4196 p_align when needed.
4197
4198 Thu Jan 28 20:05:22 1999 Ian Lance Taylor <ian@cygnus.com>
4199
4200 * binary.c (binary_set_section_contents): Don't return early for a
4201 non-loadable section, in case the first section is non-loadable.
4202 Don't set the low lma for a SEC_NEVER_LOAD section. From Maciej
4203 W. Rozycki <macro@ds2.pg.gda.pl>.
4204
4205 1999-01-28 Nick Clifton <nickc@cygnus.com>
4206
4207 * elf32-fr30.c (fr30_reloc_map): Add R_FR30_GNU_VTINHERIT and
4208 R_FR30_GNU_VTENTRY relocs.
4209
4210 Thu Jan 28 11:08:16 1999 Catherine Moore <clm@cygnus.com>
4211
4212 * elflink.h (elf_link_output_sym): Zero syms which are
4213 part of sections which have been excluded.
4214
4215 Wed Jan 27 13:35:35 1999 Stan Cox <scox@cygnus.com>
4216
4217 * coff-arm.c (_bfd_coff_arm_set_private_flags): Changed F_PIC
4218 to F_PIC_INT.
4219 * coffcode.h (coff_set_arch_mach_hook): Removed F_ARM_2a and
4220 F_ARM_3M labels. Changed F_PIC to F_PIC_INT.
4221
4222 1999-01-27 Nick Clifton <nickc@cygnus.com>
4223
4224 * elf32-fr30.c (fr30_elf_howto_table): Fix name of R_FR30_48
4225 relocation.
4226 (fr30_final_link_relocate): Use computed value as result of
4227 relocation.
4228
4229 1999-01-26 Frank Ch. Eigler <fche@cygnus.com>
4230
4231 * binary.c (binary_set_section_contents): Emit warning for
4232 huge file offsets due to widely-dispersed section LMAs.
4233
4234 Mon Jan 18 03:35:35 1999 Ian Lance Taylor <ian@cygnus.com>
4235
4236 * elf.c (assign_file_positions_for_segments): If not D_PAGED,
4237 align first section to largest section alignment, not first
4238 section alignment.
4239
4240 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
4241
4242 * configure.in: Require autoconf 2.12.1 or higher.
4243
4244 Tue Dec 22 15:21:41 1998 Catherine Moore <clm@cygnus.com>
4245
4246 * archures.c (bfd_mach_i386_i386_intel_syntax): Define.
4247 * bfd-in2.h: Likewise.
4248 * cpu-i386.c (bfd_i386_arch_intel_syntax): New.
4249
4250 1998-12-16 Gavin Romig-Koch <gavin@cygnus.com>
4251
4252 * archures.c,bfd-in2.h (bfd_mach_mips4111): New.
4253 * cpu-mips.c: Add support for and independent 4111.
4254 * elf32-mips.c (elf_mips_mach): E_MIPS_MACH_4111 -> bfd_mach_mips4111.
4255 (_bfd_mips_elf_final_write_processing):
4256 bfd_mach_mips4111 -> E_MIPS_ARCH_3 | E_MIPS_MACH_4111.
4257
4258 1998-12-15 Gavin Romig-Koch <gavin@cygnus.com>
4259
4260 * elf32-mips.c (elf_mips_abi_name): New.
4261 (_bfd_mips_elf_merge_private_bfd_data): Compare EF_MIPS_ABI flags.
4262
4263 1998-12-12 Gavin Romig-Koch <gavin@cygnus.com>
4264
4265 * elf32-mips.c (_bfd_mips_elf_final_write_processing):
4266 Handle bfd_mach_mips4300.
4267
4268 1998-12-11 Ulrich Drepper <drepper@cygnus.com>
4269
4270 * elf32-i386.c: Remove leaked development code from patch
4271 1998-12-10 by Richard Henderson.
4272
4273 1998-12-10 Richard Henderson <rth@cygnus.com>
4274
4275 * elf32-i386.c (elf_i386_relocate_section): Don't fail relocations
4276 in debug sections for symbol defined externally.
4277
4278 Thu Dec 10 10:58:38 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4279
4280 * targets.c (bfd_target_vector): Remove duplicate entry for
4281 tekhex_vec.
4282
4283 1998-12-09 Nick Clifton <nickc@cygnus.com>
4284
4285 * elf32-fr30.c (fr30_elf_howto_table): Set src_mask fields to 0
4286 since we are using RELAs.
4287
4288 Tue Dec 8 22:15:48 1998 Ian Lance Taylor <ian@cygnus.com>
4289
4290 SCO Open Server Release 5 core file support, from Jouke Numan
4291 <jnuman@hiscom.nl>:
4292 * sco5-core.c: New file.
4293 * configure.in (i[3456]86-*-sco3.2v5*): Use sco5-core.lo.
4294 (sco5-core.lo): Define SCO5_CORE in COREFLAG.
4295 * Makefile.am: Rebuild dependencies.
4296 (OPTIONAL_BACKENDS): Add sco5-core.lo.
4297 (OPTIONAL_BACKENDS_CFILES): Add sco5-core.c.
4298 * bfd.c (struct _bfd): Add sco5_core_data field to tdata.
4299 * targets.c (sco5_core_vec): Add to target list if SCO5_CORE.
4300 * bfd-in2.h, configure, Makefile.in: Rebuild.
4301
4302 Tue Dec 8 19:38:42 1998 Mark Klein <mklein@dis.com>
4303
4304 * config.bfd (hppa*-*-mpeix*): New target.
4305 * configure.in: Add AC_HEADER_DIRENT.
4306 (hppa*-*-mpeix*): New target.
4307 * configure.host (hppa*-*-mpeix*): New host.
4308 * hpux-core.c: Check HOST_HPPAMPEIX. Use HAVE_DIRENT_H and
4309 friends rather than just including <sys/dir.h>.
4310 * som.h (struct som_symbol): Add hppa_priv_level and apto
4311 tc_data. Change all users.
4312 (struct somdata): Add comp_unit field.
4313 (obj_som_compilation_unit): Define.
4314 (bfd_som_attach_compilation_unix): Declare.
4315 * som.c: Check HOST_HPPAMPEIX.
4316 (struct som_misc_symbol_info): Add new field priv_level.
4317 (som_object_setup): Add current_offset parameter. Change all
4318 callers.
4319 (setup_sections): Likewise.
4320 (som_object_p): For EXECLIBMAGIC, read the lst header.
4321 (som_write_symbol_strings): Add compilation_unit parameter.
4322 Change all callers.
4323 (som_finish_writing): Write out compilation_unit.
4324 (som_bfd_derive_misc_symbol_info): Set priv_level.
4325 (som_build_and_write_symbol_table): Set xleast field to 3.
4326 (som_slurp_symbol_table): Set symbol priv_level.
4327 (bfd_som_attach_compilation_unit): New function.
4328 (som_bfd_ar_write_symbol_stuff): Set xleast field to 3. Set
4329 priv_level into symbol_value.
4330 * configure, config.in: Rebuild.
4331
4332 Tue Dec 8 16:21:35 1998 Ian Lance Taylor <ian@cygnus.com>
4333
4334 * hpux-core.c (hpux_core_core_file_p): Change call to nonexistent
4335 warning function to call _bfd_error_handler instead.
4336
4337 * libbfd.c (COERCE32): Cast through unsigned long and long to
4338 avoid bug in old version of gcc.
4339
4340 * elf64-alpha.c (elf64_alpha_additional_program_headers): Remove.
4341 (elf_backend_additional_program_headers): Don't define.
4342
4343 1998-12-08 Nick Clifton <nickc@cygnus.com>
4344
4345 * elf32-fr30.c (fr30_final_link_relocate): Fix PC relative
4346 relocations to include offset of 2 included in the insns, and the
4347 offset of the relocs within the section.
4348
4349 Wed Dec 2 15:03:59 1998 David Taylor <taylor@texas.cygnus.com>
4350
4351 The following changes were made by David Taylor
4352 <taylor@texas.cygnus.com>, Edith Epstein
4353 <eepstein@sophia.cygnus.com>, Jim Blandy
4354 <jimb@zwingli.cygnus.com>, and Elena Zannoni
4355 <ezannoni@kwikemart.cygnus.com> as part of the project to merge in
4356 changes originally made by HP; HP did not create ChangeLog
4357 entries.
4358
4359 * aclocal.m4, configure, Makefile.in: Rebuilt using latest
4360 automake macro library.
4361
4362 * hpux-core.c (hpux_core_core_file_p): this function now
4363 understands HPUX 10.30 thread info. Yes, the thread stacks can be
4364 found in the corefile! Also, in hpux_core_core_file_p, if we
4365 encounter a section with an unknown type, don't punt. Instead,
4366 just skip it. Also, count the number of sections of known type
4367 that we encounter. If we encounter at least one good one, then
4368 we'll declare that the file is a core file. If we encounter any
4369 unknown ones but some known ones, then we'll issue a warning (but
4370 still declare it to be a core file). Also, correctly decide when a
4371 file is not a core.
4372 (PROC_INFO_HAS_THREAD_ID): define if CORE_ANON_SHMEM defined.
4373 (CORE_ANON_SHMEM): define if not defined.
4374 (hpux_core_struct): add members lwpid and user_tid.
4375 (core_kernel_thread_id, core_user_thread_id): new macros.
4376 (make_bfd_asection): use bfd_alloc to allocate room for a copy of
4377 the name before storing it in the bfd.
4378 (hpux_core_core_file_p): handle threads.
4379
4380 * libhppa.h (GET_FIELD): protect against redefinition.
4381 (HPPA_WIDE): define.
4382 (GET_FIELD): define.
4383 (GET_BIT): define.
4384 (MASK): define.
4385 (CATENATE): define.
4386 (ELEVEN): define.
4387 (sign_extend): redefine.
4388 (assemble_6): define.
4389 (assemble_12): rewrite.
4390 (assemble_16): define.
4391 (assemble_16a): define.
4392 (assemble_17): rewrite.
4393 (assemble_22): define.
4394
4395 1998-12-07 Nick Clifton <nickc@cygnus.com>
4396
4397 * elf32-fr30.c (fr30_final_link_relocate): Using signed
4398 relocations for signed values.
4399
4400 Sun Dec 6 16:30:33 1998 Ian Lance Taylor <ian@cygnus.com>
4401
4402 * mipsbsd.c (MY(set_arch_mach)): Make static.
4403 * aoutx.h (NAME(aout,machine_type)): For bfd_arch_mips, use
4404 bfd_mach_mips* macros rather than simple numbers.
4405
4406 COFF weak symbol support, based on patches from Mark Elbrecht
4407 <snowball3@usa.net>:
4408 * coffcode.h (coff_slurp_symbol_table): Handle C_WEAKEXT.
4409 * coffgen.c (coff_renumber_symbols): Handle weak symbols.
4410 (coff_write_alien_symbol): Likewise.
4411 * cofflink.c (coff_link_check_ar_symbols): Likewise.
4412 (coff_link_add_symbols): Likewise.
4413 (_bfd_coff_link_input_bfd): Likewise.
4414 (_bfd_coff_write_global_sym): Likewise.
4415
4416 * elf.c (copy_private_bfd_data): Always initialize the
4417 includes_phdrs field.
4418
4419 * elflink.h (elf_fix_symbol_flags): Check for case where a non-ELF
4420 file defines a symbol first mentioned in an ELF file.
4421
4422 * bfd-in.h: Always define BFD_HOST_64_BIT and BFD_HOST_U_64_BIT if
4423 possible, rather than only if BFD64.
4424 * elflink.h (compute_bucket_count): Just check BFD_HOST_U_64_BIT,
4425 not __GNUC__.
4426 * bfd-in2.h: Rebuild.
4427
4428 * srec.c (srec_set_section_contents): Correct test to avoid
4429 switching to 4 byte addresses after seeing a second section which
4430 requires 3 byte addresses. From Joel Schantz
4431 <joel.schantz@argosys.boeing.com>.
4432
4433 * config.bfd (m68*-*-gnu*): New target. From Aymeric Vincent
4434 <aymeric.vincent@emi.u-bordeaux.fr>.
4435
4436 1998-12-04 Jim Blandy <jimb@zwingli.cygnus.com>
4437
4438 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Fix logic to
4439 decide whether the output file is -mrelocatable-lib,
4440 -mrelocatable, or neither. (gdb.base/nodebug.exp)
4441
4442 1998-12-03 Nick Clifton <nickc@cygnus.com>
4443
4444 * elf32-fr30.c: Add support for R_FR30_48 reloc.
4445 * reloc.c: Add BFD_RELOC_FR30_48 relocation.
4446 * bfd-in2.h: Regenerate.
4447 * libbfd.h: Regenerate
4448
4449 Wed Dec 2 00:58:37 1998 Ian Lance Taylor <ian@cygnus.com>
4450
4451 * elflink.h (elf_adjust_dynamic_symbol): Warn on an attempt to
4452 link against a dynamic symbol with no type or size.
4453
4454 1998-12-01 Ulrich Drepper <drepper@cygnus.com>
4455
4456 * elf32-i386.c (i386_check_relocs) [R_386_32]: Don't emit
4457 relocation for section which does not get loaded.
4458 (elf_i386_relocate_section) [R_386_32]: Likewise.
4459
4460 Tue Dec 1 11:33:33 1998 Jim Wilson <wilson@cygnus.com>
4461
4462 * coff-h8300.c (h8300_bfd_link_add_symbols): Make reloc_size,
4463 reloc_count and i long instead of unsigned long. Handle error
4464 return from bfd_canonicalize_reloc.
4465
4466 1998-12-01 Nick Clifton <nickc@cygnus.com>
4467
4468 * elf32-v850.c (v850_elf_relocate_section): Detect the absence of
4469 a hash table.
4470
4471 Mon Nov 30 15:28:09 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
4472
4473 * elf32-sh.c (elf/sh.h): Include.
4474 sh_reloc_type: Delete. Changed all references to elf_sh_reloc_type.
4475 (sh_elf_howto_tab): Add HOWTO for R_SH_SWITCH8.
4476 (sh_reloc_map): Map BFD_RELOC_8_PCREL to R_SH_SWITCH8.
4477 (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
4478 * Makefile.in: Add dependency of elf32-sh.lo on $(INCDIR)/elf/sh.h.
4479
4480 Fri Nov 27 17:51:38 1998 Geoff Keating <geoffk@ozemail.com.au>
4481
4482 * elflink.h (compute_bucket_count): Don't allow minsize==0, it
4483 causes division by zero later on.
4484
4485 Thu Nov 26 11:19:35 1998 Dave Brolley <brolley@cygnus.com>
4486
4487 * elf32-fr30.c (fr30_elf_pc9_reloc,fr30_elf_pc12_reloc): Not
4488 needed.
4489
4490 1998-11-25 DJ Delorie <dj@cygnus.com>
4491
4492 * coff-i386.c (i3coff_object_p): Remove hack. Use new emulation
4493 hook now.
4494
4495 Tue Nov 24 10:25:27 1998 Nick Clifton <nickc@cygnus.com>
4496
4497 * elf32-fr30.c (fr30_elf_relocate_section): Call
4498 fr30_final_link_relocate.
4499 (fr30_final_link_relocate): New function: Handle I20 and I32
4500 relocs.
4501 (fr30_elf_i32_reloc): New function: Handle I32 relocs.
4502 (fr30_elf_pc9_reloc): New function: Handle 9_PCREL relocs.
4503 (fr30_elf_pc12_reloc): New function: Handle 12_PCREL relocs.
4504
4505 * elf32-v850.c (v850_elf_relocate_section): Reset hi16s reloc
4506 chain to empty.
4507
4508 The following changes are based on a patch submitted by Gianluca
4509 Moro <glctr@abc.it>:
4510
4511 (v850_elf_perform_relocation): Only update a hi16s reloc if it has
4512 not already been updated.
4513 (find_remembered_hi16s_reloc): New parameter 'already_found'
4514 returns state of remembered hi16s reloc.
4515 (remember_hi16s_reloc): Set 'found' field to false.
4516 (hi16s_location): Add 'found' field.
4517
4518 1998-11-23 DJ Delorie <dj@cygnus.com>
4519
4520 * coff-i386.c (bfd_pe_dll_not_recognized_hack): the linker wants
4521 to see .DLL files as unrecognized.
4522 (i3coff_object_p): Sorry, had to hack it to not recognize these
4523 files (pei-i386) on request.
4524
4525 1998-11-23 DJ Delorie <dj@cygnus.com>
4526
4527 * opncls.c (bfd_make_readable): need more cleanup for symbols and
4528 relents. Call bfd_check_format to reinitialize.
4529
4530 Fri Nov 20 14:21:36 1998 Nick Clifton <nickc@cygnus.com>
4531
4532 * elf32-fr30.c (fr30_elf_relocate_section): Remove spurious
4533 warnings.
4534
4535 Thu Nov 19 14:42:15 1998 Geoffrey Noer <noer@cygnus.com>
4536
4537 * aclocal.m4: regenerate
4538 * configure: regenerate
4539
4540 Tue Nov 17 20:23:35 1998 Richard Henderson <rth@cygnus.com>
4541
4542 * elf-bfd.h (struct elf_link_hash_entry): Add vtable_entries_size.
4543 * elf.c (_bfd_elf_link_hash_newfunc): Clear it.
4544 * elflink.h (elf_gc_propagate_vtable_entries_used): Copy it, and
4545 respect it as an upper bound on what memory to reference.
4546 (elf_gc_smash_unused_vtentry_relocs): Likewise.
4547 (elf_gc_record_vtentry): Handle as-yet undefined vtables. Set and
4548 update vtable_entries_size appropriately.
4549
4550 Tue Nov 17 15:28:31 1998 Nick Clifton <nickc@cygnus.com>
4551
4552 * elf32-fr30.c (fr30_reloc_type_lookup): Used integers to hold
4553 reloc number.
4554
4555 Mon Nov 16 22:19:21 1998 DJ Delorie <dj@cygnus.com>
4556
4557 * archive.c (bfd_ar_hdr_from_filesystem): support BFD_IN_MEMORY
4558 bfds; they have no "file" so we fake it.
4559 * bfd-in2.h: add bfd_make_writable and bfd_make_readable (regen)
4560 * libbfd.c (bfd_write): Allow writing to BFD_IN_MEMORY bfds by
4561 resizing the memory buffer.
4562 * opncls.c (bfd_make_writable): New function; lets you write a
4563 bfd_create'd bfd to an in-memory buffer.
4564 (bfd_make_readable): New function; lets you read back that buffer
4565 as if it were from bfd_openr. Used to build generated archive
4566 members (winsup's ld's dlltool)
4567
4568 Mon Nov 16 19:15:19 1998 Dave Brolley <brolley@cygnus.com>
4569
4570 * po/bfd.pot: Regenerated.
4571
4572 Mon Nov 16 10:57:06 1998 Nick Clifton <nickc@cygnus.com>
4573
4574 * elf32-v850.c (hi16s_location): Replaced fixed size array with
4575 linked list.
4576
4577 Sun Nov 15 20:28:25 1998 Richard Henderson <rth@cygnus.com>
4578
4579 * elf64-alpha.c (elf64_alpha_relax_section): Search for the proper
4580 element of the gotentry list for local symbols too.
4581 (elf64_alpha_relocate_section): Unify local and global handling.
4582 Assert that gotent->use_count > 0.
4583
4584 Sat Nov 14 15:16:01 1998 Ian Lance Taylor <ian@cygnus.com>
4585
4586 * configure.in (vms_alpha_vec): Rename from evax_alpha_vec, and
4587 update for file name changes of July 2, 1998.
4588 (vms_vax_vec): New.
4589 * configure: Rebuild.
4590
4591 Thu Nov 12 19:19:54 1998 Dave Brolley <brolley@cygnus.com>
4592
4593 * po/bfd.pot: Regenerated.
4594
4595 Tue Nov 10 16:17:06 1998 Geoffrey Noer <noer@cygnus.com>
4596
4597 * acinclude.m4, config.bfd: detect cygwin* instead of cygwin32*.
4598 * aclocal.m4, configure: regenerate
4599
4600 Tue Nov 10 15:13:59 1998 Nick Clifton <nickc@cygnus.com>
4601
4602 * elf.c (prep_headers): Add support for bfd_arch_fr30.
4603
4604 Tue Nov 10 13:37:36 1998 Felix Lee <flee@cygnus.com>
4605
4606 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE,
4607 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): didn't define macro when value
4608 was cached.
4609 * aclocal.m4, configure: regenerated.
4610
4611 Tue Nov 10 14:31:01 1998 Catherine Moore <clm@cygnus.com>
4612
4613 * elf32-d10v.c (reloc_type): Add R_D10V_GNU_VTINHERIT and
4614 R_D10V_GNU_VTENTRY relocs.
4615 (elf_d10v_howto_table): Likewise.
4616 (d10v_reloc_map d10v_reloc_map): Likewise.
4617 (elf32_d10v_gc_mark_hook): New.
4618 (elf32_d10v_gc_sweep_hook): New.
4619 (elf32_d10v_check_relocs): New.
4620 (elf32_d10v_relocate_section): New.
4621 (elf_backend_relocate_section): Define.
4622 (elf_backend_can_gc_sections): Define.
4623
4624 Sat Nov 7 18:07:51 1998 Peter Schauer <peter.schauer@regent.e-technik.tu-muenchen.de>
4625
4626 * Makefile.am (BFD32_BACKENDS): Move vms files here...
4627 (BFD64_BACKENDS): ...from here.
4628 (BFD32_BACKENDS_CFILES): Move vms files here...
4629 (BFD64_BACKENDS_CFILES): ...from here.
4630 * Makefile.in: Rebuild.
4631
4632 Wed Nov 4 15:58:48 1998 Nick Clifton <nickc@cygnus.com>
4633
4634 * Makefile.am: Add FR30 target.
4635 * Makefile.in: Add FR30 target.
4636 * archures.c: Add support for FR30.
4637 * config.bfd: Add support for FR30.
4638 * configure.in: Add support for FR30.
4639 * reloc.c: Add support for FR30 relocations.
4640 * targets.c: Add support for FR30 relocations.
4641 * bfd-in2.h: Regenerate.
4642 * configure: Regenerate.
4643 * libbfd.h: Regenerate.
4644 * cpu-fr30.c: New file.
4645 * elf32-fr30.c: New file.
4646
4647 Mon Nov 2 14:59:33 1998 Geoffrey Noer <noer@cygnus.com>
4648
4649 * configure.in: detect cygwin* instead of cygwin32*
4650 * configure: regenerate
4651
4652 Sun Nov 1 19:32:28 1998 Jeffrey A Law (law@cygnus.com)
4653
4654 * elf-m10300.c (mn10300_elf_relax_section): Do not use alloca,
4655 use bfd_malloc and free instead and check return value from bfd_malloc.
4656
4657 Sun Nov 1 16:20:35 1998 Ian Lance Taylor <ian@cygnus.com>
4658
4659 * libbfd-in.h (_bfd_dwarf1_find_nearest_line): Declare.
4660 * libbfd.h: Rebuild.
4661
4662 * elf32-mips.c (mips_elf_dynsym_sec_names): Comment out.
4663 (SIZEOF_MIPS_DYNSYM_SECNAMES): Likewise.
4664 (MIPS_TEXT_DYNSYM_SECN): Likewise.
4665 (_bfd_mips_elf_fake_sections): Don't set sh_info field of a .hash
4666 section.
4667 (struct mips_elf_link_hash_table): Remove dynsym_sec_strindex
4668 field.
4669 (mips_elf_link_hash_table_create): Don't initialize
4670 dynsym_sec_strindex.
4671 (mips_elf_gc_mark_hook): Add default case to avoid warning.
4672 (mips_elf_size_dynamic_sections): Generate a section symbol for
4673 every output section.
4674 (mips_elf_finish_dynamic_sections): Count all sections for
4675 DT_MIPS_UNREFEXTNO.
4676 (mips_elf_finish_dynamic_sections): Use dynamic symbols for all
4677 output sections.
4678
4679 Sun Nov 1 12:46:53 1998 Geoff Keating <geoffk@ozemail.com.au>
4680
4681 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Allocate two slots
4682 for later PLT entries in large PLTs.
4683 (ppc_elf_finish_dynamic_symbol): Allow for the extra slots.
4684
4685 Sat Oct 31 20:10:09 1998 Jeffrey A Law (law@cygnus.com)
4686
4687 * elf32-ppc.c (ppc_elf_reload_section): Fix typo.
4688
4689 1998-10-26 15:58 Ulrich Drepper <drepper@cygnus.com>
4690
4691 * elf-bfd.h (struct elf_link_hash_entry): Add new field elf_hash_value.
4692 * elflink.h (elf_collect_hash_codes): New function. This function is
4693 called for each exported symbol and we compute the ELF hash value for
4694 it.
4695 (compute_bucket_value): New function. It is called from
4696 size_dynamic_sections to determine the hash table size. When we are
4697 optimizing a better, but slower, algorithm is used.
4698 (size_dynamic_sections): Call compute_bucket_value.
4699
4700 * elf.c (bfd_elf_hash): Optimize the hash function a bit.
4701
4702 Mon Oct 19 20:03:21 1998 Catherine Moore <clm@cygnus.com>
4703
4704 * elf32-sh.c: Add HOWTO entries for R_SH_GNU_VTINHERIT and
4705 R_SH_GNU_VTENTRY.
4706 (sh_elf_gc_mark_hook): New.
4707 (sh_elf_gc_sweep_hook): New.
4708 (sh_elf_check_relocs): New.
4709 (elf_backend_can_gc_sections): Define.
4710
4711 Mon Oct 19 16:57:05 1998 Felix Lee <flee@cygnus.com>
4712
4713 * acinclude.m4: undo previous gettext change
4714 * aclocal.m4: rebuild with right version of aclocal.
4715
4716 Mon Oct 19 01:47:21 1998 Felix Lee <flee@cygnus.com>
4717
4718 * acinclude.m4, aclocal.m4: move gettext-related fragments from
4719 aclocal.m4 to acinclude.m4, so they don't get lost.
4720
4721 * elfcore.h: rewrite for better corefile support.
4722 * elf.c (elfcore_*): new functions.
4723 * elf-bfd.h (elf_obj_tdata): new structure members.
4724 * acconfig.h, acinclude.m4, configure.in: add feature-tests for
4725 flavor of procfs.
4726 * aclocal.m4, config.in, configure, Makefile.in: regenerated.
4727
4728 Fri Oct 16 14:07:45 1998 Catherine Moore <clm@cygnus.com>
4729
4730 * elf32-m32r.c: Add HOWTO entries for R_M32R_GNU_VTINHERIT
4731 and R_M32R_GNU_VTENTRY.
4732 (elf_backend_can_gc_sections): Define.
4733 (m32r_elf_check_relocs): New.
4734 (m32r_elf_gc_mark_hook): New.
4735 (m32r_elf_gc_sweep_hook): New.
4736 (m32r_elf_relocate_section): Handle VT relocs.
4737
4738 Mon Oct 12 14:18:40 1998 Nick Clifton <nickc@cygnus.com>
4739
4740 * coff-arm.c (arm_relocate_section): Remove redundant test.
4741
4742 * bfd-in2.h (struct reloc_howto_struct): Improve comment to make
4743 cleat that the 'bitsize' field is the size of the bitfield AFTER
4744 relocation not before.
4745
4746 * elf32-m32r.c (R_M32R_18_PCREL): Fix size of bitfield.
4747
4748 * coff-mips.c (mips_relocate_hi): Cope with missing refhi or reflo
4749 relocs.
4750
4751 Tue Oct 6 09:20:44 1998 Catherine Moore <clm@cygnus.com>
4752
4753 * elf32-sparc.c: Add HOWTO entries for R_SPARC_GNU_VTINHERIT and
4754 R_SPARC_GNU_VTENTRY.
4755 (elf32_sparc_check_relocs): Handle them.
4756 (elf32_sparc_reloc_type_lookup): Likewise.
4757 (elf32_sparc_relocate_section): Likewise.
4758 (elf32_sparc_gc_mark_hook): New.
4759 (elf32_sparc_gc_sweep_hook): New.
4760
4761 Mon Oct 5 14:55:30 1998 Jeffrey A Law (law@cygnus.com)
4762
4763 * som.c (som_finish_writing): Perform some sanity checks when
4764 writing an executable or shared library.
4765
4766 Mon Oct 5 12:02:31 1998 Gavin Romig-Koch <gavin@cygnus.com>
4767
4768 * dwarf1.c : New file. Adds _bfd_dwarf1_find_nearest_line.
4769 * configure.in (elf): Add dwarf1.lo.
4770 * elf_bfd.h (elf_ob_tdata): Add dwarf1_find_line_info.
4771 * elf.c (_bfd_elf_find_nearest_line): Add call to
4772 _bfd_dwarf1_find_nearest_line.
4773 * elf32-mips.c (_bfd_mips_elf_find_nearest_line):
4774 Add call to _bfd_dwarf1_find_nearest_line.
4775 * configure: Rebuilt.
4776
4777 Mon Oct 5 10:06:22 1998 Catherine Moore <clm@cygnus.com>
4778
4779 * elflink.h (elf_gc_sections): Do not allow garbage
4780 collection if dynamic sections have been created.
4781
4782 Mon Oct 5 09:07:37 1998 Catherine Moore <clm@cygnus.com>
4783
4784 * elf32-v850.c: Add HOWTO entries for R_V850_GNU_VTINHERIT and
4785 R_V850_GNU_VTENTRY.
4786 (v850_elf_check_relocs): Handle VTINHERIT and VTENTRY relocs.
4787 (v850_elf_perform_relocation): Likewise.
4788 (v850_elf_final_link_relocate): Likewise.
4789 (v850_elf_relocate_section): Likewise.
4790 (v850_elf_gc_sweep_hook): New routine.
4791 (v850_elf_gc_mark_hook): New routine.
4792 (elf_backend_can_gc_sections): Define.
4793
4794 Mon Oct 5 09:04:25 1998 Catherine Moore <clm@cygnus.com>
4795
4796 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Don't assume
4797 that dynobj exists.
4798
4799 Sun Oct 4 23:29:34 1998 David Edelsohn <edelsohn@mhpcc.edu>
4800
4801 * rs6000-core.c (rs6000coff_core_file_matches_executable_p):
4802 Declare size as bfd_size_type.
4803 (rs6000coff_get_section_contents): Declare count as bfd_size_type.
4804
4805 Sun Oct 4 20:38:29 1998 Jeffrey A Law (law@cygnus.com)
4806
4807 * cpu-hppa.c (bfd_hppa20_arch): Define. Link it into the bfd_hppa_arch
4808 structure.
4809 * som.c (CPU_PA_RISC2_0): Define.
4810 (_PA_RISC2_0_ID): Likewise.
4811 (som_finish_writing): Use CPU_PA_RISC2_0 for the system_id as needed.
4812
4813 Sun Oct 4 21:19:09 1998 Ian Lance Taylor <ian@cygnus.com>
4814
4815 * elflink.h (elf_link_add_object_symbols): When a versioned symbol
4816 has a base which is already defined, only add the referenced
4817 symbol to the dynamic symbol table if it is defined or referenced
4818 by a regular file.
4819
4820 * elf32-i386.c (elf_i386_info_to_howto_rel): Handle vtable relocs
4821 correctly.
4822
4823 1998-09-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4824
4825 * elflink.h (elf_link_add_object_symbols): Undo last change.
4826
4827 Wed Sep 23 16:09:31 1998 Richard Henderson <rth@cygnus.com>
4828
4829 * elflink.h (elf_link_add_object_symbols): Don't record a dynamic
4830 symbol for the indirect alias to a versioned symbol.
4831
4832 Mon Sep 21 12:15:22 1998 Catherine Moore <clm@cygnus.com>
4833
4834 * elf32-i386.c (elf32_i386_vtinherit_howto): New.
4835 (elf32_i386_vtentry_howto): New.
4836 (elf_i386_reloc_type_lookup): Return elf32_i386_vtentry_howto
4837 or elf32_i386_vtinherit_howto on lookup.
4838
4839 Sun Sep 20 00:48:07 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4840
4841 * elf32-m68k.c: Include "elf/m68k.h". Remove definition of enum
4842 reloc_type. Rename R_68K__max to R_68K_max.
4843 (howto_table): Use _bfd_elf_rel_vtable_reloc_fn for a VTENTRY
4844 reloc.
4845
4846 Sun Sep 20 00:09:25 1998 Chris Torek <torek@bsdi.com>
4847
4848 * libbfd.c (bfd_getb32): Rewrite expression to get better code.
4849 (bfd_getl32, bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
4850
4851 * libbfd.c (bfd_log2): Cast to bfd_vma before shifting, not
4852 after.
4853
4854 Sat Sep 19 22:42:23 1998 Doug Rabson <dfr@nlsystems.com>
4855
4856 * elflink.h (elf_link_add_object_symbols): Ensure that the warning
4857 message has a null byte terminator.
4858
4859 Fri Sep 18 14:35:29 1998 Nick Clifton <nickc@cygnus.com>
4860
4861 * elf32-v850.c (v850_elf_perform_relocation): Ignore contents of
4862 word subject to R_V850_32 relocation.
4863
4864 Thu Sep 17 17:20:36 1998 Nick Clifton <nickc@cygnus.com>
4865
4866 * dwarf2.c: Add comment describing problem computing line numbers
4867 for undefined symbols at link time.
4868
4869 Thu Sep 17 16:03:28 1998 Richard Henderson <rth@cygnus.com>
4870
4871 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't
4872 transform a defweak into a plt entry.
4873 (elf64_alpha_calc_dynrel_sizes): Allow room for secondary
4874 plt entry references to receive a RELATIVE reloc.
4875 (elf64_alpha_finish_dynamic_symbol): Fill them in.
4876 (elf64_alpha_relocate_section): Assert we don't overrun
4877 the allocated relocation space.
4878
4879 Wed Sep 16 18:03:13 1998 Nick Clifton <nickc@cygnus.com>
4880
4881 * elf.c (swap_out_syms): Always treat section symbols as
4882 special, even if they are attached to a common section.
4883
4884 Wed Sep 16 10:34:13 1998 Nick Clifton <nickc@cygnus.com>
4885
4886 * elf32-v850.c (v850_elf_symbol_processing): Move symbols in
4887 sections with v850 common section attributes into named v850
4888 common sections.
4889 (v850_elf_add_symbol_hook): Move symbols in sections with v850
4890 common section attributes into named v850 common sections.
4891
4892 Wed Sep 16 11:26:49 CDT 1998 Catherine Moore <clm@cygnus.com>
4893
4894 * elf32-arm.c (elf32_arm_gc_mark_hook): Remove print
4895 statement.
4896
4897 1998-09-15 Geoff Keating <geoffk@ozemail.com.au>
4898
4899 * elf32-ppc.c (ppc_elf_relocate_section): Reverse output_offset
4900 part of Vladimir's change of 1998-08-19. Make a R_PPC_SDAREL16
4901 reloc to the wrong section a warning, not an error. .dynsbss
4902 is not an output section, so there is no need to check for it.
4903
4904 Tue Sep 15 12:40:05 1998 Catherine Moore <clm@cygnus.com>
4905
4906 * elf-bfd.h: Add argument to elf_backend_get_symbol_type.
4907
4908 Tue Sep 15 08:34:40 1998 Catherine Moore <clm@cygnus.com>
4909
4910 * elf.c (swap_out_syms): Pass type to elf_backend_get_symbol_type.
4911 * elf32-arm.c: Add HOWTO entries for R_ARM_GNU_VTINHERIT and
4912 R_ARM_GNU_VTENTRY.
4913 (elf32_arm_gc_mark_hook): New.
4914 (elf32_arm_gc_sweep_hook): New.
4915 (elf32_arm_check_relocs): New.
4916 (elf32_arm_final_link_relocate): Handle VTINHERIT and VTENTRY
4917 relocations.
4918 (elf32_arm_relocate_section): Handle VTINHERIT and VTENTRY
4919 relocations.
4920
4921 1998-09-10 Geoff Keating <geoffk@ozemail.com.au>
4922
4923 * elf32-ppc.c (ppc_elf_relocate_section): If dynobj is NULL,
4924 assume there is no PLT or GOT.
4925
4926 Wed Sep 9 14:24:12 1998 Nick Clifton <nickc@cygnus.com>
4927
4928 * elf32-arm.c (elf32_arm_find_nearest_line): New function: just
4929 like _elf_bfd_find_nearest_line() except that STT_ARM_TFUNC is
4930 also accepted as a function symbol type.
4931
4932 Mon Sep 7 13:24:03 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4933
4934 * rs6000-core.c (_LONG_LONG): Define for AIX 4.x only.
4935
4936 Sat Sep 5 20:40:18 1998 Ian Lance Taylor <ian@cygnus.com>
4937
4938 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): Correct definition to
4939 match definition of _bfd_gc_sections field.
4940 * libbfd.h: Rebuild.
4941
4942 Fri Sep 4 13:54:23 1998 David Miller <davem@dm.cobaltmicro.com>
4943
4944 * elf32-sparc.c (elf32_sparc_relocate_section): Properly adjust
4945 the addend of a dynamic relocation referencing a section.
4946 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4947 (sparc64_elf_finish_dynamic_symbol): Fix the PLT relocation offset.
4948
4949 Thu Sep 3 17:28:50 1998 Richard Henderson <rth@cygnus.com>
4950
4951 * elflink.h (bfd_elfNN_size_dynamic_sections): Verify that the
4952 bed has a size_dynamic_sections routine before trying to use it.
4953
4954 Mon Aug 31 14:49:22 1998 Richard Henderson <rth@cygnus.com>
4955
4956 * elf32-mips.c (elf_mips_gnu_vtentry_howto): Use
4957 _bfd_elf_rel_vtable_reloc_fn.
4958
4959 Mon Aug 31 10:23:40 1998 Catherine Moore <clm@cygnus.com>
4960
4961 * Makefile.am: Add elf32-arm.c.
4962 * Makefile.in: Rebuild.
4963 * elf-bfd.h: Add elf_backend_get_symbol_type.
4964 * elf.c (swap_out_syms): If defined, call
4965 elf_backend_get_symbol_type.
4966 * elf32-arm.c: Define elf_backend_get_symbol_type.
4967 (elf32_arm_get_symbol-type): New routine.
4968 (record_thumb_to_arm_glue): Change to use STT_ARM_TFUNC.
4969 (bfd_elf32_arm_process_before_allocation): Change to
4970 check for STT_ARM_TFUNC.
4971 (elf32_arm_final_link_relocate): Likewise.
4972 * elfxx-target.h: Add elf_backend_get_symbol_type.
4973
4974 Fri Aug 28 19:44:07 1998 Richard Henderson <rth@cygnus.com>
4975
4976 * archures.c (bfd_mach_alpha_ev[456]): New.
4977 * cpu-alpha.c: Rework to match these types.
4978 * bfd-in2.h: Rebuild.
4979
4980 Fri Aug 28 19:38:53 1998 Richard Henderson <rth@cygnus.com>
4981
4982 * elf-bfd.h (_bfd_elf_rel_vtable_reloc_fn): Declare.
4983 * elf.c (_bfd_elf_rel_vtable_reloc_fn): New.
4984
4985 * elf32-i386.c (elf_howto_table): Add vtable relocs.
4986 (elf_i386_reloc_type_lookup): Recognize them.
4987 (elf_i386_check_relocs): Pass them off to generic code.
4988 (elf_i386_relocate_section): Ignore them.
4989 (elf_i386_gc_mark_hook, elf_i386_gc_sweep_hook): New.
4990 (elf_backend_can_gc_sections): True.
4991
4992 Thu Aug 20 15:03:45 1998 Nick Clifton <nickc@cygnus.com>
4993
4994 * elf32-arm.c (elf32_thumb_to_arm_stub): Check sym_sec is not NULL
4995 before looking at owner field.
4996 (elf32_arm_to_thumb_stub): Ditto.
4997 (elf32_arm_relocate_section): Compute name before calling
4998 elf32_arm_final_link_relocate().
4999
5000 Thu Aug 20 11:30:17 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
5001
5002 * elf.c: comment and formatting cleanups.
5003 * elfcore.h: ditto.
5004
5005 Wed Aug 19 15:43:26 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
5006
5007 * elfcode.h (elf_object_p): Reject files of header type ET_CORE
5008 (core files are treated differently than object files).
5009 * elf-bfd.h (_bfd_elf_write_corefile_contents,
5010 bfd_elf_mkcorefile): declare.
5011 * elfxx-target.h (_bfd_elf_write_corefile_contents,
5012 bfd_elf_mkcorefile): add to bfd_target vector.
5013 * elfcore.h (elf_core_file_p): save the program header table,
5014 and set the bfd architecture from the elf file header.
5015 * elf.c (bfd_elf_mkcorefile): new function.
5016 (_bfd_elf_write_corefile_contents): new function.
5017 (assign_file_positions_for_segments): add cases for handling
5018 PT_NOTE segments. (assign_file_positions_except_relocs):
5019 core files should be handled the same as exec files.
5020 (prep_headers): identify core files as type ET_CORE.
5021 (copy_private_bfd_data): identify the sections belonging to
5022 the PT_NOTE segment.
5023
5024 * elf32-sparc.c (elf32_sparc_final_write_processing):
5025 add break statement to default case.
5026
5027 1998-08-19 Vladimir N. Makarov <vmakarov@cygnus.com>
5028
5029 * elf32-ppc.c (ppc_elf_relocate_section): Check that output
5030 section (not input) will be in sections ".sbss", ".sbss2",
5031 ".sdata", and ".sdata" for R_PPC_SDAREL16, R_PPC_EMB_SDA2REL,
5032 R_PPC_EMB_SDA21, R_PPC_EMB_RELSDA. In all these cases also ignore
5033 output_offset for correct evaluation of addend.
5034
5035 Tue Aug 18 11:48:12 1998 Catherine Moore <clm@cygnus.com>
5036
5037 * elf32-arm.c: Add prefix bfd_ to elf32_arm_get_bfd_for_interworking,
5038 elf32_arm_allocate_interworking_sections and
5039 elf32_arm_process_before_allocation.
5040
5041 Tue Aug 18 11:46:00 1998 Nick Clifton <nickc@cygnus.com>
5042
5043 * bfd-in.h: Ammend prototype for
5044 elf32_arm_process_before_allocation to remove surplus third
5045 argument.
5046
5047 * bfd-in2.h: Regenerate.
5048
5049 Sat Aug 15 20:55:08 1998 Richard Henderson <rth@cygnus.com>
5050
5051 * elf64-alpha.c (elf64_alpha_relax_section): Handle indirect symbols.
5052
5053 Fri Aug 14 09:12:28 1998 Stan Cox <scox@cygnus.com>
5054
5055 * aoutx.h (aout_link_input_section_ext): Use the relocation already
5056 calculated for RELOC_SPARC_REV32 case.
5057
5058 Thu Aug 13 14:02:02 1998 Catherine Moore <clm@cygnus.com>
5059
5060 * bfd-in.h: Add prototypes for elf32_arm_get_bfd_for_interworking,
5061 elf32_arm_allocate_interworking_sections and
5062 elf32_arm_process_before_allocation.
5063 * bfd-in2.h: Regenerated.
5064 * elf32-arm.c Define elf32_arm_link_hash_table.
5065 (insert_thumb_branch): New routine.
5066 (find_thumb_glue): New routine.
5067 (find_arm_glue): New routine.
5068 (record_arm_to_thumb_glue): New routine.
5069 (record_thumb_to_arm_glue): New routine.
5070 (elf32_arm_link_hash_table_create): New routine.
5071 (elf32_arm_get_bfd_for_interworking): New routine.
5072 (elf32_arm_allocate_interworking_sections) New routine.
5073 (elf32_arm_process_before_allocation) New routine.
5074 (elf32_thumb_to_arm_stub): New routine.
5075 (elf32_arm_to_thumb_stub): New routine.
5076 (elf32_print_private_bfd_data): Fix typo.
5077 (elf32_arm_final_link_relocate): Add argument sym_sec.
5078 Check for branches to thumb symbols in case R_ARM_PC24.
5079 Check for branches to arm symbols in case R_ARM_THM_PC22.
5080 (elf32_arm_relocate_section): Pass symbol section to
5081 elf32_arm_final_link_relocate.
5082
5083 Wed Aug 12 19:00:39 1998 Geoff Keating <geoffk@ozemail.com.au>
5084
5085 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Generate PLT
5086 entries unless the symbol is defined in the executable; in
5087 particular, undefined weak symbols get a PLT entry.
5088
5089 Wed Aug 12 14:48:33 1998 Ian Lance Taylor <ian@cygnus.com>
5090
5091 * libaout.h: Remove nested comment to avoid warning.
5092
5093 Wed Aug 12 08:10:11 1998 Catherine Moore <clm@cygnus.com>
5094
5095 * elf32-arm.c (elf32_arm_final_link_relocate): Rework
5096 R_ARM_PC24 relocation.
5097
5098 Tue Aug 11 14:42:26 1998 Catherine Moore <clm@cygnus.com>
5099
5100 * elf32-arm.c (elf32_arm_final_link_relocate): Remove unused
5101 argument is_local. Add argument sym_flags. Check sym_flags
5102 in R_ARM_ABS32 case. Include addend for R_ARM_THM_PC22 case.
5103 (elf32_arm_relocate_section): Don't pass local sym and pass
5104 sym_flags to elf32_arm_final_link_relocate.
5105
5106 Mon Aug 10 20:38:39 1998 Richard Henderson <rth@cygnus.com>
5107
5108 * elf64-alpha.c (elf64_alpha_calc_dynrel_sizes): Correct last change
5109 to not count too few relocs for dynamicly linked executables.
5110
5111 Mon Aug 10 15:35:34 1998 Richard Henderson <rth@cygnus.com>
5112
5113 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Never consider
5114 symbols without a dynamic index dynamic. Consider all weak
5115 symbols dynamic.
5116 (elf64_alpha_strip_section_from_output): Don't assume 1-1
5117 correspondance between input and output sections.
5118
5119 Mon Aug 10 15:31:39 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5120
5121 * elflink.h (elf_gc_common_finalize_got_offsets): For backends
5122 that use a .got.plt section start the got offset at zero.
5123
5124 Mon Aug 10 17:31:21 1998 Ian Lance Taylor <ian@cygnus.com>
5125
5126 * ieee.c (ieee_write_processor): Correct the processor ID written
5127 out for bfd_arch_m68k, accommodating change of March 25.
5128
5129 Sun Aug 9 20:55:44 1998 Catherine Moore <clm@cygnus.com>
5130
5131 * elf32-arm.c (elf32_arm_final_link_relocate): Rework
5132 R_ARM_THM_RPC22 relocations.
5133
5134 Sat Aug 8 15:15:30 1998 Richard Henderson <rth@cygnus.com>
5135
5136 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Undef weak symbols
5137 are always dynamic.
5138 (elf64_alpha_calc_dynrel_sizes): Allow enough room for RELATIVE
5139 .got relocs in -Bsymbolic shared objects.
5140
5141 Wed Aug 5 15:48:08 1998 Nick Clifton <nickc@cygnus.com>
5142
5143 * elf32-arm.c: Add private flags to ELF header.
5144 (elf32_arm_print_private_bfd_data): New Function.
5145 (elf32_arm_set_private_flags): New Function.
5146 (elf32_arm_copy_private_flags): New Function.
5147 (elf32_arm_merge_private_bfd_data): New Function.
5148
5149 Mon Aug 3 17:10:15 1998 Ian Lance Taylor <ian@cygnus.com>
5150
5151 * elf32-sparc.c (elf32_sparc_check_relocs): Permit WPLT30 against
5152 a local symbol.
5153 (elf32_sparc_relocate_section): Likewise.
5154
5155 Sun Aug 2 03:19:23 1998 Richard Henderson <rth@cygnus.com>
5156
5157 * elf32-ppc.c (ppc_elf_check_relocs): Init sgot to NULL. Create the
5158 .got if any relocation referrs to _GLOBAL_OFFSET_TABLE_.
5159 (ppc_elf_relocate_section): Pull sgot and splt search to the start
5160 of the function. Recognize no .plt as static linking.
5161
5162 1998-08-01 Ulrich Drepper <drepper@cygnus.com>
5163
5164 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Don't pass
5165 ".liblist" string through gettext.
5166
5167 Fri Jul 31 16:38:14 1998 Catherine Moore <clm@cygnus.com>
5168
5169 * Makefile.am: Add support for elf32-arm.lo.
5170 * Makefile.in: Rebuild.
5171 * config.bfd (arm-*-elf): Define targ_defvec and targ_selvecs.
5172 (thumb-*-elf): Define targ_defvec and targ_selvecs.
5173 * configure.in: Handle bfd_elf32_littlearm_vec and bfd_elf32_bigarm_vec.
5174 * configure: Regenerate.
5175 * elf.c: (prep_headers): Support arch_type of EM_ARM.
5176 * targets.c: Support new targets bfd_elf32_bigarm_vec and
5177 bfd_target bfd_elf32_littlearm_vec.
5178 * elf32-arm.c: New file.
5179
5180 Tue Jun 28 19:05:28 1998 Stan Cox <scox@cygnus.com>
5181
5182 * libaout.h (M_SPARCLITE_LE): New machine.
5183 * sunos.c (MACHTYPE_OK): Add machine M_SPARCLITE_LE.
5184 * aoutf1.h (sunos_set_arch_mach): Add machine M_SPARCLITE_LE.
5185 (sunos_write_object_contents): Add machine bfd_mach_sparc_sparclite_le
5186 * aoutx.h (howto_table_ext): Add relocation R_SPARC_REV32.
5187 (NAME(aout,machine_type)) Add machine bfd_mach_sparc_sparclite_le
5188 (aout_link_input_section_ext): Add RELOC_SPARC_REV32 support.
5189 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
5190 elf32_sparc_relocate_section): Rename R_SPARC_32LE to be R_SPARC_REV32
5191 * libbfd.h (bfd_reloc_code_real_names): Rename BFD_RELOC_SPARC_32LE to
5192 be BFD_RELOC_SPARC_REV32.
5193 * reloc.c: Ditto.
5194 * config.bfd (sparc86x-*-aout): New
5195
5196 Fri Jul 24 13:54:19 1998 Nick Clifton <nickc@cygnus.com>
5197
5198 * linker.c (_bfd_generic_final_link): Allocate NULL symbol before
5199 actually mapping the output sections.
5200
5201 Fri Jul 24 11:24:29 1998 Jeffrey A Law (law@cygnus.com)
5202
5203
5204 * elf-m10300.c (mn10300_elf_howto): Add R_MN10300_24 entry.
5205 (mn10300_elf_reloc_map): Similarly.
5206 (mn10300_elf_final_link_relocate): Handle R_MN10300_24.
5207
5208 Fri Jul 24 12:36:04 1998 Ian Lance Taylor <ian@cygnus.com>
5209
5210 * elf32-mips.c (elf_mips_howto_table): Add reloc types used on
5211 Irix 6.
5212 (bfd_elf32_bfd_reloc_type_lookup): Add default case.
5213 * elf64-mips.c: Replace all uses of mips_elf64_reloc_type with
5214 elf_mips_reloc_type defined in elf/mips.h.
5215
5216 1998-07-24 Ulrich Drepper <drepper@cygnus.com>
5217
5218 * elf64-mips.c: Remove reloc_type definition completely. It's now
5219 in elf/mips.h.
5220
5221 Thu Jul 23 13:33:19 1998 Doug Evans <devans@canuck.cygnus.com>
5222
5223 * elf64-mips.c (mips_elf64_reloc_type): #if 0 out more relocations
5224 as they are defined in elf/mips.h now.
5225
5226 Thu Jul 23 11:29:43 1998 Jeffrey A Law (law@cygnus.com)
5227
5228
5229 * Re-add lost change:
5230 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add new field
5231 "movm_stack_size".
5232 (mn10300_elf_relax_section): Include stack space for register saves
5233 in the imm8 field of a "call" instruction.
5234 (compute_function_info): Determine how much stack is allocated by
5235 the movm instruction. Fix typo.
5236 (elf32_mn10300_link_hash_newfunc): Initialize movm_stack_size.
5237
5238 Thu Jul 23 11:38:05 1998 Ian Lance Taylor <ian@cygnus.com>
5239
5240 * elf32-sparc.c (elf_backend_got_header_size): Define as 4.
5241 * elf64-sparc.c (elf_backend_got_header_size): Define as 8.
5242
5243 1998-07-22 Ulrich Drepper <drepper@cygnus.com>
5244
5245 * elf32-ppc.c: Change use of pp_reloc_type to elf_ppc_reloc_type.
5246
5247 Wed Jul 22 16:27:18 1998 Nick Clifton <nickc@cygnus.com>
5248
5249 * elf32-hppa.h: Let ELF header define the enum containing the
5250 external reloc numbers.
5251 * elf32-i386.h: Likewise.
5252
5253 1998-07-22 14:57 Ulrich Drepper <drepper@cygnus.com>
5254
5255 * elf-m10300.c: Let ELF header now define the macros to get the enum.
5256 * elf32-mips.c: Likewise.
5257 * elf32-ppc.c: Likewise.
5258
5259 Wed Jul 22 13:53:52 1998 Nick Clifton <nickc@cygnus.com>
5260
5261 * bfd-in2.h: Change type of 'class' parameter to 'unsigned int' in
5262 bfd_coff_set_symbol_class(), in order to avoid K&R compatability
5263 prblems.
5264 * bfd-in.h: Regenerate.
5265 * coffgen.c (bfd_coff_set_symbol_class): Change type of 'class'
5266 parameter to 'unsigned int' to avoid K&R compatability problems.
5267
5268 Wed Jul 22 16:43:24 1998 Ian Lance Taylor <ian@cygnus.com>
5269
5270 * ieee.c (ieee_find_nearest_line): Change filename_ptr and
5271 functionname_ptr to be const. Change line_ptr to be unsigned.
5272
5273 * coffcode.h (coff_link_output_has_begun): Simplify handling when
5274 macro is not defined. Change second parameter from bfd_link_info
5275 to coff_final_link_info. Add prototype.
5276 (coff_final_link_postscript): Simplify handling when macro is not
5277 defined. Add prototype.
5278
5279 1998-07-22 13:08 Ulrich Drepper <drepper@cygnus.com>
5280
5281 * elf-mn10300.c: Before include system specific ELF header define
5282 START_RELOC_NUMBERS, RELOC_NUMBER, and END_RELOC_NUMBERS.
5283 * elf32-mips.c: Likewise.
5284 * elf32-ppc.c: Likewise.
5285
5286 Wed Jul 22 13:46:51 1998 Ian Lance Taylor <ian@cygnus.com>
5287
5288 * elf64-mips.c (mips_elf64_reloc_type): Copy Ulrich's elf32-mips.c
5289 temporary patch over to elf64-mips.c as well.
5290
5291 1998-07-21 Ulrich Drepper <drepper@cygnus.com>
5292
5293 * elf32-mips.c (reloc_type): Temporarily disable definition of
5294 standard relocation since they are now defined in elf/mips.h.
5295
5296 Tue Jul 21 09:47:00 1998 Catherine Moore <clm@cygnus.com>
5297
5298 * elf-m10200.c (mn10200_elf_final_link_relocate):
5299 Modify range test for case R_MN10200_8.
5300
5301 * elf-m10300.c (mn10300_elf_final_link_relocate):
5302 Modify range test for case R_MN10300_8.
5303
5304 Mon Jul 20 18:50:54 1998 Richard Henderson <rth@cygnus.com>
5305
5306 * elf-bfd.h (struct elf_backend_data): Add got_ & plt_header_size.
5307 * elf32-i386.c (elf_backend_got_header_size): Define.
5308 (elf_backend_plt_header_size): Define.
5309 * elf32-m68k.c, elf32-mips.c, elf32-ppc.c: Likewise.
5310 * elf32-sparc.c, elf64-alpha.c, elf64-sparc.c: Likewise.
5311 * elfxx-target.h: Provide a default of zero.
5312 * elflink.c (_bfd_elf_create_got_section): Use got_header_size.
5313 * elflink.h (elf_gc_common_finalize_got_offsets): Likewise.
5314
5315 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't remove a PLT
5316 entry from an executable, even if the plt refcount goes to 0.
5317
5318 Mon Jul 20 12:47:26 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5319
5320 * aoutx.h (NAME(aout,find_nearest_line)): Also remember the
5321 directory name at the line number.
5322
5323 * elf.c (_bfd_elf_find_nearest_line): Also consider symbols
5324 with an unspecified type.
5325
5326 Wed Jul 15 11:20:01 1998 Ian Lance Taylor <ian@cygnus.com>
5327
5328 * sunos.c: Add undef of valid to avoid problem on SunOS.
5329
5330 Tue Jul 14 15:30:59 1998 Richard Henderson <rth@cygnus.com>
5331
5332 * config.bfd (i?86-pc-beos{pe,elf,}*): Recognize.
5333
5334 Tue Jul 14 11:22:21 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5335
5336 * elf32-m68k.c (elf_m68k_check_relocs): Also reference count
5337 R_68K_PCxx and R_68K_xx relocations. Make sure that
5338 ELF_LINK_HASH_NEEDS_PLT is always set for a PLT reloc reference.
5339 (elf_m68k_gc_sweep_hook): Also reference count R_68K_PCxx and
5340 R_68K_xx relocations.
5341 (elf_m68k_adjust_dynamic_symbol): Reset the plt offset of a symbol
5342 that has no plt entry.
5343 (elf_m68k_relocate_section): Ignore the plt offset in a static
5344 link.
5345 * elflink.h (elf_adjust_dynamic_symbol): Reset the plt offset for
5346 an ignored symbol.
5347 (elf_gc_common_finalize_got_offsets): Set the got offsets also in
5348 a static link.
5349
5350 * elf32-m68k.c (R_68K_GNU_VTINHERIT, R_68K_GNU_VTENTRY): New reloc
5351 types.
5352 (howto_table, reloc_map): Add entries for them.
5353 (elf_m68k_check_relocs): Handle them. Implement reference
5354 counting for got and plt entries.
5355 (elf_m68k_gc_mark_hook, elf_m68k_gc_sweep_hook): New functions.
5356 (elf_m68k_adjust_dynamic_symbol): Handle unreferenced plt
5357 symbols.
5358 (rtype_to_howto_rel, elf_info_to_howto_rel): Delete.
5359 (elf_m68k_relocate_section): Handle the new reloc types.
5360 (bfd_elf32_bfd_final_link, elf_backend_gc_mark_hook,
5361 elf_backend_gc_sweep_hook, elf_backend_can_gc_sections): Define.
5362 * elflink.h (elf_link_add_object_symbols): When creating an
5363 indirect reference for symbol versioning also copy the plt
5364 offset.
5365 (elf_fix_symbol_flags): When clearing the ELF_LINK_HASH_NEEDS_PLT
5366 flag also reset the plt offset.
5367 (elf_link_assign_sym_version): Likewise.
5368 (elf_gc_common_finalize_got_offsets): Increment the got offset by
5369 the size of the entry in bytes.
5370 (elf_gc_allocate_got_offsets): Likewise.
5371
5372 Tue Jul 14 11:18:14 1998 Ian Lance Taylor <ian@cygnus.com>
5373
5374 * elflink.h (elf_gc_sections): Return true rather than falling off
5375 the bottom.
5376
5377 * coffgen.c (bfd_coff_set_symbol_class): Call bfd_alloc, not
5378 xmalloc.
5379
5380 Mon Jul 13 11:06:31 1998 Nick Clifton <nickc@cygnus.com>
5381
5382 * coff-arm.c: Supress definition of TARGET_UNDERSCORE and add a
5383 comment describing when it should be enabled.
5384 Changed definition of USER_LABEL_PREFIX to "", to fall into line
5385 with GCC sources.
5386
5387 Mon Jul 13 13:06:54 1998 Ian Lance Taylor <ian@cygnus.com>
5388
5389 * ieee.c (ieee_slurp_external_symbols): Handle call optimization
5390 information ATN records.
5391
5392 Fri Jul 10 16:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
5393
5394 * ieee.c (ieee_slurp_external_symbols): Select an appropriate
5395 section for an absolute symbol in a fully linked file. Based on
5396 patch from Christian Holland <CHolland@de.lucent.com>.
5397
5398 Wed Jul 8 11:29:56 1998 Manfred Hollstein <manfred@s-direktnet.de>
5399
5400 * coff-m88k.c (m88k_special_reloc): Don't lose the information
5401 that a symbol is undefined.
5402
5403 Tue Jul 7 21:47:02 1998 Jeffrey A Law (law@cygnus.com)
5404
5405 * som.c (som_bfd_gc_sections): Define.
5406
5407 Mon Jul 6 11:35:50 1998 Nick Clifton <nickc@cygnus.com>
5408
5409 * coff-arm.c (aoutarm_std_reloc_howto): Do not complain about
5410 overflows in ARM_26D patches, since they have already been
5411 implmented. Patch submitted by Dr. R.J. Black <rjb@dcs.gla.ac.uk>
5412
5413 Sat Jul 4 12:25:36 1998 Ian Lance Taylor <ian@cygnus.com>
5414
5415 * coffcode.h (coff_write_object_contents): If we have any long
5416 section names, call coff_write_symbols even if there are no
5417 symbols.
5418
5419 Fri Jul 3 13:11:35 1998 Ian Lance Taylor <ian@cygnus.com>
5420
5421 * elf.c (copy_private_bfd_data): Only set phdr_included once for a
5422 PT_LOAD segment, rather than only setting it once for the entire
5423 file.
5424
5425 * elf.c (_bfd_elf_make_section_from_shdr): When setting the LMA,
5426 rather than ignoring every phdr with a p_paddr of 0, ignore all
5427 the phdrs if they all have a p_paddr of 0.
5428
5429 * stabs.c (_bfd_write_stab_strings): Check whether the .stabstr
5430 section was discarded from the link.
5431
5432 Fri Jul 3 14:39:05 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
5433
5434 * coff-sh.c (sh_insn_uses_freg): Ignore lowest bit of register number.
5435
5436 Fri Jul 3 14:35:48 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
5437
5438 * coff-sh.c (sh_insns_conflict): Load of fpscr conflicts with
5439 floating point operations.
5440
5441 Thu Jul 2 18:37:25 1998 Ian Lance Taylor <ian@cygnus.com>
5442
5443 * cofflink.c (_bfd_coff_link_input_bfd): Skip undefined global
5444 function symbols.
5445
5446 Thu Jul 2 14:59:42 1998 Klaus Kaempf <kkaempf@rmi.de>
5447
5448 Merge of vax/vms (read-only) support
5449 * configure.com: Support Vax target.
5450 * makefile.vms: Support Vax target.
5451 * vms.h: Renamed from evax.h, merged vax/vms (read-only) support.
5452 * vms.c: Renamed from evax-alpha.c, merged vax/vms (read-only)
5453 support.
5454 * vms-hdr.c: Renamed from evax-emh.c, merged vax/vms (read-only)
5455 support.
5456 * vms-gsd.c: Renamed from evax-egsd.c, merged vax/vms (read-only)
5457 support.
5458 * vms-tir.c: Renamed from evax-etir.c, merged vax/vms (read-only)
5459 support.
5460 * vms-misc.c: Renamed from evax-misc.c, merged vax/vms (read-only)
5461 support.
5462 * libbfd.c (real_read): Use unbuffered read on VMS/Vax.
5463 * targets.c (bfd_target_ovax_flavour): New flavour.
5464 (vms_alpha_vec): Renamed from evax_alpha_vec.
5465 (vms_vax_vec): New.
5466 (target_vector): Update accordingly.
5467 * config.bfd (alpha*-*-*vms*): Use vms_alpha_vec, not
5468 evax_alpha_vec.
5469 (vax*-*-*vms*): New target.
5470 * Makefile.am: Update for renamed files. Rebuild dependencies.
5471 * bfd-in2.h: Rebuild.
5472 * configure.in, Makefile.in, aclocal.m4: Rebuild.
5473
5474 Thu Jul 2 13:31:55 1998 Ian Lance Taylor <ian@cygnus.com>
5475
5476 Based on patch from Matt Semersky <matts@scd.hp.com>:
5477 * linker.c (_bfd_generic_final_link): Force a trailing NULL
5478 pointer on abfd->outsymbols.
5479 (generic_add_output_symbol): Handle NULL sym parameter.
5480
5481 Wed Jul 1 17:05:53 1998 Nick Clifton <nickc@cygnus.com>
5482
5483 * elf.c (copy_private_bfd_data): Add support for changing VMA or
5484 LMA of sections.
5485
5486 Wed Jul 1 16:58:50 1998 Ian Lance Taylor <ian@cygnus.com>
5487
5488 * coff-sh.c (sh_relax_delete_bytes): Correct address comparisons
5489 when handling 32 bit immediate relocs.
5490 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
5491
5492 Tue Jun 30 09:55:03 1998 Jeffrey A Law (law@cygnus.com)
5493
5494 * section.c (STD_SECTION): Account for recently added gc_mark
5495 field in struct asection.
5496
5497 * elf-m10300.c (bfd_mn10300_elf_merge_private_bfd_data): New function.
5498 (bfd_elf32_bfd_merge_private_bfd_data): Define.
5499
5500 Thu Jun 25 18:31:41 1998 Richard Henderson <rth@cygnus.com>
5501
5502 ELF Section-level Garbage Collection:
5503 * bfd.c (bfd_gc_sections): New.
5504 * aout-adobe.c: Hook to default implementation.
5505 * aout-target.h, aout-tic30.c, binary.c, bout.c: Likewise.
5506 * coff-alpha.c, coff-mips.c, coff-rs6000.c, coffcode.h: Likewise.
5507 * evax-alpha.c, i386msdos.c, i386os9k.c, ieee.c: Likewise.
5508 * ihex.c, nlm-target.h, oasys.c, ppcboot.c, srec.c: Likewise.
5509 * tekhex.c, versados.c: Likewise.
5510 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): New.
5511 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_gc_sections.
5512
5513 * reloc.c (BFD_RELOC_VTABLE_INHERIT, BFD_RELOC_VTABLE_ENTRY): New.
5514 (bfd_generic_gc_sections): New.
5515 * section.c (SEC_KEEP): New.
5516 (asection): Add gc_mark member.
5517
5518 * elfcode.h (elf_gc*): New name remappings.
5519 * elflink.h (elf_link_input_bfd): Don't set contents on stabs
5520 sections to be excluded.
5521 (elf_gc_mark, elf_gc_sweep, elf_gc_sweep_symbol): New.
5522 (elf_gc_propogate_vtable_entries_used): New.
5523 (elf_gc_smash_unused_vtentry_relocs): New.
5524 (elf_gc_sections, elf_gc_record_vtinherit, elf_gc_record_vtentry): New.
5525 (elf_gc_common_finalize_got_offsets): New.
5526 (elf_gc_allocate_got_offsets, elf_gc_common_final_link): New.
5527 * elfxx-target.h: Add and default gc hooks.
5528
5529 * elf-bfd.h (struct elf_link_hash_entry): Swap got_offset/plt_offset
5530 for unions.
5531 (struct elf_obj_tdata): Likewise for local_got_offsets.
5532 * elf.c, elf-i386.c, elf32-m68k.c, elf32-mips.c: Update all uses.
5533 * elf32-ppc.c, elf32-sparc.c, elf64-alpha.c: Likewise.
5534 * elf64-sparc.c, elflink.h: Likewise.
5535
5536 * elf-bfd.h (struct elf_link_hash_entry): Add vtable members.
5537 (ELF_LINK_HASH_MARK): Define.
5538 (struct elf_backend_data): Add GC hooks.
5539 * elf.c (_bfd_elf_link_hash_newfunc): Zero vtable members.
5540
5541 * elf-m10300.c (mn10300_elf_check_relocs): New.
5542 (mn10300_elf_gc_mark_hook): New.
5543 (R_MN10300_GNU_VTINHERIT, R_MN10300_GNU_VTENTRY): New.
5544 (elf_mn10300_howto, mn10300_reloc_map): Handle them.
5545 (mn10300_elf_final_link_relocate): Likewise.
5546 (mn10300_elf_relocate_section): Likewise.
5547 (elf_backend_can_gc_sections): Define.
5548 * elf32-mips.c (R_MIPS_GNU_VTINHERIT, R_MIPS_GNU_VTENTRY): New.
5549 (elf_mips_gnu_vtinherit_howto, elf_mips_gnu_vtentry_howto): New.
5550 (bfd_elf32_bfd_reloc_type_lookup): Handle them.
5551 (mips_info_to_howto_rel): Likewise.
5552 (mips_elf_relocate_section): Likewise.
5553 (mips_elf_check_relocs): Likewise.
5554 (mips_elf_gc_mark_hook, mips_elf_gc_sweep_hook): New.
5555 (elf_backend_can_gc_sections): Define.
5556 * elf32-ppc.c (R_PPC_GNU_VTINHERIT, R_PPC_GNU_VTENTRY): New.
5557 (ppc_elf_howto_raw): Handle them.
5558 (ppc_elf_reloc_type_lookup): Likewise.
5559 (ppc_elf_relocate_section): Likewise.
5560 (ppc_elf_check_relocs): Reference count .got and .plt entries.
5561 Handle new vtable relocs.
5562 (ppc_elf_adjust_dynamic_symbol): Recognize unused .plt entries.
5563 (ppc_elf_gc_mark_hook, ppc_elf_gc_sweep_hook): New.
5564 (elf_backend_can_gc_sections): Define.
5565
5566 Fri Jun 26 10:48:23 1998 Jeffrey A Law (law@cygnus.com)
5567
5568 * archures.c (bfd_mach_mn10300): Define.
5569 * elf-m10300.c: Include elf/mn10300.h
5570 (elf_mn10300_mach): New function.
5571 (_bfd_mn10300_elf_final_write_processing): Likewise.
5572 (_bfd_mn10300_elf_object_p): Likewise.
5573 (elf_backendfinal_write_processing): Define.
5574 (elf_backend_object_p): Likewise.
5575
5576 Thu Jun 25 18:31:08 1998 Nick Clifton <nickc@cygnus.com>
5577
5578 * elf32-v850.c (v850_elf_perform_relocation): Fix HI16_S
5579 relocation.
5580
5581 Wed Jun 24 17:17:57 1998 Ian Lance Taylor <ian@cygnus.com>
5582
5583 * elflink.h (elf_bfd_final_link): Loop over input_bfds using the
5584 link_next field, not the next field.
5585
5586 Sun Jun 21 19:38:39 1998 Ian Lance Taylor <ian@cygnus.com>
5587
5588 * elf.c (map_sections_to_segments): Check the section address
5589 against the phdr size both with and without a modulo of
5590 maxpagesize.
5591
5592 Fri Jun 19 17:08:18 1998 Ian Lance Taylor <ian@cygnus.com>
5593
5594 * elf32-mips.c (mips_elf_size_dynamic_sections): Only strip a
5595 linker created empty input section if the output section has the
5596 same name.
5597
5598 * elflink.h (elf_link_output_extsym): Print an error message if
5599 _bfd_elf_section_from_bfd_section fails.
5600
5601 * elf.c (_bfd_elf_section_from_bfd_section): Call bfd_set_error on
5602 failure.
5603
5604 Tue Jun 16 11:55:55 1998 Ian Lance Taylor <ian@cygnus.com>
5605
5606 * elf.c (copy_private_bfd_data): Improve handling of Solaris
5607 native linker output. Avoid putting an empty section in more than
5608 one segment.
5609
5610 Fri Jun 12 13:30:17 1998 Tom Tromey <tromey@cygnus.com>
5611
5612 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
5613 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
5614
5615 Fri Jun 12 13:34:02 1998 Doug Evans <devans@canuck.cygnus.com>
5616
5617 * elf.c (swap_out_syms): New arg relocatable_p.
5618 Don't add section VMA to symbols for relocatable output.
5619 (_bfd_elf_compute_section_file_positions): Update call to
5620 swap_out_syms.
5621
5622 Mon Jun 8 15:20:57 1998 Nick Clifton <nickc@cygnus.com>
5623
5624 * elf32-v850.c (v850_elf_perform_relocation): Make comparisons
5625 against 'addend' be signed rather than unsigned.
5626
5627 Sat Jun 6 00:31:21 1998 Nick Clifton <nickc@cygnus.com>
5628
5629 * elf32-m32r.c: Add prototyps for static functions.
5630
5631 * coff-arm.c: Add prototypes for static functions.
5632
5633 Fri Jun 5 17:21:51 1998 Nick Clifton <nickc@cygnus.com>
5634
5635 * elf.c (elf_sort_sections): Sort by LMA first then VMA, since the
5636 LMA is used to order sections in a segment.
5637
5638 * elf32-v850.c: Add prototypes for static functions.
5639 Change type of addend parameter to bfd_vma in various functions.
5640
5641 Fri Jun 5 18:09:58 1998 Ian Lance Taylor <ian@cygnus.com>
5642
5643 * aoutx.h (howto_table_ext): Change RELOC_BASE13 to use
5644 complain_overflow_signed instead of complain_overflow_bitfield.
5645
5646 Fri Jun 5 15:11:11 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5647
5648 * elf.c (elf_map_symbols): Don't add section VMA to symbol value
5649 when comparing against 0.
5650
5651 Wed Jun 3 17:52:49 1998 Ian Lance Taylor <ian@cygnus.com>
5652
5653 * Makefile.am (config.status): New target.
5654 * Makefile.in: Rebuild.
5655
5656 Wed Jun 3 12:18:24 1998 Stan Cox <scox@equinox.cygnus.com>
5657
5658 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Give an
5659 error if previous object endianness doesn't match current object.
5660
5661 Tue Jun 2 17:50:59 1998 Nick Clifton <nickc@cygnus.com>
5662
5663 * elf32-v850.c (v850_elf_print_private_bfd_data): Call
5664 _bfd_elf_print_private)bfd_data ().
5665
5666 Tue Jun 2 15:29:35 1998 Ian Lance Taylor <ian@cygnus.com>
5667
5668 * elflink.h (elf_merge_symbol): Don't always set type_change_ok
5669 and size_change_ok.
5670 (elf_link_add_object_symbols): Set type_change_ok and
5671 size_change_ok before calling elf_merge_symbol.
5672
5673 * elf32-mips.c (mips_elf_relocate_section): If we issue an
5674 undefined symbol error, don't also issue an overflow error.
5675
5676 Tue Jun 2 13:51:00 1998 Geoff Keating <geoffk@ozemail.com.au>
5677
5678 * elf32-ppc.c (ppc_elf_relocate_section): The target of an
5679 R_PPC_LOCAL24PC relocation should be local; if not, print an error
5680 message instead of crashing.
5681
5682 Mon Jun 1 18:23:12 1998 Yuli Barcohen <yuli.barcohen@telrad.co.il>
5683
5684 * archures.c (bfd_mach_cpu32): Define.
5685 (bfd_default_scan): Add case for 68060. Fix 68332 case to use
5686 bfd_mach_cpu32.
5687 * cpu-m68k.c (arch_info_struct): Add m68k:cpu32.
5688 * ieee.c: Include <ctype.h>.
5689 (ieee_object_p): Parse out process ID string to make it more
5690 likely to be acceptable for bfd_scan_arch.
5691 * bfd-in2.h: Rebuild.
5692
5693 Mon Jun 1 11:12:02 1998 Nick Clifton <nickc@cygnus.com>
5694
5695 * elf32-m32r.c (m32r_elf_print_private_bfd_data): Also call
5696 _bfd_elf_print_private_bfd_data() so that the program header will
5697 be displayed.
5698
5699 Mon Jun 1 12:14:28 1998 Ian Lance Taylor <ian@cygnus.com>
5700
5701 * peicode.h (coff_swap_sym_in): Check for C_SECTION rather than
5702 0x68. Reindent. Add some comments.
5703
5704 Fri May 29 09:58:08 1998 Nick Clifton <nickc@cygnus.com>
5705
5706 * elf.c (copy_private_bfd_data): Adjust physical address of
5707 segment in output BFD to contain LMAs of its sections.
5708
5709 Tue May 26 19:37:47 1998 Stan Cox <scox@equinox.cygnus.com>
5710
5711 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
5712 elf32_sparc_relocate_section): Added R_SPARC_32LE for little
5713 endian data 32 bit relocations.
5714 (elf32_sparc_merge_private_bfd_data): Check if linking little
5715 endian objects with big endian objects.
5716 (elf32_sparc_object_p): Set bfd_mach_sparc_sparclite_le.
5717 (elf32_sparc_final_write_processing): Set EF_SPARC_LEDATA in e_flags.
5718 * libbfd.h (bfd_reloc_code_real_names): Added BFD_RELOC_SPARC_32LE.
5719 * reloc.c: Same.
5720 * cpu-sparc.c (arch_info_struct): Added sparc:sparclite_le
5721 * archures.c (bfd_mach_sparc_sparclite_le): New.
5722 * bfd-in2.h (BFD_RELOC_SPARC_32LE, bfd_mach_sparc_sparclite_le): New.
5723
5724 Thu May 21 16:59:28 1998 Nick Clifton <nickc@cygnus.com>
5725
5726 * peicode.h (add_data_entry): Fix precedence of operators in if ()
5727 statement.
5728
5729 Tue May 19 18:41:19 1998 Ian Lance Taylor <ian@cygnus.com>
5730
5731 * bfd-in.h: Move over patch to bfd-in2.h.
5732
5733 * reloc.c (bfd_check_overflow): Add casts before shifts which may
5734 not fit in 32 bits.
5735 (_bfd_relocate_contents): Likewise.
5736
5737 Mon May 18 14:44:15 1998 Nick Clifton <nickc@cygnus.com>
5738
5739 * peicode.h (add_data_entry): If the section has no private data
5740 then do not create a Data Dictionary entry for it.
5741
5742 Mon May 18 00:09:28 1998 Richard Henderson <rth@cygnus.com>
5743
5744 * elf64-alpha.c (elf64_alpha_relax_section): Set again on changes.
5745 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots,
5746 elf64_alpha_size_got_sections): Rewrite, handling multiple got
5747 subsections during relaxation more correctly.
5748
5749 Thu May 14 14:22:58 1998 Nick Clifton <nickc@cygnus.com>
5750
5751 * bfd-in2.h: Add new prototype: bfd_coff_set_symbol_class ().
5752 Add extra argument to bfd_arm_process_before_allocation ().
5753 * bfd-in.h: Reflect changes made in bfd-in2.h.
5754 * coffgen.c (bfd_coff_set_symbol_class): New function. Set the
5755 coff class of a BFD symbol.
5756 * coff-arm.c: Add support for interworking between Thumb code and
5757 non-interworking aware ARM code.
5758
5759 Sun May 10 22:33:59 1998 Jeffrey A Law (law@cygnus.com)
5760
5761 * po/Make-in (install-info): New target.
5762
5763 Thu May 7 17:40:56 1998 Ian Lance Taylor <ian@cygnus.com>
5764
5765 * filemode.c: Remove; not used.
5766
5767 If sysdep.h includes a header file, don't include it again:
5768 * aix386-core.c: Don't include <stdio.h>, <stddef.h>, or
5769 <errno.h>.
5770 * aoutx.h: Don't include <string.h>. Use "sysdep.h" rather than
5771 <sysdep.h>.
5772 * archive.c: Don't include <string.h> or <errno.h>.
5773 * evax-alpha.c; Don't include <stdio.h>.
5774 * evax-egsd.c: Likewise.
5775 * evax-etir.c: Likewise.
5776 * evax-misc.c: Likewise.
5777 * evax-emh.c: Likewise. Also, don't include <sys/types.h>.
5778 * hppabsd-core.c: Don't include <stdio.h>, <sys/types.h>, or
5779 <errno.h>.
5780 * hpux-core.c: Likewise.
5781 * netbsd-core.c: Likewise.
5782 * som.c: Likewise.
5783 * libbfd.c: Don't include <sys/types.h>.
5784 * nlmcode.h: Don't include <string.h>.
5785 * osf-core.c: Don't include <string.h> or <stdio.h>.
5786 * ptrace-core.c: Don't include <stdio.h>, <sys/types.h>,
5787 <errno.h>, or <unistd.h>.
5788 * trad-core.c: Don't include <stdio.h> or <sys/types.h>.
5789
5790 Thu May 7 13:12:50 1998 Klaus Kaempf <kkaempf@progis.de>
5791
5792 * configure.com: If the version number can not be found in
5793 configure.in, set it to "unknown" rather than "2.8.1".
5794
5795 Wed May 6 09:46:05 1998 Gavin Koch <gavin@cygnus.com>
5796
5797 * elf32-mips.c (elf_mips_mach): New.
5798 (_bfd_mips_elf_object_p): Use elf_mips_mach.
5799 (_bfd_mips_elf_final_write_processing): Use the names
5800 of machines, rather than the numbers. Set both the ARCH
5801 and MACH in e_flags. Handle a few more specific machines.
5802 (_bfd_mips_elf_merge_private_bfd_data): Merge both
5803 EF_MIPS_ARCH and EF_MIPS_MACH.
5804
5805 Tue May 5 21:01:53 1998 Richard Henderson <rth@cygnus.com>
5806
5807 * syms.c (bfd_is_local_label): Revert last change.
5808 * srec.c (srec_write_symbols): Discard debugging symbols.
5809
5810 Tue May 5 23:36:06 1998 Ian Lance Taylor <ian@cygnus.com>
5811
5812 * som.c: Include <ctype.h>.
5813 * som.h: Don't include sysdep.h.
5814
5815 Tue May 5 18:29:24 1998 Tom Tromey <tromey@cygnus.com>
5816
5817 * libbfd.h: Rebuilt.
5818 * libbfd-in.h: Removed gettext includes and defines.
5819 * sysdep.h: Moved gettext-related includes and defines here.
5820
5821 Tue May 5 16:47:54 1998 Richard Henderson <rth@cygnus.com>
5822
5823 * srec.c (srec_write_symbols): Use bfd_is_local_label rather than
5824 an ad-hoc test. Kill bogus #if 0 code.
5825 * syms.c (bfd_is_local_label): Consider BSF_DEBUGGING symbols local.
5826
5827 Mon May 4 16:10:33 1998 Ian Lance Taylor <ian@cygnus.com>
5828
5829 * sunos.c (sunos_check_dynamic_reloc): Don't use the PLT address
5830 when generating a normal executable for a symbol defined in a
5831 regular file. When copying a reloc into the output file, adjust
5832 the addend for a PC relative reloc against a global symbol.
5833
5834 Mon May 4 10:08:18 1998 Tom Tromey <tromey@cygnus.com>
5835
5836 * libbfd.h: Rebuilt.
5837 * libbfd-in.h (_): Define as dgettext.
5838
5839 Mon May 4 11:02:23 1998 Ian Lance Taylor <ian@cygnus.com>
5840
5841 * coff-arm.c (coff_arm_relocate_section): Cast to bfd_signed_vma,
5842 not signed.
5843 * peicode.h (pe_saved_coff_bfd_print_private_bfd_data): Use PARAMS
5844 when declaring parameter types.
5845 (pe_saved_coff_bfd_copy_private_bfd_data): Likewise.
5846
5847 Wed Apr 29 15:35:03 1998 Ian Lance Taylor <ian@cygnus.com>
5848
5849 * config.bfd: If we include any ELF targets in targ_defvec and/or
5850 targ_selvecs, then add the generic ELF targets to targ_selvecs.
5851 * elf32-gen.c (dummy): New static const variable.
5852 (elf_generic_info_to_howto): New static function.
5853 (elf_generic_info_to_howto_rel): New static function.
5854 (elf_info_to_howto): Define as elf_generic_info_to_howto.
5855 (elf_info_to_howto_rel): Define as elf_generic_info_to_howto_rel.
5856 * elf64-gen.c: Same changes as elf32-gen.c.
5857 * elfcode.h (elf_object_p): For the generic target, ignore a
5858 failure of bfd_default_set_arch_mach. Fix indentation a bit.
5859
5860 Tue Apr 28 20:05:52 1998 Ian Lance Taylor <ian@cygnus.com>
5861
5862 * configure.in (WIN32LIBADD): Add -lintl on cygwin32.
5863 * configure: Rebuild.
5864
5865 Tue Apr 28 12:16:57 1998 Jason Molenda (crash@bugshack.cygnus.com)
5866
5867 * config.bfd: Update OSR5/Unixware patterns.
5868
5869 Mon Apr 27 18:02:24 1998 Richard Henderson <rth@cygnus.com>
5870
5871 * elf.c (assign_file_positions_for_segments): Allow for holes
5872 between sections added by a link script.
5873
5874 Mon Apr 27 11:49:55 1998 Ian Lance Taylor <ian@cygnus.com>
5875
5876 * configure.in: Change version number to 2.9.4
5877 * configure: Rebuild.
5878
5879 Based on patch from H.J. Lu <hjl@gnu.org>:
5880 * elf.c (bfd_elf_get_bfd_needed_list): New function.
5881 * bfd-in.h (bfd_elf_get_bfd_needed_list): Declare.
5882 * bfd-in2.h: Rebuild.
5883
5884 Sat Apr 25 20:07:53 1998 Richard Henderson <rth@cygnus.com>
5885
5886 * elf64-alpha.c (struct alpha_relax_info): Replace elfsym with other.
5887 Change all users.
5888
5889 Sat Apr 25 18:29:07 1998 Richard Henderson <rth@cygnus.com>
5890
5891 * elf64-alpha.c (struct alpha_relax_info): Add tsec & elfsym members.
5892 (elf64_alpha_relax_section): Fill them in.
5893 (elf64_alpha_relax_opt_call): Implement more than a stub.
5894 (elf64_alpha_add_symbol_hook): Don't set SEC_LOAD or default
5895 alignment on .scommon.
5896 (elf64_alpha_merge_gots): Merge use counts as well.
5897
5898 Sat Apr 25 14:07:29 1998 Richard Henderson <rth@cygnus.com>
5899
5900 * elf64-alpha.c (elf64_alpha_relax_section): Use the proper section
5901 for calculating a local symbol's address.
5902 (elf64_alpha_calc_got_offsets): Skip entries with 0 use count.
5903 Set the .got's cooked size as well as the raw size.
5904
5905 Fri Apr 24 09:16:00 1998 Nick Clifton <nickc@cygnus.com>
5906
5907 * elf32-v850.c (v850_elf_print_private_bfd_data): Add
5908 internationalisation of printed information.
5909
5910 * coff-arm.c (coff_arm_print_private_bfd_data): Add
5911 internationalisation of printed information.
5912
5913 Fri Apr 24 12:09:18 1998 Ian Lance Taylor <ian@cygnus.com>
5914
5915 * syms.c (struct indexentry): Change directory_name, file_name,
5916 and function_name fields to char *.
5917 (struct stab_find_info): Change cached_file_name field to char *.
5918
5919 Thu Apr 23 08:13:04 1998 Nick Clifton <nickc@cygnus.com>
5920
5921 * peicode.h (dir_names): Add missing N_() macros to dir_names array.
5922
5923 Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
5924
5925 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
5926
5927 Wed Apr 22 17:48:48 1998 Ian Lance Taylor <ian@cygnus.com>
5928
5929 * Makefile.am (install-data-local): Make $(includedir).
5930 * Makefile.in: Rebuild.
5931
5932 Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
5933
5934 * libbfd-in.h: Use `gettext' and not `dgettext' for now.
5935
5936 Wed Apr 22 12:53:40 1998 Ian Lance Taylor <ian@cygnus.com>
5937
5938 * Makefile.am (INCLUDES): Add -I$(srcdir)/../intl -I../intl.
5939 * Makefile.in: Rebuild.
5940
5941 * bfd-in2.h: Rebuild for Nick's changes.
5942
5943 Tue Apr 21 23:11:51 1998 Richard Henderson <rth@cygnus.com>
5944
5945 * archive.c (_bfd_generic_read_ar_hdr_mag): Fix lossage in last
5946 change wrt length == max_namelen.
5947
5948 Tue Apr 21 21:19:36 1998 Tom Tromey <tromey@scribbles.cygnus.com>
5949
5950 * Many files: Added gettext invocations around user-visible
5951 strings.
5952 * libbfd-in.h: Added gettext includes and defines.
5953 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
5954 HAVE_LC_MESSAGES): Define.
5955 * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and
5956 po/Makefile.
5957 * Makefile.am (SUBDIRS): Added po.
5958 (POTFILES): New macro.
5959 (po/POTFILES.in): New target.
5960 (SOURCE_HFILES): New macro.
5961 (HFILES): Use it.
5962 * po/Make-in, po/POTFILES.in, po/bfd.pot: New files.
5963
5964 Tue Apr 21 13:38:18 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5965
5966 * elfcore.h (bfd_prstatus): Copy core_prstatus from the first
5967 NT_PRSTATUS note section encountered, it contains the status of
5968 the currently executing thread when the core file was written.
5969
5970 Tue Apr 21 10:00:12 1998 Nick Clifton <nickc@cygnus.com>
5971
5972 * libcoff.h: Add extra parameter to
5973 bfd_coff_link_output_has_begun overrideable function.
5974 * cofflink.c: Pass extra parameter to
5975 bfd_coff_link_output_has_begun function.
5976 * bfd-in.h: Add prototypes for exported ARM interworking
5977 functions.
5978 * peicode.h: ARM specific code reorganised to conform to BFD
5979 coding conventions.
5980 * coffcode.h: ARM specific code reorganised to conform to BFD
5981 coding conventions.
5982 * coff-arm.c: Code reorganised to conform to the BFD coding
5983 conventions. Global variables have been moved into an ARM
5984 specific hash table structure and a new function:
5985 bfd_arm_get_bfd_for_interworking() has been created which is
5986 called from the linker scripts.
5987
5988 Tue Apr 21 00:11:51 1998 Richard Henderson <rth@cygnus.com>
5989
5990 * archive.c (_bfd_generic_read_ar_hdr_mag): Simplify end-of-name test.
5991
5992 * elf64-alpha.c (elf64_alpha_find_reloc_at_ofs): Renamed from
5993 elf64_alpha_relax_find_reloc_ofs. Changed all callers.
5994 (elf64_alpha_add_symbol_hook): Put small commons in .scommon not .sbss.
5995 (elf64_alpha_size_got_sections): Don't merge .got sections twice.
5996
5997 Sat Apr 18 01:21:04 1998 Stan Cox <scox@cygnus.com>
5998
5999 * config.bfd: Added sparc86x support.
6000
6001 Fri Apr 17 22:29:04 1998 Ian Lance Taylor <ian@cygnus.com>
6002
6003 * elf32-mips.c (mips_elf_relocate_section): Do not complain about
6004 an out of range pc-relative jump/call to an undefined weak symbol.
6005
6006 Thu Apr 16 13:49:00 1998 Richard Henderson <rth@cygnus.com>
6007
6008 * elf64-alpha.c (elf64_alpha_do_reloc_gpdisp): Do all gpdisp
6009 comparisons signed.
6010
6011 Thu Apr 16 11:43:33 1998 Ian Lance Taylor <ian@cygnus.com>
6012
6013 * archive.c (bfd_generic_archive_p): If a slurp subroutine returns
6014 an error other than bfd_error_system_call, set the error to
6015 bfd_error_wrong_format.
6016
6017 * targets.c (bfd_target_vector) [SELECT_VECS not defined]: Add
6018 bfd_elf32_powerpcle_vec.
6019
6020 * elf.c (copy_private_bfd_data): If all the p_paddr fields in the
6021 program segments are zero, don't set p_paddr_valid.
6022
6023 Wed Apr 15 22:15:16 1998 Richard Henderson <rth@cygnus.com>
6024
6025 * elf64-alpha.c: Initial implementation of relaxation --
6026 (struct alpha_elf_link_hash_entry): Add use_count member.
6027 (elf64_alpha_check_relocs): Initialize and increment it.
6028 (elf64_alpha_can_merge_gots): Check it when considering merging.
6029 (elf64_alpha_merge_gots): Drop entries with zero use.
6030 (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
6031 (elf64_alpha_always_size_sections): Split out got sizing ...
6032 (elf64_alpha_size_got_sections): ... here. New function.
6033 (elf64_alpha_relax_find_reloc_ofs): New function.
6034 (elf64_alpha_relax_with_lituse): Likewise.
6035 (elf64_alpha_relax_without_lituse): Likewise.
6036 (elf64_alpha_relax_opt_call): Likewise.
6037 (elf64_alpha_relax_section): Likewise.
6038 (elf64_alpha_add_symbol_hook): Likewise.
6039 (elf64_alpha_howto_table): Implement GPRELHIGH/LOW & IMMED_GP_16.
6040 (elf64_alpha_relocate_section): Likewise.
6041 (bfd_elf64_bfd_relax_section): Define.
6042 (elf_backend_add_symbol_hook): Likewise.
6043
6044 Wed Apr 15 16:08:46 1998 Richard Henderson <rth@cygnus.com>
6045
6046 * elf.c (prep_headers): Use new EM_SPARCV9 symbol.
6047 * elf64-sparc.c (ELF_MACHINE_CODE): Likewise.
6048 (ELF_MACHINE_ALT1): New. Set to EM_OLD_SPARC64.
6049
6050 Wed Apr 15 11:34:33 1998 Ian Lance Taylor <ian@cygnus.com>
6051
6052 * configure.in: Add -lkernel32 to WIN32LIBADD on cygwin32.
6053 * configure: Rebuild.
6054
6055 Mon Apr 13 16:46:27 1998 Ian Lance Taylor <ian@cygnus.com>
6056
6057 * Makefile.am (libbfd_la_LIBADD): Add @WIN32LIBADD@.
6058 (libbfd_la_LDFLAGS): Add @WIN32LDFLAGS@.
6059 * configure.in: Define and substitute WIN32LDFLAGS and
6060 WIN32LIBADD.
6061 * aclocal.m4: Rebuild with new libtool.
6062 * configure, Makefile.in: Rebuild.
6063
6064 Fri Apr 10 13:44:27 1998 Ian Lance Taylor <ian@cygnus.com>
6065
6066 * coffcode.h (coff_write_object_contents): Move a PE COMDAT symbol
6067 before any other symbols in the same section.
6068
6069 Wed Apr 8 14:50:23 1998 Michael Meissner <meissner@cygnus.com>
6070
6071 * config.bfd (powerpc*-*-*): Remove PowerPC NT support from ELF
6072 systems.
6073
6074 Tue Apr 7 16:25:31 1998 Gavin Romig-Koch <gavin@cygnus.com>
6075
6076 * dwarf2.c (comp_unit): Move it earlier in the source. Add
6077 addr_size.
6078 (read_address): Replace 'bdf*' argument with 'comp_unit*' argument.
6079 Use addr_size for address size, rather than sizeof(bfd_vma).
6080 (read_attribute): Replace bdf* argument with 'comp_unit*' argument.
6081 Fix call to read_address.
6082 (decode_line_info): Replace bdf* argument with 'comp_unit*' argument.
6083 Scrap other unneeded arguments. Fix call to read_address.
6084 (scan_unit_for_functions): Fix call to read_attribute.
6085 (parse_comp_unit): We now handle more values for addr_size.
6086 Set addr_size in unit. Fix call to read_attribute and
6087 decode_line_info.
6088
6089 Tue Apr 7 15:44:47 1998 Gavin Romig-Koch <gavin@cygnus.com>
6090
6091 * dwarf2.c (parse_comp_unit): Drop use of unit->name when it is null.
6092
6093 Tue Apr 7 12:35:18 1998 Ian Lance Taylor <ian@cygnus.com>
6094
6095 * archures.c (bfd_default_scan): Add m68k cases back to default
6096 switch, reverting patch of March 25, since IEEE support depends
6097 upon them.
6098
6099 Mon Apr 6 14:06:40 1998 Ian Lance Taylor <ian@cygnus.com>
6100
6101 * Makefile.am (diststuff): New target.
6102 * Makefile.in: Rebuild.
6103
6104 Sun Apr 5 16:21:44 1998 Jeffrey A Law (law@cygnus.com)
6105
6106 * som.c (som_bfd_ar_write_symbol_stuff): Fix computation of
6107 som_offset when we have an extended name table.
6108
6109 Sun Apr 5 16:04:39 1998 H.J. Lu <hjl@gnu.org>
6110
6111 * Makefile.am (stamp-lib): Check that .libs/libbfd.a exists before
6112 trying to copy it.
6113 * Makefile.in: Rebuild.
6114
6115 Fri Apr 3 11:09:42 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6116
6117 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Generate section
6118 symbols when creating a shared library.
6119 (elf_m68k_adjust_dynindx): New function, used by above code.
6120 (elf_m68k_finish_dynamic_sections): Initialize the section
6121 symbols.
6122 (elf_m68k_relocate_section): Change abort to BFD_ASSERT.
6123
6124 Wed Apr 1 16:04:02 1998 Nick Clifton <nickc@cygnus.com>
6125
6126 * coff-arm.c (in_reloc_p): Use ARM_RVA32 in place of constant
6127 value 11.
6128
6129 Wed Apr 1 13:36:58 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6130
6131 * elf32-m68k.c (elf_m68k_relocate_section, case R_68K_PLT*O): Fix
6132 assertion.
6133
6134 Tue Mar 31 00:12:12 1998 Jeffrey A Law (law@cygnus.com)
6135
6136 * elf-m10300.c (mn10300_elf_relax_section): Correctly handle
6137 absolute symbols.
6138
6139 Mon Mar 30 12:46:15 1998 Ian Lance Taylor <ian@cygnus.com>
6140
6141 * configure.in: Set version to 2.9.1.
6142 * configure: Rebuild.
6143
6144 * Branched binutils 2.9.
6145
6146 Mon Mar 30 12:20:50 1998 Brent Baccala <baccala@freesoft.org>
6147
6148 * syms.c (ENABLE_CACHING): Define.
6149 (struct indexentry): Define.
6150 (struct stab_cache): Remove.
6151 (cmpindexentry): New static function.
6152 (struct stab_find_info): Add new fields: indextable,
6153 indextablesize, cached_indexentry, cached_offset, cached_stab, and
6154 cached_file_name. Remove fields: file_cache, function_cache, and
6155 line_cache.
6156 (_bfd_stab_section_find_nearest_line): Rewrite to build a sorted
6157 index table and search it.
6158
6159 Mon Mar 30 10:39:34 1998 Ian Lance Taylor <ian@cygnus.com>
6160
6161 * elf.c (_bfd_elf_copy_private_section_data): Call
6162 copy_private_bfd_data once we've seen the last SEC_ALLOC section.
6163
6164 * cpu-mips.c: Remove trailing comma at end of enumeration list.
6165
6166 Sat Mar 28 16:33:02 1998 Ian Lance Taylor <ian@cygnus.com>
6167
6168 * coff-arm.c: Define all globally visible variables and functions
6169 only when COFF_WITH_PE is not defined.
6170 * configure.in (armpe_little_vec, armpe_big_vec): Add
6171 coff-arm.lo.
6172 * configure: Rebuild.
6173
6174 Fri Mar 27 16:06:02 1998 Ian Lance Taylor <ian@cygnus.com>
6175
6176 Fix some gcc -Wall warnings:
6177 * aout-arm.c (MY(fix_pcrel_26)): Add casts to avoid warnings.
6178 * archive.c (_bfd_generic_read_ar_hdr_mag): Likewise.
6179 * archures.c (bfd_default_scan): Likewise.
6180 * bfd.c (bfd_scan_vma): Likewise.
6181 * binary.c (mangle_name): Likewise
6182 * coff-arm.c (aoutarm_fix_pcrel_26): Likewise.
6183 * coff-sh.c (sh_relocate_section): Likewise.
6184 * coff-stgo32.c (create_go32_stub): Likewise.
6185 * coffcode.h (coff_slurp_line_table): Likewise.
6186 * ecoff.c (_bfd_ecoff_write_armap): Likewise.
6187 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
6188 (assign_file_positions_for_segments): Likewise.
6189 * elf32-mips.c (mips_elf_relocate_section): Likewise.
6190 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
6191 * oasys.c (oasys_write_sections): Likewise.
6192 * ppcboot.c (ppcboot_object_p): Likewise.
6193 (mangle_name): Likewise.
6194 * riscix.c (riscix_fix_pcrel_26): Likewise.
6195 * srec.c (srec_scan): Likewise.
6196 * stabs.c (_bfd_write_section_stabs): Likewise.
6197 * sunos.c (sunos_add_dynamic_symbols): Likewise.
6198 * aout-ns32k.c (_bfd_ns32k_relocate_contents): Add default case to
6199 switch. Declare parameters for function pointers.
6200 * archures.c (bfd_default_scan): Add braces to avoid ambiguous if
6201 warning.
6202 * elf.c (elf_sort_sections): Likewise.
6203 * coff-arm.c (coff_thumb_pcrel_common): Initialize relocation.
6204 Add default cases to switches.
6205 (coff_arm_relocate_section): Remove unused local variables.
6206 Always set rstat.
6207 (coff_arm_bfd_set_private_flags): Change flag variable to type
6208 flagword.
6209 * coff-mips.c (mips_relocate_section): Initialize use_lo.
6210 * coff-ppc.c (ppc_record_toc_entry): Change i to unsigned int.
6211 (dump_toc): Change cat to const, and initialize it.
6212 * coff-sh.c (sh_relax_delete_bytes): Initialize start and voff.
6213 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
6214 (sh_elf_relocate_section): Initialize r_symndx.
6215 * coffcode.h (coff_compute_section_file_positions): Only declare
6216 old_sofar if ALIGN_SECTIONS_IN_FILE.
6217 (coff_write_object_contents): Initialize csym.
6218 * coffgen.c (coff_pointerize_aux): Make type and class unsigned.
6219 * cpu-ns32k.c (_bfd_ns32k_get_displacement): Add default case to
6220 switch.
6221 * dwarf2.c: Include libiberty.h.
6222 (read_2_signed_bytes, read_4_signed_bytes): Comment out.
6223 (decode_line_info): Remove unused local variables.
6224 * elf32-m32r.c (m32r_elf_sda16_reloc): Likewise.
6225 (m32r_elf_relocate_section): Likewise.
6226 * elf32-v850.c (v850_elf_store_addend_in_insn): Likewise.
6227 (v850_elf_reloc): Likewise.
6228 * elf-bfd.h (elf_linker_section_t): Make alignment unsigned.
6229 (struct elf_obj_tdata): Make cverdefs and cverrefs unsigned.
6230 * elf.c (assign_file_positions_for_segments): Always set adjust.
6231 * elf32-d30v.c (bfd_elf_d30v_reloc): Initialize tmp_addr. Fully
6232 parenthesize expression.
6233 * elf32-m32r.c (m32r_elf_relocate_section): Always initialize h.
6234 (m32r_elf_object_p): Return a value.
6235 (m32r_elf_print_private_bfd_data): Change fprintf format string.
6236 * elf32-mips.c (mips_elf_final_link): Initialize last.
6237 (mips_elf_finish_dynamic_sections): Initialize last and dindx.
6238 * elf32-v850.c (v850_elf_object_p): Return a value.
6239 (v850_elf_print_private_bfd_data): Change fprintf format string.
6240 * elfcode.h (elf_slurp_symbol_table): Change symcount and i to
6241 unsigned long.
6242 * elflink.h (elf_link_add_object_symbols): Change vernum to
6243 unsigned int, and initialize it. Change fprintf format string.
6244 (NAME(bfd_elf,size_dynamic_sections)): Cast -1 to bfd_size_type
6245 when setting or comparing to soname_indx.
6246 (elf_create_pointer_linker_section): Change num_symbols to
6247 unsigned int.
6248 * libcoff-in.h (coff_data_type): Change flags to flagword.
6249 * peicode.h (pe_print_idata): Initialize idx. Change j to
6250 bfd_size_type. Initialize hint_member. Remove useless test to
6251 time_stamp.
6252 (pe_print_edata): Change num_functions and num_names in struct
6253 EDT_type to unsigned long. Remove cast. Change fprintf format
6254 string.
6255 * ppcboot.c (ppcboot_object_p): Change i to size_t.
6256 * reloc.c (bfd_get_reloc_size): Change return type to unsigned
6257 int.
6258 * reloc16.c (bfd_coff_reloc16_relax_section): Change shrinks to
6259 int *. Update uses. Change j to long.
6260 * bfd-in2.h, libcoff.h: Rebuild.
6261
6262 Fri Mar 27 10:10:46 1998 Catherine Moore <clm@cygnus.com>
6263
6264 * elf32-v850.c Remove definition of USE_REL.
6265 (v850_elf_info_to_howto_rela): New function.
6266 (v850_elf_perform_relocation): Renamed from
6267 v850_elf_store_addend_in_insn. Removed replace argument.
6268 (v850_elf_reloc): store the relocation in the addend field instead
6269 of the insn.
6270 (v850_elf_final_link_relocate): Now calls
6271 v850_elf_perform_relocation.
6272 (v850_elf_relocate_section): Remove code to generate REL
6273 relocations.
6274
6275 Thu Mar 26 13:32:17 1998 Ian Lance Taylor <ian@cygnus.com>
6276
6277 * coffcode.h (coff_new_section_hook): Set the type and storage
6278 class in the native symbol information allocated for a new section
6279 symbol.
6280
6281 Thu Mar 26 10:13:41 1998 Nick Clifton <nickc@cygnus.com>
6282
6283 * peicode.h: Chain together calls to
6284 coff_bfd_copy_private_bfd_data and
6285 coff_bfd_print_private_bfd_data.
6286
6287 * coff-arm.c: Add prototypes for
6288 coff_arm_bfd_print_private_bfd_data and
6289 coff_arm_bfd_copy_private_bfd_data.
6290
6291 Wed Mar 25 15:45:55 1998 Nick Clifton <nickc@cygnus.com>
6292
6293 * coffcode.h (coff_mkobject_hook): Set private falgs even for a PE
6294 build.
6295
6296 * peicode.h: Call arm-coff private data functions after handling
6297 pe private data.
6298
6299 * coff-arm.c: Turn statics into globals so that they can be shared
6300 both pe and pei backends.
6301
6302 Wed Mar 25 15:19:38 1998 Ian Lance Taylor <ian@cygnus.com>
6303
6304 * aoutf1.h (sunos_set_arch_mach): Use bfd_mach_m68* rather than
6305 plain numbers.
6306 (sunos_write_object_contents): Likewise.
6307 * aoutx.h (NAME(aout,machine_type)): Likewise.
6308 * coffcode.h (coff_set_arch_mach_hook): Likewise.
6309
6310 Wed Mar 25 13:59:24 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6311
6312 * archures.c (bfd_mach_m68*): Add definitions for various m68k
6313 variants.
6314 (bfd_default_scan): Remove m68k special cases.
6315 * bfd-in2.h: Rebuild.
6316 * mipsbsd.c (MY(write_object_contents)): Use bfd_mach_m68* rather
6317 than plain numbers.
6318 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
6319 * cpu-m68k.c (arch_info_struct): Likewise. Add entry for
6320 m68k:68000.
6321 (bfd_m68k_arch): Set mach field to zero to signal no explicit
6322 selection, change printable_name to just "m68k" and make that the
6323 default instead of m68k:68020.
6324
6325 * aout-tic30.c (NAME): Define this to avoid multiple definitions
6326 from aoutx.h.
6327 (MY_get_section_contents): Define as aout_32_get_section_contents
6328 rather than NAME(aout,get_section_contents).
6329
6330 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Fix cast.
6331
6332 * evax-alpha.c (evax_set_arch_mach): Only accept bfd_arch_alpha
6333 and call bfd_default_set_arch_mach to do the real work.
6334
6335 Wed Mar 25 10:41:35 1998 Richard Henderson <rth@cygnus.com>
6336
6337 * bout.c (BALX): Include return register g14 as part of the insn.
6338 (BALX_MASK): New.
6339 (calljx_callback): Use it.
6340
6341 Wed Mar 25 11:19:28 1998 Ian Lance Taylor <ian@cygnus.com>
6342
6343 * libbfd-in.h (BFD_ALIGN): Cast this parameter to bfd_vma.
6344 * libbfd.h: Rebuild.
6345
6346 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Change
6347 byte_count to unsigned int.
6348 (mn10300_elf_relax_section): Initialize internal_relocs. Remove
6349 unused local variables.
6350
6351 * evax-alpha.c (evax_close_and_cleanup): Remove unused local
6352 variables er and er1.
6353
6354 * cpu-v850.c: Include <ctype.h>.
6355 (scan): Case isdigit argument to unsigned char.
6356
6357 From Yan Meroth <YAN.MEROTH@st.com>:
6358 * ihex.c (ihex_scan): Add extbase variable so that getting an
6359 extended linear address record does not ignore any previous
6360 extended address.
6361 (ihex_write_object_contents): When writing out an extended linear
6362 address record, zero out any previous extended address.
6363
6364 Tue Mar 24 16:09:43 1998 Manfred Hollstein <manfred@s-direktnet.de>
6365
6366 * ieee.c (do_one): Check section before dereferencing it.
6367 (ieee_canonicalize_reloc): Likewise with src->relent.sym_ptr_ptr.
6368 (ieee_generic_stat_arch_elt): Likewise with abfd->my_archive.
6369
6370 Mon Mar 23 18:51:47 1998 Joel Sherrill <joel@OARcorp.com>
6371
6372 * config.bfd: (sh*-*-rtems*): Switched from ELF to COFF.
6373
6374 Mon Mar 23 14:23:36 1998 Nick Clifton <nickc@cygnus.com>
6375
6376 * coff-arm.c: Add interworking functions to pe backends.
6377
6378 Fri Mar 20 18:47:20 1998 Ian Lance Taylor <ian@cygnus.com>
6379
6380 * configure.in: Use AM_DISABLE_SHARED.
6381 * aclocal.m4, configure: Rebuild with libtool 1.2.
6382
6383 Fri Mar 20 11:25:41 1998 Nick Clifton <nickc@cygnus.com>
6384
6385 * coff-arm.c (coff_arm_relocate_section): Better error messages
6386 when interowrking conflucts occur. Courtesy of Jonathan Walton
6387 and Tony Thompson.
6388 (aoutarm_std_reloc_howto): Fixed bitsize fields of rightshifted
6389 relocations. Patch courtesy of Jonathan Walton and Tony
6390 Thompson.
6391
6392 Fri Mar 20 02:26:43 1998 Richard Henderson <rth@cygnus.com>
6393
6394 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Revert
6395 part of Feb 22 change controling when to override the existing
6396 symbol with the .plt entry.
6397
6398 Wed Mar 18 09:26:25 1998 Nick Clifton <nickc@cygnus.com>
6399
6400 * config.bfd (targ_cpu): Add thumb-pe target.
6401
6402 * coffcode.h (OTHER_GLOBAL_CLASS): Support thumb external
6403 functions in PE build.
6404
6405 Sun Mar 8 23:37:26 1998 Stan Cox <scox@equinox.cygnus.com>
6406
6407 * config.bfd (sparclite-*-elf*): Added.
6408
6409 Mon Feb 23 19:31:19 1998 Ian Lance Taylor <ian@cygnus.com>
6410
6411 * configure.in: Add elf.lo to elf shell variable.
6412 * Makefile.am (BFD_LIBS): Remove elf.lo.
6413 (BFD_LIBS_CFILES): Remove elf.c.
6414 (BFD32_BACKENDS): Add elf.lo.
6415 (BFD32_BACKENDS_CFILES): Add elf.c.
6416 * configure, Makefile.in: Rebuild.
6417
6418 1998-02-23 15:53 Richard Henderson <rth@cygnus.com>
6419
6420 * elf32-i386.c (elf_i386_relocate_section): A pc-relative
6421 relocation against a non-local symbol should not have a dynamic
6422 relocation.
6423
6424 Mon Feb 23 16:17:08 1998 Ian Lance Taylor <ian@cygnus.com>
6425
6426 * peicode.h (coff_swap_filehdr_in): Don't set BFD flag HAS_SYMS in
6427 COFF filehdr flags.
6428 (pe_print_private_bfd_data): Print PE flags. From Mikey
6429 <jeffdb@netzone.com>.
6430
6431 Sun Feb 22 20:39:00 1998 Richard Henderson <rth@cygnus.com>
6432
6433 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Don't create
6434 a plt entry when we can determine that we authoritatively define
6435 the symbol.
6436
6437 Sun Feb 22 20:33:05 1998 Richard Henderson <rth@cygnus.com>
6438
6439 * configure.in (COREFILE selection): Remove sparc-*-linux*. They
6440 don't actually use trad-core, but a SunOS-style core file handled
6441 by gdb directly.
6442 * hosts/sparclinux.h: Remove.
6443
6444 Wed Feb 18 15:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
6445
6446 * peicode.h (pe_print_idata): If there is no .idata section, look
6447 for the import tables in some other section. Make the initial
6448 label line up better with the data. Print the import address
6449 table even if there is no import name table. If the import
6450 address table holds actual addresses, print them.
6451
6452 Tue Feb 17 12:58:34 1998 Ian Lance Taylor <ian@cygnus.com>
6453
6454 * libbfd.c (bfd_seek): If fseek fails, save errno around call to
6455 bfd_tell. If errno is EINVAL, set bfd_error_file_truncated, not
6456 bfd_error_system_call.
6457
6458 Fri Feb 13 13:11:33 1998 Ian Lance Taylor <ian@cygnus.com>
6459
6460 * Makefile.am (AUTOMAKE_OPTIONS): Define.
6461 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
6462
6463 From H.J. Lu <hjl@gnu.org>:
6464 * Makefile.am (libbfd_la_LDFLAGS): Define.
6465 * Makefile.in: Rebuild.
6466
6467 Thu Feb 12 17:31:11 1998 Ian Lance Taylor <ian@cygnus.com>
6468
6469 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
6470 * netbsd.h (MACHTYPE_OK): Define.
6471 (MY(write_object_contents)): Use DEFAULT_ARCH and DEFAULT_MID when
6472 calling N_SET_MACHTYPE, rather than having a switch.
6473 * libaout.h (enum machine_type): Add M_PMAX_NETBSD, M_VAX_NETBSD,
6474 and M_ALPHA_NETBSD.
6475 * i386netbsd.c (MACHTYPE_OK): Don't define.
6476 (DEFAULT_MID): Define.
6477 * m68k4knetbsd.c (SEGMENT_SIZE): Don't define.
6478 (MACHTYPE_OK): Don't define.
6479 (DEFAULT_MID): Define.
6480 * m68knetbsd.c: (MACHTYPE_OK): Don't define.
6481 (DEFAULT_MID): Define.
6482 * ns32knetbsd.c (MACHTYPE_OK): Don't define.
6483 (DEFAULT_MID): Define.
6484 * sparcnetbsd.c (MACHTYPE_OK): Don't define.
6485 (DEFAULT_MID): Define.
6486
6487 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
6488 * vaxnetbsd.c: New file.
6489 * netbsd-core.c: Clean up. Remove unused macros. Use netbsd
6490 rather than netbsd_core.
6491 * targets.c (vaxnetbsd_vec): Declare.
6492 (bfd_target_vector): Add vaxnetbsd_vec. If NETBSD_CORE is
6493 defined, add netbsd_core_vec.
6494 * configure.in: Set COREFILE for alpha*-*-netbsd* and
6495 powerpc-*-netbsd* to netbsd-core.lo. If COREFILE is
6496 netbsd-core.lo, set COREFLAG to -DNETBSD_CORE.
6497 * config.bfd (alpha*-*-netbsd*): New target.
6498 * Makefile.am: Rebuild dependencies.
6499 (BFD32_BACKENDS): Add vaxnetbsd.lo.
6500 (BFD32_BACKENDS_CFILES): Add vaxnetbsd.c.
6501 * configure, Makefile.in: Rebuild.
6502
6503 * configure.host: Remove the old shared library build stuff. We
6504 now use libtool instead.
6505
6506 Wed Feb 11 17:13:09 1998 Richard Henderson <rth@cygnus.com>
6507
6508 * tekhex.c (tekhex_write_object_contents): Call tekhex_init.
6509
6510 Tue Feb 10 19:23:28 1998 H.J. Lu <hjl@gnu.org>
6511
6512 * configure.in: Take stab-syms.lo out of sparclinux_vec list.
6513 * configure: Rebuild.
6514
6515 Tue Feb 10 15:16:38 1998 Nick Clifton <nickc@cygnus.com>
6516 * elf32-v850.c (remember_hi16s_reloc): New function.
6517 (find_remembered_hi16s_reloc): New function.
6518 (v850_elf_store_addend_in_insn): Use the above new functions to
6519 match up HI6S relocs with LO16 relocs.
6520
6521 Tue Feb 10 15:01:39 1998 Ian Lance Taylor <ian@cygnus.com>
6522
6523 * configure.in: Change -linux* to -linux-gnu*.
6524 * config.bfd, configure.host: Likewise.
6525 * configure: Rebuild.
6526
6527 Mon Feb 9 19:40:59 1998 Nick Clifton <nickc@cygnus.com>
6528
6529 * elf32-v850.c (v850_elf_store_addend_in_insn): Fix another
6530 LO16/HI16S bug and improve comments about what is going on.
6531
6532 Sat Feb 7 15:27:03 1998 Ian Lance Taylor <ian@cygnus.com>
6533
6534 * configure, aclocal.m4: Rebuild with new libtool.
6535
6536 Fri Feb 6 14:48:20 1998 Nick Clifton <nickc@cygnus.com>
6537
6538 * elf32-v850.c (v850_elf_merge_private_bfd_data): Do not complain
6539 when merging v850 code into v850e/v850ea code. Do not initialise
6540 output flags if the input is the default architecture.
6541
6542 Fri Feb 6 11:50:22 1998 Jeffrey A Law (law@cygnus.com)
6543
6544 * elf32-mips.c (bfd_elf32_bfd_reloc_type_lookup): For BFD_RELOC_CTOR
6545 get the size from bfd_arch_bits_per_address instead of directly
6546 from the isa.
6547
6548 Thu Feb 5 14:21:34 1998 Michael Meissner <meissner@cygnus.com>
6549
6550 * libbfd-in.h (BFD_ALIGN): If rounding up would cause the address
6551 to wrap, just return all 1's bits instead.
6552 * libbfd.h: Regenerate.
6553
6554 Thu Feb 5 11:51:05 1998 Ian Lance Taylor <ian@cygnus.com>
6555
6556 * coff-i386.c (coff_pe_i386_relocate_section): New static function
6557 if COFF_WITH_PE.
6558 (coff_relocate_section): If COFF_WITH_PE, define as
6559 coff_pe_i386_relocate_section.
6560 * coffcode.h (coff_write_object_contents): If COFF_IMAGE_WITH_PE,
6561 skip empty sections, to match coff_write_object_contents.
6562
6563 * elf64-mips.c (mips_elf64_swap_reloca_out): Swap out r_addend,
6564 rather than swapping out r_offset twice. From Luke Deller
6565 <luked@cse.unsw.edu.au>.
6566
6567 Wed Feb 4 19:11:28 1998 Ian Lance Taylor <ian@cygnus.com>
6568
6569 * configure.in: Set libtool_enable_shared rather than
6570 libtool_shared. Remove diversion hack.
6571 * configure, Makefile.in, doc/Makefile.in, aclocal.m4: Rebuild
6572 with new libtool.
6573
6574 Wed Feb 4 16:10:21 1998 Brent Baccala <baccala@freesoft.org>
6575
6576 * syms.c (struct stab_cache): Define.
6577 (struct stab_find_info): Remove cached_offset, cached_stab,
6578 cached_str, and cached_stroff fields. Add file_cache,
6579 function_cache, and line_cache fields.
6580 (_bfd_stab_section_find_nearest_line): Use extensive caching to
6581 speed up searches.
6582
6583 Wed Feb 4 13:34:22 1998 Ian Lance Taylor <ian@cygnus.com>
6584
6585 * peicode.h (pe_print_idata): Check for import of ordinal rather
6586 than name.
6587 (pe_print_edata): If there is no .edata section, look for the
6588 export data in some other section.
6589
6590 Mon Feb 2 20:05:42 1998 Jason Molenda (crash@bugshack.cygnus.com)
6591
6592 * configure.in: Change version to 2.8.4.
6593 * configure: Regenerated.
6594
6595 Mon Feb 2 17:39:39 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
6596
6597 Add tms320c30 support:
6598 * cpu-tic30.c: New file.
6599 * aout-tic30.c: New file.
6600 * coff-tic30.c: New file.
6601 * archures.c (bfd_arch_tic30): Define.
6602 (bfd_tic30_arch): Declare.
6603 (bfd_archures_list): Add bfd_tic30_arch.
6604 * targets.c (bfd_target_vector): Add tic30_aout_vec and
6605 tic30_coff_vec.
6606 * reloc.c (BFD_RELOC_TIC30_LDP): Define.
6607 * coffcode.h (coff_set_arch_mach_hook): Add tic30 case.
6608 (coff_set_flags): Likewise.
6609 * config.bfd (tic30-*-*aout*, tic30-*-*coff*): New targets.
6610 * configure.in (tic30_aout_vec, tic30_coff_vec): New vectors.
6611 * Makefile.am: Rebuild dependencies.
6612 (ALL_MACHINES): Add cpu-tic30.lo.
6613 (ALL_MACHINES_CFILES): Add cpu-tic30.c.
6614 (BFD32_BACKENDS): Add aout-tic30.lo and coff-tic30.lo.
6615 (BFD32_BACKENDS_CFILES): Add aout-tic30.c and coff-tic30.c.
6616 * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
6617
6618 Mon Feb 2 12:25:12 1998 Nick Clifton <nickc@cygnus.com>
6619
6620 * elf32-v850.c (v850_elf_store_addend_in_insn): Allow HI16_S reloc
6621 to lag behind LO16 reloc by a couple of instructions.
6622
6623 Mon Feb 2 14:09:46 1998 Ian Lance Taylor <ian@cygnus.com>
6624
6625 * Makefile.am ($(srcdir)/bfd-in2.h): Add dummy command to force
6626 make to reexamine the file timestamp.
6627 ($(srcdir)/libbfd.h, $(srcddir)/libcoff.h): Likewise.
6628
6629 * elf64-alpha.c (ELF_MAXPAGESIZE): Change to 0x10000 from
6630 0x100000.
6631
6632 Fri Jan 30 19:07:07 1998 Geoff Keating <geoffk@ozemail.com.au>
6633
6634 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New procedure
6635 to create .dynsbss and .rela.sbss sections.
6636 (ppc_elf_adjust_dynamic_symbol): Put space for small data to be
6637 copied from dynamic objects into .sbss.
6638 (ppc_elf_size_dynamic_sections): Strip .rela.sbss if we don't
6639 use it. Correct typo of .rela.sdata2.
6640 (ppc_elf_finish_dynamic_symbol): Generate reloc to where we
6641 put the data, which may now be in .sbss.
6642 (ppc_elf_relocate_section): A SDAREL16 reloc can be in dynsbss.
6643 (elf_backend_create_dynamic_sections): Define as
6644 ppc_elf_create_dynamic_sections.
6645
6646 * elf32-ppc.c (ppc_elf_check_relocs): Don't emit R_PPC_REL* relocs
6647 against _GLOBAL_OFFSET_TABLE_.
6648 (ppc_elf_relocate_section): Don't emit R_PPC_REL32 relocs in
6649 shared libraries which refer to local symbols. Make sure that the
6650 test for allocating space for a reloc in a shared object is the
6651 same as the test for emitting a reloc.
6652
6653 Thu Jan 29 15:55:35 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
6654
6655 * config.bfd (i[3456]-*-mingw32*): New target.
6656 * acinclude.m4 (BFD_BINARY_OPEN): Check for mingw32.
6657 * aclocal.m4, configure: Rebuild.
6658
6659 Wed Jan 28 13:41:26 1998 Ian Lance Taylor <ian@cygnus.com>
6660
6661 * elf.c (_bfd_elf_close_and_cleanup): Only check the strtab if we
6662 have a bfd_object.
6663
6664 Tue Jan 27 21:43:55 1998 Richard Henderson <rth@cygnus.com>
6665
6666 Sparc v9 ABI compliant PLT:
6667 * elf64-sparc.c (PLT_HEADER_SIZE): V9 ABI uses 4 entries.
6668 (plt_templates, sparc64_elf_build_plt_entry): Delete.
6669 (LARGE_PLT_THRESHOLD): New define.
6670 (GOT_RESERVED_ENTRIES): V9 ABI only uses 1.
6671 (sparc64_elf_build_plt): New function.
6672 (sparc64_elf_plt_entry_offset): Likewise.
6673 (sparc64_elf_plt_ptr_offset): Likewise.
6674 (sparc64_elf_adjust_dynamic_symbol): Change h->plt_offset to
6675 contain the index for convenience. Skip the initial entries
6676 in .rela.plt.
6677 (sparc64_elf_size_dynamic_sections): Zero the allocated contents
6678 memory for the benefit of .rela.plt.
6679 (sparc64_elf_relocate_section): Call sparc64_elf_plt_entry_offset.
6680 (sparc64_elf_finish_dynamic_symbol): Kill template stuff. Use
6681 sparc64_elf_plt_entry_offset & sparc64_elf_plt_ptr_offset for reloc.
6682 (sparc64_elf_finish_dynamic_sections): DT_PLTGOT points to .plt.
6683 Call sparc64_elf_build_plt.
6684 (elf_backend_want_got_plt): No.
6685 (elf_backend_plt_readonly): No.
6686 (elf_backend_plt_alignment): 8.
6687
6688 * elf.c (_bfd_elf_close_and_cleanup): New function; free the shstrtab.
6689 * elf-bfd.h (_bfd_elf_close_and_cleanup): Declare it.
6690 * elfxx-target.h (bfd_elfNN_close_and_cleanup): Arrange for it
6691 to be called.
6692
6693 Tue Jan 27 21:45:15 1998 Jeffrey A Law (law@cygnus.com)
6694
6695 * archures.c (bfd_mach_mips*): Add definitions for various MIPS
6696 processors.
6697 * cpu-mips.c (arch_info_struct): Add mips variants.
6698 * bfd-in2.h: Rebuilt.
6699
6700 Tue Jan 27 15:06:04 1998 Nick Clifton <nickc@cygnus.com>
6701
6702 * coff-arm.c (coff_arm_relocate_section): Preserve the contents of
6703 t2a3_b_insn.
6704
6705 Tue Jan 27 12:47:27 1998 Robert Lipe <robertl@dgii.com>
6706
6707 * config.bfd (i[3456]86-sco3.2v5*): ELF now the default.
6708 (i[3456]86sco3.2v5*coff): New target.
6709
6710 Mon Jan 26 15:41:30 1998 Ian Lance Taylor <ian@cygnus.com>
6711
6712 * bfd-in2.h: Rebuild with changes to chew--tab expansion.
6713
6714 Thu Jan 22 21:26:48 1998 Richard Henderson <rth@cygnus.com>
6715
6716 * bfd.c (bfd_get_error_handler): Add orthogonal function.
6717 * bfd-in2.h: Regenerate.
6718
6719 Thu Jan 22 21:13:39 1998 Richard Henderson <rth@cygnus.com>
6720
6721 * tekhex.c (tekhex_write_object_contents): Check for no symbols.
6722
6723 Wed Jan 21 21:19:03 1998 Ian Lance Taylor <ian@cygnus.com>
6724
6725 * coff-i386.c (coff_i386_rtype_to_howto): If COFF_WITH_PE, don't
6726 adjust addend for an output common symbol (from Jimmy Blair
6727 <jimmyb@wrs.com>). If COFF_WITH_PE, adjust addend for PC relative
6728 defined symbol to counteract adjustment made in generic relocation
6729 code.
6730
6731 * dwarf2.c: Include sysdep.h, not stdio.h and stdlib.h.
6732
6733 Wed Jan 21 21:16:06 1998 Manfred Hollstein <manfred@s-direktnet.de>
6734
6735 * coff-m88k.c (GET_SCNDHR_NRELOC): Fix typo in macro name.
6736 (GET_SCNDHR_NLNNO): Likewise.
6737
6738 Mon Jan 19 12:49:52 1998 Ian Lance Taylor <ian@cygnus.com>
6739
6740 * cpu-sh.c (arch_info_struct): Correct next field of sh3e.
6741
6742 Wed Jan 14 17:23:27 1998 Nick Clifton <nickc@cygnus.com>
6743
6744 * elf32-m32r.c: Add macros to handle NOP insertion.
6745
6746 Wed Jan 14 16:15:22 1998 Richard Henderson <rth@cygnus.com>
6747
6748 * xcofflink.c (xcoff_mark_symbol): Don't mark the absolute section.
6749 (xcoff_mark): Likewise.
6750 (xcoff_build_ldsyms): Mark absolute symbols.
6751
6752 Wed Jan 14 16:03:11 1998 Richard Henderson <rth@cygnus.com>
6753
6754 * bout.c (b_out_write_object_contents): Sort symbols before output
6755 to keep {CALL,BAL}NAME symbols adjacent.
6756 (b_out_symbol_cmp): New function.
6757
6758 For older changes see ChangeLog-9697
6759 \f
6760 Local Variables:
6761 mode: change-log
6762 left-margin: 8
6763 fill-column: 74
6764 version-control: never
6765 End: