Add line separator character.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
86355327
NC
11998-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
ed9f8d94
ILT
6Tue 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
fa2b5a73
ILT
20Tue 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
a0acbf4a
ILT
50Tue Dec 8 16:21:35 1998 Ian Lance Taylor <ian@cygnus.com>
51
fa2b5a73
ILT
52 * hpux-core.c (hpux_core_core_file_p): Change call to nonexistent
53 warning function to call _bfd_error_handler instead.
54
943695fc
ILT
55 * libbfd.c (COERCE32): Cast through unsigned long and long to
56 avoid bug in old version of gcc.
57
a0acbf4a
ILT
58 * elf64-alpha.c (elf64_alpha_additional_program_headers): Remove.
59 (elf_backend_additional_program_headers): Don't define.
60
811c57ff
NC
611998-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
8ecd559a
DT
67Wed 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
8f34fce5
NC
1131998-12-07 Nick Clifton <nickc@cygnus.com>
114
115 * elf32-fr30.c (fr30_final_link_relocate): Using signed
116 relocations for signed values.
117
884949db
ILT
118Sun Dec 6 16:30:33 1998 Ian Lance Taylor <ian@cygnus.com>
119
b447de7a
ILT
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
20a7eb60
ILT
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
8dabc985
ILT
134 * elf.c (copy_private_bfd_data): Always initialize the
135 includes_phdrs field.
136
e9814417
ILT
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
859a615e
ILT
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
fa062871
ILT
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
884949db
ILT
151 * config.bfd (m68*-*-gnu*): New target. From Aymeric Vincent
152 <aymeric.vincent@emi.u-bordeaux.fr>.
153
cc95a2d5
JB
1541998-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,
71812ec5 158 -mrelocatable, or neither. (gdb.base/nodebug.exp)
cc95a2d5
JB
159
1601998-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
167Wed 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
27f7e91a
UD
1721998-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
16636918
JW
178Tue 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
1ab49c84
NC
1841998-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
c2d4e431
JR
189Mon 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
5825dfc5
RH
198Fri 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
3f298868
DB
203Thu 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
8cde3351
DD
2081998-11-25 DJ Delorie <dj@cygnus.com>
209
210 * coff-i386.c (i3coff_object_p): Remove hack. Use new emulation
211 hook now.
212
cb4ec686
NC
213Tue 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.
226c1993
NC
220 (fr30_elf_pc9_reloc): New function: Handle 9_PCREL relocs.
221 (fr30_elf_pc12_reloc): New function: Handle 12_PCREL relocs.
cb4ec686
NC
222
223 * elf32-v850.c (v850_elf_relocate_section): Reset hi16s reloc
224 chain to empty.
27f7e91a 225
cb4ec686
NC
226 The following changes are based on a patch submitted by Gianluca
227 Moro <glctr@abc.it>:
27f7e91a 228
cb4ec686
NC
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
11dddcef
DD
2361998-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
b7de6a0d
DD
2431998-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
e203d469
NC
248Fri Nov 20 14:21:36 1998 Nick Clifton <nickc@cygnus.com>
249
250 * elf32-fr30.c (fr30_elf_relocate_section): Remove spurious
27f7e91a 251 warnings.
e203d469 252
4aeb051e 253Thu Nov 19 14:42:15 1998 Geoffrey Noer <noer@cygnus.com>
aba19543
GN
254
255 * aclocal.m4: regenerate
256 * configure: regenerate
257
468bc0c5
RH
258Tue 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
82ef568c
NC
268Tue 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
949fae0b 273Mon Nov 16 22:19:21 1998 DJ Delorie <dj@cygnus.com>
020917f9
DD
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
44e7cd63
DB
286Mon Nov 16 19:15:19 1998 Dave Brolley <brolley@cygnus.com>
287
288 * po/bfd.pot: Regenerated.
289
45cac0cb
NC
290Mon 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
34c304a7
RH
295Sun 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
dc52ee8c
ILT
302Sat 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
e9928289
DB
309Thu Nov 12 19:19:54 1998 Dave Brolley <brolley@cygnus.com>
310
311 * po/bfd.pot: Regenerated.
312
9dfa8076
GN
313Tue Nov 10 16:17:06 1998 Geoffrey Noer <noer@cygnus.com>
314
ea42e2d8 315 * acinclude.m4, config.bfd: detect cygwin* instead of cygwin32*.
9dfa8076
GN
316 * aclocal.m4, configure: regenerate
317
ac0442dd
NC
318Tue Nov 10 15:13:59 1998 Nick Clifton <nickc@cygnus.com>
319
320 * elf.c (prep_headers): Add support for bfd_arch_fr30.
321
e92a168f
FL
322Tue 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.
27f7e91a 328
970e0ba2
CM
329Tue 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
446b878f
ILT
342Sat 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
4aeed4f2
NC
350Wed 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.
27f7e91a 358 * targets.c: Add support for FR30 relocations.
4aeed4f2
NC
359 * bfd-in2.h: Regenerate.
360 * configure: Regenerate.
361 * libbfd.h: Regenerate.
362 * cpu-fr30.c: New file.
363 * elf32-fr30.c: New file.
27f7e91a 364
1c18e77a
GN
365Mon Nov 2 14:59:33 1998 Geoffrey Noer <noer@cygnus.com>
366
367 * configure.in: detect cygwin* instead of cygwin32*
368 * configure: regenerate
369
be70e54c
JL
370Sun 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
9f83f953
ILT
375Sun 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
02be03db
ILT
397Sun 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
7a62c80b
JL
403Sat Oct 31 20:10:09 1998 Jeffrey A Law (law@cygnus.com)
404
405 * elf32-ppc.c (ppc_elf_reload_section): Fix typo.
406
5c2ad07f
UD
4071998-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
420Mon 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
fa03589c
FL
429Mon 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
2c54bc60
FL
434Mon 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.
5c2ad07f 438
2c54bc60
FL
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
09878672
CM
446Fri 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
a11380f1
NC
456Mon Oct 12 14:18:40 1998 Nick Clifton <nickc@cygnus.com>
457
09878672 458 * coff-arm.c (arm_relocate_section): Remove redundant test.
5c2ad07f 459
a148e678
NC
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.
5c2ad07f 463
a148e678
NC
464 * elf32-m32r.c (R_M32R_18_PCREL): Fix size of bitfield.
465
a11380f1
NC
466 * coff-mips.c (mips_relocate_hi): Cope with missing refhi or reflo
467 relocs.
468
469Tue Oct 6 09:20:44 1998 Catherine Moore <clm@cygnus.com>
5c2ad07f 470
a11380f1
NC
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.
5c2ad07f 478
8e40ea4b
JL
479Mon 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
ecd41d25
GRK
484Mon 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.
5c2ad07f 489 * elf.c (_bfd_elf_find_nearest_line): Add call to
ecd41d25 490 _bfd_dwarf1_find_nearest_line.
5c2ad07f 491 * elf32-mips.c (_bfd_mips_elf_find_nearest_line):
ecd41d25
GRK
492 Add call to _bfd_dwarf1_find_nearest_line.
493 * configure: Rebuilt.
494
6342b062
CM
495Mon 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
2bbf16bf
CM
500Mon 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
1b9dc864
CM
512Mon 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
cba6760b
ILT
517Sun 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.
5c2ad07f 521 (rs6000coff_get_section_contents): Declare count as bfd_size_type.
cba6760b 522
6886ab29
JL
523Sun 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
0f529d8c
ILT
531Sun Oct 4 21:19:09 1998 Ian Lance Taylor <ian@cygnus.com>
532
1bec01fc
ILT
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
0f529d8c
ILT
538 * elf32-i386.c (elf_i386_info_to_howto_rel): Handle vtable relocs
539 correctly.
540
5411998-09-27 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
542
543 * elflink.h (elf_link_add_object_symbols): Undo last change.
544
c4a00a83
RH
545Wed 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
74db0d03
CM
550Mon 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
776c436d
ILT
557Sun 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
8b77a7d9
ILT
564Sun 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.
09832674
ILT
568
569 * libbfd.c (bfd_log2): Cast to bfd_vma before shifting, not
8b77a7d9 570 after.
09832674 571
d7298d8f
ILT
572Sat 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
618e96a0
NC
577Fri 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
f5ec493e
NC
582Thu 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
93893904
RH
587Thu 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
bc2c7e53
NC
597Wed 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
93893904
RH
602Wed 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.
5c2ad07f 609
9c682261
CM
610Wed Sep 16 11:26:49 CDT 1998 Catherine Moore <clm@cygnus.com>
611
5c2ad07f 612 * elf32-arm.c (elf32_arm_gc_mark_hook): Remove print
9c682261
CM
613 statement.
614
5df02296
VM
6151998-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
a2dd26e9
CM
622Tue 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
626Tue Sep 15 08:34:40 1998 Catherine Moore <clm@cygnus.com>
948beb4a 627
948beb4a
CM
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
7194b91a
RH
6391998-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
a61c9386
NC
644Wed 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
ebe909d2
PS
650Mon 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
c84d3d69
ILT
654Sat 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
35ac82f2
RH
660Fri 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
37b68f72
RH
667Thu 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
c2242569
RH
672Mon 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
bb3b4377
CM
677Mon 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
68631a86
RH
692Fri 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
09e5322a
RH
698Fri 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
774852e9
NC
710Thu 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().
09e5322a 717
a6ac3b6b
MS
718Thu 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
b64beb2d
MS
723Wed 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).
5c2ad07f 727 * elf-bfd.h (_bfd_elf_write_corefile_contents,
b64beb2d 728 bfd_elf_mkcorefile): declare.
5c2ad07f 729 * elfxx-target.h (_bfd_elf_write_corefile_contents,
b64beb2d 730 bfd_elf_mkcorefile): add to bfd_target vector.
5c2ad07f 731 * elfcore.h (elf_core_file_p): save the program header table,
b64beb2d
MS
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.
5c2ad07f 741
b64beb2d
MS
742 * elf32-sparc.c (elf32_sparc_final_write_processing):
743 add break statement to default case.
5c2ad07f 744
b49867b6
VM
7451998-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
2c3c46ad
CM
753Tue 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,
09e5322a
RH
756 elf32_arm_allocate_interworking_sections and
757 elf32_arm_process_before_allocation.
2c3c46ad
CM
758
759Tue 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.
5c2ad07f 764
2c3c46ad
CM
765 * bfd-in2.h: Regenerate.
766
803f5d55
RH
767Sat Aug 15 20:55:08 1998 Richard Henderson <rth@cygnus.com>
768
769 * elf64-alpha.c (elf64_alpha_relax_section): Handle indirect symbols.
770
a05d3537
SC
771Fri 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
a05d3537
SC
776Thu 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
cb5fa481
ILT
801Wed 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
24ec5f63
ILT
807Wed Aug 12 14:48:33 1998 Ian Lance Taylor <ian@cygnus.com>
808
809 * libaout.h: Remove nested comment to avoid warning.
810
24ec5f63
ILT
811Wed 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
a17e14c1
CM
816Tue Aug 11 14:42:26 1998 Catherine Moore <clm@cygnus.com>
817
818 * elf32-arm.c (elf32_arm_final_link_relocate): Remove unused
24ec5f63
ILT
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
5c2ad07f 822 sym_flags to elf32_arm_final_link_relocate.
a17e14c1 823
176e2f25
RH
824Mon 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
829Mon 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
7993f96a
RH
837Mon 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
70c73209
ILT
842Mon 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
cb43e2a9
CM
847Sun 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
382fab1a
RH
852Sat 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
0e7361bc
NC
859Wed 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
82912e99
ILT
867Mon 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
c95f174a
RH
873Sun 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
5530d45d
UD
8801998-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
7cebe50a
CM
885Fri 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
7cebe50a
CM
898Tue 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
5c2ad07f 913
5639074c
NC
914Fri 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
06992a45
JL
919Fri Jul 24 11:24:29 1998 Jeffrey A Law (law@cygnus.com)
920
88ac1a5e 921start-sanitize-am33
8417b624
JL
922 * elf-m10300.c (mn10300_elf_relax_section): Fix typo when relaxing
923 from 24bit operand to an 8bit operand.
924
88ac1a5e
JL
925 * elf-m10300.c (mn10300_elf_relax_section): Do not relax "dmul",
926 "dmulu", "dmach", "dmachu" with 32bit operands.
927end-sanitize-am33
928
06992a45
JL
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.
932start-sanitize-am33
933 (mn10300_elf_relax_section): Support relaxing on the am33.
934end-sanitize-am33
935
e2e8e76b
ILT
936Fri Jul 24 12:36:04 1998 Ian Lance Taylor <ian@cygnus.com>
937
938start-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
947end-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
30471c22
UD
9541998-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
650a2272
DE
959Thu 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
d5394da7
JL
964Thu Jul 23 11:29:43 1998 Jeffrey A Law (law@cygnus.com)
965
91b9fccd
JL
966start-sanitize-am33
967 * elf-m10300.c (compute_function_info): Keep track of stack space
968 needed by am33 movm instruction variant.
969end-sanitize-am33
970
d5394da7
JL
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
511068f6
ILT
980Thu 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
873e2f6a
UD
9851998-07-22 Ulrich Drepper <drepper@cygnus.com>
986
987 * elf32-ppc.c: Change use of pp_reloc_type to elf_ppc_reloc_type.
988
6ff4269b
NC
989Wed 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
043e6949
UD
9951998-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
c1366193
NC
1001Wed 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
043e6949 1005 prblems.
c1366193
NC
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
7ae26f27
ILT
1010Wed 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
767af63c
UD
10211998-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.
91e32e23
UD
1025 * elf32-mips.c: Likewise.
1026 * elf32-ppc.c: Likewise.
767af63c 1027
39e4bca4
ILT
1028Wed 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
92a7119c
UD
10331998-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
1038Tue 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
965d5a46
RH
1046Mon 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
490e0e13
ILT
1060Mon 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
c3da0ebf
ILT
1068Wed 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
1072start-sanitize-beos
1073Tue Jul 14 15:30:59 1998 Richard Henderson <rth@cygnus.com>
1074
1075 * config.bfd (i?86-pc-beos{pe,elf,}*): Recognize.
1076
1077end-sanitize-beos
be228e0d
ILT
1078Tue 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
bb51198f
ILT
1116Tue Jul 14 11:18:14 1998 Ian Lance Taylor <ian@cygnus.com>
1117
be228e0d
ILT
1118 * elflink.h (elf_gc_sections): Return true rather than falling off
1119 the bottom.
1120
bb51198f
ILT
1121 * coffgen.c (bfd_coff_set_symbol_class): Call bfd_alloc, not
1122 xmalloc.
1123
86546292
NC
1124Mon 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
6d138e6f
ILT
1131Mon 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
81d195ae
ILT
1136Fri 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
ab1d35b4
ILT
1142Wed 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
3f4444e0
JL
1147Tue Jul 7 21:47:02 1998 Jeffrey A Law (law@cygnus.com)
1148
1149 * som.c (som_bfd_gc_sections): Define.
1150
384fff9c
NC
1151Mon 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
69c3ef08
ILT
1157Sat 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
81db6a9e
ILT
1163Fri Jul 3 13:11:35 1998 Ian Lance Taylor <ian@cygnus.com>
1164
69c3ef08
ILT
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
369ee5df
ILT
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
81db6a9e
ILT
1173 * stabs.c (_bfd_write_stab_strings): Check whether the .stabstr
1174 section was discarded from the link.
1175
06fdc311 1176Fri Jul 3 14:39:05 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
a83a26f7
JR
1177
1178 * coff-sh.c (sh_insn_uses_freg): Ignore lowest bit of register number.
1179
06fdc311 1180Fri Jul 3 14:35:48 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
0ea9d7bc
JR
1181
1182 * coff-sh.c (sh_insns_conflict): Load of fpscr conflicts with
1183 floating point operations.
1184
bf47f022
ILT
1185Thu 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
0dc4c667
ILT
1190Thu 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
1218Thu 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
9e7e5d5e
NC
1225Wed 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
70f54910
ILT
1230Wed 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
7ec96df5
JL
1236Tue Jun 30 09:55:03 1998 Jeffrey A Law (law@cygnus.com)
1237
39f5104e
JL
1238 * section.c (STD_SECTION): Account for recently added gc_mark
1239 field in struct asection.
1240
7ec96df5
JL
1241 * elf-m10300.c (bfd_mn10300_elf_merge_private_bfd_data): New function.
1242 (bfd_elf32_bfd_merge_private_bfd_data): Define.
1243
303b4cc6
RH
1244Thu 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
92a7119c 1274 for unions.
303b4cc6
RH
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
4db4e912
JL
1310Fri 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.
1319start-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.
1323end-sanitize-am33
1324
9ea28a85
NC
1325Thu Jun 25 18:31:08 1998 Nick Clifton <nickc@cygnus.com>
1326
1327 * elf32-v850.c (v850_elf_perform_relocation): Fix HI16_S
92a7119c 1328 relocation.
9ea28a85 1329
146f8b77
ILT
1330Wed 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
1335Sun 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
ae49bab6
ILT
1341Fri 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
a57fc6b9
DE
1353start-sanitize-sky
1354Thu 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
1362end-sanitize-sky
ae49bab6
ILT
1363Tue 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
365fac52
TT
1369Fri 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
37fcafe6
DE
1374Fri 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
5aa6fe96
NC
1381Mon 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
7c3b369d
NC
1386Sat Jun 6 00:31:21 1998 Nick Clifton <nickc@cygnus.com>
1387
0203fbf2
NC
1388 * elf32-m32r.c: Add prototyps for static functions.
1389
92a7119c 1390 * coff-arm.c: Add prototypes for static functions.
7c3b369d 1391
c84c3b96
NC
1392Fri Jun 5 17:21:51 1998 Nick Clifton <nickc@cygnus.com>
1393
40afcc4c
NC
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
c84c3b96
NC
1397 * elf32-v850.c: Add prototypes for static functions.
1398 Change type of addend parameter to bfd_vma in various functions.
1399
118bd595
ILT
1400Fri 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
5e3da1b0
ILT
1405Fri 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
2edb8195
ILT
1410Wed 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
24a459d6
DE
1415start-sanitize-sky
1416Wed 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
1421end-sanitize-sky
f5bb0acb
SC
1422Wed 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
cfba9ab0
NC
1427Tue 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
d212bfa7
ILT
1432Tue Jun 2 15:29:35 1998 Ian Lance Taylor <ian@cygnus.com>
1433
0e039bdc
ILT
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
d212bfa7
ILT
1439 * elf32-mips.c (mips_elf_relocate_section): If we issue an
1440 undefined symbol error, don't also issue an overflow error.
1441
defc0050
ILT
1442Tue 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
9591998d
ILT
1448Mon 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
5872728a
NC
1459Mon 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
179ac41c
ILT
1465Mon 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
edac2b4c
DE
1470start-sanitize-sky
1471Sun 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
1479end-sanitize-sky
e5fc7809
NC
1480Fri 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
fc23c14e
SC
1485Tue 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.
fc23c14e
SC
1494 * libbfd.h (bfd_reloc_code_real_names): Added BFD_RELOC_SPARC_32LE.
1495 * reloc.c: Same.
fc23c14e 1496 * cpu-sparc.c (arch_info_struct): Added sparc:sparclite_le
fc23c14e 1497 * archures.c (bfd_mach_sparc_sparclite_le): New.
e838aeea
SC
1498 * bfd-in2.h (BFD_RELOC_SPARC_32LE, bfd_mach_sparc_sparclite_le): New.
1499
5422c749
NC
1500Thu May 21 16:59:28 1998 Nick Clifton <nickc@cygnus.com>
1501
1502 * peicode.h (add_data_entry): Fix precedence of operators in if ()
92a7119c 1503 statement.
5422c749 1504
71842815
ILT
1505Tue 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
be461cc3
NC
1513Mon 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
b0f7df06
RH
1518Mon 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
7c511326
NC
1525Thu 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
1535Sun May 10 22:33:59 1998 Jeffrey A Law (law@cygnus.com)
1536
1537 * po/Make-in (install-info): New target.
1538
980381af
ILT
1539Thu 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
4c7f1d41
ILT
1566Thu 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
f5916da7
GRK
1571Wed 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
97ec511f
RH
1581Tue 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
80d30ced
ILT
1586Tue 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
fc8ff72d
TT
1591Tue 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
4aa65bb8
RH
1597Tue 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
1603Mon 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
766dcecc
TT
1610Mon May 4 10:08:18 1998 Tom Tromey <tromey@cygnus.com>
1611
1612 * libbfd.h: Rebuilt.
1613 * libbfd-in.h (_): Define as dgettext.
1614
d116929e
ILT
1615Mon 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
92769ae9
ILT
1623Wed 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
351fc10b
ILT
1636Tue 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
1142c241
JM
1641Tue Apr 28 12:16:57 1998 Jason Molenda (crash@bugshack.cygnus.com)
1642
1643 * config.bfd: Update OSR5/Unixware patterns.
1644
4d6f96eb
RH
1645Mon 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
0d3887ba
ILT
1650Mon Apr 27 11:49:55 1998 Ian Lance Taylor <ian@cygnus.com>
1651
d510976d
ILT
1652 * configure.in: Change version number to 2.9.4
1653 * configure: Rebuild.
1654
0d3887ba
ILT
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
dbcd157d
RH
1660Sat 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
2506b568
RH
1665Sat 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.
92a7119c 1670 (elf64_alpha_add_symbol_hook): Don't set SEC_LOAD or default
2506b568
RH
1671 alignment on .scommon.
1672 (elf64_alpha_merge_gots): Merge use counts as well.
1673
986c3691
RH
1674Sat 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
05c07e29
NC
1681Fri 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.
92a7119c 1685
05c07e29
NC
1686 * coff-arm.c (coff_arm_print_private_bfd_data): Add
1687 internationalisation of printed information.
1688
016b7b4b
ILT
1689Fri 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
701552a5
NC
1695Thu 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
1158ffaf
TT
1699Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
1700
1701 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
1702
fa466864
ILT
1703Wed 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
4725e922
TT
1708Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
1709
1710 * libbfd-in.h: Use `gettext' and not `dgettext' for now.
1711
3f4606a0
ILT
1712Wed Apr 22 12:53:40 1998 Ian Lance Taylor <ian@cygnus.com>
1713
a46abdd0
ILT
1714 * Makefile.am (INCLUDES): Add -I$(srcdir)/../intl -I../intl.
1715 * Makefile.in: Rebuild.
1716
3f4606a0
ILT
1717 * bfd-in2.h: Rebuild for Nick's changes.
1718
b65c6163
RH
1719Tue 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
53d3ce37
TT
1724Tue 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
d0f44984
PS
1740Tue 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
7d6d10f9
NC
1746Tue 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
92a7119c 1753 functions.
7d6d10f9 1754 * peicode.h: ARM specific code reorganised to conform to BFD
92a7119c 1755 coding conventions.
7d6d10f9 1756 * coffcode.h: ARM specific code reorganised to conform to BFD
92a7119c 1757 coding conventions.
7d6d10f9
NC
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
211b0be8
RH
1764Tue 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
1773Sat Apr 18 01:21:04 1998 Stan Cox <scox@cygnus.com>
1774
1775 * config.bfd: Added sparc86x support.
92a7119c 1776
14c683b2
JL
1777Fri 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
eb03bc25
RH
1782Thu Apr 16 13:49:00 1998 Richard Henderson <rth@cygnus.com>
1783
92a7119c 1784 * elf64-alpha.c (elf64_alpha_do_reloc_gpdisp): Do all gpdisp
eb03bc25
RH
1785 comparisons signed.
1786
25e8be1d
ILT
1787Thu Apr 16 11:43:33 1998 Ian Lance Taylor <ian@cygnus.com>
1788
216c36d9
ILT
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
b3c76255
ILT
1793 * targets.c (bfd_target_vector) [SELECT_VECS not defined]: Add
1794 bfd_elf32_powerpcle_vec.
1795
25e8be1d
ILT
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
69842d08
RH
1799Wed 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
b356d4af
RH
1820Wed 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
64596865
ILT
1826Wed 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
5a83fcdd
ILT
1831Mon 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
c24c4203
ILT
1840Fri 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
d6c3cfb5
MM
1845Wed 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
b7781f9f
GRK
1850Tue 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
d02731be
GRK
1865Tue 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
1d9ee924
ILT
1869Tue 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
78e700af
ILT
1875Mon Apr 6 14:06:40 1998 Ian Lance Taylor <ian@cygnus.com>
1876
1877 * Makefile.am (diststuff): New target.
1878 * Makefile.in: Rebuild.
1879
1fa0aaae
JL
1880Sun 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
56231d31
ILT
1885Sun 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
c4ffc67c
ILT
1891Fri 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
1900Wed 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
ed5e146b
ILT
1905Wed 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
b11b841b
JL
1910Tue 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
f3aa01e2
ILT
1915Mon 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
1922Mon 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
24bce4a2
ILT
1935Mon Mar 30 10:39:34 1998 Ian Lance Taylor <ian@cygnus.com>
1936
368802d1
ILT
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
24bce4a2
ILT
1940 * cpu-mips.c: Remove trailing comma at end of enumeration list.
1941
ac129350
ILT
1942Sat 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
f6727b90
ILT
1950Fri 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
197de3ba 2038Fri Mar 27 10:10:46 1998 Catherine Moore <clm@cygnus.com>
08eefd3e
ILT
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
f6727b90
ILT
2051Thu 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
8c11394a
NC
2057Thu 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
92a7119c 2061 coff_bfd_print_private_bfd_data.
8c11394a
NC
2062
2063 * coff-arm.c: Add prototypes for
2064 coff_arm_bfd_print_private_bfd_data and
92a7119c 2065 coff_arm_bfd_copy_private_bfd_data.
8c11394a 2066
38c574bb
NC
2067Wed 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
d04efb80
ILT
2078Wed 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
b35711c4
ILT
2086Wed Mar 25 13:59:24 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2087
ce6821a5
ILT
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.
d04efb80
ILT
2092 * mipsbsd.c (MY(write_object_contents)): Use bfd_mach_m68* rather
2093 than plain numbers.
ce6821a5
ILT
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
df5f44d1
ILT
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
b35711c4
ILT
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
0892d40b
RH
2111Wed 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
1719df74
ILT
2117Wed Mar 25 11:19:28 1998 Ian Lance Taylor <ian@cygnus.com>
2118
ce6821a5
ILT
2119 * libbfd-in.h (BFD_ALIGN): Cast this parameter to bfd_vma.
2120 * libbfd.h: Rebuild.
2121
df5f44d1
ILT
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
b35711c4
ILT
2127 * evax-alpha.c (evax_close_and_cleanup): Remove unused local
2128 variables er and er1.
2129
883f72a2
ILT
2130 * cpu-v850.c: Include <ctype.h>.
2131 (scan): Case isdigit argument to unsigned char.
2132
1719df74
ILT
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
b7f28e8f
ILT
2140Tue 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
615141db
ILT
2146Mon Mar 23 18:51:47 1998 Joel Sherrill <joel@OARcorp.com>
2147
2148 * config.bfd: (sh*-*-rtems*): Switched from ELF to COFF.
2149
454515c0
NC
2150Mon Mar 23 14:23:36 1998 Nick Clifton <nickc@cygnus.com>
2151
2152 * coff-arm.c: Add interworking functions to pe backends.
2153
2154start-sanitize-r5900
2155Sun 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
2163end-sanitize-r5900
2164Fri 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
a748b374
NC
2169Fri 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
5e04ff14 2173 and Tony Thompson.
a748b374
NC
2174 (aoutarm_std_reloc_howto): Fixed bitsize fields of rightshifted
2175 relocations. Patch courtesy of Jonathan Walton and Tony
5e04ff14 2176 Thompson.
a748b374 2177
f2caa39b
RH
2178Fri 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
41eca8a7
NC
2184Wed 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
2191Sun Mar 8 23:37:26 1998 Stan Cox <scox@equinox.cygnus.com>
2192
2193 * config.bfd (sparclite-*-elf*): Added.
2194
ad4413e6
GRK
2195start-sanitize-vr4320
2196Tue 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
2202end-sanitize-vr4320
3c9f13f4
ILT
2203Mon 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
b35d842d
UD
22121998-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
b1f09b63
ILT
2218Mon 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
2f53b8ff
RH
2225Sun Feb 22 20:39:00 1998 Richard Henderson <rth@cygnus.com>
2226
2227 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Don't create
b35d842d
UD
2228 a plt entry when we can determine that we authoritatively define
2229 the symbol.
2f53b8ff 2230
07fafd5d
RH
2231Sun 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
2238start-sanitize-sky
2239Thu 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
2249end-sanitize-sky
2250Wed 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
58713764
DE
2258start-sanitize-sky
2259Tue 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
2263end-sanitize-sky
5290378a
ILT
2264Tue 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
6e639e5d
ILT
2270Fri Feb 13 13:11:33 1998 Ian Lance Taylor <ian@cygnus.com>
2271
004040c9
ILT
2272 * Makefile.am (AUTOMAKE_OPTIONS): Define.
2273 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
2274
cf4ce877 2275 From H.J. Lu <hjl@gnu.org>:
6e639e5d
ILT
2276 * Makefile.am (libbfd_la_LDFLAGS): Define.
2277 * Makefile.in: Rebuild.
2278
eee4e8ca
ILT
2279Thu Feb 12 17:31:11 1998 Ian Lance Taylor <ian@cygnus.com>
2280
f53bcd0a
ILT
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
eee4e8ca
ILT
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
ba475667
RH
2318Wed Feb 11 17:13:09 1998 Richard Henderson <rth@cygnus.com>
2319
2320 * tekhex.c (tekhex_write_object_contents): Call tekhex_init.
2321
2322Tue 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
9cca7762 2327Tue Feb 10 15:16:38 1998 Nick Clifton <nickc@cygnus.com>
bae2276c
NC
2328start-sanitize-m32rx
2329 * elf32-m32r.c (m32r_elf_merge_private_bfd_data): Do not complain
2330 when merging m32r BFDs into m32rx BFDs.
2331end-sanitize-m32rx
9cca7762
NC
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
9eb7b67b
DE
2337start-sanitize-sky
2338Tue 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
2346end-sanitize-sky
5303c574
ILT
2347Tue 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
6aa32b90
NC
2353Mon 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
7ee4e307
ILT
2358Sat Feb 7 15:27:03 1998 Ian Lance Taylor <ian@cygnus.com>
2359
2360 * configure, aclocal.m4: Rebuild with new libtool.
2361
75172c0f
NC
2362start-sanitize-v850e
2363Fri 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
8b6dcc1b 2366 when merging v850 code into v850e/v850ea code. Do not initialise
5e04ff14 2367 output flags if the input is the default architecture.
75172c0f 2368end-sanitize-v850e
9b47bc23
JL
2369Fri Feb 6 11:50:22 1998 Jeffrey A Law (law@cygnus.com)
2370
bb1fd71f 2371start-sanitize-r5900
6f84b00f 2372 * cpu-mips.c (arch_info_struct): Make r5900 pointer size 32bits.
bb1fd71f 2373end-sanitize-r5900
9b47bc23
JL
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
29b7118a
MM
2378Thu Feb 5 14:21:34 1998 Michael Meissner <meissner@cygnus.com>
2379
b494ec3e
MM
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.
29b7118a 2383
4ea65387
ILT
2384Thu Feb 5 11:51:05 1998 Ian Lance Taylor <ian@cygnus.com>
2385
1f286476
ILT
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
4ea65387
ILT
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
9a837903
ILT
2397Wed 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
68d864d7
ILT
2404Wed 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
7f84fa70
ILT
2413Wed 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
229811d1
JM
2420Mon 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
2425Mon 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
581d7269
NC
2448Mon 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
1a58a2d8
ILT
2453Mon Feb 2 14:09:46 1998 Ian Lance Taylor <ian@cygnus.com>
2454
229811d1
JM
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
1a58a2d8
ILT
2459 * elf64-alpha.c (ELF_MAXPAGESIZE): Change to 0x10000 from
2460 0x100000.
2461
c62a82b5
DE
2462start-sanitize-sky
2463Fri Jan 30 17:48:17 1998 Doug Evans <devans@canuck.cygnus.com>
2464
c44b38d7
DE
2465 * elf32-mips.c (elf_mips_dvp_11_pcrel_howto): Set pcrel_offset=true
2466 and partial_inplace=false.
c62a82b5
DE
2467 (mips_elf_relocate_section): Recognize R_MIPS_DVP_11_PCREL.
2468
2469end-sanitize-sky
8a5863be
ILT
2470Fri 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
3134a2bd
DE
2491start-sanitize-sky
2492Thu Jan 29 17:44:53 1998 Doug Evans <devans@canuck.cygnus.com>
2493
2494 * elf32-mips.c: Add dvp support.
2495
2496end-sanitize-sky
847b9629
ILT
2497Thu 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
36df40e0 2503start-sanitize-sky
06fdc311 2504Wed Jan 28 15:14:28 1998 Doug Evans <devans@canuck.cygnus.com>
36df40e0
DE
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
2512end-sanitize-sky
e6e3d4bd
ILT
2513Wed 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
16ce6205
RH
2518Tue 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.
b35d842d
UD
2528 (sparc64_elf_adjust_dynamic_symbol): Change h->plt_offset to
2529 contain the index for convenience. Skip the initial entries
16ce6205
RH
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.
b35d842d 2544 * elfxx-target.h (bfd_elfNN_close_and_cleanup): Arrange for it
16ce6205
RH
2545 to be called.
2546
29410c45
JL
2547Tue 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
ba6ea759
NC
2554Tue Jan 27 15:06:04 1998 Nick Clifton <nickc@cygnus.com>
2555
5e04ff14
ILT
2556 * coff-arm.c (coff_arm_relocate_section): Preserve the contents of
2557 t2a3_b_insn.
ba6ea759 2558
a3e62cc0
ILT
2559Tue Jan 27 12:47:27 1998 Robert Lipe <robertl@dgii.com>
2560
b35d842d 2561 * config.bfd (i[3456]86-sco3.2v5*): ELF now the default.
e6e3d4bd 2562 (i[3456]86sco3.2v5*coff): New target.
a3e62cc0 2563
f1dc7bb2
ILT
2564Mon 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
f3da1439
RH
2568Thu 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
31af3ca9
RH
2573Thu Jan 22 21:13:39 1998 Richard Henderson <rth@cygnus.com>
2574
2575 * tekhex.c (tekhex_write_object_contents): Check for no symbols.
2576
d7340050
ILT
2577Wed Jan 21 21:19:03 1998 Ian Lance Taylor <ian@cygnus.com>
2578
f5e23c73
ILT
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
d7340050
ILT
2585 * dwarf2.c: Include sysdep.h, not stdio.h and stdlib.h.
2586
bc01e4a2
ILT
2587Wed 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
e79e79cf
ILT
2592Mon 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
cc662e86
NC
2596Wed Jan 14 17:23:27 1998 Nick Clifton <nickc@cygnus.com>
2597
2598 * elf32-m32r.c: Add macros to handle NOP insertion.
2599
16b7d65d
RH
2600Wed 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
52dcb248
RH
2606Wed 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
06fdc311 2612For older changes see ChangeLog-9697
41126f15
JK
2613\f
2614Local Variables:
c6c7035c 2615mode: change-log
41126f15 2616left-margin: 8
6ec3bb6a
ILT
2617fill-column: 74
2618version-control: never
2619End:
This page took 0.393442 seconds and 4 git commands to generate.