Before include system specific ELF header define
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
767af63c
UD
11998-07-22 13:08 Ulrich Drepper <drepper@cygnus.com>
2
3 * elf-mn10300.c: Before include system specific ELF header define
4 START_RELOC_NUMBERS, RELOC_NUMBER, and END_RELOC_NUMBERS.
91e32e23
UD
5 * elf32-mips.c: Likewise.
6 * elf32-ppc.c: Likewise.
767af63c 7
39e4bca4
ILT
8Wed Jul 22 13:46:51 1998 Ian Lance Taylor <ian@cygnus.com>
9
10 * elf64-mips.c (mips_elf64_reloc_type): Copy Ulrich's elf32-mips.c
11 temporary patch over to elf64-mips.c as well.
12
92a7119c
UD
131998-07-21 Ulrich Drepper <drepper@cygnus.com>
14
15 * elf32-mips.c (reloc_type): Temporarily disable definition of
16 standard relocation since they are now defined in elf/mips.h.
17
18Tue Jul 21 09:47:00 1998 Catherine Moore <clm@cygnus.com>
19
20 * elf-m10200.c (mn10200_elf_final_link_relocate):
21 Modify range test for case R_MN10200_8.
22
23 * elf-m10300.c (mn10300_elf_final_link_relocate):
24 Modify range test for case R_MN10300_8.
25
965d5a46
RH
26Mon Jul 20 18:50:54 1998 Richard Henderson <rth@cygnus.com>
27
28 * elf-bfd.h (struct elf_backend_data): Add got_ & plt_header_size.
29 * elf32-i386.c (elf_backend_got_header_size): Define.
30 (elf_backend_plt_header_size): Define.
31 * elf32-m68k.c, elf32-mips.c, elf32-ppc.c: Likewise.
32 * elf32-sparc.c, elf64-alpha.c, elf64-sparc.c: Likewise.
33 * elfxx-target.h: Provide a default of zero.
34 * elflink.c (_bfd_elf_create_got_section): Use got_header_size.
35 * elflink.h (elf_gc_common_finalize_got_offsets): Likewise.
36
37 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't remove a PLT
38 entry from an executable, even if the plt refcount goes to 0.
39
490e0e13
ILT
40Mon Jul 20 12:47:26 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
41
42 * aoutx.h (NAME(aout,find_nearest_line)): Also remember the
43 directory name at the line number.
44
45 * elf.c (_bfd_elf_find_nearest_line): Also consider symbols
46 with an unspecified type.
47
c3da0ebf
ILT
48Wed Jul 15 11:20:01 1998 Ian Lance Taylor <ian@cygnus.com>
49
50 * sunos.c: Add undef of valid to avoid problem on SunOS.
51
52start-sanitize-beos
53Tue Jul 14 15:30:59 1998 Richard Henderson <rth@cygnus.com>
54
55 * config.bfd (i?86-pc-beos{pe,elf,}*): Recognize.
56
57end-sanitize-beos
be228e0d
ILT
58Tue Jul 14 11:22:21 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
59
60 * elf32-m68k.c (elf_m68k_check_relocs): Also reference count
61 R_68K_PCxx and R_68K_xx relocations. Make sure that
62 ELF_LINK_HASH_NEEDS_PLT is always set for a PLT reloc reference.
63 (elf_m68k_gc_sweep_hook): Also reference count R_68K_PCxx and
64 R_68K_xx relocations.
65 (elf_m68k_adjust_dynamic_symbol): Reset the plt offset of a symbol
66 that has no plt entry.
67 (elf_m68k_relocate_section): Ignore the plt offset in a static
68 link.
69 * elflink.h (elf_adjust_dynamic_symbol): Reset the plt offset for
70 an ignored symbol.
71 (elf_gc_common_finalize_got_offsets): Set the got offsets also in
72 a static link.
73
74 * elf32-m68k.c (R_68K_GNU_VTINHERIT, R_68K_GNU_VTENTRY): New reloc
75 types.
76 (howto_table, reloc_map): Add entries for them.
77 (elf_m68k_check_relocs): Handle them. Implement reference
78 counting for got and plt entries.
79 (elf_m68k_gc_mark_hook, elf_m68k_gc_sweep_hook): New functions.
80 (elf_m68k_adjust_dynamic_symbol): Handle unreferenced plt
81 symbols.
82 (rtype_to_howto_rel, elf_info_to_howto_rel): Delete.
83 (elf_m68k_relocate_section): Handle the new reloc types.
84 (bfd_elf32_bfd_final_link, elf_backend_gc_mark_hook,
85 elf_backend_gc_sweep_hook, elf_backend_can_gc_sections): Define.
86 * elflink.h (elf_link_add_object_symbols): When creating an
87 indirect reference for symbol versioning also copy the plt
88 offset.
89 (elf_fix_symbol_flags): When clearing the ELF_LINK_HASH_NEEDS_PLT
90 flag also reset the plt offset.
91 (elf_link_assign_sym_version): Likewise.
92 (elf_gc_common_finalize_got_offsets): Increment the got offset by
93 the size of the entry in bytes.
94 (elf_gc_allocate_got_offsets): Likewise.
95
bb51198f
ILT
96Tue Jul 14 11:18:14 1998 Ian Lance Taylor <ian@cygnus.com>
97
be228e0d
ILT
98 * elflink.h (elf_gc_sections): Return true rather than falling off
99 the bottom.
100
bb51198f
ILT
101 * coffgen.c (bfd_coff_set_symbol_class): Call bfd_alloc, not
102 xmalloc.
103
86546292
NC
104Mon Jul 13 11:06:31 1998 Nick Clifton <nickc@cygnus.com>
105
106 * coff-arm.c: Supress definition of TARGET_UNDERSCORE and add a
107 comment describing when it should be enabled.
108 Changed definition of USER_LABEL_PREFIX to "", to fall into line
109 with GCC sources.
110
6d138e6f
ILT
111Mon Jul 13 13:06:54 1998 Ian Lance Taylor <ian@cygnus.com>
112
113 * ieee.c (ieee_slurp_external_symbols): Handle call optimization
114 information ATN records.
115
81d195ae
ILT
116Fri Jul 10 16:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
117
118 * ieee.c (ieee_slurp_external_symbols): Select an appropriate
119 section for an absolute symbol in a fully linked file. Based on
120 patch from Christian Holland <CHolland@de.lucent.com>.
121
ab1d35b4
ILT
122Wed Jul 8 11:29:56 1998 Manfred Hollstein <manfred@s-direktnet.de>
123
124 * coff-m88k.c (m88k_special_reloc): Don't lose the information
125 that a symbol is undefined.
126
3f4444e0
JL
127Tue Jul 7 21:47:02 1998 Jeffrey A Law (law@cygnus.com)
128
129 * som.c (som_bfd_gc_sections): Define.
130
384fff9c
NC
131Mon Jul 6 11:35:50 1998 Nick Clifton <nickc@cygnus.com>
132
133 * coff-arm.c (aoutarm_std_reloc_howto): Do not complain about
134 overflows in ARM_26D patches, since they have already been
135 implmented. Patch submitted by Dr. R.J. Black <rjb@dcs.gla.ac.uk>
136
69c3ef08
ILT
137Sat Jul 4 12:25:36 1998 Ian Lance Taylor <ian@cygnus.com>
138
139 * coffcode.h (coff_write_object_contents): If we have any long
140 section names, call coff_write_symbols even if there are no
141 symbols.
142
81db6a9e
ILT
143Fri Jul 3 13:11:35 1998 Ian Lance Taylor <ian@cygnus.com>
144
69c3ef08
ILT
145 * elf.c (copy_private_bfd_data): Only set phdr_included once for a
146 PT_LOAD segment, rather than only setting it once for the entire
369ee5df
ILT
147 file.
148
149 * elf.c (_bfd_elf_make_section_from_shdr): When setting the LMA,
150 rather than ignoring every phdr with a p_paddr of 0, ignore all
151 the phdrs if they all have a p_paddr of 0.
152
81db6a9e
ILT
153 * stabs.c (_bfd_write_stab_strings): Check whether the .stabstr
154 section was discarded from the link.
155
06fdc311 156Fri Jul 3 14:39:05 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
a83a26f7
JR
157
158 * coff-sh.c (sh_insn_uses_freg): Ignore lowest bit of register number.
159
06fdc311 160Fri Jul 3 14:35:48 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
0ea9d7bc
JR
161
162 * coff-sh.c (sh_insns_conflict): Load of fpscr conflicts with
163 floating point operations.
164
bf47f022
ILT
165Thu Jul 2 18:37:25 1998 Ian Lance Taylor <ian@cygnus.com>
166
167 * cofflink.c (_bfd_coff_link_input_bfd): Skip undefined global
168 function symbols.
169
0dc4c667
ILT
170Thu Jul 2 14:59:42 1998 Klaus Kaempf <kkaempf@rmi.de>
171
172 Merge of vax/vms (read-only) support
173 * configure.com: Support Vax target.
174 * makefile.vms: Support Vax target.
175 * vms.h: Renamed from evax.h, merged vax/vms (read-only) support.
176 * vms.c: Renamed from evax-alpha.c, merged vax/vms (read-only)
177 support.
178 * vms-hdr.c: Renamed from evax-emh.c, merged vax/vms (read-only)
179 support.
180 * vms-gsd.c: Renamed from evax-egsd.c, merged vax/vms (read-only)
181 support.
182 * vms-tir.c: Renamed from evax-etir.c, merged vax/vms (read-only)
183 support.
184 * vms-misc.c: Renamed from evax-misc.c, merged vax/vms (read-only)
185 support.
186 * libbfd.c (real_read): Use unbuffered read on VMS/Vax.
187 * targets.c (bfd_target_ovax_flavour): New flavour.
188 (vms_alpha_vec): Renamed from evax_alpha_vec.
189 (vms_vax_vec): New.
190 (target_vector): Update accordingly.
191 * config.bfd (alpha*-*-*vms*): Use vms_alpha_vec, not
192 evax_alpha_vec.
193 (vax*-*-*vms*): New target.
194 * Makefile.am: Update for renamed files. Rebuild dependencies.
195 * bfd-in2.h: Rebuild.
196 * configure.in, Makefile.in, aclocal.m4: Rebuild.
197
198Thu Jul 2 13:31:55 1998 Ian Lance Taylor <ian@cygnus.com>
199
200 Based on patch from Matt Semersky <matts@scd.hp.com>:
201 * linker.c (_bfd_generic_final_link): Force a trailing NULL
202 pointer on abfd->outsymbols.
203 (generic_add_output_symbol): Handle NULL sym parameter.
204
9e7e5d5e
NC
205Wed Jul 1 17:05:53 1998 Nick Clifton <nickc@cygnus.com>
206
207 * elf.c (copy_private_bfd_data): Add support for changing VMA or
208 LMA of sections.
209
70f54910
ILT
210Wed Jul 1 16:58:50 1998 Ian Lance Taylor <ian@cygnus.com>
211
212 * coff-sh.c (sh_relax_delete_bytes): Correct address comparisons
213 when handling 32 bit immediate relocs.
214 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
215
7ec96df5
JL
216Tue Jun 30 09:55:03 1998 Jeffrey A Law (law@cygnus.com)
217
39f5104e
JL
218 * section.c (STD_SECTION): Account for recently added gc_mark
219 field in struct asection.
220
7ec96df5
JL
221 * elf-m10300.c (bfd_mn10300_elf_merge_private_bfd_data): New function.
222 (bfd_elf32_bfd_merge_private_bfd_data): Define.
223
303b4cc6
RH
224Thu Jun 25 18:31:41 1998 Richard Henderson <rth@cygnus.com>
225
226 ELF Section-level Garbage Collection:
227 * bfd.c (bfd_gc_sections): New.
228 * aout-adobe.c: Hook to default implementation.
229 * aout-target.h, aout-tic30.c, binary.c, bout.c: Likewise.
230 * coff-alpha.c, coff-mips.c, coff-rs6000.c, coffcode.h: Likewise.
231 * evax-alpha.c, i386msdos.c, i386os9k.c, ieee.c: Likewise.
232 * ihex.c, nlm-target.h, oasys.c, ppcboot.c, srec.c: Likewise.
233 * tekhex.c, versados.c: Likewise.
234 * libbfd-in.h (_bfd_nolink_bfd_gc_sections): New.
235 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_gc_sections.
236
237 * reloc.c (BFD_RELOC_VTABLE_INHERIT, BFD_RELOC_VTABLE_ENTRY): New.
238 (bfd_generic_gc_sections): New.
239 * section.c (SEC_KEEP): New.
240 (asection): Add gc_mark member.
241
242 * elfcode.h (elf_gc*): New name remappings.
243 * elflink.h (elf_link_input_bfd): Don't set contents on stabs
244 sections to be excluded.
245 (elf_gc_mark, elf_gc_sweep, elf_gc_sweep_symbol): New.
246 (elf_gc_propogate_vtable_entries_used): New.
247 (elf_gc_smash_unused_vtentry_relocs): New.
248 (elf_gc_sections, elf_gc_record_vtinherit, elf_gc_record_vtentry): New.
249 (elf_gc_common_finalize_got_offsets): New.
250 (elf_gc_allocate_got_offsets, elf_gc_common_final_link): New.
251 * elfxx-target.h: Add and default gc hooks.
252
253 * elf-bfd.h (struct elf_link_hash_entry): Swap got_offset/plt_offset
92a7119c 254 for unions.
303b4cc6
RH
255 (struct elf_obj_tdata): Likewise for local_got_offsets.
256 * elf.c, elf-i386.c, elf32-m68k.c, elf32-mips.c: Update all uses.
257 * elf32-ppc.c, elf32-sparc.c, elf64-alpha.c: Likewise.
258 * elf64-sparc.c, elflink.h: Likewise.
259
260 * elf-bfd.h (struct elf_link_hash_entry): Add vtable members.
261 (ELF_LINK_HASH_MARK): Define.
262 (struct elf_backend_data): Add GC hooks.
263 * elf.c (_bfd_elf_link_hash_newfunc): Zero vtable members.
264
265 * elf-m10300.c (mn10300_elf_check_relocs): New.
266 (mn10300_elf_gc_mark_hook): New.
267 (R_MN10300_GNU_VTINHERIT, R_MN10300_GNU_VTENTRY): New.
268 (elf_mn10300_howto, mn10300_reloc_map): Handle them.
269 (mn10300_elf_final_link_relocate): Likewise.
270 (mn10300_elf_relocate_section): Likewise.
271 (elf_backend_can_gc_sections): Define.
272 * elf32-mips.c (R_MIPS_GNU_VTINHERIT, R_MIPS_GNU_VTENTRY): New.
273 (elf_mips_gnu_vtinherit_howto, elf_mips_gnu_vtentry_howto): New.
274 (bfd_elf32_bfd_reloc_type_lookup): Handle them.
275 (mips_info_to_howto_rel): Likewise.
276 (mips_elf_relocate_section): Likewise.
277 (mips_elf_check_relocs): Likewise.
278 (mips_elf_gc_mark_hook, mips_elf_gc_sweep_hook): New.
279 (elf_backend_can_gc_sections): Define.
280 * elf32-ppc.c (R_PPC_GNU_VTINHERIT, R_PPC_GNU_VTENTRY): New.
281 (ppc_elf_howto_raw): Handle them.
282 (ppc_elf_reloc_type_lookup): Likewise.
283 (ppc_elf_relocate_section): Likewise.
284 (ppc_elf_check_relocs): Reference count .got and .plt entires.
285 Handle new vtable relocs.
286 (ppc_elf_adjust_dynamic_symbol): Recognize unused .plt entries.
287 (ppc_elf_gc_mark_hook, ppc_elf_gc_sweep_hook): New.
288 (elf_backend_can_gc_sections): Define.
289
4db4e912
JL
290Fri Jun 26 10:48:23 1998 Jeffrey A Law (law@cygnus.com)
291
292 * archures.c (bfd_mach_mn10300): Define.
293 * elf-m10300.c: Include elf/mn10300.h
294 (elf_mn10300_mach): New function.
295 (_bfd_mn10300_elf_final_write_processing): Likewise.
296 (_bfd_mn10300_elf_object_p): Likewise.
297 (elf_backendfinal_write_processing): Define.
298 (elf_backend_object_p): Likewise.
299start-sanitize-am33
300 * archures.c (bfd_mach_am33): Define.
301 * cpu-m10300.c (bfd_am33_arch): New arch info structure. Link it
302 into the NEXT field of bfd_mn10300_arch.
303end-sanitize-am33
304
9ea28a85
NC
305Thu Jun 25 18:31:08 1998 Nick Clifton <nickc@cygnus.com>
306
307 * elf32-v850.c (v850_elf_perform_relocation): Fix HI16_S
92a7119c 308 relocation.
9ea28a85 309
146f8b77
ILT
310Wed Jun 24 17:17:57 1998 Ian Lance Taylor <ian@cygnus.com>
311
312 * elflink.h (elf_bfd_final_link): Loop over input_bfds using the
313 link_next field, not the next field.
314
315Sun Jun 21 19:38:39 1998 Ian Lance Taylor <ian@cygnus.com>
316
317 * elf.c (map_sections_to_segments): Check the section address
318 against the phdr size both with and without a modulo of
319 maxpagesize.
320
ae49bab6
ILT
321Fri Jun 19 17:08:18 1998 Ian Lance Taylor <ian@cygnus.com>
322
323 * elf32-mips.c (mips_elf_size_dynamic_sections): Only strip a
324 linker created empty input section if the output section has the
325 same name.
326
327 * elflink.h (elf_link_output_extsym): Print an error message if
328 _bfd_elf_section_from_bfd_section fails.
329
330 * elf.c (_bfd_elf_section_from_bfd_section): Call bfd_set_error on
331 failure.
332
a57fc6b9
DE
333start-sanitize-sky
334Thu Jun 18 23:59:30 1998 Doug Evans <devans@seba.cygnus.com>
335
336 * reloc.c: New relocs BFD_RELOC_MIPS_DVP_11_S4,
337 BFD_RELOC_MIPS_DVP_U15_S3.
338 * elf32-mips.c: Handle them.
339 * bfd-in2.h: Regenerate.
340 * libbfd.h: Regenerate.
341
342end-sanitize-sky
ae49bab6
ILT
343Tue Jun 16 11:55:55 1998 Ian Lance Taylor <ian@cygnus.com>
344
345 * elf.c (copy_private_bfd_data): Improve handling of Solaris
346 native linker output. Avoid putting an empty section in more than
347 one segment.
348
365fac52
TT
349Fri Jun 12 13:30:17 1998 Tom Tromey <tromey@cygnus.com>
350
351 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
352 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
353
37fcafe6
DE
354Fri Jun 12 13:34:02 1998 Doug Evans <devans@canuck.cygnus.com>
355
356 * elf.c (swap_out_syms): New arg relocatable_p.
357 Don't add section VMA to symbols for relocatable output.
358 (_bfd_elf_compute_section_file_positions): Update call to
359 swap_out_syms.
360
5aa6fe96
NC
361Mon Jun 8 15:20:57 1998 Nick Clifton <nickc@cygnus.com>
362
363 * elf32-v850.c (v850_elf_perform_relocation): Make comparisons
364 against 'addend' be signed rather than unsigned.
365
7c3b369d
NC
366Sat Jun 6 00:31:21 1998 Nick Clifton <nickc@cygnus.com>
367
0203fbf2
NC
368 * elf32-m32r.c: Add prototyps for static functions.
369
92a7119c 370 * coff-arm.c: Add prototypes for static functions.
7c3b369d 371
c84c3b96
NC
372Fri Jun 5 17:21:51 1998 Nick Clifton <nickc@cygnus.com>
373
40afcc4c
NC
374 * elf.c (elf_sort_sections): Sort by LMA first then VMA, since the
375 LMA is used to order sections in a segment.
376
c84c3b96
NC
377 * elf32-v850.c: Add prototypes for static functions.
378 Change type of addend parameter to bfd_vma in various functions.
379
118bd595
ILT
380Fri Jun 5 18:09:58 1998 Ian Lance Taylor <ian@cygnus.com>
381
382 * aoutx.h (howto_table_ext): Change RELOC_BASE13 to use
383 complain_overflow_signed instead of complain_overflow_bitfield.
384
5e3da1b0
ILT
385Fri Jun 5 15:11:11 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
386
387 * elf.c (elf_map_symbols): Don't add section VMA to symbol value
388 when comparing against 0.
389
2edb8195
ILT
390Wed Jun 3 17:52:49 1998 Ian Lance Taylor <ian@cygnus.com>
391
392 * Makefile.am (config.status): New target.
393 * Makefile.in: Rebuild.
394
24a459d6
DE
395start-sanitize-sky
396Wed Jun 3 11:39:57 1998 Doug Evans <devans@canuck.cygnus.com>
397
398 * elf32-mips.c (_bfd_mips_elf_fake_sections): Update to use
399 Elf32_Dvp_External_Overlay instead of 64 bit version.
400
401end-sanitize-sky
f5bb0acb
SC
402Wed Jun 3 12:18:24 1998 Stan Cox <scox@equinox.cygnus.com>
403
404 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Give an
405 error if previous object endianness doesn't match current object.
406
cfba9ab0
NC
407Tue Jun 2 17:50:59 1998 Nick Clifton <nickc@cygnus.com>
408
409 * elf32-v850.c (v850_elf_print_private_bfd_data): Call
410 _bfd_elf_print_private)bfd_data ().
411
d212bfa7
ILT
412Tue Jun 2 15:29:35 1998 Ian Lance Taylor <ian@cygnus.com>
413
0e039bdc
ILT
414 * elflink.h (elf_merge_symbol): Don't always set type_change_ok
415 and size_change_ok.
416 (elf_link_add_object_symbols): Set type_change_ok and
417 size_change_ok before calling elf_merge_symbol.
418
d212bfa7
ILT
419 * elf32-mips.c (mips_elf_relocate_section): If we issue an
420 undefined symbol error, don't also issue an overflow error.
421
defc0050
ILT
422Tue Jun 2 13:51:00 1998 Geoff Keating <geoffk@ozemail.com.au>
423
424 * elf32-ppc.c (ppc_elf_relocate_section): The target of an
425 R_PPC_LOCAL24PC relocation should be local; if not, print an error
426 message instead of crashing.
427
9591998d
ILT
428Mon Jun 1 18:23:12 1998 Yuli Barcohen <yuli.barcohen@telrad.co.il>
429
430 * archures.c (bfd_mach_cpu32): Define.
431 (bfd_default_scan): Add case for 68060. Fix 68332 case to use
432 bfd_mach_cpu32.
433 * cpu-m68k.c (arch_info_struct): Add m68k:cpu32.
434 * ieee.c: Include <ctype.h>.
435 (ieee_object_p): Parse out process ID string to make it more
436 likely to be acceptable for bfd_scan_arch.
437 * bfd-in2.h: Rebuild.
438
5872728a
NC
439Mon Jun 1 11:12:02 1998 Nick Clifton <nickc@cygnus.com>
440
441 * elf32-m32r.c (m32r_elf_print_private_bfd_data): Also call
442 _bfd_elf_print_private_bfd_data() so that the program header will
443 be displayed.
444
179ac41c
ILT
445Mon Jun 1 12:14:28 1998 Ian Lance Taylor <ian@cygnus.com>
446
447 * peicode.h (coff_swap_sym_in): Check for C_SECTION rather than
448 0x68. Reindent. Add some comments.
449
edac2b4c
DE
450start-sanitize-sky
451Sun May 31 16:11:22 1998 Doug Evans <devans@canuck.cygnus.com>
452
453 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Set sh_link
454 field of .DVP.ovlytab to .DVP.ovlystrtab's section index.
455 (_bfd_mips_elf_section_from_shdr): Recognize SHT_DVP_OVERLAY_TABLE
456 and SHT_DVP_OVERLAY.
457 (_bfd_mips_elf_fake_sections): Ditto.
458
459end-sanitize-sky
e5fc7809
NC
460Fri May 29 09:58:08 1998 Nick Clifton <nickc@cygnus.com>
461
462 * elf.c (copy_private_bfd_data): Adjust physical address of
463 segment in output BFD to contain LMAs of its sections.
464
fc23c14e
SC
465Tue May 26 19:37:47 1998 Stan Cox <scox@equinox.cygnus.com>
466
467 * elf32-sparc.c (_bfd_sparc_elf_howto_table, sparc_reloc_map,
468 elf32_sparc_relocate_section): Added R_SPARC_32LE for little
469 endian data 32 bit relocations.
470 (elf32_sparc_merge_private_bfd_data): Check if linking little
471 endian objects with big endian objects.
472 (elf32_sparc_object_p): Set bfd_mach_sparc_sparclite_le.
473 (elf32_sparc_final_write_processing): Set EF_SPARC_LEDATA in e_flags.
fc23c14e
SC
474 * libbfd.h (bfd_reloc_code_real_names): Added BFD_RELOC_SPARC_32LE.
475 * reloc.c: Same.
fc23c14e 476 * cpu-sparc.c (arch_info_struct): Added sparc:sparclite_le
fc23c14e 477 * archures.c (bfd_mach_sparc_sparclite_le): New.
e838aeea
SC
478 * bfd-in2.h (BFD_RELOC_SPARC_32LE, bfd_mach_sparc_sparclite_le): New.
479
5422c749
NC
480Thu May 21 16:59:28 1998 Nick Clifton <nickc@cygnus.com>
481
482 * peicode.h (add_data_entry): Fix precedence of operators in if ()
92a7119c 483 statement.
5422c749 484
71842815
ILT
485Tue May 19 18:41:19 1998 Ian Lance Taylor <ian@cygnus.com>
486
487 * bfd-in.h: Move over patch to bfd-in2.h.
488
489 * reloc.c (bfd_check_overflow): Add casts before shifts which may
490 not fit in 32 bits.
491 (_bfd_relocate_contents): Likewise.
492
be461cc3
NC
493Mon May 18 14:44:15 1998 Nick Clifton <nickc@cygnus.com>
494
495 * peicode.h (add_data_entry): If the section has no private data
496 then do not create a Data Dictionary entry for it.
497
b0f7df06
RH
498Mon May 18 00:09:28 1998 Richard Henderson <rth@cygnus.com>
499
500 * elf64-alpha.c (elf64_alpha_relax_section): Set again on changes.
501 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots,
502 elf64_alpha_size_got_sections): Rewrite, handling multiple got
503 subsections during relaxation more correctly.
504
7c511326
NC
505Thu May 14 14:22:58 1998 Nick Clifton <nickc@cygnus.com>
506
507 * bfd-in2.h: Add new prototype: bfd_coff_set_symbol_class ().
508 Add extra argument to bfd_arm_process_before_allocation ().
509 * bfd-in.h: Reflect changes made in bfd-in2.h.
510 * coffgen.c (bfd_coff_set_symbol_class): New function. Set the
511 coff class of a BFD symbol.
512 * coff-arm.c: Add support for interworking between Thumb code and
513 non-interworking aware ARM code.
514
515Sun May 10 22:33:59 1998 Jeffrey A Law (law@cygnus.com)
516
517 * po/Make-in (install-info): New target.
518
980381af
ILT
519Thu May 7 17:40:56 1998 Ian Lance Taylor <ian@cygnus.com>
520
521 * filemode.c: Remove; not used.
522
523 If sysdep.h includes a header file, don't include it again:
524 * aix386-core.c: Don't include <stdio.h>, <stddef.h>, or
525 <errno.h>.
526 * aoutx.h: Don't include <string.h>. Use "sysdep.h" rather than
527 <sysdep.h>.
528 * archive.c: Don't include <string.h> or <errno.h>.
529 * evax-alpha.c; Don't include <stdio.h>.
530 * evax-egsd.c: Likewise.
531 * evax-etir.c: Likewise.
532 * evax-misc.c: Likewise.
533 * evax-emh.c: Likewise. Also, don't include <sys/types.h>.
534 * hppabsd-core.c: Don't include <stdio.h>, <sys/types.h>, or
535 <errno.h>.
536 * hpux-core.c: Likewise.
537 * netbsd-core.c: Likewise.
538 * som.c: Likewise.
539 * libbfd.c: Don't include <sys/types.h>.
540 * nlmcode.h: Don't include <string.h>.
541 * osf-core.c: Don't include <string.h> or <stdio.h>.
542 * ptrace-core.c: Don't include <stdio.h>, <sys/types.h>,
543 <errno.h>, or <unistd.h>.
544 * trad-core.c: Don't include <stdio.h> or <sys/types.h>.
545
4c7f1d41
ILT
546Thu May 7 13:12:50 1998 Klaus Kaempf <kkaempf@progis.de>
547
548 * configure.com: If the version number can not be found in
549 configure.in, set it to "unknown" rather than "2.8.1".
550
f5916da7
GRK
551Wed May 6 09:46:05 1998 Gavin Koch <gavin@cygnus.com>
552
553 * elf32-mips.c (elf_mips_mach): New.
554 (_bfd_mips_elf_object_p): Use elf_mips_mach.
555 (_bfd_mips_elf_final_write_processing): Use the names
556 of machines, rather than the numbers. Set both the ARCH
557 and MACH in e_flags. Handle a few more specific machines.
558 (_bfd_mips_elf_merge_private_bfd_data): Merge both
559 EF_MIPS_ARCH and EF_MIPS_MACH.
560
97ec511f
RH
561Tue May 5 21:01:53 1998 Richard Henderson <rth@cygnus.com>
562
563 * syms.c (bfd_is_local_label): Revert last change.
564 * srec.c (srec_write_symbols): Discard debugging symbols.
565
80d30ced
ILT
566Tue May 5 23:36:06 1998 Ian Lance Taylor <ian@cygnus.com>
567
568 * som.c: Include <ctype.h>.
569 * som.h: Don't include sysdep.h.
570
fc8ff72d
TT
571Tue May 5 18:29:24 1998 Tom Tromey <tromey@cygnus.com>
572
573 * libbfd.h: Rebuilt.
574 * libbfd-in.h: Removed gettext includes and defines.
575 * sysdep.h: Moved gettext-related includes and defines here.
576
4aa65bb8
RH
577Tue May 5 16:47:54 1998 Richard Henderson <rth@cygnus.com>
578
579 * srec.c (srec_write_symbols): Use bfd_is_local_label rather than
580 an ad-hoc test. Kill bogus #if 0 code.
581 * syms.c (bfd_is_local_label): Consider BSF_DEBUGGING symbols local.
582
583Mon May 4 16:10:33 1998 Ian Lance Taylor <ian@cygnus.com>
584
585 * sunos.c (sunos_check_dynamic_reloc): Don't use the PLT address
586 when generating a normal executable for a symbol defined in a
587 regular file. When copying a reloc into the output file, adjust
588 the addend for a PC relative reloc against a global symbol.
589
766dcecc
TT
590Mon May 4 10:08:18 1998 Tom Tromey <tromey@cygnus.com>
591
592 * libbfd.h: Rebuilt.
593 * libbfd-in.h (_): Define as dgettext.
594
d116929e
ILT
595Mon May 4 11:02:23 1998 Ian Lance Taylor <ian@cygnus.com>
596
597 * coff-arm.c (coff_arm_relocate_section): Cast to bfd_signed_vma,
598 not signed.
599 * peicode.h (pe_saved_coff_bfd_print_private_bfd_data): Use PARAMS
600 when declaring parameter types.
601 (pe_saved_coff_bfd_copy_private_bfd_data): Likewise.
602
92769ae9
ILT
603Wed Apr 29 15:35:03 1998 Ian Lance Taylor <ian@cygnus.com>
604
605 * config.bfd: If we include any ELF targets in targ_defvec and/or
606 targ_selvecs, then add the generic ELF targets to targ_selvecs.
607 * elf32-gen.c (dummy): New static const variable.
608 (elf_generic_info_to_howto): New static function.
609 (elf_generic_info_to_howto_rel): New static function.
610 (elf_info_to_howto): Define as elf_generic_info_to_howto.
611 (elf_info_to_howto_rel): Define as elf_generic_info_to_howto_rel.
612 * elf64-gen.c: Same changes as elf32-gen.c.
613 * elfcode.h (elf_object_p): For the generic target, ignore a
614 failure of bfd_default_set_arch_mach. Fix indentation a bit.
615
351fc10b
ILT
616Tue Apr 28 20:05:52 1998 Ian Lance Taylor <ian@cygnus.com>
617
618 * configure.in (WIN32LIBADD): Add -lintl on cygwin32.
619 * configure: Rebuild.
620
1142c241
JM
621Tue Apr 28 12:16:57 1998 Jason Molenda (crash@bugshack.cygnus.com)
622
623 * config.bfd: Update OSR5/Unixware patterns.
624
4d6f96eb
RH
625Mon Apr 27 18:02:24 1998 Richard Henderson <rth@cygnus.com>
626
627 * elf.c (assign_file_positions_for_segments): Allow for holes
628 between sections added by a link script.
629
0d3887ba
ILT
630Mon Apr 27 11:49:55 1998 Ian Lance Taylor <ian@cygnus.com>
631
d510976d
ILT
632 * configure.in: Change version number to 2.9.4
633 * configure: Rebuild.
634
0d3887ba
ILT
635 Based on patch from H.J. Lu <hjl@gnu.org>:
636 * elf.c (bfd_elf_get_bfd_needed_list): New function.
637 * bfd-in.h (bfd_elf_get_bfd_needed_list): Declare.
638 * bfd-in2.h: Rebuild.
639
dbcd157d
RH
640Sat Apr 25 20:07:53 1998 Richard Henderson <rth@cygnus.com>
641
642 * elf64-alpha.c (struct alpha_relax_info): Replace elfsym with other.
643 Change all users.
644
2506b568
RH
645Sat Apr 25 18:29:07 1998 Richard Henderson <rth@cygnus.com>
646
647 * elf64-alpha.c (struct alpha_relax_info): Add tsec & elfsym members.
648 (elf64_alpha_relax_section): Fill them in.
649 (elf64_alpha_relax_opt_call): Implement more than a stub.
92a7119c 650 (elf64_alpha_add_symbol_hook): Don't set SEC_LOAD or default
2506b568
RH
651 alignment on .scommon.
652 (elf64_alpha_merge_gots): Merge use counts as well.
653
986c3691
RH
654Sat Apr 25 14:07:29 1998 Richard Henderson <rth@cygnus.com>
655
656 * elf64-alpha.c (elf64_alpha_relax_section): Use the proper section
657 for calculating a local symbol's address.
658 (elf64_alpha_calc_got_offsets): Skip entries with 0 use count.
659 Set the .got's cooked size as well as the raw size.
660
05c07e29
NC
661Fri Apr 24 09:16:00 1998 Nick Clifton <nickc@cygnus.com>
662
663 * elf32-v850.c (v850_elf_print_private_bfd_data): Add
664 internationalisation of printed information.
92a7119c 665
05c07e29
NC
666 * coff-arm.c (coff_arm_print_private_bfd_data): Add
667 internationalisation of printed information.
668
016b7b4b
ILT
669Fri Apr 24 12:09:18 1998 Ian Lance Taylor <ian@cygnus.com>
670
671 * syms.c (struct indexentry): Change directory_name, file_name,
672 and function_name fields to char *.
673 (struct stab_find_info): Change cached_file_name field to char *.
674
701552a5
NC
675Thu Apr 23 08:13:04 1998 Nick Clifton <nickc@cygnus.com>
676
677 * peicode.h (dir_names): Add missing N_() macros to dir_names array.
678
1158ffaf
TT
679Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
680
681 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
682
fa466864
ILT
683Wed Apr 22 17:48:48 1998 Ian Lance Taylor <ian@cygnus.com>
684
685 * Makefile.am (install-data-local): Make $(includedir).
686 * Makefile.in: Rebuild.
687
4725e922
TT
688Wed Apr 22 13:06:15 1998 Tom Tromey <tromey@cygnus.com>
689
690 * libbfd-in.h: Use `gettext' and not `dgettext' for now.
691
3f4606a0
ILT
692Wed Apr 22 12:53:40 1998 Ian Lance Taylor <ian@cygnus.com>
693
a46abdd0
ILT
694 * Makefile.am (INCLUDES): Add -I$(srcdir)/../intl -I../intl.
695 * Makefile.in: Rebuild.
696
3f4606a0
ILT
697 * bfd-in2.h: Rebuild for Nick's changes.
698
b65c6163
RH
699Tue Apr 21 23:11:51 1998 Richard Henderson <rth@cygnus.com>
700
701 * archive.c (_bfd_generic_read_ar_hdr_mag): Fix lossage in last
702 change wrt length == max_namelen.
703
53d3ce37
TT
704Tue Apr 21 21:19:36 1998 Tom Tromey <tromey@scribbles.cygnus.com>
705
706 * Many files: Added gettext invocations around user-visible
707 strings.
708 * libbfd-in.h: Added gettext includes and defines.
709 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
710 HAVE_LC_MESSAGES): Define.
711 * configure.in: Call CY_GNU_GETTEXT. Create po/Makefile.in and
712 po/Makefile.
713 * Makefile.am (SUBDIRS): Added po.
714 (POTFILES): New macro.
715 (po/POTFILES.in): New target.
716 (SOURCE_HFILES): New macro.
717 (HFILES): Use it.
718 * po/Make-in, po/POTFILES.in, po/bfd.pot: New files.
719
d0f44984
PS
720Tue Apr 21 13:38:18 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
721
722 * elfcore.h (bfd_prstatus): Copy core_prstatus from the first
723 NT_PRSTATUS note section encountered, it contains the status of
724 the currently executing thread when the core file was written.
725
7d6d10f9
NC
726Tue Apr 21 10:00:12 1998 Nick Clifton <nickc@cygnus.com>
727
728 * libcoff.h: Add extra parameter to
729 bfd_coff_link_output_has_begun overrideable function.
730 * cofflink.c: Pass extra parameter to
731 bfd_coff_link_output_has_begun function.
732 * bfd-in.h: Add prototypes for exported ARM interworking
92a7119c 733 functions.
7d6d10f9 734 * peicode.h: ARM specific code reorganised to conform to BFD
92a7119c 735 coding conventions.
7d6d10f9 736 * coffcode.h: ARM specific code reorganised to conform to BFD
92a7119c 737 coding conventions.
7d6d10f9
NC
738 * coff-arm.c: Code reorganised to conform to the BFD coding
739 conventions. Global variables have been moved into an ARM
740 specific hash table structure and a new function:
741 bfd_arm_get_bfd_for_interworking() has been created which is
742 called from the linker scripts.
743
211b0be8
RH
744Tue Apr 21 00:11:51 1998 Richard Henderson <rth@cygnus.com>
745
746 * archive.c (_bfd_generic_read_ar_hdr_mag): Simplify end-of-name test.
747
748 * elf64-alpha.c (elf64_alpha_find_reloc_at_ofs): Renamed from
749 elf64_alpha_relax_find_reloc_ofs. Changed all callers.
750 (elf64_alpha_add_symbol_hook): Put small commons in .scommon not .sbss.
751 (elf64_alpha_size_got_sections): Don't merge .got sections twice.
752
753Sat Apr 18 01:21:04 1998 Stan Cox <scox@cygnus.com>
754
755 * config.bfd: Added sparc86x support.
92a7119c 756
14c683b2
JL
757Fri Apr 17 22:29:04 1998 Ian Lance Taylor <ian@cygnus.com>
758
759 * elf32-mips.c (mips_elf_relocate_section): Do not complain about
760 an out of range pc-relative jump/call to an undefined weak symbol.
761
eb03bc25
RH
762Thu Apr 16 13:49:00 1998 Richard Henderson <rth@cygnus.com>
763
92a7119c 764 * elf64-alpha.c (elf64_alpha_do_reloc_gpdisp): Do all gpdisp
eb03bc25
RH
765 comparisons signed.
766
25e8be1d
ILT
767Thu Apr 16 11:43:33 1998 Ian Lance Taylor <ian@cygnus.com>
768
216c36d9
ILT
769 * archive.c (bfd_generic_archive_p): If a slurp subroutine returns
770 an error other than bfd_error_system_call, set the error to
771 bfd_error_wrong_format.
772
b3c76255
ILT
773 * targets.c (bfd_target_vector) [SELECT_VECS not defined]: Add
774 bfd_elf32_powerpcle_vec.
775
25e8be1d
ILT
776 * elf.c (copy_private_bfd_data): If all the p_paddr fields in the
777 program segments are zero, don't set p_paddr_valid.
778
69842d08
RH
779Wed Apr 15 22:15:16 1998 Richard Henderson <rth@cygnus.com>
780
781 * elf64-alpha.c: Initial implementation of relaxation --
782 (struct alpha_elf_link_hash_entry): Add use_count member.
783 (elf64_alpha_check_relocs): Initialize and increment it.
784 (elf64_alpha_can_merge_gots): Check it when considering merging.
785 (elf64_alpha_merge_gots): Drop entries with zero use.
786 (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
787 (elf64_alpha_always_size_sections): Split out got sizing ...
788 (elf64_alpha_size_got_sections): ... here. New function.
789 (elf64_alpha_relax_find_reloc_ofs): New function.
790 (elf64_alpha_relax_with_lituse): Likewise.
791 (elf64_alpha_relax_without_lituse): Likewise.
792 (elf64_alpha_relax_opt_call): Likewise.
793 (elf64_alpha_relax_section): Likewise.
794 (elf64_alpha_add_symbol_hook): Likewise.
795 (elf64_alpha_howto_table): Implement GPRELHIGH/LOW & IMMED_GP_16.
796 (elf64_alpha_relocate_section): Likewise.
797 (bfd_elf64_bfd_relax_section): Define.
798 (elf_backend_add_symbol_hook): Likewise.
799
b356d4af
RH
800Wed Apr 15 16:08:46 1998 Richard Henderson <rth@cygnus.com>
801
802 * elf.c (prep_headers): Use new EM_SPARCV9 symbol.
803 * elf64-sparc.c (ELF_MACHINE_CODE): Likewise.
804 (ELF_MACHINE_ALT1): New. Set to EM_OLD_SPARC64.
805
64596865
ILT
806Wed Apr 15 11:34:33 1998 Ian Lance Taylor <ian@cygnus.com>
807
808 * configure.in: Add -lkernel32 to WIN32LIBADD on cygwin32.
809 * configure: Rebuild.
810
5a83fcdd
ILT
811Mon Apr 13 16:46:27 1998 Ian Lance Taylor <ian@cygnus.com>
812
813 * Makefile.am (libbfd_la_LIBADD): Add @WIN32LIBADD@.
814 (libbfd_la_LDFLAGS): Add @WIN32LDFLAGS@.
815 * configure.in: Define and substitute WIN32LDFLAGS and
816 WIN32LIBADD.
817 * aclocal.m4: Rebuild with new libtool.
818 * configure, Makefile.in: Rebuild.
819
c24c4203
ILT
820Fri Apr 10 13:44:27 1998 Ian Lance Taylor <ian@cygnus.com>
821
822 * coffcode.h (coff_write_object_contents): Move a PE COMDAT symbol
823 before any other symbols in the same section.
824
d6c3cfb5
MM
825Wed Apr 8 14:50:23 1998 Michael Meissner <meissner@cygnus.com>
826
827 * config.bfd (powerpc*-*-*): Remove PowerPC NT support from ELF
828 systems.
829
b7781f9f
GRK
830Tue Apr 7 16:25:31 1998 Gavin Romig-Koch <gavin@cygnus.com>
831
832 * dwarf2.c (comp_unit): Move it earlier in the source. Add
833 addr_size.
834 (read_address): Replace 'bdf*' argument with 'comp_unit*' argument.
835 Use addr_size for address size, rather than sizeof(bfd_vma).
836 (read_attribute): Replace bdf* argument with 'comp_unit*' argument.
837 Fix call to read_address.
838 (decode_line_info): Replace bdf* argument with 'comp_unit*' argument.
839 Scrap other unneeded arguments. Fix call to read_address.
840 (scan_unit_for_functions): Fix call to read_attribute.
841 (parse_comp_unit): We now handle more values for addr_size.
842 Set addr_size in unit. Fix call to read_attribute and
843 decode_line_info.
844
d02731be
GRK
845Tue Apr 7 15:44:47 1998 Gavin Romig-Koch <gavin@cygnus.com>
846
847 * dwarf2.c (parse_comp_unit): Drop use of unit->name when it is null.
848
1d9ee924
ILT
849Tue Apr 7 12:35:18 1998 Ian Lance Taylor <ian@cygnus.com>
850
851 * archures.c (bfd_default_scan): Add m68k cases back to default
852 switch, reverting patch of March 25, since IEEE support depends
853 upon them.
854
78e700af
ILT
855Mon Apr 6 14:06:40 1998 Ian Lance Taylor <ian@cygnus.com>
856
857 * Makefile.am (diststuff): New target.
858 * Makefile.in: Rebuild.
859
1fa0aaae
JL
860Sun Apr 5 16:21:44 1998 Jeffrey A Law (law@cygnus.com)
861
862 * som.c (som_bfd_ar_write_symbol_stuff): Fix computation of
863 som_offset when we have an extended name table.
864
56231d31
ILT
865Sun Apr 5 16:04:39 1998 H.J. Lu <hjl@gnu.org>
866
867 * Makefile.am (stamp-lib): Check that .libs/libbfd.a exists before
868 trying to copy it.
869 * Makefile.in: Rebuild.
870
c4ffc67c
ILT
871Fri Apr 3 11:09:42 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
872
873 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Generate section
874 symbols when creating a shared library.
875 (elf_m68k_adjust_dynindx): New function, used by above code.
876 (elf_m68k_finish_dynamic_sections): Initialize the section
877 symbols.
878 (elf_m68k_relocate_section): Change abort to BFD_ASSERT.
879
880Wed Apr 1 16:04:02 1998 Nick Clifton <nickc@cygnus.com>
881
882 * coff-arm.c (in_reloc_p): Use ARM_RVA32 in place of constant
883 value 11.
884
ed5e146b
ILT
885Wed Apr 1 13:36:58 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
886
887 * elf32-m68k.c (elf_m68k_relocate_section, case R_68K_PLT*O): Fix
888 assertion.
889
b11b841b
JL
890Tue Mar 31 00:12:12 1998 Jeffrey A Law (law@cygnus.com)
891
892 * elf-m10300.c (mn10300_elf_relax_section): Correctly handle
893 absolute symbols.
894
f3aa01e2
ILT
895Mon Mar 30 12:46:15 1998 Ian Lance Taylor <ian@cygnus.com>
896
897 * configure.in: Set version to 2.9.1.
898 * configure: Rebuild.
899
900 * Branched binutils 2.9.
901
902Mon Mar 30 12:20:50 1998 Brent Baccala <baccala@freesoft.org>
903
904 * syms.c (ENABLE_CACHING): Define.
905 (struct indexentry): Define.
906 (struct stab_cache): Remove.
907 (cmpindexentry): New static function.
908 (struct stab_find_info): Add new fields: indextable,
909 indextablesize, cached_indexentry, cached_offset, cached_stab, and
910 cached_file_name. Remove fields: file_cache, function_cache, and
911 line_cache.
912 (_bfd_stab_section_find_nearest_line): Rewrite to build a sorted
913 index table and search it.
914
24bce4a2
ILT
915Mon Mar 30 10:39:34 1998 Ian Lance Taylor <ian@cygnus.com>
916
368802d1
ILT
917 * elf.c (_bfd_elf_copy_private_section_data): Call
918 copy_private_bfd_data once we've seen the last SEC_ALLOC section.
919
24bce4a2
ILT
920 * cpu-mips.c: Remove trailing comma at end of enumeration list.
921
ac129350
ILT
922Sat Mar 28 16:33:02 1998 Ian Lance Taylor <ian@cygnus.com>
923
924 * coff-arm.c: Define all globally visible variables and functions
925 only when COFF_WITH_PE is not defined.
926 * configure.in (armpe_little_vec, armpe_big_vec): Add
927 coff-arm.lo.
928 * configure: Rebuild.
929
f6727b90
ILT
930Fri Mar 27 16:06:02 1998 Ian Lance Taylor <ian@cygnus.com>
931
932 Fix some gcc -Wall warnings:
933 * aout-arm.c (MY(fix_pcrel_26)): Add casts to avoid warnings.
934 * archive.c (_bfd_generic_read_ar_hdr_mag): Likewise.
935 * archures.c (bfd_default_scan): Likewise.
936 * bfd.c (bfd_scan_vma): Likewise.
937 * binary.c (mangle_name): Likewise
938 * coff-arm.c (aoutarm_fix_pcrel_26): Likewise.
939 * coff-sh.c (sh_relocate_section): Likewise.
940 * coff-stgo32.c (create_go32_stub): Likewise.
941 * coffcode.h (coff_slurp_line_table): Likewise.
942 * ecoff.c (_bfd_ecoff_write_armap): Likewise.
943 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
944 (assign_file_positions_for_segments): Likewise.
945 * elf32-mips.c (mips_elf_relocate_section): Likewise.
946 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
947 * oasys.c (oasys_write_sections): Likewise.
948 * ppcboot.c (ppcboot_object_p): Likewise.
949 (mangle_name): Likewise.
950 * riscix.c (riscix_fix_pcrel_26): Likewise.
951 * srec.c (srec_scan): Likewise.
952 * stabs.c (_bfd_write_section_stabs): Likewise.
953 * sunos.c (sunos_add_dynamic_symbols): Likewise.
954 * aout-ns32k.c (_bfd_ns32k_relocate_contents): Add default case to
955 switch. Declare parameters for function pointers.
956 * archures.c (bfd_default_scan): Add braces to avoid ambiguous if
957 warning.
958 * elf.c (elf_sort_sections): Likewise.
959 * coff-arm.c (coff_thumb_pcrel_common): Initialize relocation.
960 Add default cases to switches.
961 (coff_arm_relocate_section): Remove unused local variables.
962 Always set rstat.
963 (coff_arm_bfd_set_private_flags): Change flag variable to type
964 flagword.
965 * coff-mips.c (mips_relocate_section): Initialize use_lo.
966 * coff-ppc.c (ppc_record_toc_entry): Change i to unsigned int.
967 (dump_toc): Change cat to const, and initialize it.
968 * coff-sh.c (sh_relax_delete_bytes): Initialize start and voff.
969 * elf32-sh.c (sh_elf_relax_delete_bytes): Likewise.
970 (sh_elf_relocate_section): Initialize r_symndx.
971 * coffcode.h (coff_compute_section_file_positions): Only declare
972 old_sofar if ALIGN_SECTIONS_IN_FILE.
973 (coff_write_object_contents): Initialize csym.
974 * coffgen.c (coff_pointerize_aux): Make type and class unsigned.
975 * cpu-ns32k.c (_bfd_ns32k_get_displacement): Add default case to
976 switch.
977 * dwarf2.c: Include libiberty.h.
978 (read_2_signed_bytes, read_4_signed_bytes): Comment out.
979 (decode_line_info): Remove unused local variables.
980 * elf32-m32r.c (m32r_elf_sda16_reloc): Likewise.
981 (m32r_elf_relocate_section): Likewise.
982 * elf32-v850.c (v850_elf_store_addend_in_insn): Likewise.
983 (v850_elf_reloc): Likewise.
984 * elf-bfd.h (elf_linker_section_t): Make alignment unsigned.
985 (struct elf_obj_tdata): Make cverdefs and cverrefs unsigned.
986 * elf.c (assign_file_positions_for_segments): Always set adjust.
e5fc7809 987start-sanitize-d30v
f6727b90
ILT
988 * elf32-d30v.c (bfd_elf_d30v_reloc): Initialize tmp_addr. Fully
989 parenthesize expression.
e5fc7809 990end-sanitize-d30v
f6727b90
ILT
991 * elf32-m32r.c (m32r_elf_relocate_section): Always initialize h.
992 (m32r_elf_object_p): Return a value.
993 (m32r_elf_print_private_bfd_data): Change fprintf format string.
994 * elf32-mips.c (mips_elf_final_link): Initialize last.
995 (mips_elf_finish_dynamic_sections): Initialize last and dindx.
996 * elf32-v850.c (v850_elf_object_p): Return a value.
997 (v850_elf_print_private_bfd_data): Change fprintf format string.
998 * elfcode.h (elf_slurp_symbol_table): Change symcount and i to
999 unsigned long.
1000 * elflink.h (elf_link_add_object_symbols): Change vernum to
1001 unsigned int, and initialize it. Change fprintf format string.
1002 (NAME(bfd_elf,size_dynamic_sections)): Cast -1 to bfd_size_type
1003 when setting or comparing to soname_indx.
1004 (elf_create_pointer_linker_section): Change num_symbols to
1005 unsigned int.
1006 * libcoff-in.h (coff_data_type): Change flags to flagword.
1007 * peicode.h (pe_print_idata): Initialize idx. Change j to
1008 bfd_size_type. Initialize hint_member. Remove useless test to
1009 time_stamp.
1010 (pe_print_edata): Change num_functions and num_names in struct
1011 EDT_type to unsigned long. Remove cast. Change fprintf format
1012 string.
1013 * ppcboot.c (ppcboot_object_p): Change i to size_t.
1014 * reloc.c (bfd_get_reloc_size): Change return type to unsigned
1015 int.
1016 * reloc16.c (bfd_coff_reloc16_relax_section): Change shrinks to
1017 int *. Update uses. Change j to long.
1018 * bfd-in2.h, libcoff.h: Rebuild.
1019
197de3ba 1020Fri Mar 27 10:10:46 1998 Catherine Moore <clm@cygnus.com>
08eefd3e
ILT
1021
1022 * elf32-v850.c Remove definition of USE_REL.
1023 (v850_elf_info_to_howto_rela): New function.
1024 (v850_elf_perform_relocation): Renamed from
1025 v850_elf_store_addend_in_insn. Removed replace argument.
1026 (v850_elf_reloc): store the relocation in the addend field instead
1027 of the insn.
1028 (v850_elf_final_link_relocate): Now calls
1029 v850_elf_perform_relocation.
1030 (v850_elf_relocate_section): Remove code to generate REL
1031 relocations.
1032
f6727b90
ILT
1033Thu Mar 26 13:32:17 1998 Ian Lance Taylor <ian@cygnus.com>
1034
1035 * coffcode.h (coff_new_section_hook): Set the type and storage
1036 class in the native symbol information allocated for a new section
1037 symbol.
1038
8c11394a
NC
1039Thu Mar 26 10:13:41 1998 Nick Clifton <nickc@cygnus.com>
1040
1041 * peicode.h: Chain together calls to
1042 coff_bfd_copy_private_bfd_data and
92a7119c 1043 coff_bfd_print_private_bfd_data.
8c11394a
NC
1044
1045 * coff-arm.c: Add prototypes for
1046 coff_arm_bfd_print_private_bfd_data and
92a7119c 1047 coff_arm_bfd_copy_private_bfd_data.
8c11394a 1048
38c574bb
NC
1049Wed Mar 25 15:45:55 1998 Nick Clifton <nickc@cygnus.com>
1050
1051 * coffcode.h (coff_mkobject_hook): Set private falgs even for a PE
1052 build.
1053
1054 * peicode.h: Call arm-coff private data functions after handling
1055 pe private data.
1056
1057 * coff-arm.c: Turn statics into globals so that they can be shared
1058 both pe and pei backends.
1059
d04efb80
ILT
1060Wed Mar 25 15:19:38 1998 Ian Lance Taylor <ian@cygnus.com>
1061
1062 * aoutf1.h (sunos_set_arch_mach): Use bfd_mach_m68* rather than
1063 plain numbers.
1064 (sunos_write_object_contents): Likewise.
1065 * aoutx.h (NAME(aout,machine_type)): Likewise.
1066 * coffcode.h (coff_set_arch_mach_hook): Likewise.
1067
b35711c4
ILT
1068Wed Mar 25 13:59:24 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1069
ce6821a5
ILT
1070 * archures.c (bfd_mach_m68*): Add definitions for various m68k
1071 variants.
1072 (bfd_default_scan): Remove m68k special cases.
1073 * bfd-in2.h: Rebuild.
d04efb80
ILT
1074 * mipsbsd.c (MY(write_object_contents)): Use bfd_mach_m68* rather
1075 than plain numbers.
ce6821a5
ILT
1076 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
1077 * cpu-m68k.c (arch_info_struct): Likewise. Add entry for
1078 m68k:68000.
1079 (bfd_m68k_arch): Set mach field to zero to signal no explicit
1080 selection, change printable_name to just "m68k" and make that the
1081 default instead of m68k:68020.
1082
df5f44d1
ILT
1083 * aout-tic30.c (NAME): Define this to avoid multiple definitions
1084 from aoutx.h.
1085 (MY_get_section_contents): Define as aout_32_get_section_contents
1086 rather than NAME(aout,get_section_contents).
1087
1088 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Fix cast.
1089
b35711c4
ILT
1090 * evax-alpha.c (evax_set_arch_mach): Only accept bfd_arch_alpha
1091 and call bfd_default_set_arch_mach to do the real work.
1092
0892d40b
RH
1093Wed Mar 25 10:41:35 1998 Richard Henderson <rth@cygnus.com>
1094
1095 * bout.c (BALX): Include return register g14 as part of the insn.
1096 (BALX_MASK): New.
1097 (calljx_callback): Use it.
1098
1719df74
ILT
1099Wed Mar 25 11:19:28 1998 Ian Lance Taylor <ian@cygnus.com>
1100
ce6821a5
ILT
1101 * libbfd-in.h (BFD_ALIGN): Cast this parameter to bfd_vma.
1102 * libbfd.h: Rebuild.
1103
df5f44d1
ILT
1104 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Change
1105 byte_count to unsigned int.
1106 (mn10300_elf_relax_section): Initialize internal_relocs. Remove
1107 unused local variables.
1108
b35711c4
ILT
1109 * evax-alpha.c (evax_close_and_cleanup): Remove unused local
1110 variables er and er1.
1111
883f72a2
ILT
1112 * cpu-v850.c: Include <ctype.h>.
1113 (scan): Case isdigit argument to unsigned char.
1114
1719df74
ILT
1115 From Yan Meroth <YAN.MEROTH@st.com>:
1116 * ihex.c (ihex_scan): Add extbase variable so that getting an
1117 extended linear address record does not ignore any previous
1118 extended address.
1119 (ihex_write_object_contents): When writing out an extended linear
1120 address record, zero out any previous extended address.
1121
b7f28e8f
ILT
1122Tue Mar 24 16:09:43 1998 Manfred Hollstein <manfred@s-direktnet.de>
1123
1124 * ieee.c (do_one): Check section before dereferencing it.
1125 (ieee_canonicalize_reloc): Likewise with src->relent.sym_ptr_ptr.
1126 (ieee_generic_stat_arch_elt): Likewise with abfd->my_archive.
1127
615141db
ILT
1128Mon Mar 23 18:51:47 1998 Joel Sherrill <joel@OARcorp.com>
1129
1130 * config.bfd: (sh*-*-rtems*): Switched from ELF to COFF.
1131
454515c0
NC
1132Mon Mar 23 14:23:36 1998 Nick Clifton <nickc@cygnus.com>
1133
1134 * coff-arm.c: Add interworking functions to pe backends.
1135
1136start-sanitize-r5900
1137Sun Mar 22 13:05:08 1998 Jeffrey A Law (law@cygnus.com)
1138
1139 * elf32-mips.c (R_MIPS15_S3): New relocation type.
1140 (elf_mips_howto_table): Add R_MIPS15_S3.
1141 (mips_reloc_map): Map BFD_RELOC_MIPS15_S3 to R_MIPS15_S3.
1142 * reloc.c (BFD_RELOC_MIPS15_S3): New relocation type.
1143 * bfd-in2.h, libbfd.h: Rebuilt.
1144
1145end-sanitize-r5900
1146Fri Mar 20 18:47:20 1998 Ian Lance Taylor <ian@cygnus.com>
1147
1148 * configure.in: Use AM_DISABLE_SHARED.
1149 * aclocal.m4, configure: Rebuild with libtool 1.2.
1150
a748b374
NC
1151Fri Mar 20 11:25:41 1998 Nick Clifton <nickc@cygnus.com>
1152
1153 * coff-arm.c (coff_arm_relocate_section): Better error messages
1154 when interowrking conflucts occur. Courtesy of Jonathan Walton
5e04ff14 1155 and Tony Thompson.
a748b374
NC
1156 (aoutarm_std_reloc_howto): Fixed bitsize fields of rightshifted
1157 relocations. Patch courtesy of Jonathan Walton and Tony
5e04ff14 1158 Thompson.
a748b374 1159
f2caa39b
RH
1160Fri Mar 20 02:26:43 1998 Richard Henderson <rth@cygnus.com>
1161
1162 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Revert
1163 part of Feb 22 change controling when to override the existing
1164 symbol with the .plt entry.
1165
41eca8a7
NC
1166Wed Mar 18 09:26:25 1998 Nick Clifton <nickc@cygnus.com>
1167
1168 * config.bfd (targ_cpu): Add thumb-pe target.
1169
1170 * coffcode.h (OTHER_GLOBAL_CLASS): Support thumb external
1171 functions in PE build.
1172
1173Sun Mar 8 23:37:26 1998 Stan Cox <scox@equinox.cygnus.com>
1174
1175 * config.bfd (sparclite-*-elf*): Added.
1176
ad4413e6
GRK
1177start-sanitize-vr4320
1178Tue Mar 3 11:24:05 1998 Gavin Koch <gavin@cygnus.com>
1179
1180 * mips-cpu.c: Reorganize sanitization.
1181
1182 * archures.c, bfd-in2.h, mips-cpu.c : Added bfd_mach_mips4320.
1183
1184end-sanitize-vr4320
3c9f13f4
ILT
1185Mon Feb 23 19:31:19 1998 Ian Lance Taylor <ian@cygnus.com>
1186
1187 * configure.in: Add elf.lo to elf shell variable.
1188 * Makefile.am (BFD_LIBS): Remove elf.lo.
1189 (BFD_LIBS_CFILES): Remove elf.c.
1190 (BFD32_BACKENDS): Add elf.lo.
1191 (BFD32_BACKENDS_CFILES): Add elf.c.
1192 * configure, Makefile.in: Rebuild.
1193
b35d842d
UD
11941998-02-23 15:53 Richard Henderson <rth@cygnus.com>
1195
1196 * elf32-i386.c (elf_i386_relocate_section): A pc-relative
1197 relocation against a now-local symbol should not have a dynamic
1198 relocation.
1199
b1f09b63
ILT
1200Mon Feb 23 16:17:08 1998 Ian Lance Taylor <ian@cygnus.com>
1201
1202 * peicode.h (coff_swap_filehdr_in): Don't set BFD flag HAS_SYMS in
1203 COFF filehdr flags.
1204 (pe_print_private_bfd_data): Print PE flags. From Mikey
1205 <jeffdb@netzone.com>.
1206
2f53b8ff
RH
1207Sun Feb 22 20:39:00 1998 Richard Henderson <rth@cygnus.com>
1208
1209 * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Don't create
b35d842d
UD
1210 a plt entry when we can determine that we authoritatively define
1211 the symbol.
2f53b8ff 1212
07fafd5d
RH
1213Sun Feb 22 20:33:05 1998 Richard Henderson <rth@cygnus.com>
1214
1215 * configure.in (COREFILE selection): Remove sparc-*-linux*. They
1216 don't actually use trad-core, but a SunOS-style core file handled
1217 by gdb directly.
1218 * hosts/sparclinux.h: Remove.
1219
1220start-sanitize-sky
1221Thu Feb 19 02:38:52 1998 Doug Evans <devans@charmed.cygnus.com>
1222
1223 * reloc.c (BFD_RELOC_MIPS_DVP_27_S4): New reloc type.
1224 * elf32-mips.c (enum reloc_type): Add R_MIPS_DVP_27_S4.
1225 (elf_mips_dvp_27_s4_howto): Describe it.
1226 (bfd_elf32_bfd_reloc_type_lookup): Handle it.
1227 (mips_info_to_how_rel): Handle it.
1228 (mips_elf_relocate_section): Handle it.
1229 * bfd-in2.h,libbfd.h: Regenerate.
1230
1231end-sanitize-sky
1232Wed Feb 18 15:31:06 1998 Ian Lance Taylor <ian@cygnus.com>
1233
1234 * peicode.h (pe_print_idata): If there is no .idata section, look
1235 for the import tables in some other section. Make the initial
1236 label line up better with the data. Print the import address
1237 table even if there is no import name table. If the import
1238 address table holds actual addresses, print them.
1239
58713764
DE
1240start-sanitize-sky
1241Tue Feb 17 20:00:26 1998 Doug Evans <devans@canuck.cygnus.com>
1242
1243 * config.bfd (targ_archs): If mips64r5900-sky-elf, add bfd_dvp_arch.
1244
1245end-sanitize-sky
5290378a
ILT
1246Tue Feb 17 12:58:34 1998 Ian Lance Taylor <ian@cygnus.com>
1247
1248 * libbfd.c (bfd_seek): If fseek fails, save errno around call to
1249 bfd_tell. If errno is EINVAL, set bfd_error_file_truncated, not
1250 bfd_error_system_call.
1251
6e639e5d
ILT
1252Fri Feb 13 13:11:33 1998 Ian Lance Taylor <ian@cygnus.com>
1253
004040c9
ILT
1254 * Makefile.am (AUTOMAKE_OPTIONS): Define.
1255 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
1256
cf4ce877 1257 From H.J. Lu <hjl@gnu.org>:
6e639e5d
ILT
1258 * Makefile.am (libbfd_la_LDFLAGS): Define.
1259 * Makefile.in: Rebuild.
1260
eee4e8ca
ILT
1261Thu Feb 12 17:31:11 1998 Ian Lance Taylor <ian@cygnus.com>
1262
f53bcd0a
ILT
1263 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
1264 * netbsd.h (MACHTYPE_OK): Define.
1265 (MY(write_object_contents)): Use DEFAULT_ARCH and DEFAULT_MID when
1266 calling N_SET_MACHTYPE, rather than having a switch.
1267 * libaout.h (enum machine_type): Add M_PMAX_NETBSD, M_VAX_NETBSD,
1268 and M_ALPHA_NETBSD.
1269 * i386netbsd.c (MACHTYPE_OK): Don't define.
1270 (DEFAULT_MID): Define.
1271 * m68k4knetbsd.c (SEGMENT_SIZE): Don't define.
1272 (MACHTYPE_OK): Don't define.
1273 (DEFAULT_MID): Define.
1274 * m68knetbsd.c: (MACHTYPE_OK): Don't define.
1275 (DEFAULT_MID): Define.
1276 * ns32knetbsd.c (MACHTYPE_OK): Don't define.
1277 (DEFAULT_MID): Define.
1278 * sparcnetbsd.c (MACHTYPE_OK): Don't define.
1279 (DEFAULT_MID): Define.
1280
eee4e8ca
ILT
1281 NetBSD patches from Gordon W. Ross <gwr@mc.com>:
1282 * vaxnetbsd.c: New file.
1283 * netbsd-core.c: Clean up. Remove unused macros. Use netbsd
1284 rather than netbsd_core.
1285 * targets.c (vaxnetbsd_vec): Declare.
1286 (bfd_target_vector): Add vaxnetbsd_vec. If NETBSD_CORE is
1287 defined, add netbsd_core_vec.
1288 * configure.in: Set COREFILE for alpha*-*-netbsd* and
1289 powerpc-*-netbsd* to netbsd-core.lo. If COREFILE is
1290 netbsd-core.lo, set COREFLAG to -DNETBSD_CORE.
1291 * config.bfd (alpha*-*-netbsd*): New target.
1292 * Makefile.am: Rebuild dependencies.
1293 (BFD32_BACKENDS): Add vaxnetbsd.lo.
1294 (BFD32_BACKENDS_CFILES): Add vaxnetbsd.c.
1295 * configure, Makefile.in: Rebuild.
1296
1297 * configure.host: Remove the old shared library build stuff. We
1298 now use libtool instead.
1299
ba475667
RH
1300Wed Feb 11 17:13:09 1998 Richard Henderson <rth@cygnus.com>
1301
1302 * tekhex.c (tekhex_write_object_contents): Call tekhex_init.
1303
1304Tue Feb 10 19:23:28 1998 H.J. Lu <hjl@gnu.org>
1305
1306 * configure.in: Take stab-syms.lo out of sparclinux_vec list.
1307 * configure: Rebuild.
1308
9cca7762 1309Tue Feb 10 15:16:38 1998 Nick Clifton <nickc@cygnus.com>
bae2276c
NC
1310start-sanitize-m32rx
1311 * elf32-m32r.c (m32r_elf_merge_private_bfd_data): Do not complain
1312 when merging m32r BFDs into m32rx BFDs.
1313end-sanitize-m32rx
9cca7762
NC
1314 * elf32-v850.c (remember_hi16s_reloc): New function.
1315 (find_remembered_hi16s_reloc): New function.
1316 (v850_elf_store_addend_in_insn): Use the above new functions to
1317 match up HI6S relocs with LO16 relocs.
1318
9eb7b67b
DE
1319start-sanitize-sky
1320Tue Feb 10 13:25:14 1998 Doug Evans <devans@canuck.cygnus.com>
1321
1322 * archures.c (bfd_mach_dvp_{vif,gif}): Renamed from ..._{pke,gpuif}.
1323 (bfd_txvu_arch): Delete.
1324 * cpu-mips.c (arch_info_struct): dvp:{vif,gif} renamed from
1325 dvp:{pke,gpuif}.
1326 * bfd-in2.h: Regenerate.
1327
1328end-sanitize-sky
5303c574
ILT
1329Tue Feb 10 15:01:39 1998 Ian Lance Taylor <ian@cygnus.com>
1330
1331 * configure.in: Change -linux* to -linux-gnu*.
1332 * config.bfd, configure.host: Likewise.
1333 * configure: Rebuild.
1334
6aa32b90
NC
1335Mon Feb 9 19:40:59 1998 Nick Clifton <nickc@cygnus.com>
1336
1337 * elf32-v850.c (v850_elf_store_addend_in_insn): Fix another
1338 LO16/HI16S bug and improve comments about what is going on.
1339
7ee4e307
ILT
1340Sat Feb 7 15:27:03 1998 Ian Lance Taylor <ian@cygnus.com>
1341
1342 * configure, aclocal.m4: Rebuild with new libtool.
1343
75172c0f
NC
1344start-sanitize-v850e
1345Fri Feb 6 14:48:20 1998 Nick Clifton <nickc@cygnus.com>
1346
1347 * elf32-v850.c (v850_elf_merge_private_bfd_data): Do not complain
8b6dcc1b 1348 when merging v850 code into v850e/v850ea code. Do not initialise
5e04ff14 1349 output flags if the input is the default architecture.
75172c0f 1350end-sanitize-v850e
9b47bc23
JL
1351Fri Feb 6 11:50:22 1998 Jeffrey A Law (law@cygnus.com)
1352
bb1fd71f 1353start-sanitize-r5900
6f84b00f 1354 * cpu-mips.c (arch_info_struct): Make r5900 pointer size 32bits.
bb1fd71f 1355end-sanitize-r5900
9b47bc23
JL
1356 * elf32-mips.c (bfd_elf32_bfd_reloc_type_lookup): For BFD_RELOC_CTOR
1357 get the size from bfd_arch_bits_per_address instead of directly
1358 from the isa.
1359
29b7118a
MM
1360Thu Feb 5 14:21:34 1998 Michael Meissner <meissner@cygnus.com>
1361
b494ec3e
MM
1362 * libbfd-in.h (BFD_ALIGN): If rounding up would cause the address
1363 to wrap, just return all 1's bits instead.
1364 * libbfd.h: Regenerate.
29b7118a 1365
4ea65387
ILT
1366Thu Feb 5 11:51:05 1998 Ian Lance Taylor <ian@cygnus.com>
1367
1f286476
ILT
1368 * coff-i386.c (coff_pe_i386_relocate_section): New static function
1369 if COFF_WITH_PE.
1370 (coff_relocate_section): If COFF_WITH_PE, define as
1371 coff_pe_i386_relocate_section.
1372 * coffcode.h (coff_write_object_contents): If COFF_IMAGE_WITH_PE,
1373 skip empty sections, to match coff_write_object_contents.
1374
4ea65387
ILT
1375 * elf64-mips.c (mips_elf64_swap_reloca_out): Swap out r_addend,
1376 rather than swapping out r_offset twice. From Luke Deller
1377 <luked@cse.unsw.edu.au>.
1378
9a837903
ILT
1379Wed Feb 4 19:11:28 1998 Ian Lance Taylor <ian@cygnus.com>
1380
1381 * configure.in: Set libtool_enable_shared rather than
1382 libtool_shared. Remove diversion hack.
1383 * configure, Makefile.in, doc/Makefile.in, aclocal.m4: Rebuild
1384 with new libtool.
1385
68d864d7
ILT
1386Wed Feb 4 16:10:21 1998 Brent Baccala <baccala@freesoft.org>
1387
1388 * syms.c (struct stab_cache): Define.
1389 (struct stab_find_info): Remove cached_offset, cached_stab,
1390 cached_str, and cached_stroff fields. Add file_cache,
1391 function_cache, and line_cache fields.
1392 (_bfd_stab_section_find_nearest_line): Use extensive caching to
1393 speed up searches.
1394
7f84fa70
ILT
1395Wed Feb 4 13:34:22 1998 Ian Lance Taylor <ian@cygnus.com>
1396
1397 * peicode.h (pe_print_idata): Check for import of ordinal rather
1398 than name.
1399 (pe_print_edata): If there is no .edata section, look for the
1400 export data in some other section.
1401
229811d1
JM
1402Mon Feb 2 20:05:42 1998 Jason Molenda (crash@bugshack.cygnus.com)
1403
1404 * configure.in: Change version to 2.8.4.
1405 * configure: Regenerated.
1406
1407Mon Feb 2 17:39:39 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
1408
1409 Add tms320c30 support:
1410 * cpu-tic30.c: New file.
1411 * aout-tic30.c: New file.
1412 * coff-tic30.c: New file.
1413 * archures.c (bfd_arch_tic30): Define.
1414 (bfd_tic30_arch): Declare.
1415 (bfd_archures_list): Add bfd_tic30_arch.
1416 * targets.c (bfd_target_vector): Add tic30_aout_vec and
1417 tic30_coff_vec.
1418 * reloc.c (BFD_RELOC_TIC30_LDP): Define.
1419 * coffcode.h (coff_set_arch_mach_hook): Add tic30 case.
1420 (coff_set_flags): Likewise.
1421 * config.bfd (tic30-*-*aout*, tic30-*-*coff*): New targets.
1422 * configure.in (tic30_aout_vec, tic30_coff_vec): New vectors.
1423 * Makefile.am: Rebuild dependencies.
1424 (ALL_MACHINES): Add cpu-tic30.lo.
1425 (ALL_MACHINES_CFILES): Add cpu-tic30.c.
1426 (BFD32_BACKENDS): Add aout-tic30.lo and coff-tic30.lo.
1427 (BFD32_BACKENDS_CFILES): Add aout-tic30.c and coff-tic30.c.
1428 * configure, Makefile.in, bfd-in2.h, libbfd.h: Rebuild.
1429
581d7269
NC
1430Mon Feb 2 12:25:12 1998 Nick Clifton <nickc@cygnus.com>
1431
1432 * elf32-v850.c (v850_elf_store_addend_in_insn): Allow HI16_S reloc
1433 to lag behind LO16 reloc by a couple of instructions.
1434
1a58a2d8
ILT
1435Mon Feb 2 14:09:46 1998 Ian Lance Taylor <ian@cygnus.com>
1436
229811d1
JM
1437 * Makefile.am ($(srcdir)/bfd-in2.h): Add dummy command to force
1438 make to reexamine the file timestamp.
1439 ($(srcdir)/libbfd.h, $(srcddir)/libcoff.h): Likewise.
1440
1a58a2d8
ILT
1441 * elf64-alpha.c (ELF_MAXPAGESIZE): Change to 0x10000 from
1442 0x100000.
1443
c62a82b5
DE
1444start-sanitize-sky
1445Fri Jan 30 17:48:17 1998 Doug Evans <devans@canuck.cygnus.com>
1446
c44b38d7
DE
1447 * elf32-mips.c (elf_mips_dvp_11_pcrel_howto): Set pcrel_offset=true
1448 and partial_inplace=false.
c62a82b5
DE
1449 (mips_elf_relocate_section): Recognize R_MIPS_DVP_11_PCREL.
1450
1451end-sanitize-sky
8a5863be
ILT
1452Fri Jan 30 19:07:07 1998 Geoff Keating <geoffk@ozemail.com.au>
1453
1454 * elf32-ppc.c (ppc_elf_create_dynamic_sections): New procedure
1455 to create .dynsbss and .rela.sbss sections.
1456 (ppc_elf_adjust_dynamic_symbol): Put space for small data to be
1457 copied from dynamic objects into .sbss.
1458 (ppc_elf_size_dynamic_sections): Strip .rela.sbss if we don't
1459 use it. Correct typo of .rela.sdata2.
1460 (ppc_elf_finish_dynamic_symbol): Generate reloc to where we
1461 put the data, which may now be in .sbss.
1462 (ppc_elf_relocate_section): A SDAREL16 reloc can be in dynsbss.
1463 (elf_backend_create_dynamic_sections): Define as
1464 ppc_elf_create_dynamic_sections.
1465
1466 * elf32-ppc.c (ppc_elf_check_relocs): Don't emit R_PPC_REL* relocs
1467 against _GLOBAL_OFFSET_TABLE_.
1468 (ppc_elf_relocate_section): Don't emit R_PPC_REL32 relocs in
1469 shared libraries which refer to local symbols. Make sure that the
1470 test for allocating space for a reloc in a shared object is the
1471 same as the test for emitting a reloc.
1472
3134a2bd
DE
1473start-sanitize-sky
1474Thu Jan 29 17:44:53 1998 Doug Evans <devans@canuck.cygnus.com>
1475
1476 * elf32-mips.c: Add dvp support.
1477
1478end-sanitize-sky
847b9629
ILT
1479Thu Jan 29 15:55:35 1998 J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
1480
1481 * config.bfd (i[3456]-*-mingw32*): New target.
1482 * acinclude.m4 (BFD_BINARY_OPEN): Check for mingw32.
1483 * aclocal.m4, configure: Rebuild.
1484
36df40e0 1485start-sanitize-sky
06fdc311 1486Wed Jan 28 15:14:28 1998 Doug Evans <devans@canuck.cygnus.com>
36df40e0
DE
1487
1488 * config.bfd, configure.in: Add dvp support.
1489 * configure: Regenerate.
1490 * aclocal.m4: Regenerate.
1491 * archures.c, reloc.c, cpu-mips.c: Add dvp support.
1492 * bfd-in2.h, libbfd.h, libcoff.h: Regenerate.
1493
1494end-sanitize-sky
e6e3d4bd
ILT
1495Wed Jan 28 13:41:26 1998 Ian Lance Taylor <ian@cygnus.com>
1496
1497 * elf.c (_bfd_elf_close_and_cleanup): Only check the strtab if we
1498 have a bfd_object.
1499
16ce6205
RH
1500Tue Jan 27 21:43:55 1998 Richard Henderson <rth@cygnus.com>
1501
1502 Sparc v9 ABI compliant PLT:
1503 * elf64-sparc.c (PLT_HEADER_SIZE): V9 ABI uses 4 entries.
1504 (plt_templates, sparc64_elf_build_plt_entry): Delete.
1505 (LARGE_PLT_THRESHOLD): New define.
1506 (GOT_RESERVED_ENTRIES): V9 ABI only uses 1.
1507 (sparc64_elf_build_plt): New function.
1508 (sparc64_elf_plt_entry_offset): Likewise.
1509 (sparc64_elf_plt_ptr_offset): Likewise.
b35d842d
UD
1510 (sparc64_elf_adjust_dynamic_symbol): Change h->plt_offset to
1511 contain the index for convenience. Skip the initial entries
16ce6205
RH
1512 in .rela.plt.
1513 (sparc64_elf_size_dynamic_sections): Zero the allocated contents
1514 memory for the benefit of .rela.plt.
1515 (sparc64_elf_relocate_section): Call sparc64_elf_plt_entry_offset.
1516 (sparc64_elf_finish_dynamic_symbol): Kill template stuff. Use
1517 sparc64_elf_plt_entry_offset & sparc64_elf_plt_ptr_offset for reloc.
1518 (sparc64_elf_finish_dynamic_sections): DT_PLTGOT points to .plt.
1519 Call sparc64_elf_build_plt.
1520 (elf_backend_want_got_plt): No.
1521 (elf_backend_plt_readonly): No.
1522 (elf_backend_plt_alignment): 8.
1523
1524 * elf.c (_bfd_elf_close_and_cleanup): New function; free the shstrtab.
1525 * elf-bfd.h (_bfd_elf_close_and_cleanup): Declare it.
b35d842d 1526 * elfxx-target.h (bfd_elfNN_close_and_cleanup): Arrange for it
16ce6205
RH
1527 to be called.
1528
29410c45
JL
1529Tue Jan 27 21:45:15 1998 Jeffrey A Law (law@cygnus.com)
1530
1531 * archures.c (bfd_mach_mips*): Add definitions for various MIPS
1532 processors.
1533 * cpu-mips.c (arch_info_struct): Add mips variants.
1534 * bfd-in2.h: Rebuilt.
1535
ba6ea759
NC
1536Tue Jan 27 15:06:04 1998 Nick Clifton <nickc@cygnus.com>
1537
5e04ff14
ILT
1538 * coff-arm.c (coff_arm_relocate_section): Preserve the contents of
1539 t2a3_b_insn.
ba6ea759 1540
a3e62cc0
ILT
1541Tue Jan 27 12:47:27 1998 Robert Lipe <robertl@dgii.com>
1542
b35d842d 1543 * config.bfd (i[3456]86-sco3.2v5*): ELF now the default.
e6e3d4bd 1544 (i[3456]86sco3.2v5*coff): New target.
a3e62cc0 1545
f1dc7bb2
ILT
1546Mon Jan 26 15:41:30 1998 Ian Lance Taylor <ian@cygnus.com>
1547
1548 * bfd-in2.h: Rebuild with changes to chew--tab expansion.
1549
f3da1439
RH
1550Thu Jan 22 21:26:48 1998 Richard Henderson <rth@cygnus.com>
1551
1552 * bfd.c (bfd_get_error_handler): Add orthogonal function.
1553 * bfd-in2.h: Regenerate.
1554
31af3ca9
RH
1555Thu Jan 22 21:13:39 1998 Richard Henderson <rth@cygnus.com>
1556
1557 * tekhex.c (tekhex_write_object_contents): Check for no symbols.
1558
d7340050
ILT
1559Wed Jan 21 21:19:03 1998 Ian Lance Taylor <ian@cygnus.com>
1560
f5e23c73
ILT
1561 * coff-i386.c (coff_i386_rtype_to_howto): If COFF_WITH_PE, don't
1562 adjust addend for an output common symbol (from Jimmy Blair
1563 <jimmyb@wrs.com>). If COFF_WITH_PE, adjust addend for PC relative
1564 defined symbol to counteract adjustment made in generic relocation
1565 code.
1566
d7340050
ILT
1567 * dwarf2.c: Include sysdep.h, not stdio.h and stdlib.h.
1568
bc01e4a2
ILT
1569Wed Jan 21 21:16:06 1998 Manfred Hollstein <manfred@s-direktnet.de>
1570
1571 * coff-m88k.c (GET_SCNDHR_NRELOC): Fix typo in macro name.
1572 (GET_SCNDHR_NLNNO): Likewise.
1573
e79e79cf
ILT
1574Mon Jan 19 12:49:52 1998 Ian Lance Taylor <ian@cygnus.com>
1575
1576 * cpu-sh.c (arch_info_struct): Correct next field of sh3e.
1577
cc662e86
NC
1578Wed Jan 14 17:23:27 1998 Nick Clifton <nickc@cygnus.com>
1579
1580 * elf32-m32r.c: Add macros to handle NOP insertion.
1581
16b7d65d
RH
1582Wed Jan 14 16:15:22 1998 Richard Henderson <rth@cygnus.com>
1583
1584 * xcofflink.c (xcoff_mark_symbol): Don't mark the absolute section.
1585 (xcoff_mark): Likewise.
1586 (xcoff_build_ldsyms): Mark absolute symbols.
1587
52dcb248
RH
1588Wed Jan 14 16:03:11 1998 Richard Henderson <rth@cygnus.com>
1589
1590 * bout.c (b_out_write_object_contents): Sort symbols before output
1591 to keep {CALL,BAL}NAME symbols adjacent.
1592 (b_out_symbol_cmp): New function.
1593
06fdc311 1594For older changes see ChangeLog-9697
41126f15
JK
1595\f
1596Local Variables:
c6c7035c 1597mode: change-log
41126f15 1598left-margin: 8
6ec3bb6a
ILT
1599fill-column: 74
1600version-control: never
1601End:
This page took 0.34218 seconds and 4 git commands to generate.