Fix generic relocs to work as RELAs not RELs.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 1998-12-09 Nick Clifton <nickc@cygnus.com>
2
3 * elf32-fr30.c (fr30_elf_howto_table): Set src_mask fields to 0
4 since we are using RELAs.
5
6 Tue Dec 8 22:15:48 1998 Ian Lance Taylor <ian@cygnus.com>
7
8 SCO Open Server Release 5 core file support, from Jouke Numan
9 <jnuman@hiscom.nl>:
10 * sco5-core.c: New file.
11 * configure.in (i[3456]86-*-sco3.2v5*): Use sco5-core.lo.
12 (sco5-core.lo): Define SCO5_CORE in COREFLAG.
13 * Makefile.am: Rebuild dependencies.
14 (OPTIONAL_BACKENDS): Add sco5-core.lo.
15 (OPTIONAL_BACKENDS_CFILES): Add sco5-core.c.
16 * bfd.c (struct _bfd): Add sco5_core_data field to tdata.
17 * targets.c (sco5_core_vec): Add to target list if SCO5_CORE.
18 * bfd-in2.h, configure, Makefile.in: Rebuild.
19
20 Tue Dec 8 19:38:42 1998 Mark Klein <mklein@dis.com>
21
22 * config.bfd (hppa*-*-mpeix*): New target.
23 * configure.in: Add AC_HEADER_DIRENT.
24 (hppa*-*-mpeix*): New target.
25 * configure.host (hppa*-*-mpeix*): New host.
26 * hpux-core.c: Check HOST_HPPAMPEIX. Use HAVE_DIRENT_H and
27 friends rather than just including <sys/dir.h>.
28 * som.h (struct som_symbol): Add hppa_priv_level and apto
29 tc_data. Change all users.
30 (struct somdata): Add comp_unit field.
31 (obj_som_compilation_unit): Define.
32 (bfd_som_attach_compilation_unix): Declare.
33 * som.c: Check HOST_HPPAMPEIX.
34 (struct som_misc_symbol_info): Add new field priv_level.
35 (som_object_setup): Add current_offset parameter. Change all
36 callers.
37 (setup_sections): Likewise.
38 (som_object_p): For EXECLIBMAGIC, read the lst header.
39 (som_write_symbol_strings): Add compilation_unit parameter.
40 Change all callers.
41 (som_finish_writing): Write out compilation_unit.
42 (som_bfd_derive_misc_symbol_info): Set priv_level.
43 (som_build_and_write_symbol_table): Set xleast field to 3.
44 (som_slurp_symbol_table): Set symbol priv_level.
45 (bfd_som_attach_compilation_unit): New function.
46 (som_bfd_ar_write_symbol_stuff): Set xleast field to 3. Set
47 priv_level into symbol_value.
48 * configure, config.in: Rebuild.
49
50 Tue Dec 8 16:21:35 1998 Ian Lance Taylor <ian@cygnus.com>
51
52 * hpux-core.c (hpux_core_core_file_p): Change call to nonexistent
53 warning function to call _bfd_error_handler instead.
54
55 * libbfd.c (COERCE32): Cast through unsigned long and long to
56 avoid bug in old version of gcc.
57
58 * elf64-alpha.c (elf64_alpha_additional_program_headers): Remove.
59 (elf_backend_additional_program_headers): Don't define.
60
61 1998-12-08 Nick Clifton <nickc@cygnus.com>
62
63 * elf32-fr30.c (fr30_final_link_relocate): Fix PC relative
64 relocations to include offset of 2 included in the insns, and the
65 offset of the relocs within the section.
66
67 Wed Dec 2 15:03:59 1998 David Taylor <taylor@texas.cygnus.com>
68
69 The following changes were made by David Taylor
70 <taylor@texas.cygnus.com>, Edith Epstein
71 <eepstein@sophia.cygnus.com>, Jim Blandy
72 <jimb@zwingli.cygnus.com>, and Elena Zannoni
73 <ezannoni@kwikemart.cygnus.com> as part of the project to merge in
74 changes originally made by HP; HP did not create ChangeLog
75 entries.
76
77 * aclocal.m4, configure, Makefile.in: Rebuilt using latest
78 automake macro library.
79
80 * hpux-core.c (hpux_core_core_file_p): this function now
81 understands HPUX 10.30 thread info. Yes, the thread stacks can be
82 found in the corefile! Also, in hpux_core_core_file_p, if we
83 encounter a section with an unknown type, don't punt. Instead,
84 just skip it. Also, count the number of sections of known type
85 that we encounter. If we encounter at least one good one, then
86 we'll declare that the file is a core file. If we encounter any
87 unknown ones but some known ones, then we'll issue a warning (but
88 still declare it to be a core file). Also, correctly decide when a
89 file is not a core.
90 (PROC_INFO_HAS_THREAD_ID): define if CORE_ANON_SHMEM defined.
91 (CORE_ANON_SHMEM): define if not defined.
92 (hpux_core_struct): add members lwpid and user_tid.
93 (core_kernel_thread_id, core_user_thread_id): new macros.
94 (make_bfd_asection): use bfd_alloc to allocate room for a copy of
95 the name before storing it in the bfd.
96 (hpux_core_core_file_p): handle threads.
97
98 * libhppa.h (GET_FIELD): protect against redefinition.
99 (HPPA_WIDE): define.
100 (GET_FIELD): define.
101 (GET_BIT): define.
102 (MASK): define.
103 (CATENATE): define.
104 (ELEVEN): define.
105 (sign_extend): redefine.
106 (assemble_6): define.
107 (assemble_12): rewrite.
108 (assemble_16): define.
109 (assemble_16a): define.
110 (assemble_17): rewrite.
111 (assemble_22): define.
112
113 1998-12-07 Nick Clifton <nickc@cygnus.com>
114
115 * elf32-fr30.c (fr30_final_link_relocate): Using signed
116 relocations for signed values.
117
118 Sun Dec 6 16:30:33 1998 Ian Lance Taylor <ian@cygnus.com>
119
120 * mipsbsd.c (MY(set_arch_mach)): Make static.
121 * aoutx.h (NAME(aout,machine_type)): For bfd_arch_mips, use
122 bfd_mach_mips* macros rather than simple numbers.
123
124 COFF weak symbol support, based on patches from Mark Elbrecht
125 <snowball3@usa.net>:
126 * coffcode.h (coff_slurp_symbol_table): Handle C_WEAKEXT.
127 * coffgen.c (coff_renumber_symbols): Handle weak symbols.
128 (coff_write_alien_symbol): Likewise.
129 * cofflink.c (coff_link_check_ar_symbols): Likewise.
130 (coff_link_add_symbols): Likewise.
131 (_bfd_coff_link_input_bfd): Likewise.
132 (_bfd_coff_write_global_sym): Likewise.
133
134 * elf.c (copy_private_bfd_data): Always initialize the
135 includes_phdrs field.
136
137 * elflink.h (elf_fix_symbol_flags): Check for case where a non-ELF
138 file defines a symbol first mentioned in an ELF file.
139
140 * bfd-in.h: Always define BFD_HOST_64_BIT and BFD_HOST_U_64_BIT if
141 possible, rather than only if BFD64.
142 * elflink.h (compute_bucket_count): Just check BFD_HOST_U_64_BIT,
143 not __GNUC__.
144 * bfd-in2.h: Rebuild.
145
146 * srec.c (srec_set_section_contents): Correct test to avoid
147 switching to 4 byte addresses after seeing a second section which
148 requires 3 byte addresses. From Joel Schantz
149 <joel.schantz@argosys.boeing.com>.
150
151 * config.bfd (m68*-*-gnu*): New target. From Aymeric Vincent
152 <aymeric.vincent@emi.u-bordeaux.fr>.
153
154 1998-12-04 Jim Blandy <jimb@zwingli.cygnus.com>
155
156 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Fix logic to
157 decide whether the output file is -mrelocatable-lib,
158 -mrelocatable, or neither. (gdb.base/nodebug.exp)
159
160 1998-12-03 Nick Clifton <nickc@cygnus.com>
161
162 * elf32-fr30.c: Add support for R_FR30_48 reloc.
163 * reloc.c: Add BFD_RELOC_FR30_48 relocation.
164 * bfd-in2.h: Regenerate.
165 * libbfd.h: Regenerate
166
167 Wed Dec 2 00:58:37 1998 Ian Lance Taylor <ian@cygnus.com>
168
169 * elflink.h (elf_adjust_dynamic_symbol): Warn on an attempt to
170 link against a dynamic symbol with no type or size.
171
172 1998-12-01 Ulrich Drepper <drepper@cygnus.com>
173
174 * elf32-i386.c (i386_check_relocs) [R_386_32]: Don't emit
175 relocation for section which does not get loaded.
176 (elf_i386_relocate_section) [R_386_32]: Likewise.
177
178 Tue Dec 1 11:33:33 1998 Jim Wilson <wilson@cygnus.com>
179
180 * coff-h8300.c (h8300_bfd_link_add_symbols): Make reloc_size,
181 reloc_count and i long instead of unsigned long. Handle error
182 return from bfd_canonicalize_reloc.
183
184 1998-12-01 Nick Clifton <nickc@cygnus.com>
185
186 * elf32-v850.c (v850_elf_relocate_section): Detect the absence of
187 a hash table.
188
189 Mon Nov 30 15:28:09 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
190
191 * elf32-sh.c (elf/sh.h): Include.
192 sh_reloc_type: Delete. Changed all references to elf_sh_reloc_type.
193 (sh_elf_howto_tab): Add HOWTO for R_SH_SWITCH8.
194 (sh_reloc_map): Map BFD_RELOC_8_PCREL to R_SH_SWITCH8.
195 (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
196 * Makefile.in: Add dependency of elf32-sh.lo on $(INCDIR)/elf/sh.h.
197
198 Fri Nov 27 17:51:38 1998 Geoff Keating <geoffk@ozemail.com.au>
199
200 * elflink.h (compute_bucket_count): Don't allow minsize==0, it
201 causes division by zero later on.
202
203 Thu Nov 26 11:19:35 1998 Dave Brolley <brolley@cygnus.com>
204
205 * elf32-fr30.c (fr30_elf_pc9_reloc,fr30_elf_pc12_reloc): Not
206 needed.
207
208 1998-11-25 DJ Delorie <dj@cygnus.com>
209
210 * coff-i386.c (i3coff_object_p): Remove hack. Use new emulation
211 hook now.
212
213 Tue Nov 24 10:25:27 1998 Nick Clifton <nickc@cygnus.com>
214
215 * elf32-fr30.c (fr30_elf_relocate_section): Call
216 fr30_final_link_relocate.
217 (fr30_final_link_relocate): New function: Handle I20 and I32
218 relocs.
219 (fr30_elf_i32_reloc): New function: Handle I32 relocs.
220 (fr30_elf_pc9_reloc): New function: Handle 9_PCREL relocs.
221 (fr30_elf_pc12_reloc): New function: Handle 12_PCREL relocs.
222
223 * elf32-v850.c (v850_elf_relocate_section): Reset hi16s reloc
224 chain to empty.
225
226 The following changes are based on a patch submitted by Gianluca
227 Moro <glctr@abc.it>:
228
229 (v850_elf_perform_relocation): Only update a hi16s reloc if it has
230 not already been updated.
231 (find_remembered_hi16s_reloc): New parameter 'already_found'
232 returns state of remembered hi16s reloc.
233 (remember_hi16s_reloc): Set 'found' field to false.
234 (hi16s_location): Add 'found' field.
235
236 1998-11-23 DJ Delorie <dj@cygnus.com>
237
238 * coff-i386.c (bfd_pe_dll_not_recognized_hack): the linker wants
239 to see .DLL files as unrecognized.
240 (i3coff_object_p): Sorry, had to hack it to not recognize these
241 files (pei-i386) on request.
242
243 1998-11-23 DJ Delorie <dj@cygnus.com>
244
245 * opncls.c (bfd_make_readable): need more cleanup for symbols and
246 relents. Call bfd_check_format to reinitialize.
247
248 Fri Nov 20 14:21:36 1998 Nick Clifton <nickc@cygnus.com>
249
250 * elf32-fr30.c (fr30_elf_relocate_section): Remove spurious
251 warnings.
252
253 Thu Nov 19 14:42:15 1998 Geoffrey Noer <noer@cygnus.com>
254
255 * aclocal.m4: regenerate
256 * configure: regenerate
257
258 Tue Nov 17 20:23:35 1998 Richard Henderson <rth@cygnus.com>
259
260 * elf-bfd.h (struct elf_link_hash_entry): Add vtable_entries_size.
261 * elf.c (_bfd_elf_link_hash_newfunc): Clear it.
262 * elflink.h (elf_gc_propagate_vtable_entries_used): Copy it, and
263 respect it as an upper bound on what memory to reference.
264 (elf_gc_smash_unused_vtentry_relocs): Likewise.
265 (elf_gc_record_vtentry): Handle as-yet undefined vtables. Set and
266 update vtable_entries_size appropriately.
267
268 Tue Nov 17 15:28:31 1998 Nick Clifton <nickc@cygnus.com>
269
270 * elf32-fr30.c (fr30_reloc_type_lookup): Used integers to hold
271 reloc number.
272
273 Mon Nov 16 22:19:21 1998 DJ Delorie <dj@cygnus.com>
274
275 * archive.c (bfd_ar_hdr_from_filesystem): support BFD_IN_MEMORY
276 bfds; they have no "file" so we fake it.
277 * bfd-in2.h: add bfd_make_writable and bfd_make_readable (regen)
278 * libbfd.c (bfd_write): Allow writing to BFD_IN_MEMORY bfds by
279 resizing the memory buffer.
280 * opncls.c (bfd_make_writable): New function; lets you write a
281 bfd_create'd bfd to an in-memory buffer.
282 (bfd_make_readable): New function; lets you read back that buffer
283 as if it were from bfd_openr. Used to build generated archive
284 members (winsup's ld's dlltool)
285
286 Mon Nov 16 19:15:19 1998 Dave Brolley <brolley@cygnus.com>
287
288 * po/bfd.pot: Regenerated.
289
290 Mon Nov 16 10:57:06 1998 Nick Clifton <nickc@cygnus.com>
291
292 * elf32-v850.c (hi16s_location): Replaced fixed size array with
293 linked list.
294
295 Sun Nov 15 20:28:25 1998 Richard Henderson <rth@cygnus.com>
296
297 * elf64-alpha.c (elf64_alpha_relax_section): Search for the proper
298 element of the gotentry list for local symbols too.
299 (elf64_alpha_relocate_section): Unify local and global handling.
300 Assert that gotent->use_count > 0.
301
302 Sat Nov 14 15:16:01 1998 Ian Lance Taylor <ian@cygnus.com>
303
304 * configure.in (vms_alpha_vec): Rename from evax_alpha_vec, and
305 update for file name changes of July 2, 1998.
306 (vms_vax_vec): New.
307 * configure: Rebuild.
308
309 Thu Nov 12 19:19:54 1998 Dave Brolley <brolley@cygnus.com>
310
311 * po/bfd.pot: Regenerated.
312
313 Tue Nov 10 16:17:06 1998 Geoffrey Noer <noer@cygnus.com>
314
315 * acinclude.m4, config.bfd: detect cygwin* instead of cygwin32*.
316 * aclocal.m4, configure: regenerate
317
318 Tue Nov 10 15:13:59 1998 Nick Clifton <nickc@cygnus.com>
319
320 * elf.c (prep_headers): Add support for bfd_arch_fr30.
321
322 Tue Nov 10 13:37:36 1998 Felix Lee <flee@cygnus.com>
323
324 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE,
325 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): didn't define macro when value
326 was cached.
327 * aclocal.m4, configure: regenerated.
328
329 Tue Nov 10 14:31:01 1998 Catherine Moore <clm@cygnus.com>
330
331 * elf32-d10v.c (reloc_type): Add R_D10V_GNU_VTINHERIT and
332 R_D10V_GNU_VTENTRY relocs.
333 (elf_d10v_howto_table): Likewise.
334 (d10v_reloc_map d10v_reloc_map): Likewise.
335 (elf32_d10v_gc_mark_hook): New.
336 (elf32_d10v_gc_sweep_hook): New.
337 (elf32_d10v_check_relocs): New.
338 (elf32_d10v_relocate_section): New.
339 (elf_backend_relocate_section): Define.
340 (elf_backend_can_gc_sections): Define.
341
342 Sat Nov 7 18:07:51 1998 Peter Schauer <peter.schauer@regent.e-technik.tu-muenchen.de>
343
344 * Makefile.am (BFD32_BACKENDS): Move vms files here...
345 (BFD64_BACKENDS): ...from here.
346 (BFD32_BACKENDS_CFILES): Move vms files here...
347 (BFD64_BACKENDS_CFILES): ...from here.
348 * Makefile.in: Rebuild.
349
350 Wed Nov 4 15:58:48 1998 Nick Clifton <nickc@cygnus.com>
351
352 * Makefile.am: Add FR30 target.
353 * Makefile.in: Add FR30 target.
354 * archures.c: Add support for FR30.
355 * config.bfd: Add support for FR30.
356 * configure.in: Add support for FR30.
357 * reloc.c: Add support for FR30 relocations.
358 * targets.c: Add support for FR30 relocations.
359 * bfd-in2.h: Regenerate.
360 * configure: Regenerate.
361 * libbfd.h: Regenerate.
362 * cpu-fr30.c: New file.
363 * elf32-fr30.c: New file.
364
365 Mon Nov 2 14:59:33 1998 Geoffrey Noer <noer@cygnus.com>
366
367 * configure.in: detect cygwin* instead of cygwin32*
368 * configure: regenerate
369
370 Sun Nov 1 19:32:28 1998 Jeffrey A Law (law@cygnus.com)
371
372 * elf-m10300.c (mn10300_elf_relax_section): Do not use alloca,
373 use bfd_malloc and free instead and check return value from bfd_malloc.
374
375 Sun Nov 1 16:20:35 1998 Ian Lance Taylor <ian@cygnus.com>
376
377 * libbfd-in.h (_bfd_dwarf1_find_nearest_line): Declare.
378 * libbfd.h: Rebuild.
379
380 * elf32-mips.c (mips_elf_dynsym_sec_names): Comment out.
381 (SIZEOF_MIPS_DYNSYM_SECNAMES): Likewise.
382 (MIPS_TEXT_DYNSYM_SECN): Likewise.
383 (_bfd_mips_elf_fake_sections): Don't set sh_info field of a .hash
384 section.
385 (struct mips_elf_link_hash_table): Remove dynsym_sec_strindex
386 field.
387 (mips_elf_link_hash_table_create): Don't initialize
388 dynsym_sec_strindex.
389 (mips_elf_gc_mark_hook): Add default case to avoid warning.
390 (mips_elf_size_dynamic_sections): Generate a section symbol for
391 every output section.
392 (mips_elf_finish_dynamic_sections): Count all sections for
393 DT_MIPS_UNREFEXTNO.
394 (mips_elf_finish_dynamic_sections): Use dynamic symbols for all
395 output sections.
396
397 Sun Nov 1 12:46:53 1998 Geoff Keating <geoffk@ozemail.com.au>
398
399 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Allocate two slots
400 for later PLT entries in large PLTs.
401 (ppc_elf_finish_dynamic_symbol): Allow for the extra slots.
402
403 Sat Oct 31 20:10:09 1998 Jeffrey A Law (law@cygnus.com)
404
405 * elf32-ppc.c (ppc_elf_reload_section): Fix typo.
406
407 1998-10-26 15:58 Ulrich Drepper <drepper@cygnus.com>
408
409 * elf-bfd.h (struct elf_link_hash_entry): Add new field elf_hash_value.
410 * elflink.h (elf_collect_hash_codes): New function. This function is
411 called for each exported symbol and we compute the ELF hash value for
412 it.
413 (compute_bucket_value): New function. It is called from
414 size_dynamic_sections to determine the hash table size. When we are
415 optimizing a better, but slower, algorithm is used.
416 (size_dynamic_sections): Call compute_bucket_value.
417
418 * elf.c (bfd_elf_hash): Optimize the hash function a bit.
419
420 Mon Oct 19 20:03:21 1998 Catherine Moore <clm@cygnus.com>
421
422 * elf32-sh.c: Add HOWTO entries for R_SH_GNU_VTINHERIT and
423 R_SH_GNU_VTENTRY.
424 (sh_elf_gc_mark_hook): New.
425 (sh_elf_gc_sweep_hook): New.
426 (sh_elf_check_relocs): New.
427 (elf_backend_can_gc_sections): Define.
428
429 Mon Oct 19 16:57:05 1998 Felix Lee <flee@cygnus.com>
430
431 * acinclude.m4: undo previous gettext change
432 * aclocal.m4: rebuild with right version of aclocal.
433
434 Mon Oct 19 01:47:21 1998 Felix Lee <flee@cygnus.com>
435
436 * acinclude.m4, aclocal.m4: move gettext-related fragments from
437 aclocal.m4 to acinclude.m4, so they don't get lost.
438
439 * elfcore.h: rewrite for better corefile support.
440 * elf.c (elfcore_*): new functions.
441 * elf-bfd.h (elf_obj_tdata): new structure members.
442 * acconfig.h, acinclude.m4, configure.in: add feature-tests for
443 flavor of procfs.
444 * aclocal.m4, config.in, configure, Makefile.in: regenerated.
445
446 Fri Oct 16 14:07:45 1998 Catherine Moore <clm@cygnus.com>
447
448 * elf32-m32r.c: Add HOWTO entries for R_M32R_GNU_VTINHERIT
449 and R_M32R_GNU_VTENTRY.
450 (elf_backend_can_gc_sections): Define.
451 (m32r_elf_check_relocs): New.
452 (m32r_elf_gc_mark_hook): New.
453 (m32r_elf_gc_sweep_hook): New.
454 (m32r_elf_relocate_section): Handle VT relocs.
455
456 Mon Oct 12 14:18:40 1998 Nick Clifton <nickc@cygnus.com>
457
458 * coff-arm.c (arm_relocate_section): Remove redundant test.
459
460 * bfd-in2.h (struct reloc_howto_struct): Improve comment to make
461 cleat that the 'bitsize' field is the size of the bitfield AFTER
462 relocation not before.
463
464 * elf32-m32r.c (R_M32R_18_PCREL): Fix size of bitfield.
465
466 * coff-mips.c (mips_relocate_hi): Cope with missing refhi or reflo
467 relocs.
468
469 Tue Oct 6 09:20:44 1998 Catherine Moore <clm@cygnus.com>
470
471 * elf32-sparc.c: Add HOWTO entries for R_SPARC_GNU_VTINHERIT and
472 R_SPARC_GNU_VTENTRY.
473 (elf32_sparc_check_relocs): Handle them.
474 (elf32_sparc_reloc_type_lookup): Likewise.
475 (elf32_sparc_relocate_section): Likewise.
476 (elf32_sparc_gc_mark_hook): New.
477 (elf32_sparc_gc_sweep_hook): New.
478
479 Mon Oct 5 14:55:30 1998 Jeffrey A Law (law@cygnus.com)
480
481 * som.c (som_finish_writing): Perform some sanity checks when
482 writing an executable or shared library.
483
484 Mon Oct 5 12:02:31 1998 Gavin Romig-Koch <gavin@cygnus.com>
485
486 * dwarf1.c : New file. Adds _bfd_dwarf1_find_nearest_line.
487 * configure.in (elf): Add dwarf1.lo.
488 * elf_bfd.h (elf_ob_tdata): Add dwarf1_find_line_info.
489 * elf.c (_bfd_elf_find_nearest_line): Add call to
490 _bfd_dwarf1_find_nearest_line.
491 * elf32-mips.c (_bfd_mips_elf_find_nearest_line):
492 Add call to _bfd_dwarf1_find_nearest_line.
493 * configure: Rebuilt.
494
495 Mon Oct 5 10:06:22 1998 Catherine Moore <clm@cygnus.com>
496
497 * elflink.h (elf_gc_sections): Do not allow garbage
498 collection if dynamic sections have been created.
499
500 Mon Oct 5 09:07:37 1998 Catherine Moore <clm@cygnus.com>
501
502 * elf32-v850.c: Add HOWTO entries for R_V850_GNU_VTINHERIT and
503 R_V850_GNU_VTENTRY.
504 (v850_elf_check_relocs): Handle VTINHERIT and VTENTRY relocs.
505 (v850_elf_perform_relocation): Likewise.
506 (v850_elf_final_link_relocate): Likewise.
507 (v850_elf_relocate_section): Likewise.
508 (v850_elf_gc_sweep_hook): New routine.
509 (v850_elf_gc_mark_hook): New routine.
510 (elf_backend_can_gc_sections): Define.
511
512 Mon Oct 5 09:04:25 1998 Catherine Moore <clm@cygnus.com>
513
514 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Don't assume
515 that dynobj exists.
516
517 Sun Oct 4 23:29:34 1998 David Edelsohn <edelsohn@mhpcc.edu>
518
519 * rs6000-core.c (rs6000coff_core_file_matches_executable_p):
520 Declare size as bfd_size_type.
521 (rs6000coff_get_section_contents): Declare count as bfd_size_type.
522
523 Sun Oct 4 20:38:29 1998 Jeffrey A Law (law@cygnus.com)
524
525 * cpu-hppa.c (bfd_hppa20_arch): Define. Link it into the bfd_hppa_arch
526 structure.
527 * som.c (CPU_PA_RISC2_0): Define.
528 (_PA_RISC2_0_ID): Likewise.
529 (som_finish_writing): Use CPU_PA_RISC2_0 for the system_id as needed.
530
531 Sun Oct 4 21:19:09 1998 Ian Lance Taylor <ian@cygnus.com>
532
533 * elflink.h (elf_link_add_object_symbols): When a versioned symbol
534 has a base which is already defined, only add the referenced
535 symbol to the dynamic symbol table if it is defined or referenced
536 by a regular file.
537
538 * elf32-i386.c (elf_i386_info_to_howto_rel): Handle vtable relocs
539 correctly.
540
541 1998-09-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
542
543 * elflink.h (elf_link_add_object_symbols): Undo last change.
544
545 Wed Sep 23 16:09:31 1998 Richard Henderson <rth@cygnus.com>
546
547 * elflink.h (elf_link_add_object_symbols): Don't record a dynamic
548 symbol for the indirect alias to a versioned symbol.
549
550 Mon Sep 21 12:15:22 1998 Catherine Moore <clm@cygnus.com>
551
552 * elf32-i386.c (elf32_i386_vtinherit_howto): New.
553 (elf32_i386_vtentry_howto): New.
554 (elf_i386_reloc_type_lookup): Return elf32_i386_vtentry_howto
555 or elf32_i386_vtinherit_howto on lookup.
556
557 Sun Sep 20 00:48:07 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
558
559 * elf32-m68k.c: Include "elf/m68k.h". Remove definition of enum
560 reloc_type. Rename R_68K__max to R_68K_max.
561 (howto_table): Use _bfd_elf_rel_vtable_reloc_fn for a VTENTRY
562 reloc.
563
564 Sun Sep 20 00:09:25 1998 Chris Torek <torek@bsdi.com>
565
566 * libbfd.c (bfd_getb32): Rewrite expression to get better code.
567 (bfd_getl32, bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
568
569 * libbfd.c (bfd_log2): Cast to bfd_vma before shifting, not
570 after.
571
572 Sat Sep 19 22:42:23 1998 Doug Rabson <dfr@nlsystems.com>
573
574 * elflink.h (elf_link_add_object_symbols): Ensure that the warning
575 message has a null byte terminator.
576
577 Fri Sep 18 14:35:29 1998 Nick Clifton <nickc@cygnus.com>
578
579 * elf32-v850.c (v850_elf_perform_relocation): Ignore contents of
580 word subject to R_V850_32 relocation.
581
582 Thu Sep 17 17:20:36 1998 Nick Clifton <nickc@cygnus.com>
583
584 * dwarf2.c: Add comment describing problem computing line numbers
585 for undefined symbols at link time.
586
587 Thu Sep 17 16:03:28 1998 Richard Henderson <rth@cygnus.com>
588
589 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't
590 transform a defweak into a plt entry.
591 (elf64_alpha_calc_dynrel_sizes): Allow room for secondary
592 plt entry references to receive a RELATIVE reloc.
593 (elf64_alpha_finish_dynamic_symbol): Fill them in.
594 (elf64_alpha_relocate_section): Assert we don't overrun
595 the allocated relocation space.
596
597 Wed Sep 16 18:03:13 1998 Nick Clifton <nickc@cygnus.com>
598
599 * elf.c (swap_out_syms): Always treat section symbols as
600 special, even if they are attached to a common section.
601
602 Wed Sep 16 10:34:13 1998 Nick Clifton <nickc@cygnus.com>
603
604 * elf32-v850.c (v850_elf_symbol_processing): Move symbols in
605 sections with v850 common section attributes into named v850
606 common sections.
607 (v850_elf_add_symbol_hook): Move symbols in sections with v850
608 common section attributes into named v850 common sections.
609
610 Wed Sep 16 11:26:49 CDT 1998 Catherine Moore <clm@cygnus.com>
611
612 * elf32-arm.c (elf32_arm_gc_mark_hook): Remove print
613 statement.
614
615 1998-09-15 Geoff Keating <geoffk@ozemail.com.au>
616
617 * elf32-ppc.c (ppc_elf_relocate_section): Reverse output_offset
618 part of Vladimir's change of 1998-08-19. Make a R_PPC_SDAREL16
619 reloc to the wrong section a warning, not an error. .dynsbss
620 is not an output section, so there is no need to check for it.
621
622 Tue Sep 15 12:40:05 1998 Catherine Moore <clm@cygnus.com>
623
624 * elf-bfd.h: Add argument to elf_backend_get_symbol_type.
625
626 Tue Sep 15 08:34:40 1998 Catherine Moore <clm@cygnus.com>
627
628 * elf.c (swap_out_syms): Pass type to elf_backend_get_symbol_type.
629 * elf32-arm.c: Add HOWTO entries for R_ARM_GNU_VTINHERIT and
630 R_ARM_GNU_VTENTRY.
631 (elf32_arm_gc_mark_hook): New.
632 (elf32_arm_gc_sweep_hook): New.
633 (elf32_arm_check_relocs): New.
634 (elf32_arm_final_link_relocate): Handle VTINHERIT and VTENTRY
635 relocations.
636 (elf32_arm_relocate_section): Handle VTINHERIT and VTENTRY
637 relocations.
638
639 1998-09-10 Geoff Keating <geoffk@ozemail.com.au>
640
641 * elf32-ppc.c (ppc_elf_relocate_section): If dynobj is NULL,
642 assume there is no PLT or GOT.
643
644 Wed Sep 9 14:24:12 1998 Nick Clifton <nickc@cygnus.com>
645
646 * elf32-arm.c (elf32_arm_find_nearest_line): New function: just
647 like _elf_bfd_find_nearest_line() except that STT_ARM_TFUNC is
648 also accepted as a function symbol type.
649
650 Mon Sep 7 13:24:03 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
651
652 * rs6000-core.c (_LONG_LONG): Define for AIX 4.x only.
653
654 Sat Sep 5 20:40:18 1998 Ian Lance Taylor <ian@cygnus.com>
655
656 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): Correct definition to
657 match definition of _bfd_gc_sections field.
658 * libbfd.h: Rebuild.
659
660 Fri Sep 4 13:54:23 1998 David Miller <davem@dm.cobaltmicro.com>
661
662 * elf32-sparc.c (elf32_sparc_relocate_section): Properly adjust
663 the addend of a dynamic relocation referencing a section.
664 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
665 (sparc64_elf_finish_dynamic_symbol): Fix the PLT relocation offset.
666
667 Thu Sep 3 17:28:50 1998 Richard Henderson <rth@cygnus.com>
668
669 * elflink.h (bfd_elfNN_size_dynamic_sections): Verify that the
670 bed has a size_dynamic_sections routine before trying to use it.
671
672 Mon Aug 31 14:49:22 1998 Richard Henderson <rth@cygnus.com>
673
674 * elf32-mips.c (elf_mips_gnu_vtentry_howto): Use
675 _bfd_elf_rel_vtable_reloc_fn.
676
677 Mon Aug 31 10:23:40 1998 Catherine Moore <clm@cygnus.com>
678
679 * Makefile.am: Add elf32-arm.c.
680 * Makefile.in: Rebuild.
681 * elf-bfd.h: Add elf_backend_get_symbol_type.
682 * elf.c (swap_out_syms): If defined, call
683 elf_backend_get_symbol_type.
684 * elf32-arm.c: Define elf_backend_get_symbol_type.
685 (elf32_arm_get_symbol-type): New routine.
686 (record_thumb_to_arm_glue): Change to use STT_ARM_TFUNC.
687 (bfd_elf32_arm_process_before_allocation): Change to
688 check for STT_ARM_TFUNC.
689 (elf32_arm_final_link_relocate): Likewise.
690 * elfxx-target.h: Add elf_backend_get_symbol_type.
691
692 Fri Aug 28 19:44:07 1998 Richard Henderson <rth@cygnus.com>
693
694 * archures.c (bfd_mach_alpha_ev[456]): New.
695 * cpu-alpha.c: Rework to match these types.
696 * bfd-in2.h: Rebuild.
697
698 Fri Aug 28 19:38:53 1998 Richard Henderson <rth@cygnus.com>
699
700 * elf-bfd.h (_bfd_elf_rel_vtable_reloc_fn): Declare.
701 * elf.c (_bfd_elf_rel_vtable_reloc_fn): New.
702
703 * elf32-i386.c (elf_howto_table): Add vtable relocs.
704 (elf_i386_reloc_type_lookup): Recognize them.
705 (elf_i386_check_relocs): Pass them off to generic code.
706 (elf_i386_relocate_section): Ignore them.
707 (elf_i386_gc_mark_hook, elf_i386_gc_sweep_hook): New.
708 (elf_backend_can_gc_sections): True.
709
710 Thu Aug 20 15:03:45 1998 Nick Clifton <nickc@cygnus.com>
711
712 * elf32-arm.c (elf32_thumb_to_arm_stub): Check sym_sec is not NULL
713 before looking at owner field.
714 (elf32_arm_to_thumb_stub): Ditto.
715 (elf32_arm_relocate_section): Compute name before calling
716 elf32_arm_final_link_relocate().
717
718 Thu Aug 20 11:30:17 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
719
720 * elf.c: comment and formatting cleanups.
721 * elfcore.h: ditto.
722
723 Wed Aug 19 15:43:26 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
724
725 * elfcode.h (elf_object_p): Reject files of header type ET_CORE
726 (core files are treated differently than object files).
727 * elf-bfd.h (_bfd_elf_write_corefile_contents,
728 bfd_elf_mkcorefile): declare.
729 * elfxx-target.h (_bfd_elf_write_corefile_contents,
730 bfd_elf_mkcorefile): add to bfd_target vector.
731 * elfcore.h (elf_core_file_p): save the program header table,
732 and set the bfd architecture from the elf file header.
733 * elf.c (bfd_elf_mkcorefile): new function.
734 (_bfd_elf_write_corefile_contents): new function.
735 (assign_file_positions_for_segments): add cases for handling
736 PT_NOTE segments. (assign_file_positions_except_relocs):
737 core files should be handled the same as exec files.
738 (prep_headers): identify core files as type ET_CORE.
739 (copy_private_bfd_data): identify the sections belonging to
740 the PT_NOTE segment.
741
742 * elf32-sparc.c (elf32_sparc_final_write_processing):
743 add break statement to default case.
744
745 1998-08-19 Vladimir N. Makarov <vmakarov@cygnus.com>
746
747 * elf32-ppc.c (ppc_elf_relocate_section): Check that output
748 section (not input) will be in sections ".sbss", ".sbss2",
749 ".sdata", and ".sdata" for R_PPC_SDAREL16, R_PPC_EMB_SDA2REL,
750 R_PPC_EMB_SDA21, R_PPC_EMB_RELSDA. In all these cases also ignore
751 output_offset for correct evaluation of addend.
752
753 Tue Aug 18 11:48:12 1998 Catherine Moore <clm@cygnus.com>
754
755 * elf32-arm.c: Add prefix bfd_ to elf32_arm_get_bfd_for_interworking,
756 elf32_arm_allocate_interworking_sections and
757 elf32_arm_process_before_allocation.
758
759 Tue Aug 18 11:46:00 1998 Nick Clifton <nickc@cygnus.com>
760
761 * bfd-in.h: Ammend prototype for
762 elf32_arm_process_before_allocation to remove surplus third
763 argument.
764
765 * bfd-in2.h: Regenerate.
766
767 Sat Aug 15 20:55:08 1998 Richard Henderson <rth@cygnus.com>
768
769 * elf64-alpha.c (elf64_alpha_relax_section): Handle indirect symbols.
770
771 Fri Aug 14 09:12:28 1998 Stan Cox <scox@cygnus.com>
772
773 * aoutx.h (aout_link_input_section_ext): Use the relocation already
774 calculated for RELOC_SPARC_REV32 case.
775
776 Thu Aug 13 14:02:02 1998 Catherine Moore <clm@cygnus.com>
777
778 * bfd-in.h: Add prototypes for elf32_arm_get_bfd_for_interworking,
779 elf32_arm_allocate_interworking_sections and
780 elf32_arm_process_before_allocation.
781 * bfd-in2.h: Regenerated.
782 * elf32-arm.c Define elf32_arm_link_hash_table.
783 (insert_thumb_branch): New routine.
784 (find_thumb_glue): New routine.
785 (find_arm_glue): New routine.
786 (record_arm_to_thumb_glue): New routine.
787 (record_thumb_to_arm_glue): New routine.
788 (elf32_arm_link_hash_table_create): New routine.
789 (elf32_arm_get_bfd_for_interworking): New routine.
790 (elf32_arm_allocate_interworking_sections) New routine.
791 (elf32_arm_process_before_allocation) New routine.
792 (elf32_thumb_to_arm_stub): New routine.
793 (elf32_arm_to_thumb_stub): New routine.
794 (elf32_print_private_bfd_data): Fix typo.
795 (elf32_arm_final_link_relocate): Add argument sym_sec.
796 Check for branches to thumb symbols in case R_ARM_PC24.
797 Check for branches to arm symbols in case R_ARM_THM_PC22.
798 (elf32_arm_relocate_section): Pass symbol section to
799 elf32_arm_final_link_relocate.
800
801 Wed Aug 12 19:00:39 1998 Geoff Keating <geoffk@ozemail.com.au>
802
803 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Generate PLT
804 entries unless the symbol is defined in the executable; in
805 particular, undefined weak symbols get a PLT entry.
806
807 Wed Aug 12 14:48:33 1998 Ian Lance Taylor <ian@cygnus.com>
808
809 * libaout.h: Remove nested comment to avoid warning.
810
811 Wed Aug 12 08:10:11 1998 Catherine Moore <clm@cygnus.com>
812
813 * elf32-arm.c (elf32_arm_final_link_relocate): Rework
814 R_ARM_PC24 relocation.
815
816 Tue Aug 11 14:42:26 1998 Catherine Moore <clm@cygnus.com>
817
818 * elf32-arm.c (elf32_arm_final_link_relocate): Remove unused
819 argument is_local. Add argument sym_flags. Check sym_flags
820 in R_ARM_ABS32 case. Include addend for R_ARM_THM_PC22 case.
821 (elf32_arm_relocate_section): Don't pass local sym and pass
822 sym_flags to elf32_arm_final_link_relocate.
823
824 Mon Aug 10 20:38:39 1998 Richard Henderson <rth@cygnus.com>
825
826 * elf64-alpha.c (elf64_alpha_calc_dynrel_sizes): Correct last change
827 to not count too few relocs for dynamicly linked executables.
828
829 Mon Aug 10 15:35:34 1998 Richard Henderson <rth@cygnus.com>
830
831 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Never consider
832 symbols without a dynamic index dynamic. Consider all weak
833 symbols dynamic.
834 (elf64_alpha_strip_section_from_output): Don't assume 1-1
835 correspondance between input and output sections.
836
837 Mon Aug 10 15:31:39 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
838
839 * elflink.h (elf_gc_common_finalize_got_offsets): For backends
840 that use a .got.plt section start the got offset at zero.
841
842 Mon Aug 10 17:31:21 1998 Ian Lance Taylor <ian@cygnus.com>
843
844 * ieee.c (ieee_write_processor): Correct the processor ID written
845 out for bfd_arch_m68k, accommodating change of March 25.
846
847 Sun Aug 9 20:55:44 1998 Catherine Moore <clm@cygnus.com>
848
849 * elf32-arm.c (elf32_arm_final_link_relocate): Rework
850 R_ARM_THM_RPC22 relocations.
851
852 Sat Aug 8 15:15:30 1998 Richard Henderson <rth@cygnus.com>
853
854 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Undef weak symbols
855 are always dynamic.
856 (elf64_alpha_calc_dynrel_sizes): Allow enough room for RELATIVE
857 .got relocs in -Bsymbolic shared objects.
858
859 Wed Aug 5 15:48:08 1998 Nick Clifton <nickc@cygnus.com>
860
861 * elf32-arm.c: Add private flags to ELF header.
862 (elf32_arm_print_private_bfd_data): New Function.
863 (elf32_arm_set_private_flags): New Function.
864 (elf32_arm_copy_private_flags): New Function.
865 (elf32_arm_merge_private_bfd_data): New Function.
866
867 Mon Aug 3 17:10:15 1998 Ian Lance Taylor <ian@cygnus.com>
868
869 * elf32-sparc.c (elf32_sparc_check_relocs): Permit WPLT30 against
870 a local symbol.
871 (elf32_sparc_relocate_section): Likewise.
872
873 Sun Aug 2 03:19:23 1998 Richard Henderson <rth@cygnus.com>
874
875 * elf32-ppc.c (ppc_elf_check_relocs): Init sgot to NULL. Create the
876 .got if any relocation referrs to _GLOBAL_OFFSET_TABLE_.
877 (ppc_elf_relocate_section): Pull sgot and splt search to the start
878 of the function. Recognize no .plt as static linking.
879
880 1998-08-01 Ulrich Drepper <drepper@cygnus.com>
881
882 * elf32-mips.c (_bfd_mips_elf_section_from_shdr): Don't pass
883 ".liblist" string through gettext.
884
885 Fri Jul 31 16:38:14 1998 Catherine Moore <clm@cygnus.com>
886
887 * Makefile.am: Add support for elf32-arm.lo.
888 * Makefile.in: Rebuild.
889 * config.bfd (arm-*-elf): Define targ_defvec and targ_selvecs.
890 (thumb-*-elf): Define targ_defvec and targ_selvecs.
891 * configure.in: Handle bfd_elf32_littlearm_vec and bfd_elf32_bigarm_vec.
892 * configure: Regenerate.
893 * elf.c: (prep_headers): Support arch_type of EM_ARM.
894 * targets.c: Support new targets bfd_elf32_bigarm_vec and
895 bfd_target bfd_elf32_littlearm_vec.
896 * elf32-arm.c: New file.
897
898 Tue Jun 28 19:05:28 1998 Stan Cox <scox@cygnus.com>
899
900 * libaout.h (M_SPARCLITE_LE): New machine.
901 * sunos.c (MACHTYPE_OK): Add machine M_SPARCLITE_LE.
902 * aoutf1.h (sunos_set_arch_mach): Add machine M_SPARCLITE_LE.
903 (sunos_write_object_contents): Add machine bfd_mach_sparc_sparclite_le
904 * aoutx.h (howto_table_ext): Add relocation R_SPARC_REV32.
905 (NAME(aout,machine_type)) Add machine bfd_mach_sparc_sparclite_le
906 (aout_link_input_section_ext): Add RELOC_SPARC_REV32 support.
907 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
908 elf32_sparc_relocate_section): Rename R_SPARC_32LE to be R_SPARC_REV32
909 * libbfd.h (bfd_reloc_code_real_names): Rename BFD_RELOC_SPARC_32LE to
910 be BFD_RELOC_SPARC_REV32.
911 * reloc.c: Ditto.
912 * config.bfd (sparc86x-*-aout): New
913
914 Fri Jul 24 13:54:19 1998 Nick Clifton <nickc@cygnus.com>
915
916 * linker.c (_bfd_generic_final_link): Allocate NULL symbol before
917 actually mapping the output sections.
918
919 Fri Jul 24 11:24:29 1998 Jeffrey A Law (law@cygnus.com)
920
921 start-sanitize-am33
922 * elf-m10300.c (mn10300_elf_relax_section): Fix typo when relaxing
923 from 24bit operand to an 8bit operand.
924
925 * elf-m10300.c (mn10300_elf_relax_section): Do not relax "dmul",
926 "dmulu", "dmach", "dmachu" with 32bit operands.
927 end-sanitize-am33
928
929 * elf-m10300.c (mn10300_elf_howto): Add R_MN10300_24 entry.
930 (mn10300_elf_reloc_map): Similarly.
931 (mn10300_elf_final_link_relocate): Handle R_MN10300_24.
932 start-sanitize-am33
933 (mn10300_elf_relax_section): Support relaxing on the am33.
934 end-sanitize-am33
935
936 Fri Jul 24 12:36:04 1998 Ian Lance Taylor <ian@cygnus.com>
937
938 start-sanitize-r5900
939 The value of R_MIPS15_S3 has changed:
940 * elf32-mips.c (elf_mips15_s3_howto): New static variable.
941 (mips_reloc_map): Remove BFD_RELOC_MIPS15_S3.
942 (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS15_S3
943 specially.
944 (mips_info_to_howto_rel): Handle R_MIPS15_S3 specially.
945 (mips_elf_relocate_section): Check for R_MIPS15_S3.
946
947 end-sanitize-r5900
948 * elf32-mips.c (elf_mips_howto_table): Add reloc types used on
949 Irix 6.
950 (bfd_elf32_bfd_reloc_type_lookup): Add default case.
951 * elf64-mips.c: Replace all uses of mips_elf64_reloc_type with
952 elf_mips_reloc_type defined in elf/mips.h.
953
954 1998-07-24 Ulrich Drepper <drepper@cygnus.com>
955
956 * elf64-mips.c: Remove reloc_type definition completely. It's now
957 in elf/mips.h.
958
959 Thu Jul 23 13:33:19 1998 Doug Evans <devans@canuck.cygnus.com>
960
961 * elf64-mips.c (mips_elf64_reloc_type): #if 0 out more relocations
962 as they are defined in elf/mips.h now.
963
964 Thu Jul 23 11:29:43 1998 Jeffrey A Law (law@cygnus.com)
965
966 start-sanitize-am33
967 * elf-m10300.c (compute_function_info): Keep track of stack space
968 needed by am33 movm instruction variant.
969 end-sanitize-am33
970
971 * Re-add lost change:
972 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add new field
973 "movm_stack_size".
974 (mn10300_elf_relax_section): Include stack space for register saves
975 in the imm8 field of a "call" instruction.
976 (compute_function_info): Determine how much stack is allocated by
977 the movm instruction. Fix typo.
978 (elf32_mn10300_link_hash_newfunc): Initialize movm_stack_size.
979
980 Thu Jul 23 11:38:05 1998 Ian Lance Taylor <ian@cygnus.com>
981
982 * elf32-sparc.c (elf_backend_got_header_size): Define as 4.
983 * elf64-sparc.c (elf_backend_got_header_size): Define as 8.
984
985 1998-07-22 Ulrich Drepper <drepper@cygnus.com>
986
987 * elf32-ppc.c: Change use of pp_reloc_type to elf_ppc_reloc_type.
988
989 Wed Jul 22 16:27:18 1998 Nick Clifton <nickc@cygnus.com>
990
991 * elf32-hppa.h: Let ELF header define the enum containing the
992 external reloc numbers.
993 * elf32-i386.h: Likewise.
994
995 1998-07-22 14:57 Ulrich Drepper <drepper@cygnus.com>
996
997 * elf-m10300.c: Let ELF header now define the macros to get the enum.
998 * elf32-mips.c: Likewise.
999 * elf32-ppc.c: Likewise.
1000
1001 Wed Jul 22 13:53:52 1998 Nick Clifton <nickc@cygnus.com>
1002
1003 * bfd-in2.h: Change type of 'class' parameter to 'unsigned int' in
1004 bfd_coff_set_symbol_class(), in order to avoid K&R compatability
1005 prblems.
1006 * bfd-in.h: Regenerate.
1007 * coffgen.c (bfd_coff_set_symbol_class): Change type of 'class'
1008 parameter to 'unsigned int' to avoid K&R compatability problems.
1009
1010 Wed Jul 22 16:43:24 1998 Ian Lance Taylor <ian@cygnus.com>
1011
1012 * ieee.c (ieee_find_nearest_line): Change filename_ptr and
1013 functionname_ptr to be const. Change line_ptr to be unsigned.
1014
1015 * coffcode.h (coff_link_output_has_begun): Simplify handling when
1016 macro is not defined. Change second parameter from bfd_link_info
1017 to coff_final_link_info. Add prototype.
1018 (coff_final_link_postscript): Simplify handling when macro is not
1019 defined. Add prototype.
1020
1021 1998-07-22 13:08 Ulrich Drepper <drepper@cygnus.com>
1022
1023 * elf-mn10300.c: Before include system specific ELF header define
1024 START_RELOC_NUMBERS, RELOC_NUMBER, and END_RELOC_NUMBERS.
1025 * elf32-mips.c: Likewise.
1026 * elf32-ppc.c: Likewise.
1027
1028 Wed Jul 22 13:46:51 1998 Ian Lance Taylor <ian@cygnus.com>
1029
1030 * elf64-mips.c (mips_elf64_reloc_type): Copy Ulrich's elf32-mips.c
1031 temporary patch over to elf64-mips.c as well.
1032
1033 1998-07-21 Ulrich Drepper <drepper@cygnus.com>
1034
1035 * elf32-mips.c (reloc_type): Temporarily disable definition of
1036 standard relocation since they are now defined in elf/mips.h.
1037
1038 Tue Jul 21 09:47:00 1998 Catherine Moore <clm@cygnus.com>
1039
1040 * elf-m10200.c (mn10200_elf_final_link_relocate):
1041 Modify range test for case R_MN10200_8.
1042
1043 * elf-m10300.c (mn10300_elf_final_link_relocate):
1044 Modify range test for case R_MN10300_8.
1045
1046 Mon Jul 20 18:50:54 1998 Richard Henderson <rth@cygnus.com>
1047
1048 * elf-bfd.h (struct elf_backend_data): Add got_ & plt_header_size.
1049 * elf32-i386.c (elf_backend_got_header_size): Define.
1050 (elf_backend_plt_header_size): Define.
1051 * elf32-m68k.c, elf32-mips.c, elf32-ppc.c: Likewise.
1052 * elf32-sparc.c, elf64-alpha.c, elf64-sparc.c: Likewise.
1053 * elfxx-target.h: Provide a default of zero.
1054 * elflink.c (_bfd_elf_create_got_section): Use got_header_size.
1055 * elflink.h (elf_gc_common_finalize_got_offsets): Likewise.
1056
1057 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't remove a PLT
1058 entry from an executable, even if the plt refcount goes to 0.
1059
1060 Mon Jul 20 12:47:26 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1061
1062 * aoutx.h (NAME(aout,find_nearest_line)): Also remember the
1063 directory name at the line number.
1064
1065 * elf.c (_bfd_elf_find_nearest_line): Also consider symbols
1066 with an unspecified type.
1067
1068 Wed Jul 15 11:20:01 1998 Ian Lance Taylor <ian@cygnus.com>
1069
1070 * sunos.c: Add undef of valid to avoid problem on SunOS.
1071
1072 start-sanitize-beos
1073 Tue Jul 14 15:30:59 1998 Richard Henderson <rth@cygnus.com>
1074
1075 * config.bfd (i?86-pc-beos{pe,elf,}*): Recognize.
1076
1077 end-sanitize-beos
1078 Tue Jul 14 11:22:21 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1079
1080 * elf32-m68k.c (elf_m68k_check_relocs): Also reference count
1081 R_68K_PCxx and R_68K_xx relocations. Make sure that
1082 ELF_LINK_HASH_NEEDS_PLT is always set for a PLT reloc reference.
1083 (elf_m68k_gc_sweep_hook): Also reference count R_68K_PCxx and
1084 R_68K_xx relocations.
1085 (elf_m68k_adjust_dynamic_symbol): Reset the plt offset of a symbol
1086 that has no plt entry.
1087 (elf_m68k_relocate_section): Ignore the plt offset in a static
1088 link.
1089 * elflink.h (elf_adjust_dynamic_symbol): Reset the plt offset for
1090 an ignored symbol.
1091 (elf_gc_common_finalize_got_offsets): Set the got offsets also in
1092 a static link.
1093
1094 * elf32-m68k.c (R_68K_GNU_VTINHERIT, R_68K_GNU_VTENTRY): New reloc
1095 types.
1096 (howto_table, reloc_map): Add entries for them.
1097 (elf_m68k_check_relocs): Handle them. Implement reference
1098 counting for got and plt entries.
1099 (elf_m68k_gc_mark_hook, elf_m68k_gc_sweep_hook): New functions.
1100 (elf_m68k_adjust_dynamic_symbol): Handle unreferenced plt
1101 symbols.
1102 (rtype_to_howto_rel, elf_info_to_howto_rel): Delete.
1103 (elf_m68k_relocate_section): Handle the new reloc types.
1104 (bfd_elf32_bfd_final_link, elf_backend_gc_mark_hook,
1105 elf_backend_gc_sweep_hook, elf_backend_can_gc_sections): Define.
1106 * elflink.h (elf_link_add_object_symbols): When creating an
1107 indirect reference for symbol versioning also copy the plt
1108 offset.
1109 (elf_fix_symbol_flags): When clearing the ELF_LINK_HASH_NEEDS_PLT
1110 flag also reset the plt offset.
1111 (elf_link_assign_sym_version): Likewise.
1112 (elf_gc_common_finalize_got_offsets): Increment the got offset by
1113 the size of the entry in bytes.
1114 (elf_gc_allocate_got_offsets): Likewise.
1115
1116 Tue Jul 14 11:18:14 1998 Ian Lance Taylor <ian@cygnus.com>
1117
1118 * elflink.h (elf_gc_sections): Return true rather than falling off
1119 the bottom.
1120
1121 * coffgen.c (bfd_coff_set_symbol_class): Call bfd_alloc, not
1122 xmalloc.
1123
1124 Mon Jul 13 11:06:31 1998 Nick Clifton <nickc@cygnus.com>
1125
1126 * coff-arm.c: Supress definition of TARGET_UNDERSCORE and add a
1127 comment describing when it should be enabled.
1128 Changed definition of USER_LABEL_PREFIX to "", to fall into line
1129 with GCC sources.
1130
1131 Mon Jul 13 13:06:54 1998 Ian Lance Taylor <ian@cygnus.com>
1132
1133 * ieee.c (ieee_slurp_external_symbols): Handle call optimization
1134 information ATN records.
1135
1136 Fri Jul 10 16:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
1137
1138 * ieee.c (ieee_slurp_external_symbols): Select an appropriate
1139 section for an absolute symbol in a fully linked file. Based on
1140 patch from Christian Holland <CHolland@de.lucent.com>.
1141
1142 Wed Jul 8 11:29:56 1998 Manfred Hollstein <manfred@s-direktnet.de>
1143
1144 * coff-m88k.c (m88k_special_reloc): Don't lose the information
1145 that a symbol is undefined.
1146
1147 Tue Jul 7 21:47:02 1998 Jeffrey A Law (law@cygnus.com)
1148
1149 * som.c (som_bfd_gc_sections): Define.
1150
1151 Mon Jul 6 11:35:50 1998 Nick Clifton <nickc@cygnus.com>
1152
1153 * coff-arm.c (aoutarm_std_reloc_howto): Do not complain about
1154 overflows in ARM_26D patches, since they have already been
1155 implmented. Patch submitted by Dr. R.J. Black <rjb@dcs.gla.ac.uk>
1156
1157 Sat Jul 4 12:25:36 1998 Ian Lance Taylor <ian@cygnus.com>
1158
1159 * coffcode.h (coff_write_object_contents): If we have any long
1160 section names, call coff_write_symbols even if there are no
1161 symbols.
1162
1163 Fri Jul 3 13:11:35 1998 Ian Lance Taylor <ian@cygnus.com>
1164
1165 * elf.c (copy_private_bfd_data): Only set phdr_included once for a
1166 PT_LOAD segment, rather than only setting it once for the entire
1167 file.
1168
1169 * elf.c (_bfd_elf_make_section_from_shdr): When setting the LMA,
1170 rather than ignoring every phdr with a p_paddr of 0, ignore all
1171 the phdrs if they all have a p_paddr of 0.
1172
1173 * stabs.c (_bfd_write_stab_strings): Check whether the .stabstr
1174 section was discarded from the link.
1175
1176 Fri Jul 3 14:39:05 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1177
1178 * coff-sh.c (sh_insn_uses_freg): Ignore lowest bit of register number.
1179
1180 Fri Jul 3 14:35:48 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
1181
1182 * coff-sh.c (sh_insns_conflict): Load of fpscr conflicts with
1183 floating point operations.
1184
1185 Thu Jul 2 18:37:25 1998 Ian Lance Taylor <ian@cygnus.com>
1186
1187 * cofflink.c (_bfd_coff_link_input_bfd): Skip undefined global
1188 function symbols.
1189
1190 Thu Jul 2 14:59:42 1998 Klaus Kaempf <kkaempf@rmi.de>
1191
1192 Merge of vax/vms (read-only) support
1193 * configure.com: Support Vax target.
1194 * makefile.vms: Support Vax target.
1195 * vms.h: Renamed from evax.h, merged vax/vms (read-only) support.
1196 * vms.c: Renamed from evax-alpha.c, merged vax/vms (read-only)
1197 support.
1198 * vms-hdr.c: Renamed from evax-emh.c, merged vax/vms (read-only)
1199 support.
1200 * vms-gsd.c: Renamed from evax-egsd.c, merged vax/vms (read-only)
1201 support.
1202 * vms-tir.c: Renamed from evax-etir.c, merged vax/vms (read-only)
1203 support.
1204 * vms-misc.c: Renamed from evax-misc.c, merged vax/vms (read-only)
1205 support.
1206 * libbfd.c (real_read): Use unbuffered read on VMS/Vax.
1207 * targets.c (bfd_target_ovax_flavour): New flavour.
1208 (vms_alpha_vec): Renamed from evax_alpha_vec.
1209 (vms_vax_vec): New.
1210 (target_vector): Update accordingly.
1211 * config.bfd (alpha*-*-*vms*): Use vms_alpha_vec, not
1212 evax_alpha_vec.
1213 (vax*-*-*vms*): New target.
1214 * Makefile.am: Update for renamed files. Rebuild dependencies.
1215 * bfd-in2.h: Rebuild.
1216 * configure.in, Makefile.in, aclocal.m4: Rebuild.
1217
1218 Thu Jul 2 13:31:55 1998 Ian Lance Taylor <ian@cygnus.com>
1219
1220 Based on patch from Matt Semersky <matts@scd.hp.com>:
1221 * linker.c (_bfd_generic_final_link): Force a trailing NULL
1222 pointer on abfd->outsymbols.
1223 (generic_add_output_symbol): Handle NULL sym parameter.
1224
1225 Wed Jul 1 17:05:53 1998 Nick Clifton <nickc@cygnus.com>
1226
1227 * elf.c (copy_private_bfd_data): Add support for changing VMA or
1228 LMA of sections.
1229
1230 Wed Jul 1 16:58:50 1998 Ian Lance Taylor <ian@cygnus.com>
1231
1232 * coff-sh.c (sh_relax_delete_bytes): Correct address comparisons
1233 when handling 32 bit immediate relocs.
1234 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
1235
1236 Tue Jun 30 09:55:03 1998 Jeffrey A Law (law@cygnus.com)
1237
1238 * section.c (STD_SECTION): Account for recently added gc_mark
1239 field in struct asection.
1240
1241 * elf-m10300.c (bfd_mn10300_elf_merge_private_bfd_data): New function.
1242 (bfd_elf32_bfd_merge_private_bfd_data): Define.
1243
1244 Thu Jun 25 18:31:41 1998 Richard Henderson <rth@cygnus.com>
1245
1246 ELF Section-level Garbage Collection:
1247 * bfd.c (bfd_gc_sections): New.
1248 * aout-adobe.c: Hook to default implementation.
1249 * aout-target.h, aout-tic30.c, binary.c, bout.c: Likewise.
1250 * coff-alpha.c, coff-mips.c, coff-rs6000.c, coffcode.h: Likewise.
1251 * evax-alpha.c, i386msdos.c, i386os9k.c, ieee.c: Likewise.
1252 * ihex.c, nlm-target.h, oasys.c, ppcboot.c, srec.c: Likewise.
1253 * tekhex.c, versados.c: Likewise.
1254 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): New.
1255 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_gc_sections.
1256
1257 * reloc.c (BFD_RELOC_VTABLE_INHERIT, BFD_RELOC_VTABLE_ENTRY): New.
1258 (bfd_generic_gc_sections): New.
1259 * section.c (SEC_KEEP): New.
1260 (asection): Add gc_mark member.
1261
1262 * elfcode.h (elf_gc*): New name remappings.
1263 * elflink.h (elf_link_input_bfd): Don't set contents on stabs
1264 sections to be excluded.
1265 (elf_gc_mark, elf_gc_sweep, elf_gc_sweep_symbol): New.
1266 (elf_gc_propogate_vtable_entries_used): New.
1267 (elf_gc_smash_unused_vtentry_relocs): New.
1268 (elf_gc_sections, elf_gc_record_vtinherit, elf_gc_record_vtentry): New.
1269 (elf_gc_common_finalize_got_offsets): New.
1270 (elf_gc_allocate_got_offsets, elf_gc_common_final_link): New.
1271 * elfxx-target.h: Add and default gc hooks.
1272
1273 * elf-bfd.h (struct elf_link_hash_entry): Swap got_offset/plt_offset
1274 for unions.
1275 (struct elf_obj_tdata): Likewise for local_got_offsets.
1276 * elf.c, elf-i386.c, elf32-m68k.c, elf32-mips.c: Update all uses.
1277 * elf32-ppc.c, elf32-sparc.c, elf64-alpha.c: Likewise.
1278 * elf64-sparc.c, elflink.h: Likewise.
1279
1280 * elf-bfd.h (struct elf_link_hash_entry): Add vtable members.
1281 (ELF_LINK_HASH_MARK): Define.
1282 (struct elf_backend_data): Add GC hooks.
1283 * elf.c (_bfd_elf_link_hash_newfunc): Zero vtable members.
1284
1285 * elf-m10300.c (mn10300_elf_check_relocs): New.
1286 (mn10300_elf_gc_mark_hook): New.
1287 (R_MN10300_GNU_VTINHERIT, R_MN10300_GNU_VTENTRY): New.
1288 (elf_mn10300_howto, mn10300_reloc_map): Handle them.
1289 (mn10300_elf_final_link_relocate): Likewise.
1290 (mn10300_elf_relocate_section): Likewise.
1291 (elf_backend_can_gc_sections): Define.
1292 * elf32-mips.c (R_MIPS_GNU_VTINHERIT, R_MIPS_GNU_VTENTRY): New.
1293 (elf_mips_gnu_vtinherit_howto, elf_mips_gnu_vtentry_howto): New.
1294 (bfd_elf32_bfd_reloc_type_lookup): Handle them.
1295 (mips_info_to_howto_rel): Likewise.
1296 (mips_elf_relocate_section): Likewise.
1297 (mips_elf_check_relocs): Likewise.
1298 (mips_elf_gc_mark_hook, mips_elf_gc_sweep_hook): New.
1299 (elf_backend_can_gc_sections): Define.
1300 * elf32-ppc.c (R_PPC_GNU_VTINHERIT, R_PPC_GNU_VTENTRY): New.
1301 (ppc_elf_howto_raw): Handle them.
1302 (ppc_elf_reloc_type_lookup): Likewise.
1303 (ppc_elf_relocate_section): Likewise.
1304 (ppc_elf_check_relocs): Reference count .got and .plt entires.
1305 Handle new vtable relocs.
1306 (ppc_elf_adjust_dynamic_symbol): Recognize unused .plt entries.
1307 (ppc_elf_gc_mark_hook, ppc_elf_gc_sweep_hook): New.
1308 (elf_backend_can_gc_sections): Define.
1309
1310 Fri Jun 26 10:48:23 1998 Jeffrey A Law (law@cygnus.com)
1311
1312 * archures.c (bfd_mach_mn10300): Define.
1313 * elf-m10300.c: Include elf/mn10300.h
1314 (elf_mn10300_mach): New function.
1315 (_bfd_mn10300_elf_final_write_processing): Likewise.
1316 (_bfd_mn10300_elf_object_p): Likewise.
1317 (elf_backendfinal_write_processing): Define.
1318 (elf_backend_object_p): Likewise.
1319 start-sanitize-am33
1320 * archures.c (bfd_mach_am33): Define.
1321 * cpu-m10300.c (bfd_am33_arch): New arch info structure. Link it
1322 into the NEXT field of bfd_mn10300_arch.
1323 end-sanitize-am33
1324
1325 Thu Jun 25 18:31:08 1998 Nick Clifton <nickc@cygnus.com>
1326
1327 * elf32-v850.c (v850_elf_perform_relocation): Fix HI16_S
1328 relocation.
1329
1330 Wed Jun 24 17:17:57 1998 Ian Lance Taylor <ian@cygnus.com>
1331
1332 * elflink.h (elf_bfd_final_link): Loop over input_bfds using the
1333 link_next field, not the next field.
1334
1335 Sun Jun 21 19:38:39 1998 Ian Lance Taylor <ian@cygnus.com>
1336
1337 * elf.c (map_sections_to_segments): Check the section address
1338 against the phdr size both with and without a modulo of
1339 maxpagesize.
1340
1341 Fri Jun 19 17:08:18 1998 Ian Lance Taylor <ian@cygnus.com>
1342
1343 * elf32-mips.c (mips_elf_size_dynamic_sections): Only strip a
1344 linker created empty input section if the output section has the
1345 same name.
1346
1347 * elflink.h (elf_link_output_extsym): Print an error message if
1348 _bfd_elf_section_from_bfd_section fails.
1349
1350 * elf.c (_bfd_elf_section_from_bfd_section): Call bfd_set_error on
1351 failure.
1352
1353 start-sanitize-sky
1354 Thu Jun 18 23:59:30 1998 Doug Evans <devans@seba.cygnus.com>
1355
1356 * reloc.c: New relocs BFD_RELOC_MIPS_DVP_11_S4,
1357 BFD_RELOC_MIPS_DVP_U15_S3.
1358 * elf32-mips.c: Handle them.
1359 * bfd-in2.h: Regenerate.
1360 * libbfd.h: Regenerate.
1361
1362 end-sanitize-sky
1363 Tue Jun 16 11:55:55 1998 Ian Lance Taylor <ian@cygnus.com>
1364
1365 * elf.c (copy_private_bfd_data): Improve handling of Solaris
1366 native linker output. Avoid putting an empty section in more than
1367 one segment.
1368
1369 Fri Jun 12 13:30:17 1998 Tom Tromey <tromey@cygnus.com>
1370
1371 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
1372 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
1373
1374 Fri Jun 12 13:34:02 1998 Doug Evans <devans@canuck.cygnus.com>
1375
1376 * elf.c (swap_out_syms): New arg relocatable_p.
1377 Don't add section VMA to symbols for relocatable output.
1378 (_bfd_elf_compute_section_file_positions): Update call to
1379 swap_out_syms.
1380
1381 Mon Jun 8 15:20:57 1998 Nick Clifton <nickc@cygnus.com>
1382
1383 * elf32-v850.c (v850_elf_perform_relocation): Make comparisons
1384 against 'addend' be signed rather than unsigned.
1385
1386 Sat Jun 6 00:31:21 1998 Nick Clifton <nickc@cygnus.com>
1387
1388 * elf32-m32r.c: Add prototyps for static functions.
1389
1390 * coff-arm.c: Add prototypes for static functions.
1391
1392 Fri Jun 5 17:21:51 1998 Nick Clifton <nickc@cygnus.com>
1393
1394 * elf.c (elf_sort_sections): Sort by LMA first then VMA, since the
1395 LMA is used to order sections in a segment.
1396
1397 * elf32-v850.c: Add prototypes for static functions.
1398 Change type of addend parameter to bfd_vma in various functions.
1399
1400 Fri Jun 5 18:09:58 1998 Ian Lance Taylor <ian@cygnus.com>
1401
1402 * aoutx.h (howto_table_ext): Change RELOC_BASE13 to use
1403 complain_overflow_signed instead of complain_overflow_bitfield.
1404
1405 Fri Jun 5 15:11:11 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1406
1407 * elf.c (elf_map_symbols): Don't add section VMA to symbol value
1408 when comparing against 0.
1409
1410 Wed Jun 3 17:52:49 1998 Ian Lance Taylor <ian@cygnus.com>
1411
1412 * Makefile.am (config.status): New target.
1413 * Makefile.in: Rebuild.
1414
1415 start-sanitize-sky
1416 Wed Jun 3 11:39:57 1998 Doug Evans <devans@canuck.cygnus.com>
1417
1418 * elf32-mips.c (_bfd_mips_elf_fake_sections): Update to use
1419 Elf32_Dvp_External_Overlay instead of 64 bit version.
1420
1421 end-sanitize-sky
1422 Wed Jun 3 12:18:24 1998 Stan Cox <scox@equinox.cygnus.com>
1423
1424 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Give an
1425 error if previous object endianness doesn't match current object.
1426
1427 Tue Jun 2 17:50:59 1998 Nick Clifton <nickc@cygnus.com>
1428
1429 * elf32-v850.c (v850_elf_print_private_bfd_data): Call
1430 _bfd_elf_print_private)bfd_data ().
1431
1432 Tue Jun 2 15:29:35 1998 Ian Lance Taylor <ian@cygnus.com>
1433
1434 * elflink.h (elf_merge_symbol): Don't always set type_change_ok
1435 and size_change_ok.
1436 (elf_link_add_object_symbols): Set type_change_ok and
1437 size_change_ok before calling elf_merge_symbol.
1438
1439 * elf32-mips.c (mips_elf_relocate_section): If we issue an
1440 undefined symbol error, don't also issue an overflow error.
1441
1442 Tue Jun 2 13:51:00 1998 Geoff Keating <geoffk@ozemail.com.au>
1443
1444 * elf32-ppc.c (ppc_elf_relocate_section): The target of an
1445 R_PPC_LOCAL24PC relocation should be local; if not, print an error
1446 message instead of crashing.
1447
1448 Mon Jun 1 18:23:12 1998 Yuli Barcohen <yuli.barcohen@telrad.co.il>
1449
1450 * archures.c (bfd_mach_cpu32): Define.
1451 (bfd_default_scan): Add case for 68060. Fix 68332 case to use
1452 bfd_mach_cpu32.
1453 * cpu-m68k.c (arch_info_struct): Add m68k:cpu32.
1454 * ieee.c: Include <ctype.h>.
1455 (ieee_object_p): Parse out process ID string to make it more
1456 likely to be acceptable for bfd_scan_arch.
1457 * bfd-in2.h: Rebuild.
1458
1459 Mon Jun 1 11:12:02 1998 Nick Clifton <nickc@cygnus.com>
1460
1461 * elf32-m32r.c (m32r_elf_print_private_bfd_data): Also call
1462 _bfd_elf_print_private_bfd_data() so that the program header will
1463 be displayed.
1464
1465 Mon Jun 1 12:14:28 1998 Ian Lance Taylor <ian@cygnus.com>
1466
1467 * peicode.h (coff_swap_sym_in): Check for C_SECTION rather than
1468 0x68. Reindent. Add some comments.
1469
1470 start-sanitize-sky
1471 Sun May 31 16:11:22 1998 Doug Evans <devans@canuck.cygnus.com>
1472
1473 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Set sh_link
1474 field of .DVP.ovlytab to .DVP.ovlystrtab's section index.
1475 (_bfd_mips_elf_section_from_shdr): Recognize SHT_DVP_OVERLAY_TABLE
1476 and SHT_DVP_OVERLAY.
1477 (_bfd_mips_elf_fake_sections): Ditto.
1478
1479 end-sanitize-sky
1480 Fri May 29 09:58:08 1998 Nick Clifton <nickc@cygnus.com>
1481
1482 * elf.c (copy_private_bfd_data): Adjust physical address of
1483 segment in output BFD to contain LMAs of its sections.
1484
1485 Tue May 26 19:37:47 1998 Stan Cox <scox@equinox.cygnus.com>
1486
1487 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
1488 elf32_sparc_relocate_section): Added R_SPARC_32LE for little
1489 endian data 32 bit relocations.
1490 (elf32_sparc_merge_private_bfd_data): Check if linking little
1491 endian objects with big endian objects.
1492 (elf32_sparc_object_p): Set bfd_mach_sparc_sparclite_le.
1493 (elf32_sparc_final_write_processing): Set EF_SPARC_LEDATA in e_flags.
1494 * libbfd.h (bfd_reloc_code_real_names): Added BFD_RELOC_SPARC_32LE.
1495 * reloc.c: Same.
1496 * cpu-sparc.c (arch_info_struct): Added sparc:sparclite_le
1497 * archures.c (bfd_mach_sparc_sparclite_le): New.
1498 * bfd-in2.h (BFD_RELOC_SPARC_32LE, bfd_mach_sparc_sparclite_le): New.
1499
1500 Thu May 21 16:59:28 1998 Nick Clifton <nickc@cygnus.com>
1501
1502 * peicode.h (add_data_entry): Fix precedence of operators in if ()
1503 statement.
1504
1505 Tue May 19 18:41:19 1998 Ian Lance Taylor <ian@cygnus.com>
1506
1507 * bfd-in.h: Move over patch to bfd-in2.h.
1508
1509 * reloc.c (bfd_check_overflow): Add casts before shifts which may
1510 not fit in 32 bits.
1511 (_bfd_relocate_contents): Likewise.
1512
1513 Mon May 18 14:44:15 1998 Nick Clifton <nickc@cygnus.com>
1514
1515 * peicode.h (add_data_entry): If the section has no private data
1516 then do not create a Data Dictionary entry for it.
1517
1518 Mon May 18 00:09:28 1998 Richard Henderson <rth@cygnus.com>
1519
1520 * elf64-alpha.c (elf64_alpha_relax_section): Set again on changes.
1521 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots,
1522 elf64_alpha_size_got_sections): Rewrite, handling multiple got
1523 subsections during relaxation more correctly.
1524
1525 Thu May 14 14:22:58 1998 Nick Clifton <nickc@cygnus.com>
1526
1527 * bfd-in2.h: Add new prototype: bfd_coff_set_symbol_class ().
1528 Add extra argument to bfd_arm_process_before_allocation ().
1529 * bfd-in.h: Reflect changes made in bfd-in2.h.
1530 * coffgen.c (bfd_coff_set_symbol_class): New function. Set the
1531 coff class of a BFD symbol.
1532 * coff-arm.c: Add support for interworking between Thumb code and
1533 non-interworking aware ARM code.
1534
1535 Sun May 10 22:33:59 1998 Jeffrey A Law (law@cygnus.com)
1536
1537 * po/Make-in (install-info): New target.
1538
1539 Thu May 7 17:40:56 1998 Ian Lance Taylor <ian@cygnus.com>
1540
1541 * filemode.c: Remove; not used.
1542
1543 If sysdep.h includes a header file, don't include it again:
1544 * aix386-core.c: Don't include <stdio.h>, <stddef.h>, or
1545 <errno.h>.
1546 * aoutx.h: Don't include <string.h>. Use "sysdep.h" rather than
1547 <sysdep.h>.
1548 * archive.c: Don't include <string.h> or <errno.h>.
1549 * evax-alpha.c; Don't include <stdio.h>.
1550 * evax-egsd.c: Likewise.
1551 * evax-etir.c: Likewise.
1552 * evax-misc.c: Likewise.
1553 * evax-emh.c: Likewise. Also, don't include <sys/types.h>.
1554 * hppabsd-core.c: Don't include <stdio.h>, <sys/types.h>, or
1555 <errno.h>.
1556 * hpux-core.c: Likewise.
1557 * netbsd-core.c: Likewise.
1558 * som.c: Likewise.
1559 * libbfd.c: Don't include <sys/types.h>.
1560 * nlmcode.h: Don't include <string.h>.
1561 * osf-core.c: Don't include <string.h> or <stdio.h>.
1562 * ptrace-core.c: Don't include <stdio.h>, <sys/types.h>,
1563 <errno.h>, or <unistd.h>.
1564 * trad-core.c: Don't include <stdio.h> or <sys/types.h>.
1565
1566 Thu May 7 13:12:50 1998 Klaus Kaempf <kkaempf@progis.de>
1567
1568 * configure.com: If the version number can not be found in
1569 configure.in, set it to "unknown" rather than "2.8.1".
1570
1571 Wed May 6 09:46:05 1998 Gavin Koch <gavin@cygnus.com>
1572
1573 * elf32-mips.c (elf_mips_mach): New.
1574 (_bfd_mips_elf_object_p): Use elf_mips_mach.
1575 (_bfd_mips_elf_final_write_processing): Use the names
1576 of machines, rather than the numbers. Set both the ARCH
1577 and MACH in e_flags. Handle a few more specific machines.
1578 (_bfd_mips_elf_merge_private_bfd_data): Merge both
1579 EF_MIPS_ARCH and EF_MIPS_MACH.
1580
1581 Tue May 5 21:01:53 1998 Richard Henderson <rth@cygnus.com>
1582
1583 * syms.c (bfd_is_local_label): Revert last change.
1584 * srec.c (srec_write_symbols): Discard debugging symbols.
1585
1586 Tue May 5 23:36:06 1998 Ian Lance Taylor <ian@cygnus.com>
1587
1588 * som.c: Include <ctype.h>.
1589 * som.h: Don't include sysdep.h.
1590
1591 Tue May 5 18:29:24 1998 Tom Tromey <tromey@cygnus.com>
1592
1593 * libbfd.h: Rebuilt.
1594 * libbfd-in.h: Removed gettext includes and defines.
1595 * sysdep.h: Moved gettext-related includes and defines here.
1596
1597 Tue May 5 16:47:54 1998 Richard Henderson <rth@cygnus.com>
1598
1599 * srec.c (srec_write_symbols): Use bfd_is_local_label rather than
1600 an ad-hoc test. Kill bogus #if 0 code.
1601 * syms.c (bfd_is_local_label): Consider BSF_DEBUGGING symbols local.
1602
1603 Mon May 4 16:10:33 1998 Ian Lance Taylor <ian@cygnus.com>
1604
1605 * sunos.c (sunos_check_dynamic_reloc): Don't use the PLT address
1606 when generating a normal executable for a symbol defined in a
1607 regular file. When copying a reloc into the output file, adjust
1608 the addend for a PC relative reloc against a global symbol.
1609
1610 Mon May 4 10:08:18 1998 Tom Tromey <tromey@cygnus.com>
1611
1612 * libbfd.h: Rebuilt.
1613 * libbfd-in.h (_): Define as dgettext.
1614
1615 Mon May 4 11:02:23 1998 Ian Lance Taylor <ian@cygnus.com>
1616
1617 * coff-arm.c (coff_arm_relocate_section): Cast to bfd_signed_vma,
1618 not signed.
1619 * peicode.h (pe_saved_coff_bfd_print_private_bfd_data): Use PARAMS
1620 when declaring parameter types.
1621 (pe_saved_coff_bfd_copy_private_bfd_data): Likewise.
1622
1623 Wed Apr 29 15:35:03 1998 Ian Lance Taylor <ian@cygnus.com>
1624
1625 * config.bfd: If we include any ELF targets in targ_defvec and/or
1626 targ_selvecs, then add the generic ELF targets to targ_selvecs.
1627 * elf32-gen.c (dummy): New static const variable.
1628 (elf_generic_info_to_howto): New static function.
1629 (elf_generic_info_to_howto_rel): New static function.
1630 (elf_info_to_howto): Define as elf_generic_info_to_howto.
1631 (elf_info_to_howto_rel): Define as elf_generic_info_to_howto_rel.
1632 * elf64-gen.c: Same changes as elf32-gen.c.
1633 * elfcode.h (elf_object_p): For the generic target, ignore a
1634 failure of bfd_default_set_arch_mach. Fix indentation a bit.
1635
1636 Tue Apr 28 20:05:52 1998 Ian Lance Taylor <ian@cygnus.com>
1637
1638 * configure.in (WIN32LIBADD): Add -lintl on cygwin32.
1639 * configure: Rebuild.
1640
1641 Tue Apr 28 12:16:57 1998 Jason Molenda (crash@bugshack.cygnus.com)
1642
1643 * config.bfd: Update OSR5/Unixware patterns.
1644
1645 Mon Apr 27 18:02:24 1998 Richard Henderson <rth@cygnus.com>
1646
1647 * elf.c (assign_file_positions_for_segments): Allow for holes
1648 between sections added by a link script.
1649
1650 Mon Apr 27 11:49:55 1998 Ian Lance Taylor <ian@cygnus.com>
1651
1652 * configure.in: Change version number to 2.9.4
1653 * configure: Rebuild.
1654
1655 Based on patch from H.J. Lu <hjl@gnu.org>:
1656 * elf.c (bfd_elf_get_bfd_needed_list): New function.
1657 * bfd-in.h (bfd_elf_get_bfd_needed_list): Declare.
1658 * bfd-in2.h: Rebuild.
1659
1660 Sat Apr 25 20:07:53 1998 Richard Henderson <rth@cygnus.com>
1661
1662 * elf64-alpha.c (struct alpha_relax_info): Replace elfsym with other.
1663 Change all users.
1664
1665 Sat Apr 25 18:29:07 1998 Richard Henderson <rth@cygnus.com>
1666
1667 * elf64-alpha.c (struct alpha_relax_info): Add tsec & elfsym members.
1668 (elf64_alpha_relax_section): Fill them in.
1669 (elf64_alpha_relax_opt_call): Implement more than a stub.
1670 (elf64_alpha_add_symbol_hook): Don't set SEC_LOAD or default
1671 alignment on .scommon.
1672 (elf64_alpha_merge_gots): Merge use counts as well.
1673
1674 Sat Apr 25 14:07:29 1998 Richard Henderson <rth@cygnus.com>
1675
1676 * elf64-alpha.c (elf64_alpha_relax_section): Use the proper section
1677 for calculating a local symbol's address.
1678 (elf64_alpha_calc_got_offsets): Skip entries with 0 use count.
1679 Set the .got's cooked size as well as the raw size.
1680
1681 Fri Apr 24 09:16:00 1998 Nick Clifton <nickc@cygnus.com>
1682
1683 * elf32-v850.c (v850_elf_print_private_bfd_data): Add
1684 internationalisation of printed information.
1685
1686 * coff-arm.c (coff_arm_print_private_bfd_data): Add
1687 internationalisation of printed information.
1688
1689 Fri Apr 24 12:09:18 1998 Ian Lance Taylor <ian@cygnus.com>
1690
1691 * syms.c (struct indexentry): Change directory_name, file_name,
1692 and function_name fields to char *.
1693 (struct stab_find_info): Change cached_file_name field to char *.
1694
1695 Thu Apr 23 08:13:04 1998 Nick Clifton <nickc@cygnus.com>
1696
1697 * peicode.h (dir_names): Add missing N_() macros to dir_names array.
1698
1699 Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
1700
1701 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
1702
1703 Wed Apr 22 17:48:48 1998 Ian Lance Taylor <ian@cygnus.com>
1704
1705 * Makefile.am (install-data-local): Make $(includedir).
1706 * Makefile.in: Rebuild.
1707
1708 Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
1709
1710 * libbfd-in.h: Use `gettext' and not `dgettext' for now.
1711
1712 Wed Apr 22 12:53:40 1998 Ian Lance Taylor <ian@cygnus.com>
1713
1714 * Makefile.am (INCLUDES): Add -I$(srcdir)/../intl -I../intl.
1715 * Makefile.in: Rebuild.
1716
1717 * bfd-in2.h: Rebuild for Nick's changes.
1718
1719 Tue Apr 21 23:11:51 1998 Richard Henderson <rth@cygnus.com>
1720
1721 * archive.c (_bfd_generic_read_ar_hdr_mag): Fix lossage in last
1722 change wrt length == max_namelen.
1723
1724 Tue Apr 21 21:19:36 1998 Tom Tromey <tromey@scribbles.cygnus.com>
1725
1726 * Many files: Added gettext invocations around user-visible
1727 strings.
1728 * libbfd-in.h: Added gettext includes and defines.
1729 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
1730 HAVE_LC_MESSAGES): Define.
1731 * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and
1732 po/Makefile.
1733 * Makefile.am (SUBDIRS): Added po.
1734 (POTFILES): New macro.
1735 (po/POTFILES.in): New target.
1736 (SOURCE_HFILES): New macro.
1737 (HFILES): Use it.
1738 * po/Make-in, po/POTFILES.in, po/bfd.pot: New files.
1739
1740 Tue Apr 21 13:38:18 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1741
1742 * elfcore.h (bfd_prstatus): Copy core_prstatus from the first
1743 NT_PRSTATUS note section encountered, it contains the status of
1744 the currently executing thread when the core file was written.
1745
1746 Tue Apr 21 10:00:12 1998 Nick Clifton <nickc@cygnus.com>
1747
1748 * libcoff.h: Add extra parameter to
1749 bfd_coff_link_output_has_begun overrideable function.
1750 * cofflink.c: Pass extra parameter to
1751 bfd_coff_link_output_has_begun function.
1752 * bfd-in.h: Add prototypes for exported ARM interworking
1753 functions.
1754 * peicode.h: ARM specific code reorganised to conform to BFD
1755 coding conventions.
1756 * coffcode.h: ARM specific code reorganised to conform to BFD
1757 coding conventions.
1758 * coff-arm.c: Code reorganised to conform to the BFD coding
1759 conventions. Global variables have been moved into an ARM
1760 specific hash table structure and a new function:
1761 bfd_arm_get_bfd_for_interworking() has been created which is
1762 called from the linker scripts.
1763
1764 Tue Apr 21 00:11:51 1998 Richard Henderson <rth@cygnus.com>
1765
1766 * archive.c (_bfd_generic_read_ar_hdr_mag): Simplify end-of-name test.
1767
1768 * elf64-alpha.c (elf64_alpha_find_reloc_at_ofs): Renamed from
1769 elf64_alpha_relax_find_reloc_ofs. Changed all callers.
1770 (elf64_alpha_add_symbol_hook): Put small commons in .scommon not .sbss.
1771 (elf64_alpha_size_got_sections): Don't merge .got sections twice.
1772
1773 Sat Apr 18 01:21:04 1998 Stan Cox <scox@cygnus.com>
1774
1775 * config.bfd: Added sparc86x support.
1776
1777 Fri Apr 17 22:29:04 1998 Ian Lance Taylor <ian@cygnus.com>
1778
1779 * elf32-mips.c (mips_elf_relocate_section): Do not complain about
1780 an out of range pc-relative jump/call to an undefined weak symbol.
1781
1782 Thu Apr 16 13:49:00 1998 Richard Henderson <rth@cygnus.com>
1783
1784 * elf64-alpha.c (elf64_alpha_do_reloc_gpdisp): Do all gpdisp
1785 comparisons signed.
1786
1787 Thu Apr 16 11:43:33 1998 Ian Lance Taylor <ian@cygnus.com>
1788
1789 * archive.c (bfd_generic_archive_p): If a slurp subroutine returns
1790 an error other than bfd_error_system_call, set the error to
1791 bfd_error_wrong_format.
1792
1793 * targets.c (bfd_target_vector) [SELECT_VECS not defined]: Add
1794 bfd_elf32_powerpcle_vec.
1795
1796 * elf.c (copy_private_bfd_data): If all the p_paddr fields in the
1797 program segments are zero, don't set p_paddr_valid.
1798
1799 Wed Apr 15 22:15:16 1998 Richard Henderson <rth@cygnus.com>
1800
1801 * elf64-alpha.c: Initial implementation of relaxation --
1802 (struct alpha_elf_link_hash_entry): Add use_count member.
1803 (elf64_alpha_check_relocs): Initialize and increment it.
1804 (elf64_alpha_can_merge_gots): Check it when considering merging.
1805 (elf64_alpha_merge_gots): Drop entries with zero use.
1806 (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
1807 (elf64_alpha_always_size_sections): Split out got sizing ...
1808 (elf64_alpha_size_got_sections): ... here. New function.
1809 (elf64_alpha_relax_find_reloc_ofs): New function.
1810 (elf64_alpha_relax_with_lituse): Likewise.
1811 (elf64_alpha_relax_without_lituse): Likewise.
1812 (elf64_alpha_relax_opt_call): Likewise.
1813 (elf64_alpha_relax_section): Likewise.
1814 (elf64_alpha_add_symbol_hook): Likewise.
1815 (elf64_alpha_howto_table): Implement GPRELHIGH/LOW & IMMED_GP_16.
1816 (elf64_alpha_relocate_section): Likewise.
1817 (bfd_elf64_bfd_relax_section): Define.
1818 (elf_backend_add_symbol_hook): Likewise.
1819
1820 Wed Apr 15 16:08:46 1998 Richard Henderson <rth@cygnus.com>
1821
1822 * elf.c (prep_headers): Use new EM_SPARCV9 symbol.
1823 * elf64-sparc.c (ELF_MACHINE_CODE): Likewise.
1824 (ELF_MACHINE_ALT1): New. Set to EM_OLD_SPARC64.
1825
1826 Wed Apr 15 11:34:33 1998 Ian Lance Taylor <ian@cygnus.com>
1827
1828 * configure.in: Add -lkernel32 to WIN32LIBADD on cygwin32.
1829 * configure: Rebuild.
1830
1831 Mon Apr 13 16:46:27 1998 Ian Lance Taylor <ian@cygnus.com>
1832
1833 * Makefile.am (libbfd_la_LIBADD): Add @WIN32LIBADD@.
1834 (libbfd_la_LDFLAGS): Add @WIN32LDFLAGS@.
1835 * configure.in: Define and substitute WIN32LDFLAGS and
1836 WIN32LIBADD.
1837 * aclocal.m4: Rebuild with new libtool.
1838 * configure, Makefile.in: Rebuild.
1839
1840 Fri Apr 10 13:44:27 1998 Ian Lance Taylor <ian@cygnus.com>
1841
1842 * coffcode.h (coff_write_object_contents): Move a PE COMDAT symbol
1843 before any other symbols in the same section.
1844
1845 Wed Apr 8 14:50:23 1998 Michael Meissner <meissner@cygnus.com>
1846
1847 * config.bfd (powerpc*-*-*): Remove PowerPC NT support from ELF
1848 systems.
1849
1850 Tue Apr 7 16:25:31 1998 Gavin Romig-Koch <gavin@cygnus.com>
1851
1852 * dwarf2.c (comp_unit): Move it earlier in the source. Add
1853 addr_size.
1854 (read_address): Replace 'bdf*' argument with 'comp_unit*' argument.
1855 Use addr_size for address size, rather than sizeof(bfd_vma).
1856 (read_attribute): Replace bdf* argument with 'comp_unit*' argument.
1857 Fix call to read_address.
1858 (decode_line_info): Replace bdf* argument with 'comp_unit*' argument.
1859 Scrap other unneeded arguments. Fix call to read_address.
1860 (scan_unit_for_functions): Fix call to read_attribute.
1861 (parse_comp_unit): We now handle more values for addr_size.
1862 Set addr_size in unit. Fix call to read_attribute and
1863 decode_line_info.
1864
1865 Tue Apr 7 15:44:47 1998 Gavin Romig-Koch <gavin@cygnus.com>
1866
1867 * dwarf2.c (parse_comp_unit): Drop use of unit->name when it is null.
1868
1869 Tue Apr 7 12:35:18 1998 Ian Lance Taylor <ian@cygnus.com>
1870
1871 * archures.c (bfd_default_scan): Add m68k cases back to default
1872 switch, reverting patch of March 25, since IEEE support depends
1873 upon them.
1874
1875 Mon Apr 6 14:06:40 1998 Ian Lance Taylor <ian@cygnus.com>
1876
1877 * Makefile.am (diststuff): New target.
1878 * Makefile.in: Rebuild.
1879
1880 Sun Apr 5 16:21:44 1998 Jeffrey A Law (law@cygnus.com)
1881
1882 * som.c (som_bfd_ar_write_symbol_stuff): Fix computation of
1883 som_offset when we have an extended name table.
1884
1885 Sun Apr 5 16:04:39 1998 H.J. Lu <hjl@gnu.org>
1886
1887 * Makefile.am (stamp-lib): Check that .libs/libbfd.a exists before
1888 trying to copy it.
1889 * Makefile.in: Rebuild.
1890
1891 Fri Apr 3 11:09:42 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1892
1893 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Generate section
1894 symbols when creating a shared library.
1895 (elf_m68k_adjust_dynindx): New function, used by above code.
1896 (elf_m68k_finish_dynamic_sections): Initialize the section
1897 symbols.
1898 (elf_m68k_relocate_section): Change abort to BFD_ASSERT.
1899
1900 Wed Apr 1 16:04:02 1998 Nick Clifton <nickc@cygnus.com>
1901
1902 * coff-arm.c (in_reloc_p): Use ARM_RVA32 in place of constant
1903 value 11.
1904
1905 Wed Apr 1 13:36:58 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1906
1907 * elf32-m68k.c (elf_m68k_relocate_section, case R_68K_PLT*O): Fix
1908 assertion.
1909
1910 Tue Mar 31 00:12:12 1998 Jeffrey A Law (law@cygnus.com)
1911
1912 * elf-m10300.c (mn10300_elf_relax_section): Correctly handle
1913 absolute symbols.
1914
1915 Mon Mar 30 12:46:15 1998 Ian Lance Taylor <ian@cygnus.com>
1916
1917 * configure.in: Set version to 2.9.1.
1918 * configure: Rebuild.
1919
1920 * Branched binutils 2.9.
1921
1922 Mon Mar 30 12:20:50 1998 Brent Baccala <baccala@freesoft.org>
1923
1924 * syms.c (ENABLE_CACHING): Define.
1925 (struct indexentry): Define.
1926 (struct stab_cache): Remove.
1927 (cmpindexentry): New static function.
1928 (struct stab_find_info): Add new fields: indextable,
1929 indextablesize, cached_indexentry, cached_offset, cached_stab, and
1930 cached_file_name. Remove fields: file_cache, function_cache, and
1931 line_cache.
1932 (_bfd_stab_section_find_nearest_line): Rewrite to build a sorted
1933 index table and search it.
1934
1935 Mon Mar 30 10:39:34 1998 Ian Lance Taylor <ian@cygnus.com>
1936
1937 * elf.c (_bfd_elf_copy_private_section_data): Call
1938 copy_private_bfd_data once we've seen the last SEC_ALLOC section.
1939
1940 * cpu-mips.c: Remove trailing comma at end of enumeration list.
1941
1942 Sat Mar 28 16:33:02 1998 Ian Lance Taylor <ian@cygnus.com>
1943
1944 * coff-arm.c: Define all globally visible variables and functions
1945 only when COFF_WITH_PE is not defined.
1946 * configure.in (armpe_little_vec, armpe_big_vec): Add
1947 coff-arm.lo.
1948 * configure: Rebuild.
1949
1950 Fri Mar 27 16:06:02 1998 Ian Lance Taylor <ian@cygnus.com>
1951
1952 Fix some gcc -Wall warnings:
1953 * aout-arm.c (MY(fix_pcrel_26)): Add casts to avoid warnings.
1954 * archive.c (_bfd_generic_read_ar_hdr_mag): Likewise.
1955 * archures.c (bfd_default_scan): Likewise.
1956 * bfd.c (bfd_scan_vma): Likewise.
1957 * binary.c (mangle_name): Likewise
1958 * coff-arm.c (aoutarm_fix_pcrel_26): Likewise.
1959 * coff-sh.c (sh_relocate_section): Likewise.
1960 * coff-stgo32.c (create_go32_stub): Likewise.
1961 * coffcode.h (coff_slurp_line_table): Likewise.
1962 * ecoff.c (_bfd_ecoff_write_armap): Likewise.
1963 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
1964 (assign_file_positions_for_segments): Likewise.
1965 * elf32-mips.c (mips_elf_relocate_section): Likewise.
1966 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
1967 * oasys.c (oasys_write_sections): Likewise.
1968 * ppcboot.c (ppcboot_object_p): Likewise.
1969 (mangle_name): Likewise.
1970 * riscix.c (riscix_fix_pcrel_26): Likewise.
1971 * srec.c (srec_scan): Likewise.
1972 * stabs.c (_bfd_write_section_stabs): Likewise.
1973 * sunos.c (sunos_add_dynamic_symbols): Likewise.
1974 * aout-ns32k.c (_bfd_ns32k_relocate_contents): Add default case to
1975 switch. Declare parameters for function pointers.
1976 * archures.c (bfd_default_scan): Add braces to avoid ambiguous if
1977 warning.
1978 * elf.c (elf_sort_sections): Likewise.
1979 * coff-arm.c (coff_thumb_pcrel_common): Initialize relocation.
1980 Add default cases to switches.
1981 (coff_arm_relocate_section): Remove unused local variables.
1982 Always set rstat.
1983 (coff_arm_bfd_set_private_flags): Change flag variable to type
1984 flagword.
1985 * coff-mips.c (mips_relocate_section): Initialize use_lo.
1986 * coff-ppc.c (ppc_record_toc_entry): Change i to unsigned int.
1987 (dump_toc): Change cat to const, and initialize it.
1988 * coff-sh.c (sh_relax_delete_bytes): Initialize start and voff.
1989 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
1990 (sh_elf_relocate_section): Initialize r_symndx.
1991 * coffcode.h (coff_compute_section_file_positions): Only declare
1992 old_sofar if ALIGN_SECTIONS_IN_FILE.
1993 (coff_write_object_contents): Initialize csym.
1994 * coffgen.c (coff_pointerize_aux): Make type and class unsigned.
1995 * cpu-ns32k.c (_bfd_ns32k_get_displacement): Add default case to
1996 switch.
1997 * dwarf2.c: Include libiberty.h.
1998 (read_2_signed_bytes, read_4_signed_bytes): Comment out.
1999 (decode_line_info): Remove unused local variables.
2000 * elf32-m32r.c (m32r_elf_sda16_reloc): Likewise.
2001 (m32r_elf_relocate_section): Likewise.
2002 * elf32-v850.c (v850_elf_store_addend_in_insn): Likewise.
2003 (v850_elf_reloc): Likewise.
2004 * elf-bfd.h (elf_linker_section_t): Make alignment unsigned.
2005 (struct elf_obj_tdata): Make cverdefs and cverrefs unsigned.
2006 * elf.c (assign_file_positions_for_segments): Always set adjust.
2007 * elf32-d30v.c (bfd_elf_d30v_reloc): Initialize tmp_addr. Fully
2008 parenthesize expression.
2009 * elf32-m32r.c (m32r_elf_relocate_section): Always initialize h.
2010 (m32r_elf_object_p): Return a value.
2011 (m32r_elf_print_private_bfd_data): Change fprintf format string.
2012 * elf32-mips.c (mips_elf_final_link): Initialize last.
2013 (mips_elf_finish_dynamic_sections): Initialize last and dindx.
2014 * elf32-v850.c (v850_elf_object_p): Return a value.
2015 (v850_elf_print_private_bfd_data): Change fprintf format string.
2016 * elfcode.h (elf_slurp_symbol_table): Change symcount and i to
2017 unsigned long.
2018 * elflink.h (elf_link_add_object_symbols): Change vernum to
2019 unsigned int, and initialize it. Change fprintf format string.
2020 (NAME(bfd_elf,size_dynamic_sections)): Cast -1 to bfd_size_type
2021 when setting or comparing to soname_indx.
2022 (elf_create_pointer_linker_section): Change num_symbols to
2023 unsigned int.
2024 * libcoff-in.h (coff_data_type): Change flags to flagword.
2025 * peicode.h (pe_print_idata): Initialize idx. Change j to
2026 bfd_size_type. Initialize hint_member. Remove useless test to
2027 time_stamp.
2028 (pe_print_edata): Change num_functions and num_names in struct
2029 EDT_type to unsigned long. Remove cast. Change fprintf format
2030 string.
2031 * ppcboot.c (ppcboot_object_p): Change i to size_t.
2032 * reloc.c (bfd_get_reloc_size): Change return type to unsigned
2033 int.
2034 * reloc16.c (bfd_coff_reloc16_relax_section): Change shrinks to
2035 int *. Update uses. Change j to long.
2036 * bfd-in2.h, libcoff.h: Rebuild.
2037
2038 Fri Mar 27 10:10:46 1998 Catherine Moore <clm@cygnus.com>
2039
2040 * elf32-v850.c Remove definition of USE_REL.
2041 (v850_elf_info_to_howto_rela): New function.
2042 (v850_elf_perform_relocation): Renamed from
2043 v850_elf_store_addend_in_insn. Removed replace argument.
2044 (v850_elf_reloc): store the relocation in the addend field instead
2045 of the insn.
2046 (v850_elf_final_link_relocate): Now calls
2047 v850_elf_perform_relocation.
2048 (v850_elf_relocate_section): Remove code to generate REL
2049 relocations.
2050
2051 Thu Mar 26 13:32:17 1998 Ian Lance Taylor <ian@cygnus.com>
2052
2053 * coffcode.h (coff_new_section_hook): Set the type and storage
2054 class in the native symbol information allocated for a new section
2055 symbol.
2056
2057 Thu Mar 26 10:13:41 1998 Nick Clifton <nickc@cygnus.com>
2058
2059 * peicode.h: Chain together calls to
2060 coff_bfd_copy_private_bfd_data and
2061 coff_bfd_print_private_bfd_data.
2062
2063 * coff-arm.c: Add prototypes for
2064 coff_arm_bfd_print_private_bfd_data and
2065 coff_arm_bfd_copy_private_bfd_data.
2066
2067 Wed Mar 25 15:45:55 1998 Nick Clifton <nickc@cygnus.com>
2068
2069 * coffcode.h (coff_mkobject_hook): Set private falgs even for a PE
2070 build.
2071
2072 * peicode.h: Call arm-coff private data functions after handling
2073 pe private data.
2074
2075 * coff-arm.c: Turn statics into globals so that they can be shared
2076 both pe and pei backends.
2077
2078 Wed Mar 25 15:19:38 1998 Ian Lance Taylor <ian@cygnus.com>
2079
2080 * aoutf1.h (sunos_set_arch_mach): Use bfd_mach_m68* rather than
2081 plain numbers.
2082 (sunos_write_object_contents): Likewise.
2083 * aoutx.h (NAME(aout,machine_type)): Likewise.
2084 * coffcode.h (coff_set_arch_mach_hook): Likewise.
2085
2086 Wed Mar 25 13:59:24 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2087
2088 * archures.c (bfd_mach_m68*): Add definitions for various m68k
2089 variants.
2090 (bfd_default_scan): Remove m68k special cases.
2091 * bfd-in2.h: Rebuild.
2092 * mipsbsd.c (MY(write_object_contents)): Use bfd_mach_m68* rather
2093 than plain numbers.
2094 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
2095 * cpu-m68k.c (arch_info_struct): Likewise. Add entry for
2096 m68k:68000.
2097 (bfd_m68k_arch): Set mach field to zero to signal no explicit
2098 selection, change printable_name to just "m68k" and make that the
2099 default instead of m68k:68020.
2100
2101 * aout-tic30.c (NAME): Define this to avoid multiple definitions
2102 from aoutx.h.
2103 (MY_get_section_contents): Define as aout_32_get_section_contents
2104 rather than NAME(aout,get_section_contents).
2105
2106 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Fix cast.
2107
2108 * evax-alpha.c (evax_set_arch_mach): Only accept bfd_arch_alpha
2109 and call bfd_default_set_arch_mach to do the real work.
2110
2111 Wed Mar 25 10:41:35 1998 Richard Henderson <rth@cygnus.com>
2112
2113 * bout.c (BALX): Include return register g14 as part of the insn.
2114 (BALX_MASK): New.
2115 (calljx_callback): Use it.
2116
2117 Wed Mar 25 11:19:28 1998 Ian Lance Taylor <ian@cygnus.com>
2118
2119 * libbfd-in.h (BFD_ALIGN): Cast this parameter to bfd_vma.
2120 * libbfd.h: Rebuild.
2121
2122 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Change
2123 byte_count to unsigned int.
2124 (mn10300_elf_relax_section): Initialize internal_relocs. Remove
2125 unused local variables.
2126
2127 * evax-alpha.c (evax_close_and_cleanup): Remove unused local
2128 variables er and er1.
2129
2130 * cpu-v850.c: Include <ctype.h>.
2131 (scan): Case isdigit argument to unsigned char.
2132
2133 From Yan Meroth <YAN.MEROTH@st.com>:
2134 * ihex.c (ihex_scan): Add extbase variable so that getting an
2135 extended linear address record does not ignore any previous
2136 extended address.
2137 (ihex_write_object_contents): When writing out an extended linear
2138 address record, zero out any previous extended address.
2139
2140 Tue Mar 24 16:09:43 1998 Manfred Hollstein <manfred@s-direktnet.de>
2141
2142 * ieee.c (do_one): Check section before dereferencing it.
2143 (ieee_canonicalize_reloc): Likewise with src->relent.sym_ptr_ptr.
2144 (ieee_generic_stat_arch_elt): Likewise with abfd->my_archive.
2145
2146 Mon Mar 23 18:51:47 1998 Joel Sherrill <joel@OARcorp.com>
2147
2148 * config.bfd: (sh*-*-rtems*): Switched from ELF to COFF.
2149
2150 Mon Mar 23 14:23:36 1998 Nick Clifton <nickc@cygnus.com>
2151
2152 * coff-arm.c: Add interworking functions to pe backends.
2153
2154 start-sanitize-r5900
2155 Sun Mar 22 13:05:08 1998 Jeffrey A Law (law@cygnus.com)
2156
2157 * elf32-mips.c (R_MIPS15_S3): New relocation type.
2158 (elf_mips_howto_table): Add R_MIPS15_S3.
2159 (mips_reloc_map): Map BFD_RELOC_MIPS15_S3 to R_MIPS15_S3.
2160 * reloc.c (BFD_RELOC_MIPS15_S3): New relocation type.
2161 * bfd-in2.h, libbfd.h: Rebuilt.
2162
2163 end-sanitize-r5900
2164 Fri Mar 20 18:47:20 1998 Ian Lance Taylor <ian@cygnus.com>
2165
2166 * configure.in: Use AM_DISABLE_SHARED.
2167 * aclocal.m4, configure: Rebuild with libtool 1.2.
2168
2169 Fri Mar 20 11:25:41 1998 Nick Clifton <nickc@cygnus.com>
2170
2171 * coff-arm.c (coff_arm_relocate_section): Better error messages
2172 when interowrking conflucts occur. Courtesy of Jonathan Walton
2173 and Tony Thompson.
2174 (aoutarm_std_reloc_howto): Fixed bitsize fields of rightshifted
2175 relocations. Patch courtesy of Jonathan Walton and Tony
2176 Thompson.
2177
2178 Fri Mar 20 02:26:43 1998 Richard Henderson <rth@cygnus.com>
2179
2180 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Revert
2181 part of Feb 22 change controling when to override the existing
2182 symbol with the .plt entry.
2183
2184 Wed Mar 18 09:26:25 1998 Nick Clifton <nickc@cygnus.com>
2185
2186 * config.bfd (targ_cpu): Add thumb-pe target.
2187
2188 * coffcode.h (OTHER_GLOBAL_CLASS): Support thumb external
2189 functions in PE build.
2190
2191 Sun Mar 8 23:37:26 1998 Stan Cox <scox@equinox.cygnus.com>
2192
2193 * config.bfd (sparclite-*-elf*): Added.
2194
2195 start-sanitize-vr4320
2196 Tue Mar 3 11:24:05 1998 Gavin Koch <gavin@cygnus.com>
2197
2198 * mips-cpu.c: Reorganize sanitization.
2199
2200 * archures.c, bfd-in2.h, mips-cpu.c : Added bfd_mach_mips4320.
2201
2202 end-sanitize-vr4320
2203 Mon Feb 23 19:31:19 1998 Ian Lance Taylor <ian@cygnus.com>
2204
2205 * configure.in: Add elf.lo to elf shell variable.
2206 * Makefile.am (BFD_LIBS): Remove elf.lo.
2207 (BFD_LIBS_CFILES): Remove elf.c.
2208 (BFD32_BACKENDS): Add elf.lo.
2209 (BFD32_BACKENDS_CFILES): Add elf.c.
2210 * configure, Makefile.in: Rebuild.
2211
2212 1998-02-23 15:53 Richard Henderson <rth@cygnus.com>
2213
2214 * elf32-i386.c (elf_i386_relocate_section): A pc-relative
2215 relocation against a now-local symbol should not have a dynamic
2216 relocation.
2217
2218 Mon Feb 23 16:17:08 1998 Ian Lance Taylor <ian@cygnus.com>
2219
2220 * peicode.h (coff_swap_filehdr_in): Don't set BFD flag HAS_SYMS in
2221 COFF filehdr flags.
2222 (pe_print_private_bfd_data): Print PE flags. From Mikey
2223 <jeffdb@netzone.com>.
2224
2225 Sun Feb 22 20:39:00 1998 Richard Henderson <rth@cygnus.com>
2226
2227 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Don't create
2228 a plt entry when we can determine that we authoritatively define
2229 the symbol.
2230
2231 Sun Feb 22 20:33:05 1998 Richard Henderson <rth@cygnus.com>
2232
2233 * configure.in (COREFILE selection): Remove sparc-*-linux*. They
2234 don't actually use trad-core, but a SunOS-style core file handled
2235 by gdb directly.
2236 * hosts/sparclinux.h: Remove.
2237
2238 start-sanitize-sky
2239 Thu Feb 19 02:38:52 1998 Doug Evans <devans@charmed.cygnus.com>
2240
2241 * reloc.c (BFD_RELOC_MIPS_DVP_27_S4): New reloc type.
2242 * elf32-mips.c (enum reloc_type): Add R_MIPS_DVP_27_S4.
2243 (elf_mips_dvp_27_s4_howto): Describe it.
2244 (bfd_elf32_bfd_reloc_type_lookup): Handle it.
2245 (mips_info_to_how_rel): Handle it.
2246 (mips_elf_relocate_section): Handle it.
2247 * bfd-in2.h,libbfd.h: Regenerate.
2248
2249 end-sanitize-sky
2250 Wed Feb 18 15:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
2251
2252 * peicode.h (pe_print_idata): If there is no .idata section, look
2253 for the import tables in some other section. Make the initial
2254 label line up better with the data. Print the import address
2255 table even if there is no import name table. If the import
2256 address table holds actual addresses, print them.
2257
2258 start-sanitize-sky
2259 Tue Feb 17 20:00:26 1998 Doug Evans <devans@canuck.cygnus.com>
2260
2261 * config.bfd (targ_archs): If mips64r5900-sky-elf, add bfd_dvp_arch.
2262
2263 end-sanitize-sky
2264 Tue Feb 17 12:58:34 1998 Ian Lance Taylor <ian@cygnus.com>
2265
2266 * libbfd.c (bfd_seek): If fseek fails, save errno around call to
2267 bfd_tell. If errno is EINVAL, set bfd_error_file_truncated, not
2268 bfd_error_system_call.
2269
2270 Fri Feb 13 13:11:33 1998 Ian Lance Taylor <ian@cygnus.com>
2271
2272 * Makefile.am (AUTOMAKE_OPTIONS): Define.
2273 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
2274
2275 From H.J. Lu <hjl@gnu.org>:
2276 * Makefile.am (libbfd_la_LDFLAGS): Define.
2277 * Makefile.in: Rebuild.
2278
2279 Thu Feb 12 17:31:11 1998 Ian Lance Taylor <ian@cygnus.com>
2280
2281 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
2282 * netbsd.h (MACHTYPE_OK): Define.
2283 (MY(write_object_contents)): Use DEFAULT_ARCH and DEFAULT_MID when
2284 calling N_SET_MACHTYPE, rather than having a switch.
2285 * libaout.h (enum machine_type): Add M_PMAX_NETBSD, M_VAX_NETBSD,
2286 and M_ALPHA_NETBSD.
2287 * i386netbsd.c (MACHTYPE_OK): Don't define.
2288 (DEFAULT_MID): Define.
2289 * m68k4knetbsd.c (SEGMENT_SIZE): Don't define.
2290 (MACHTYPE_OK): Don't define.
2291 (DEFAULT_MID): Define.
2292 * m68knetbsd.c: (MACHTYPE_OK): Don't define.
2293 (DEFAULT_MID): Define.
2294 * ns32knetbsd.c (MACHTYPE_OK): Don't define.
2295 (DEFAULT_MID): Define.
2296 * sparcnetbsd.c (MACHTYPE_OK): Don't define.
2297 (DEFAULT_MID): Define.
2298
2299 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
2300 * vaxnetbsd.c: New file.
2301 * netbsd-core.c: Clean up. Remove unused macros. Use netbsd
2302 rather than netbsd_core.
2303 * targets.c (vaxnetbsd_vec): Declare.
2304 (bfd_target_vector): Add vaxnetbsd_vec. If NETBSD_CORE is
2305 defined, add netbsd_core_vec.
2306 * configure.in: Set COREFILE for alpha*-*-netbsd* and
2307 powerpc-*-netbsd* to netbsd-core.lo. If COREFILE is
2308 netbsd-core.lo, set COREFLAG to -DNETBSD_CORE.
2309 * config.bfd (alpha*-*-netbsd*): New target.
2310 * Makefile.am: Rebuild dependencies.
2311 (BFD32_BACKENDS): Add vaxnetbsd.lo.
2312 (BFD32_BACKENDS_CFILES): Add vaxnetbsd.c.
2313 * configure, Makefile.in: Rebuild.
2314
2315 * configure.host: Remove the old shared library build stuff. We
2316 now use libtool instead.
2317
2318 Wed Feb 11 17:13:09 1998 Richard Henderson <rth@cygnus.com>
2319
2320 * tekhex.c (tekhex_write_object_contents): Call tekhex_init.
2321
2322 Tue Feb 10 19:23:28 1998 H.J. Lu <hjl@gnu.org>
2323
2324 * configure.in: Take stab-syms.lo out of sparclinux_vec list.
2325 * configure: Rebuild.
2326
2327 Tue Feb 10 15:16:38 1998 Nick Clifton <nickc@cygnus.com>
2328 start-sanitize-m32rx
2329 * elf32-m32r.c (m32r_elf_merge_private_bfd_data): Do not complain
2330 when merging m32r BFDs into m32rx BFDs.
2331 end-sanitize-m32rx
2332 * elf32-v850.c (remember_hi16s_reloc): New function.
2333 (find_remembered_hi16s_reloc): New function.
2334 (v850_elf_store_addend_in_insn): Use the above new functions to
2335 match up HI6S relocs with LO16 relocs.
2336
2337 start-sanitize-sky
2338 Tue Feb 10 13:25:14 1998 Doug Evans <devans@canuck.cygnus.com>
2339
2340 * archures.c (bfd_mach_dvp_{vif,gif}): Renamed from ..._{pke,gpuif}.
2341 (bfd_txvu_arch): Delete.
2342 * cpu-mips.c (arch_info_struct): dvp:{vif,gif} renamed from
2343 dvp:{pke,gpuif}.
2344 * bfd-in2.h: Regenerate.
2345
2346 end-sanitize-sky
2347 Tue Feb 10 15:01:39 1998 Ian Lance Taylor <ian@cygnus.com>
2348
2349 * configure.in: Change -linux* to -linux-gnu*.
2350 * config.bfd, configure.host: Likewise.
2351 * configure: Rebuild.
2352
2353 Mon Feb 9 19:40:59 1998 Nick Clifton <nickc@cygnus.com>
2354
2355 * elf32-v850.c (v850_elf_store_addend_in_insn): Fix another
2356 LO16/HI16S bug and improve comments about what is going on.
2357
2358 Sat Feb 7 15:27:03 1998 Ian Lance Taylor <ian@cygnus.com>
2359
2360 * configure, aclocal.m4: Rebuild with new libtool.
2361
2362 start-sanitize-v850e
2363 Fri Feb 6 14:48:20 1998 Nick Clifton <nickc@cygnus.com>
2364
2365 * elf32-v850.c (v850_elf_merge_private_bfd_data): Do not complain
2366 when merging v850 code into v850e/v850ea code. Do not initialise
2367 output flags if the input is the default architecture.
2368 end-sanitize-v850e
2369 Fri Feb 6 11:50:22 1998 Jeffrey A Law (law@cygnus.com)
2370
2371 start-sanitize-r5900
2372 * cpu-mips.c (arch_info_struct): Make r5900 pointer size 32bits.
2373 end-sanitize-r5900
2374 * elf32-mips.c (bfd_elf32_bfd_reloc_type_lookup): For BFD_RELOC_CTOR
2375 get the size from bfd_arch_bits_per_address instead of directly
2376 from the isa.
2377
2378 Thu Feb 5 14:21:34 1998 Michael Meissner <meissner@cygnus.com>
2379
2380 * libbfd-in.h (BFD_ALIGN): If rounding up would cause the address
2381 to wrap, just return all 1's bits instead.
2382 * libbfd.h: Regenerate.
2383
2384 Thu Feb 5 11:51:05 1998 Ian Lance Taylor <ian@cygnus.com>
2385
2386 * coff-i386.c (coff_pe_i386_relocate_section): New static function
2387 if COFF_WITH_PE.
2388 (coff_relocate_section): If COFF_WITH_PE, define as
2389 coff_pe_i386_relocate_section.
2390 * coffcode.h (coff_write_object_contents): If COFF_IMAGE_WITH_PE,
2391 skip empty sections, to match coff_write_object_contents.
2392
2393 * elf64-mips.c (mips_elf64_swap_reloca_out): Swap out r_addend,
2394 rather than swapping out r_offset twice. From Luke Deller
2395 <luked@cse.unsw.edu.au>.
2396
2397 Wed Feb 4 19:11:28 1998 Ian Lance Taylor <ian@cygnus.com>
2398
2399 * configure.in: Set libtool_enable_shared rather than
2400 libtool_shared. Remove diversion hack.
2401 * configure, Makefile.in, doc/Makefile.in, aclocal.m4: Rebuild
2402 with new libtool.
2403
2404 Wed Feb 4 16:10:21 1998 Brent Baccala <baccala@freesoft.org>
2405
2406 * syms.c (struct stab_cache): Define.
2407 (struct stab_find_info): Remove cached_offset, cached_stab,
2408 cached_str, and cached_stroff fields. Add file_cache,
2409 function_cache, and line_cache fields.
2410 (_bfd_stab_section_find_nearest_line): Use extensive caching to
2411 speed up searches.
2412
2413 Wed Feb 4 13:34:22 1998 Ian Lance Taylor <ian@cygnus.com>
2414
2415 * peicode.h (pe_print_idata): Check for import of ordinal rather
2416 than name.
2417 (pe_print_edata): If there is no .edata section, look for the
2418 export data in some other section.
2419
2420 Mon Feb 2 20:05:42 1998 Jason Molenda (crash@bugshack.cygnus.com)
2421
2422 * configure.in: Change version to 2.8.4.
2423 * configure: Regenerated.
2424
2425 Mon Feb 2 17:39:39 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
2426
2427 Add tms320c30 support:
2428 * cpu-tic30.c: New file.
2429 * aout-tic30.c: New file.
2430 * coff-tic30.c: New file.
2431 * archures.c (bfd_arch_tic30): Define.
2432 (bfd_tic30_arch): Declare.
2433 (bfd_archures_list): Add bfd_tic30_arch.
2434 * targets.c (bfd_target_vector): Add tic30_aout_vec and
2435 tic30_coff_vec.
2436 * reloc.c (BFD_RELOC_TIC30_LDP): Define.
2437 * coffcode.h (coff_set_arch_mach_hook): Add tic30 case.
2438 (coff_set_flags): Likewise.
2439 * config.bfd (tic30-*-*aout*, tic30-*-*coff*): New targets.
2440 * configure.in (tic30_aout_vec, tic30_coff_vec): New vectors.
2441 * Makefile.am: Rebuild dependencies.
2442 (ALL_MACHINES): Add cpu-tic30.lo.
2443 (ALL_MACHINES_CFILES): Add cpu-tic30.c.
2444 (BFD32_BACKENDS): Add aout-tic30.lo and coff-tic30.lo.
2445 (BFD32_BACKENDS_CFILES): Add aout-tic30.c and coff-tic30.c.
2446 * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
2447
2448 Mon Feb 2 12:25:12 1998 Nick Clifton <nickc@cygnus.com>
2449
2450 * elf32-v850.c (v850_elf_store_addend_in_insn): Allow HI16_S reloc
2451 to lag behind LO16 reloc by a couple of instructions.
2452
2453 Mon Feb 2 14:09:46 1998 Ian Lance Taylor <ian@cygnus.com>
2454
2455 * Makefile.am ($(srcdir)/bfd-in2.h): Add dummy command to force
2456 make to reexamine the file timestamp.
2457 ($(srcdir)/libbfd.h, $(srcddir)/libcoff.h): Likewise.
2458
2459 * elf64-alpha.c (ELF_MAXPAGESIZE): Change to 0x10000 from
2460 0x100000.
2461
2462 start-sanitize-sky
2463 Fri Jan 30 17:48:17 1998 Doug Evans <devans@canuck.cygnus.com>
2464
2465 * elf32-mips.c (elf_mips_dvp_11_pcrel_howto): Set pcrel_offset=true
2466 and partial_inplace=false.
2467 (mips_elf_relocate_section): Recognize R_MIPS_DVP_11_PCREL.
2468
2469 end-sanitize-sky
2470 Fri Jan 30 19:07:07 1998 Geoff Keating <geoffk@ozemail.com.au>
2471
2472 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New procedure
2473 to create .dynsbss and .rela.sbss sections.
2474 (ppc_elf_adjust_dynamic_symbol): Put space for small data to be
2475 copied from dynamic objects into .sbss.
2476 (ppc_elf_size_dynamic_sections): Strip .rela.sbss if we don't
2477 use it. Correct typo of .rela.sdata2.
2478 (ppc_elf_finish_dynamic_symbol): Generate reloc to where we
2479 put the data, which may now be in .sbss.
2480 (ppc_elf_relocate_section): A SDAREL16 reloc can be in dynsbss.
2481 (elf_backend_create_dynamic_sections): Define as
2482 ppc_elf_create_dynamic_sections.
2483
2484 * elf32-ppc.c (ppc_elf_check_relocs): Don't emit R_PPC_REL* relocs
2485 against _GLOBAL_OFFSET_TABLE_.
2486 (ppc_elf_relocate_section): Don't emit R_PPC_REL32 relocs in
2487 shared libraries which refer to local symbols. Make sure that the
2488 test for allocating space for a reloc in a shared object is the
2489 same as the test for emitting a reloc.
2490
2491 start-sanitize-sky
2492 Thu Jan 29 17:44:53 1998 Doug Evans <devans@canuck.cygnus.com>
2493
2494 * elf32-mips.c: Add dvp support.
2495
2496 end-sanitize-sky
2497 Thu Jan 29 15:55:35 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
2498
2499 * config.bfd (i[3456]-*-mingw32*): New target.
2500 * acinclude.m4 (BFD_BINARY_OPEN): Check for mingw32.
2501 * aclocal.m4, configure: Rebuild.
2502
2503 start-sanitize-sky
2504 Wed Jan 28 15:14:28 1998 Doug Evans <devans@canuck.cygnus.com>
2505
2506 * config.bfd, configure.in: Add dvp support.
2507 * configure: Regenerate.
2508 * aclocal.m4: Regenerate.
2509 * archures.c, reloc.c, cpu-mips.c: Add dvp support.
2510 * bfd-in2.h, libbfd.h, libcoff.h: Regenerate.
2511
2512 end-sanitize-sky
2513 Wed Jan 28 13:41:26 1998 Ian Lance Taylor <ian@cygnus.com>
2514
2515 * elf.c (_bfd_elf_close_and_cleanup): Only check the strtab if we
2516 have a bfd_object.
2517
2518 Tue Jan 27 21:43:55 1998 Richard Henderson <rth@cygnus.com>
2519
2520 Sparc v9 ABI compliant PLT:
2521 * elf64-sparc.c (PLT_HEADER_SIZE): V9 ABI uses 4 entries.
2522 (plt_templates, sparc64_elf_build_plt_entry): Delete.
2523 (LARGE_PLT_THRESHOLD): New define.
2524 (GOT_RESERVED_ENTRIES): V9 ABI only uses 1.
2525 (sparc64_elf_build_plt): New function.
2526 (sparc64_elf_plt_entry_offset): Likewise.
2527 (sparc64_elf_plt_ptr_offset): Likewise.
2528 (sparc64_elf_adjust_dynamic_symbol): Change h->plt_offset to
2529 contain the index for convenience. Skip the initial entries
2530 in .rela.plt.
2531 (sparc64_elf_size_dynamic_sections): Zero the allocated contents
2532 memory for the benefit of .rela.plt.
2533 (sparc64_elf_relocate_section): Call sparc64_elf_plt_entry_offset.
2534 (sparc64_elf_finish_dynamic_symbol): Kill template stuff. Use
2535 sparc64_elf_plt_entry_offset & sparc64_elf_plt_ptr_offset for reloc.
2536 (sparc64_elf_finish_dynamic_sections): DT_PLTGOT points to .plt.
2537 Call sparc64_elf_build_plt.
2538 (elf_backend_want_got_plt): No.
2539 (elf_backend_plt_readonly): No.
2540 (elf_backend_plt_alignment): 8.
2541
2542 * elf.c (_bfd_elf_close_and_cleanup): New function; free the shstrtab.
2543 * elf-bfd.h (_bfd_elf_close_and_cleanup): Declare it.
2544 * elfxx-target.h (bfd_elfNN_close_and_cleanup): Arrange for it
2545 to be called.
2546
2547 Tue Jan 27 21:45:15 1998 Jeffrey A Law (law@cygnus.com)
2548
2549 * archures.c (bfd_mach_mips*): Add definitions for various MIPS
2550 processors.
2551 * cpu-mips.c (arch_info_struct): Add mips variants.
2552 * bfd-in2.h: Rebuilt.
2553
2554 Tue Jan 27 15:06:04 1998 Nick Clifton <nickc@cygnus.com>
2555
2556 * coff-arm.c (coff_arm_relocate_section): Preserve the contents of
2557 t2a3_b_insn.
2558
2559 Tue Jan 27 12:47:27 1998 Robert Lipe <robertl@dgii.com>
2560
2561 * config.bfd (i[3456]86-sco3.2v5*): ELF now the default.
2562 (i[3456]86sco3.2v5*coff): New target.
2563
2564 Mon Jan 26 15:41:30 1998 Ian Lance Taylor <ian@cygnus.com>
2565
2566 * bfd-in2.h: Rebuild with changes to chew--tab expansion.
2567
2568 Thu Jan 22 21:26:48 1998 Richard Henderson <rth@cygnus.com>
2569
2570 * bfd.c (bfd_get_error_handler): Add orthogonal function.
2571 * bfd-in2.h: Regenerate.
2572
2573 Thu Jan 22 21:13:39 1998 Richard Henderson <rth@cygnus.com>
2574
2575 * tekhex.c (tekhex_write_object_contents): Check for no symbols.
2576
2577 Wed Jan 21 21:19:03 1998 Ian Lance Taylor <ian@cygnus.com>
2578
2579 * coff-i386.c (coff_i386_rtype_to_howto): If COFF_WITH_PE, don't
2580 adjust addend for an output common symbol (from Jimmy Blair
2581 <jimmyb@wrs.com>). If COFF_WITH_PE, adjust addend for PC relative
2582 defined symbol to counteract adjustment made in generic relocation
2583 code.
2584
2585 * dwarf2.c: Include sysdep.h, not stdio.h and stdlib.h.
2586
2587 Wed Jan 21 21:16:06 1998 Manfred Hollstein <manfred@s-direktnet.de>
2588
2589 * coff-m88k.c (GET_SCNDHR_NRELOC): Fix typo in macro name.
2590 (GET_SCNDHR_NLNNO): Likewise.
2591
2592 Mon Jan 19 12:49:52 1998 Ian Lance Taylor <ian@cygnus.com>
2593
2594 * cpu-sh.c (arch_info_struct): Correct next field of sh3e.
2595
2596 Wed Jan 14 17:23:27 1998 Nick Clifton <nickc@cygnus.com>
2597
2598 * elf32-m32r.c: Add macros to handle NOP insertion.
2599
2600 Wed Jan 14 16:15:22 1998 Richard Henderson <rth@cygnus.com>
2601
2602 * xcofflink.c (xcoff_mark_symbol): Don't mark the absolute section.
2603 (xcoff_mark): Likewise.
2604 (xcoff_build_ldsyms): Mark absolute symbols.
2605
2606 Wed Jan 14 16:03:11 1998 Richard Henderson <rth@cygnus.com>
2607
2608 * bout.c (b_out_write_object_contents): Sort symbols before output
2609 to keep {CALL,BAL}NAME symbols adjacent.
2610 (b_out_symbol_cmp): New function.
2611
2612 For older changes see ChangeLog-9697
2613 \f
2614 Local Variables:
2615 mode: change-log
2616 left-margin: 8
2617 fill-column: 74
2618 version-control: never
2619 End:
This page took 0.083712 seconds and 5 git commands to generate.