2000-11-23 Kazu Hirata <kazu@hxi.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
e9e41bd9
KH
12000-11-23 Kazu Hirata <kazu@hxi.com>
2
3 * aix386-core.c: Fix formatting.
4
64bf6ae6
JW
52000-11-22 Jim Wilson <wilson@redhat.com>
6
7 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
8 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
9 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
10 (ins_imms_scaled): Initialize sign_bit at function entry.
11 (elf64_ia64_operands): Add missing initializers.
12 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
13 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
14 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
15 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
16 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
17 parameters.
18 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
19 and free_extsyms at function entry.
20 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
21 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
22 (get_got): Delete unused local srel.
23 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
24 (elfNN_ia64_relocate_section): Delete unused local dynindx.
25
1abaf976
KH
262000-11-21 Kazu Hirata <kazu@hxi.com>
27
6e301b2b
KH
28 * coff-a29k.c: Fix formatting.
29 * coff-h8500.c: Likewise.
30 * coff-i960.c: Likewise.
31 * coff-ppc.c: Likewise.
32 * coff-rs6000.c: Likewise.
33 * coff-stgo32.c: Likewise.
34 * coff-tic54x.c: Likewise.
35 * coff-w65.c: Likewise.
36 * cpu-h8500.c: Likewise.
37 * cpu-hppa.c: Likewise.
38 * cpu-ns32k.c: Likewise.
39 * ecoff.c: Likewise.
1abaf976
KH
40 * ecofflink.c: Likewise.
41
a0fc8ba1
NC
422000-11-21 Nick Clifton <nickc@redhat.com>
43
44 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
45 remove possibility of infinite loop.
46
beb0d161
KH
472000-11-20 Kazu Hirata <kazu@hxi.com>
48
49 * aix386-core.c: Fix formatting.
50 * aout-adobe.c: Likewise.
51 * aout-arm.c: Likewise.
52 * aout-encap.c: Likewise.
53 * aout-ns32k.c: Likewise.
54 * aout-target.h: Likewise.
55 * aout-tic30.c: Likewise.
56 * aoutf1.h: Likewise.
57 * aoutx.h: Likewise.
58 * archive.c: Likewise.
eb6e10cb
KH
59 * bfd-in.h: Likewise.
60 * bfd-in2.h: Likewise.
61 * bfd.c: Likewise.
62 * bout.c: Likewise.
beb0d161 63
2c2475db
JW
642000-11-17 H.J. Lu <hjl@gnu.org>
65
66 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
67 pltoff entries for DT_INIT and DT_FINI.
68 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
69 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
70 entries.
71
18b27f17
RH
722000-11-16 Richard Henderson <rth@redhat.com>
73
74 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
75 (allocate_dynrel_entries): Likewise.
76 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
77 (set_pltoff_entry): Likewise.
78 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
79 (elfNN_ia64_reloc_type_lookup): Likewise.
80 (elfNN_ia64_install_value): Likewise.
81 (elfNN_ia64_relocate_section): Likewise.
82 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
83 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
84
98591c73
KH
852000-11-16 Kazu Hirata <kazu@hxi.com>
86
71f6b586
KH
87 * cpu-a29k.c: Fix formatting.
88 * cpu-alpha.c: Likewise.
89 * cpu-arm.c: Likewise.
90 * cpu-avr.c: Likewise.
91 * cpu-d10v.c: Likewise.
92 * cpu-h8500.c: Likewise.
93 * cpu-hppa.c: Likewise.
94 * cpu-i370.c: Likewise.
95 * cpu-i386.c: Likewise.
96 * cpu-i960.c: Likewise.
97 * cpu-ia64-opc.c: Likewise.
98 * cpu-ia64.c: Likewise.
99 * cpu-m32r.c: Likewise.
100 * cpu-m68hc11.c: Likewise.
101 * cpu-m68hc12.c: Likewise.
102 * cpu-m68k.c: Likewise.
103 * cpu-m88k.c: Likewise.
104 * cpu-mips.c: Likewise.
105 * cpu-ns32k.c: Likewise.
106 * cpu-pj.c: Likewise.
107 * cpu-powerpc.c: Likewise.
108 * cpu-sh.c: Likewise.
109 * cpu-sparc.c: Likewise.
110 * cpu-tic54x.c: Likewise.
111 * cpu-v850.c: Likewise.
112 * cpu-vax.c: Likewise.
113 * cpu-w65.c: Likewise.
114 * cpu-we32k.c: Likewise.
115 * cpu-z8k.c: Likewise.
116 * dwarf1.c: Likewise.
98591c73
KH
117 * dwarf2.c: Likewise.
118
c5930ee6
KH
1192000-11-15 Kazu Hirata <kazu@hxi.com>
120
121 * coff-arm.c: Fix formatting.
122 * coff-ppc.c: Likewise.
123 * coff-rs6000.c: Likewise.
cbfe05c4
KH
124 * coff-sh.c: Likewise.
125 * coff-sparc.c: Likewise.
126 * coff-tic30.c: Likewise.
127 * coff-tic54x.c: Likewise.
128 * coff-tic80.c: Likewise.
129 * coff-w65.c: Likewise.
130 * coff-we32k.c: Likewise.
131 * coff-z8k.c: Likewise.
c5930ee6 132
dac544a8
RH
1332000-11-15 Richard Henderson <rth@redhat.com>
134
135 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
136 section with the same ALLOC|LOAD flags as the source section.
137
c810873d
JJ
1382000-11-14 Jakub Jelinek <jakub@redhat.com>
139
140 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
141 by STO_ALPHA constants.
142
43646c9d
KH
1432000-11-14 Kazu Hirata <kazu@hxi.com>
144
145 * coff-pmac.c: Fix formatting.
146 * coff-ppc.c: Likewise.
147
051b8577
L
1482000-11-13 H.J. Lu <hjl@gnu.org>
149
150 * elflink.h (elf_link_add_object_symbols): Also add indirect
151 symbols for common symbols with the default version.
152
90460d97
PB
1532000-11-09 Philip Blundell <pb@futuretv.com>
154
155 * section.c (STD_SECTION): Set gc_mark flag.
156
b48499ec
KH
1572000-11-11 Kazu Hirata <kazu@hxi.com>
158
159 * coff-i960.c: Likewise.
160 * coff-m68k.c: Likewise.
161 * coff-m88k.c: Likewise.
162 * coff-mcore.c: Likewise.
163 * coff-mips.c: Likewise.
164
c5aeb40f
AO
1652000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
166
167 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
168
5fcfd273
KH
1692000-11-10 Kazu Hirata <kazu@hxi.com>
170
171 * coff-h8300.c: Fix formatting.
172 * coff-h8500.c: Likewise.
173 * coff-i386.c: Likewise.
174 * coff-i860.c: Likewise.
175 * coff-i960.c: Likewise.
176 * coff-ia64.c: Likewise.
177
047066e1
KH
1782000-11-09 Kazu Hirata <kazu@hxi.com>
179
180 * archive.c: Fix formatting.
181 * archures.c: Likewise.
182
9a951beb
RH
1832000-11-07 Richard Henderson <rth@redhat.com>
184
185 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
186 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
187 * section.c (bfd_set_section_contents): Call memcpy if
188 section->contents set and location not equal to contents plus offset.
189
aebad5fe
KH
1902000-11-08 Kazu Hirata <kazu@hxi.com>
191
8546af74
KH
192 * bfd-in.h: Fix formatting.
193 * bfd-in2.h: Likewise.
194 * bfd.c: Likewise.
aebad5fe
KH
195 * binary.c: Likewise.
196 * bout.c: Likewise.
346ceb11
KH
197 * coff-a29k.c: Likewise.
198 * coff-alpha.c: Likewise.
199 * coff-apollo.c: Likewise.
200 * coff-aux.c: Likewise.
aebad5fe 201
0ef5a5bd
KH
2022000-11-07 Kazu Hirata <kazu@hxi.com>
203
204 * aix386-core.c: Fix formatting.
205 * aoutf1.h: Likewise.
206 * aoutx.h: Likewise.
207 * archures.c: Likewise.
208 * armnetbsd.c: Likewise.
209
d562d2fb
AM
2102000-11-07 Alan Modra <alan@linuxcare.com.au>
211
212 * coff-h8300.c (special): Adjust reloc address.
213
bbe66d08
JW
2142000-11-06 Steve Ellcey <sje@cup.hp.com>
215
4efc3e05 216 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
bbe66d08
JW
217 to differentiate elf32 and elf64 on ia64.
218 * bfd-in2.h: Regenerate.
219 * config.bfd: Add target for "ia64*-*-hpux*".
220 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
221 * configure: Regenerate.
4efc3e05 222 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
bbe66d08
JW
223 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
224
225 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
226 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
227 * Makefile.in: Regnerate.
4efc3e05 228 * elf64-ia64.c: Deleted.
bbe66d08
JW
229 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
230
c4dfa77f
KH
2312000-11-06 Kazu Hirata <kazu@hxi.com>
232
233 * aout-adobe.c: Fix formatting.
234 * aout-arm.c: Likewise.
235 * aout-cris.c: Likewise.
236 * aout-encap.c: Likewise.
237 * aout-ns32k.c: Likewise.
238 * aout-target.h: Likewise.
239 * aout-tic30.c: Likewise.
240
cf919dfd
PB
2412000-11-05 Philip Blundell <philb@gnu.org>
242
243 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
244 BFDs containing no sections to be merged, regardless of their flags.
245
2462000-11-04 Philip Blundell <philb@gnu.org>
247
248 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
249 if a relocation for an undefined symbol also results in an
250 overflow.
251
8848a8d0
CF
252Mon Nov 6 13:35:07 2000 Christopher Faylor <cgf@cygnus.com>
253
254 * config.bfd: Add support for Sun Chorus.
255
46d59bfa
DB
2562000-11-05 David O'Brien <obrien@FreeBSD.org>
257
258 * configure.in: Recognize alpha-*-freebsd*.
259 * configure: Regenerate.
260
420496c1
NC
2612000-11-02 Luciano Gemme <ishitawa@yahoo.com>
262
263 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
264 (Chunk): New global variable set by a parameter in objcopy.c.
265 (S3Forced): New global variable set by a parameter in
266 objcopy.c.
267 (srec_set_section_contents): If S3Forced is true, always generate
268 S3 records.
269 (srec_write_section): Use 'Chunk' to limit maximum length of S
270 records.
271
59ff2774
NC
2722000-11-02 Per Lundberg <plundis@chaosdev.org>
273
274 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
275 * Makefile.in: Regenerate.
276 * bfd-in2.h: Regenerate.
277 * po/bfd.pot: Regenerate.
278
ee43f35e
PB
2792000-10-31 Philip Blundell <philb@gnu.org>
280
281 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
282 EF_SOFT_FLOAT if it is defined.
283
1006ba19
PB
2842000-10-27 Philip Blundell <philb@gnu.org>
285
286 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
287 attempts to mix PIC code with non-PIC, just mark the output as
288 being position dependent.
289 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
290 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
291 all mismatches, not just the first one.
292
c4920b97
NC
2932000-10-25 Chris Demetriou <cgd@sibyte.com>
294
295 * ieee.c (ieee_archive_p): Plug one of many possible
296 memory leaks in error handling.
297
19f7b010
JJ
2982000-10-20 Jakub Jelinek <jakub@redhat.com>
299
300 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
301 elf32_sparc_object_p, elf32_sparc_final_write_processing):
302 Support v8plusb.
303 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
304 sparc64_elf_object_p): Support v9b.
305 * archures.c: Declare v8plusb and v9b machines.
306 * bfd-in2.h: Ditto.
307 * cpu-sparc.c: Ditto.
308
e1e0340b
GK
3092000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
310
ea5fbc67
GK
311 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
312 of a GOT reloc.
313
e1e0340b
GK
314 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
315 (SYMBOL_CALLS_LOCAL): New macro.
316 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
317 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
318 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
319 (ppc_elf_relocate_section): Use flag variable to determine
320 whether the relocation refers to a local symbol.
321 Test whether a PLTREL24 reloc will produce a reloc by looking
322 to see whether a PLT entry was made.
323
a4b120e1
GK
3242000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
325
326 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
327 entries that could serve as a definition for a weak symbol.
328
5af5b85b
UC
3292000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
330
331 From Ralf Baechle <ralf@gnu.org>
332
333 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
334 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
335 against local symbols.
336 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
337
3ef20aaa
AM
3382000-10-12 Alan Modra <alan@linuxcare.com.au>
339
24376d1b
AM
340 * section.c (struct sec): Add kept_section.
341 (struct bfd_comdat_info): Remove sec, we can use above.
342 (STD_SECTION): Add initializer.
343 (bfd_make_section_anyway): Init here too.
344
345 * bfd-in2.h: Regenerate.
346
347 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
348 zeroing of `flags'.
349 (elf_link_input_bfd): Set all asection->symbol->value's here, and
350 fudge values for discarded link-once section symbols.
351
3ef20aaa
AM
352 * elf64-hppa.c: Include alloca-conf.h
353
c0e219cc
AM
3542000-10-11 Alan Modra <alan@linuxcare.com.au>
355
d01e2a23
AM
356 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
357
c0e219cc
AM
358 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
359
fe268b66
AM
3602000-10-10 Alan Modra <alan@linuxcare.com.au>
361
362 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
363
4d7ce4dd
AM
3642000-10-10 Tom Rix <trix@redhat.com>
365
366 * section.c (bfd_make_section_anyway): Release newsect ptr when
367 newsect->symbol fails to alloc. Use bfd_release instead of free.
368
f3b6f7c3
RH
3692000-10-09 Richard Henderson <rth@cygnus.com
370
371 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
372 (elf64_ia64_unwind_entry_compare): New.
373 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
374
44852b19
AM
3752000-10-07 Alan Modra <alan@linuxcare.com.au>
376
fc8c40a0
AM
377 * elflink.h (size_dynamic_sections): Don't create various tags if
378 .dynstr is excluded from the link. Don't set first dynsym entry
379 if dynsymcount is zero.
380 (elf_bfd_final_link): Don't try to swap out dynamic syms if
381 .dynsym excluded from the link. Don't try to write any dynamic
382 sections excluded from the link.
383
44852b19
AM
384 * elf.c (swap_out_syms): Handle global section symbols.
385
3e4554a2
DD
3862000-10-05 DJ Delorie <dj@redhat.com>
387
388 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
389 * coffcode.h (coff_set_alignment_hook): read extended reloc count
390 (coff_write_relocs): write extended reloc count
391 (coff_write_object_contents): account for extended relocs
392
fa152c49
JW
3932000-10-05 Jim Wilson <wilson@cygnus.com>
394
395 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
396 field.
397 * elf.c (_bfd_elf_make_section_from_shdr): Call the
398 elf_backend_section_flags function.
399 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
400 code.
401 (elf64_ia64_section_flags): New function containing flag conversion
402 code.
403 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
404 * elfxx-target.h (elf_backend_section_flags): Define.
405 (elfNN_bed): Initialize elf_backend_section_flags field.
406
36605136
AM
4072000-10-02 Alan Modra <alan@linuxcare.com.au>
408
409 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
410 _bfd_elf32_gc_record_vtable. Correct a comment.
411
4b6609a0
UC
4122000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
413
414 From Ralf Baechle <ralf@gnu.org>
415
416 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
417 produces binaries with got[1] = 0x80000001 to differenciate them
418 for the dynamic linker from the broken binaries produced by old
419 versions.
36605136 420
f572a39d
AM
4212000-09-30 Petr Sorfa <petrs@sco.com>
422
423 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
424 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
425 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
426 * configure: Regenerate.
427
4da81684
HPN
4282000-09-27 Hans-Peter Nilsson <hp@axis.com>
429
430 Define two bfd_targets for absence and presence of leading
431 underscore on symbols. Make sure to only link same kind.
432 * elf32-cris.c (cris_elf_object_p,
433 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
434 cris_elf_merge_private_bfd_data): New.
435 (elf_backend_object_p, elf_backend_final_write_processing,
436 bfd_elf32_bfd_print_private_bfd_data,
437 bfd_elf32_bfd_merge_private_bfd_data): Define.
438 <Target vector definition>: Include elf32-target.h twice with
439 different macro settings:
440 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
441 bfd_elf32_us_cris_vec.
442 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
443 (elf_symbol_leading_char): First as 0, then '_'.
444 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
445 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
446 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
447 * configure: Regenerate.
448 * targets.c: Declare bfd_elf32_us_cris_vec.
449 * po/bfd.pot: Regenerate.
450
9a5aca8c
AM
4512000-09-29 Momchil Velikov <velco@fadata.bg>
452
453 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
454 R_ARM_THM_PC22 relocations.
455
512a2384
AM
4562000-09-29 NIIBE Yutaka <gniibe@chroot.org>
457
458 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
459
6c99a5c3
AM
4602000-09-29 Momchil Velikov <velco@fadata.bg>
461
462 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
463 is has the SEC_HAS_CONTENTS flag set.
464