]> Git Repo - binutils.git/blame - bfd/ChangeLog
2001-06-29 H.J. Lu <[email protected]>
[binutils.git] / bfd / ChangeLog
CommitLineData
b64977c5
L
12001-06-29 H.J. Lu <[email protected]>
2
3 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
4 hplink->sgot is NULL before filling GOT. Checck if hplink->splt
5 is NULL before filling PLT.
6
e45bf863
AM
72001-06-29 Alan Modra <[email protected]>
8
9 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
10
5a15f56f
AM
112001-06-27 Alan Modra <[email protected]>
12
446f2863
AM
13 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
14 here..
15 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
16 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
17 after gc has run.
18
19 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
20 (IS_ABSOLUTE_RELOC): Define.
21 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
22 (hppa_link_hash_newfunc): Always init it.
23 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
24 create COPY relocs only when the reloc is in a read-only section.
25 Instead, allocate space for a dynamic reloc to reference the
26 library symbol directly. Keep track of space we allocate using
27 relocs_entries.
28 (hppa_discard_copies): Delete, and move code to..
29 (allocate_plt_and_got): ..here. Rename to
30 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
31 relocs for non-shared link.
32 (elf32_hppa_size_dynamic_sections): Update calls to above.
33 (elf32_hppa_relocate_section): Write out the dynamic relocs used
34 in lieu of COPY relocs.
35
5a15f56f
AM
36 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
37 here..
38 (elf_i386_adjust_dynamic_symbol): ..nor here..
39 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
40 after gc has run.
41 (elf_i386_size_dynamic_sections): Fix a comment.
42 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
43 involved in writing reloc out.
44
866b3400
AM
452001-06-25 Alan Modra <[email protected]>
46
28d0b90e
AM
47 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
48 Ensure syms are dynamic if we might be emitting a reloc.
49 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
50 for undefweak or undefined syms..
51 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
52
866b3400
AM
53 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
54 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
55 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
56 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
57
6cbac8b9
L
582001-06-24 H.J. Lu <[email protected]>
59
60 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
61 strncasecmp/strcasecmp instead of strncmp/strcmp.
62
62b7d3f1
L
632001-06-23 H.J. Lu <[email protected]>
64
866b3400
AM
65 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
66 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
62b7d3f1
L
67 in the regular object file and treat the weak definition as
68 the normal one.
69
12d0ee4a
AM
702001-06-23 Alan Modra <[email protected]>
71
8c694914
AM
72 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
73 unresolved_reloc test to exclude cases where we use "relocation"
74 before setting it to point into the .got. Reinstate fudge for
75 unresolved relocs in debugging sections.
76
83be169b
AM
77 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
78 complicated tests for unresolvable relocs with a simple direct
79 scheme using "unresolved_reloc" var.
80
ffb2e45b
AM
81 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
82 elf_i386_dyn_relocs. Update comment.
83 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
84 dyn_relocs.
85 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
86 others to aborts.
87 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
88 abort.
89 (elf_i386_size_dynamic_sections): Likewise.
90 (elf_i386_finish_dynamic_symbol): Likewise.
91 (elf_i386_finish_dynamic_sections): Likewise.
92 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
93 handling code.
94
12d0ee4a
AM
95 Avoid creating COPY relocs if possible.
96 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
97 which .got created. Mark symbols used by R_386_32 and R_386_PC32
98 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
99 reloc is in a read-only section. Instead, allocate space for a
100 dynamic reloc to reference the library symbol directly. Keep
101 track of space we allocate using pcrel_relocs_copied.
102 (discard_copies): Delete, and move code to ..
103 (allocate_plt_and_got): ..here. Rename to
104 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
105 relocs for non-shared link.
106 (elf_i386_size_dynamic_sections): Update calls to above functions.
107 (elf_i386_relocate_section): Write out the dynamic relocs. Add
108 more ugly logic to avoid "unresolvable relocation" error. Use
109 htab shortcut in place of elf_hash_table macro.
110 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
111 not always be created now.
112
f631948d
AJ
1132001-06-20 Bo Thorsen <[email protected]>
114
115 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
116 shared libraries.
117
89084430
NC
1182001-06-18 Thiemo Seufer <[email protected]>
119
120 * configure.host (mips64-*-linux): Reformat.
121
68fb2e56
AM
1222001-06-21 Alan Modra <[email protected]>
123
124 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
125 allocate local .got space. Use shortcuts from hash table for .got
126 and .plt rather than comparing section names.
127 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
128 adjusting index into local_got_refcounts to document what we are
129 really doing.
130 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
131 Tidy .got and .plt error checking.
132
9317eacc
CM
1332001-06-20 Catherine Moore <[email protected]>
134
135 * elf-bfd.h (struct elf_backend_data):
136 elf_backend_emit_relocs: New field: Function for emitting
137 relocs.
138 elf_backend_count_relocs: New field: Function for determining
139 the number of relocs to be emitted.
140 * elfxx-target.h: Provide default (NULL) values for
141 elf_backend_emit_relocs and elf_backend_count_relocs.
142 * elflink.h (elf_link_size_reloc_section): Make the hash table
143 big enough to hold the relocs counted by either reloc_count or
f631948d 144 o->reloc_count.
9317eacc
CM
145 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
146 should be emitted, either because of a command line option
147 stored in the info structure or because the target provides a
148 special reloc emitting function.
149 If the target provides a reloc counting function use it,
150 unless performing a relocatable link or emitting all relocs.
151 Also set the SEC_RELOC flag on any output section which will
152 contain relocs.
153 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
154 should be emitted, either because of a command line option
155 stored in the info structure or because the target provides a
156 special reloc emitting function.
157 If the target provides a reloc emitting function, use it,
158 unless performing a relocatable link or emitting all relocs.
159
161d71a6
L
1602001-06-20 H.J. Lu <[email protected]>
161
162 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
163 allocate local .got space.
164
fd8ab9e5
AJ
1652001-06-19 Andreas Jaeger <[email protected]>
166
167 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
168 dynamic symbols.
169
99293407
HPN
1702001-06-18 Hans-Peter Nilsson <[email protected]>
171
172 * elflink.h (struct elf_assign_sym_version_info): Remove member
173 export_dynamic. All users changed to use info member.
174 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
175 export_dynamic, instead use member in parameter info.
176 * bfd-in.h (bfd_elf32_size_dynamic_sections,
177 bfd_elf64_size_dynamic_sections): Update prototype.
178 * bfd-in2.h: Regenerate.
179
bc2b6df7
L
1802001-06-18 H.J. Lu <[email protected]>
181
182 * elflink.h (elf_info_failed): Add a new field, verdefs.
183 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
184 elf_export_symbol.
185 (elf_export_symbol): Check eif->verdefs to decide if a symbol
186 should be exported.
187
43917054
L
1882001-06-17 H.J. Lu <[email protected]>
189
190 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
191 readonly_reloc, to record if a relocation in the .rel.dyn
f631948d 192 section is against a read-only section.
43917054
L
193 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
194 field to false.
195 (_bfd_mips_elf_check_relocs): Record if there is a relocation
196 in the .rel.dyn section against a read-only section by setting
197 DF_TEXTREL or readonly_reloc.
198 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
199 it is true.
200 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
201 there is a relocation in the .rel.dyn section against a
202 read-only section.
203 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
204 DF_TEXTREL is set.
205
7c8ca0e4
NC
2062001-06-12 Nick Clifton <[email protected]>
207
208 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
209 function. Move flagword result into parameter list. Remove
210 comment about setting bfd_error_handler to intercept failure
211 results.
212 * coffgen.c (make_a_section_from_file): Examine result of
213 calling bfd_coff_styp_to_sec_flags and pass a failure back to
214 caller.
215 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
216 function. Move flagword result into parameter list.
217 * libcoff.h: Regenerate.
218 * libecoff.h: Regenerate.
219
dee0a8f4
NC
2202001-06-13 Nick Clifton <[email protected]>
221
222 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
223 section is going to follow it.
224
0d1ea5c0
CM
2252001-06-12 Catherine Moore <[email protected]>
226
227 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
228 with the file_align entry from elf_backend_data.
229 (elf_gc_smash_unused_vtentry_relocs): Likewise.
230 (elf_gc_record_vtentry): Likewise.
231
4e8a9624
AM
2322001-06-10 Alan Modra <[email protected]>
233
234 * elflink.h: Whitespace changes.
235 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
236 rather than "unsigned char".
237 (elf_link_output_relocs): Likewise.
238 (elf_link_input_bfd): Likewise.
239 (elf_reloc_link_order): LIkewise.
240 * elf.c: s/CONST/const/. Whitespace changes.
241 * elf32-mips.c: Formatting fix.
242
243 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
244 * Makefile.in: Regenerate.
245 * po/Make-in: Remove trailing tab.
246
7a25cd3e
PB
2472001-06-09 Philip Blundell <[email protected]>
248
249 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
250 change.
251 (elf32_arm_plt_entry): Likewise.
252
3f5a136d
L
2532001-06-08 H.J. Lu <[email protected]>
254
255 * elf.c (swap_out_syms): Keep names for global section symbols.
256
d8fe1fed
L
2572001-06-07 H.J. Lu <[email protected]>
258
259 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
260 MIPS-based machines need it.
261
c36e006f
L
2622001-06-07 H.J. Lu <[email protected]>
263
264 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
265 for SGI only.
266
267 * config.bfd: Remove ecoff from Linux/mips.
268
cc78d0af
AJ
2692001-06-07 Andreas Jaeger <[email protected]>
270
271 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
272 assertion.
273 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
274 alignment of 8 for .rela sections; handle further relocations.
275
879db8be
NC
2762001-06-06 Christian Groessler <[email protected]>
277
278 * coff-z8k.c: Fix formatting.
279 Fix howtos: howto->size was always 1.
280
cbb1fd50
NC
2812001-06-05 Thiemo Seufer <[email protected]>
282
283 * configure.host (mips64*-*-linux*): Define.
284
73a74a62
AM
2852001-06-05 Alan Modra <[email protected]>
286
6725bdbf
AM
287 * elf32-i386.c (elf_i386_discard_copies): Rename to
288 discard_copies, and use elf_link_hash_entry arg rather than
289 elf_i386_link_hash_entry.
290 (elf_i386_link_hash_traverse): Delete.
291 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
292 Tidy sizing of dynamic sections.
293 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
294 possible .plt entries.
295 (elf_i386_gc_sweep_hook): Likewise.
296 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
297 everything with plt.refcount <= 0.
298
299 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
300 .relgot space here.
301 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
4e8a9624 302 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
6725bdbf
AM
303 .rel.plt here..
304 (allocate_plt_and_got): ..instead do it all here. New function.
305 (elf_i386_size_dynamic_sections): Allocate local .got space and
306 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
307 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
308 rather than gc variety).
309 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
310 (elf_i386_relocate_section): Use it here and correct handling of
311 R_386_GOT32. Provide section and offset for "unresolvable
312 relocation" error message.
313 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
314
315 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
316 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
317 (elf_i386_link_hash_table_create): Init them.
318 (create_got_section): New function.
319 (elf_i386_create_dynamic_sections): New function.
320 (elf_backend_create_dynamic_sections): Set to above.
321 (elf_i386_check_relocs): Use shortcuts from hash table rather than
322 calling bfd_get_section_by_name.
323 (elf_i386_gc_sweep_hook): Likewise.
324 (elf_i386_adjust_dynamic_symbol): Likewise.
325 (elf_i386_size_dynamic_sections): Likewise.
326 (elf_i386_relocate_section): Likewise.
327 (elf_i386_finish_dynamic_sections): Likewise.
328
73a74a62
AM
329 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
330
24a5e751
L
3312001-06-02 H.J. Lu <[email protected]>
332
333 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
334 and ELFOSABI_HPUX.
335 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
336
15103188
L
3372001-06-02 H.J. Lu <[email protected]>
338
339 * aout-cris.c (MACHTYPE_OK): New. Defined.
340
2f484710
HPN
3412001-06-02 Hans-Peter Nilsson <[email protected]>
342
343 * section.c (_bfd_strip_section_from_output): Handle NULL
344 output_section.
345
a5ac692b
L
3462001-06-02 H.J. Lu <[email protected]>
347
348 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
349 rs6000coff64_vec only if BFD64 is defined.
350 (powerpc64-*-aix*): Enable only if BFD64 is defined.
351
27e53099
L
3522001-06-02 H.J. Lu <[email protected]>
353
354 * coff-ia64.c (ia64coff_object_p): Rewrite with
355 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
356
80643fbc
AJ
3572001-06-01 Andreas Jaeger <[email protected]>
358
359 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
360 relocation, small reformatting.
361
6b3db546
AJ
3622001-05-29 Andreas Jaeger <[email protected]>
363
364 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
365 (elf64_x86_64_relocate_section): Likewise.
366
4dc86686
AM
3672001-05-30 Alan Modra <[email protected]>
368
369 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
370 millicode. Don't allocate .got and .rela.got space here..
371 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
372 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
373 .rela.plt here..
374 (hppa_handle_PIC_calls): ..nor here..
375 (allocate_plt_and_got): ..instead do it all here. New function.
376 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
377 call allocate_plt_and_got. No need to zap .got if not dynamic.
378 (elf32_hppa_final_link): Call regular bfd_final_link instead of
379 gc_common_final_link.
380 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
381 (elf32_hppa_relocate_section): Use it here.
382 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
383 dynamic_sections_created.
384 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
385
de41dcd8
AJ
3862001-05-28 Andreas Jaeger <[email protected]>
387
388 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
389 generic version since we want a hashsize of 4.
390 (elf_backend_size_info): Likewise.
391
209f668e
NC
3922001-05-28 Thiemo Seufer <[email protected]>
393
209f668e
NC
394 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
395 a zeroing loop.
396 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
397 (elf_link_input_bfd): Likewise.
398 (elf_reloc_link_order): Likewise.
399 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
400 relocations correctly.
401
f7a74f8c
NC
4022001-05-28 Nicolas Pitre <[email protected]>
403
404 * elf32-arm.h: fix PLT generation for big endian ARM
405
8dea1268
AM
4062001-05-28 Alan Modra <[email protected]>
407
408 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
409 for symbols forced local that need plabels.
410 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
411 .plt.rela for local syms if non-shared.
412 (hppa_build_one_stub): Mask lsb of plt.offset.
413 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
414 (clobber_millicode_symbols): Correct comment.
415 (elf32_hppa_relocate_section): Likewise.
416 (elf32_hppa_finish_dynamic_symbol): Likewise.
417
0f2712ed
NC
4182001-05-28 Jeff Sturm <[email protected]>
419
420 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
421 * bfd-in2.h: Regenerate.
422 * libbfd.h: Regenerate.
423 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
424 and BFD_RELOC_SPARC_UA64 mapping
425 * elf64-sparc.c: Likewise.
de41dcd8 426
6768c14a
L
4272001-05-25 H.J. Lu <[email protected]>
428
429 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
430 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
431 (coff-rs6000.lo): Remove the old dependency.
432 * Makefile.in: Rebuild.
433
434 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
435 coff-rs6000.lo.
436
b55039f4
L
4372001-05-25 H.J. Lu <[email protected]>
438
439 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
440 rs6000coff_core_file_matches_executable_p,
441 rs6000coff_core_file_failing_command and
442 rs6000coff_core_file_failing_signal only if AIX_CORE is
443 defined.
444 (pmac_xcoff_vec): Likewise.
445 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
446
64e9ece0
TW
4472001-05-25 Timothy Wall <[email protected]>
448
449 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
450 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
451
f34d8777
L
4522001-05-25 H.J. Lu <[email protected]>
453
454 * bfd-in2.h: Regenerated.
455 * libcoff.h: Likewise.
456
49e9d0d3
AM
4572001-05-25 Alan Modra <[email protected]>
458
459 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
460 undefined millicode syms in shared libs.
461 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
462 (elf32_hppa_check_relocs): Likewise.
463 (elf32_hppa_adjust_dynamic_symbol): Likewise.
464 (elf32_hppa_size_dynamic_sections): Likewise.
465 (elf32_hppa_relocate_section): Likewise.
466 (elf32_hppa_finish_dynamic_symbol): Likewise.
467 (elf32_hppa_finish_dynamic_sections): Likewise.
468
beb1bf64
TR
4692001-05-24 Tom Rix <[email protected]>
470
471 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
472 xcoff-target.h not used to define rs6000 or ppc bfd.
473 * Makefile.in same
474
475 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
476 to 64 bit.
477
478 * coff-rs6000.c : Many changes for 64 bit support. Move common
479 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
480 and pmac_xcoff_vec
481
482 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
483 linker now supported. Explictly define the rs6000coff64_vec.
484
485 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
de41dcd8 486 (coff_print_aux) same
beb1bf64
TR
487 (coff_write_object_contents) same
488 (coff_slurp_line_table) same
489
490 * coffgen.c : (coff_fix_symbol_name) formatting
491 (coff_mangle_symbols) xcoff 64 bit support
492 (coff_write_symbol) same
493 (coff_write_alien_symbol) same
494 (coff_write_native_symbol) same
495 (coff_write_symbols) same
496 (coff_get_symbol_info) same
497 (bfd_coff_get_syment) same
498 (coff_print_symbol) same
499
500 * config.bfd : add powerpc64-*-aix* target
501
502 * libcoff-in.h : formatting
503
504 * libcoff.h : move xcoff extern declarations to libxcoff.h
505
506 * libxcoff.h : New file
507
de41dcd8
AJ
508 * xcofflink.c : Many changes for xcoff64 support. Move common
509 structures to include/coff/xcoff.h. Move specific structure to
beb1bf64
TR
510 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
511 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
de41dcd8
AJ
512
513 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
beb1bf64
TR
514 aix4.2+ -binitfini.
515
516 (xcoff_build_ldsyms) : handle special __rtinit symbol.
517
e90fdc1a
AO
5182001-05-23 Alexandre Oliva <[email protected]>
519
520 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
521 s/ENTIRES/ENTRIES/.
522
d1cf510e
NC
5232001-05-23 Thiemo Seufer <[email protected]>
524
c2feb664
NC
525 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
526 * libbfd.h: Regenerate.
4e8a9624 527 * bfd-in2.h: Regenerate.
c2feb664 528
d1cf510e
NC
529 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
530 * archures.c (bfd_mach_mips12000): Define.
531 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
532 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
533 support.
534 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
535 * bfd-in2.h: Regenerate.
536 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
537
6c426cf3
NC
5382001-05-23 kaz Kojima <[email protected]>
539
540 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
541 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
542 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
543 that is used by GCC.
544
d9bc7a44
NC
5452001-05-23 Nick Clifton <[email protected]>
546
547 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
548 of entries in a structured section.
549 * elf.c: Use new macro.
550 * elf32-i386.c: Use new macro.
551 * elf32-mips.c: Use new macro.
552 * elf64-alpha.c: Use new macro.
553 * elf64-sparc.c: Use new macro.
554 * elfcode.h: Use new macro.
555 * elflink.h: Use new macro.
556
5572001-05-23 Nick Clifton <[email protected]>
558
559 * bfdint.texi: Replace -oformat with --oformat.
560
f5198f61
AJ
5612001-05-21 Andreas Jaeger <[email protected]>
562
563 * dwarf2.c (decode_line_info): Fix error message.
564 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
565 adjust error message.
566
7913c838
L
5672001-05-18 H.J. Lu <[email protected]>
568
569 * elflink.h (elf_link_add_object_symbols): Revert the last
570 change.
571
e0522e89
AM
5722001-05-17 Alan Modra <[email protected]>
573
574 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
575 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
576 (hppa_build_one_stub): Add an assert to check plt.offset.
577
96fd004e
L
5782001-05-17 H.J. Lu <[email protected]>
579
580 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
581 version definition to basename of the output filename.
582
f3876d8b
L
5832001-05-17 H.J. Lu <[email protected]>
584
585 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
586 basename of the bfd filename.
587
d1778b88
AM
5882001-05-16 Alan Modra <[email protected]>
589
590 * section.c (asection): Add linker_has_input field.
591 (STD_SECTION): Adjust initialization to suit.
592 * ecoff.c (bfd_debug_section): Likewise.
593 * bfd-in2.h: Regenerate.
594
2a0fa943
AO
5952001-05-15 Alexandre Oliva <[email protected]>
596
597 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
598 negative 32-bit operands to 16 operands when the operand is
599 going to be zero-extended by the modified opcode.
600
bcee8eb8
AM
6012001-05-12 Peter Targett <[email protected]>
602
603 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
604 name for 'arc5' core versions.
605 (bfd_arc_arch): Make bfd_mach_arc_6 default.
606
607 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
608 architecture.
609 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
610
579f31ac
JJ
6112001-05-11 Jakub Jelinek <[email protected]>
612
613 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
614 sections as well.
615 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
616 to .gnu.linkonce.t.FOO text section.
617
8550eb6e
JJ
6182001-05-11 Jakub Jelinek <[email protected]>
619
620 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
621 fields, change sec into secinfo.
622 (struct sec_merge_info): Add chain, remove last fields.
623 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
624 (sec_merge_hash_lookup): If lookup could not use a string only
625 because it has bad alignment, mark the old string for deletion.
626 (sec_merge_add): Add secinfo argument. Don't compute entry's
627 position, instead record the section.
628 (sec_merge_emit): Update for the sec into secinfo change in
629 struct sec_merge_hash_entry.
630 (_bfd_merge_section): Only record the section for merging, defer
631 putting strings into the hash table.
632 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
633 _bfd_merge_sections): New functions.
634 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
635 changes.
636 * libbfd-in.h (_bfd_merge_sections): Add prototype.
637 (_bfd_nolink_bfd_merge_sections): Define.
638 * libbfd.h: Likewise.
639 (bfd_generic_merge_sections): Add prototype.
640 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
641 (struct bfd_target): Likewise.
642 * bfd.c (bfd_merge_sections): Define.
643 * bfd-in2.h: Rebuilt.
644 * elf.c (_bfd_elf_merge_sections): New function.
645 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
646 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
647 * reloc.c (bfd_generic_merge_sections): New function.
648 * vms.c (vms_bfd_merge_sections): New function.
649 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
650 * aout-target.h (MY_bfd_merge_sections): Define.
651 * aout-tic30.c (MY_bfd_merge_sections): Define.
652 * binary.c (binary_bfd_merge_sections): Define.
653 * bout.c (b_out_bfd_merge_sections): Define.
654 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
655 * coffcode.c (coff_bfd_merge_sections): Define.
656 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
657 * i386msdos.c (msdos_bfd_merge_sections): Define.
658 * i386os9k.c (os9k_bfd_merge_sections): Define.
659 * ieee.c (ieee_bfd_merge_sections): Define.
660 * ihex.c (ihex_bfd_merge_sections): Define.
661 * nlm-target.h (nlm_bfd_merge_sections): Define.
662 * oasys.c (oasys_bfd_merge_sections): Define.
663 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
664 * som.c (som_bfd_merge_sections): Define.
665 * srec.c (srec_bfd_merge_sections): Define.
666 * tekhex.c (tekhex_bfd_merge_sections): Define.
667 * versados.c (versados_bfd_merge_sections): Define.
668 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
669
1548c54f
NC
6702001-05-11 Nick Clifton <[email protected]>
671
672 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
673 to be unsigned long, in order to match its use.
674
689effed
L
6752001-05-10 H.J. Lu <[email protected]>
676
677 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
678 indirect symbols.
679
6e5222be
L
6802001-05-09 H.J. Lu <[email protected]>
681
682 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
683 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
684 Remove the unused veriable `dynver'.
685
8e191bd3
ILT
6862001-05-08 Ian Lance Taylor <[email protected]>
687
688 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
689 NULL or is not COFF.
690 (coff_i386_rtype_to_howto): Don't dump core if output section
691 owner is not COFF.
692
062e2358
AM
6932001-05-07 Thiemo Seufer <[email protected]>
694
695 * ecoff.c (bfd_debug_section): Fix initialization.
696 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
697 is always a positive integer. Cast away sign mismatch.
698 * elf32-mips.c: Fix misleading comment and typo.
699 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
700 correct data type.
701 * elflink.c: Fix typo.
702 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
703 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
704
16b65e4e
RH
7052001-05-04 Richard Henderson <[email protected]>
706
707 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
708
cac15327
NC
7092001-05-04 Nick Clifton <[email protected]>
710
711 * elf32-arm.h (elf32_arm_final_link_relocate): Set
712 EF_ARM_HASENTRY if the start address is set.
713
966b3e0b
NC
7142001-05-03 Nick Clifton <[email protected]>
715
716 * targets.c (_bfd_target_vector_entries): Compute value based on
717 the size of the _bfd_target_vector and not bfd_target_vector.
718
210ba1e8
L
7192001-05-03 H.J. Lu <[email protected]>
720
721 * elfcode.h: Include "libiberty.h".
722
723 * elflink.h (elf_link_add_object_symbols): Set
724 elf_dt_name (abfd) to basename of the bfd filename.
725 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
726 of the bfd filename.
727
56fc028e
AJ
7282001-05-03 Andreas Jaeger <[email protected]>
729
730 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
731 (elf_generic_info_to_howto_rel): Likewise.
732 * coff-alpha.c (reloc_nil): Likewise.
733 (alpha_ecoff_bad_format_hook): Likewise.
734 (alpha_adjust_reloc_out): Likewise.
735 (alpha_bfd_reloc_type_lookup): Likewise.
736 (alpha_convert_external_reloc): Likewise.
737 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
738 (elf64_alpha_reloc_bad): Likewise.
739 (elf64_alpha_reloc_gpdisp): Likewise.
740 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
741 (elf64_alpha_info_to_howto): Likewise.
742 (elf64_alpha_add_symbol_hook): Likewise.
743 (elf64_alpha_create_got_section): Likewise.
744 (elf64_alpha_is_local_label_name): Likewise.
745 (elf64_alpha_merge_ind_symbols): Likewise.
746 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
747 (mips_elf64_get_reloc_upper_bound): Likewise.
748 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
749 (nlm_alpha_get_public_offset): Likewise.
750
c7e40348
NC
7512001-05-02 Johan Rydberg <[email protected]>
752
753 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
754 about overflow in R_OPENRISC_LO_16_IN_INSN and
56fc028e 755 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
c7e40348 756
5fba655a
L
7572001-04-30 H.J. Lu <[email protected]>
758
759 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
760 only for ELF_LINK_FORCED_LOCAL.
761 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
762 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
763 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
764
765 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
766 if the symbol has hidden or internal visibility.
767
db20fd76
AM
7682001-04-30 Alan Modra <[email protected]>
769
770 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
771 calls to undefined weak symbols.
772
6a2bda3f
AJ
7732001-04-30 Andreas Jaeger <[email protected]>, Andreas Schwab <[email protected]>
774
775 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
776 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
777
053579d7
AJ
7782001-04-27 Andreas Jaeger <[email protected]>
779
780 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
781 out handled entries.
782 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
783 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
784 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
785 GOT32.
786
87748b32
NC
7872001-04-27 Sean McNeil <[email protected]>
788
789 * config.bfd: Add arm-vxworks target.
790 * coff-arm (coff_arm_relocate_section): Add in symbol value to
791 addend (fro VXworks targets).
792
f5f31454
L
7932001-04-26 H.J. Lu <[email protected]>
794
795 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
796 valid.
797
d436a9b3
FCE
7982001-04-25 Frank Ch. Eigler <[email protected]>
799
800 * bfd-in.h (bfd_cache_close): Declare newly exported function.
801 * bfd-in2.h: Regenerated.
802
a531bbd2
JJ
8032001-04-24 Jakub Jelinek <[email protected]>
804
805 * merge.c (struct sec_merge_hash_entry): Add alignment field.
806 (struct sec_merge_hash): Remove alignment_power.
807 (sec_merge_hash_newfunc): Clear alignment.
808 (sec_merge_hash_lookup): Pass alignment as argument.
809 Use hashp->root.next, not hashp->next to walk the hash chain.
810 If a string already in the hashtable does not have required
811 alignment, create a new hashtable entry.
812 (sec_merge_init): Remove alignment_power argument.
813 (sec_merge_add): Add alignment argument.
814 (sec_merge_emit): Alignment is now a per-entity thing, not per
815 section.
816 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
817 for proper alignment.
818 Pass alignment information to sec_merge_add.
819
6840198f
NC
8202001-04-24 Christian Groessler <[email protected]>
821
822 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
823 and R_REL16 reloc types; accept odd values for R_REL16 type
824
b3baf5d0
NC
8252001-04-24 Johan Rydberg <[email protected]>
826
827 * cpu-openrisc.c: New file.
828 * elf32-openrisc.c: Likewise.
829
830 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
831 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
832 (BFD32_BACKENDS): Add elf32-openrisc.lo.
833 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
834 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
835 * Makefile.in: Regenerated.
836 * config.bfd: (openrisc-*-elf): New target.
053579d7 837 * configure.in (bfd_elf32_openrisc_vec): New vector.
b3baf5d0
NC
838 * configure: Regenerated.
839 * libbfd.h: Regenerated.
840 * bfd-in2.h: Regenerated.
841 * reloc.c: Add OpenRISC relocations.
053579d7 842 * targets.c (bfd_elf32_openrisc_vec): Declare.
b3baf5d0
NC
843 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
844 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
845 (bfd_openrisc_arch): Declare.
846 (bfd_archures_list): Add bfd_openrisc_arch.
847 * elf.c (prep_headers): Add bfd_arch_openrisc.
848
fe4770f4
AJ
8492001-04-23 Bo Thorsen <[email protected]>
850
851 * elf64-x86-64.c: Add c++ vtable hack.
852 Small whitespace and comment changes.
853
653165cc
AJ
8542001-04-19 Andreas Jaeger <[email protected]>
855
856 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
857 (elf64_x86_64_plt_entry): Likewise.
858 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
859 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
860
4d96d128
HPN
8612001-04-17 Hans-Peter Nilsson <[email protected]>
862
863 * elf32-cris.c: Tweak comments related to dynamic linking.
864 (cris_elf_relocate_section): When not creating shared object, fill
865 in the .got table for any symbol not in the dynamic symbol table.
866 (elf_cris_finish_dynamic_symbol): When not creating shared object,
867 only emit a .got.rela reloc if the symbol is in the dynamic symbol
868 table.
869 (cris_elf_check_relocs): Use variable r_type in all places rather
870 than the original expression. Add default case in switch for
871 reloc types.
872 (elf_cris_size_dynamic_sections): Iterate over
873 elf_cris_discard_excess_program_dynamics when not creating shared
874 library.
653165cc 875 (elf_cris_discard_excess_dso_dynamics): Renamed from
4d96d128
HPN
876 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
877 (elf_cris_discard_excess_program_dynamics): New.
878
3ed30d29
DD
8792001-04-14 Mark Elbrecht <[email protected]>
880
881 * coffcode.h (coff_write_object_contents): Use
882 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
883
a80f6941
L
8842001-04-14 H.J. Lu <[email protected]>
885
886 * bfd-in2.h: Regenerate.
887
767e4b0d
JJ
8882001-04-14 Jakub Jelinek <[email protected]>
889
890 * section.c (STD_SECTION): Add entsize.
891
2dd439c5
L
8922001-04-13 H.J. Lu <[email protected]>
893
894 * section.c (SEC_MERGE): Define new flag for merging.
895 (SEC_STRINGS): Likewise.
896 (entsize): New field.
897
baf80c32
DD
8982001-04-13 Roger Sayle <[email protected]>
899
900 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
901 flag on pe-i386 targets.
902
f5fa8ca2
JJ
9032001-04-13 Jakub Jelinek <[email protected]>
904
905 * libbfd-in.h (_bfd_merge_section): New.
906 (_bfd_write_merged_section): New.
907 (_bfd_merged_section_offset): New.
908 * libbfd.h: Rebuilt.
909 * linker.c (_bfd_generic_link_output_symbols): Handle
910 discard_sec_merge.
911 * aoutx.h (aout_link_write_symbols): Likewise.
912 * pdp11.c (aout_link_write_symbols): Likewise.
913 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
914 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
915 sections.
916 (elf_link_sec_merge_syms): New.
917 (elf_link_input_bfd): Call _bfd_merged_section_offset
918 and _bfd_write_merged_section.
919 Handle discard_sec_merge.
920 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
921 field.
922 (struct bfd_elf_section_data): Likewise.
923 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
924 SEC_STRINGS section flags and entsize from their ELF counterparts.
925 (_bfd_elf_link_hash_table_init): Initialize merge_info.
926 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
927 from their BFD counterparts.
928 * merge.c: New file.
929 * Makefile.am: Add strtab.lo.
930 * Makefile.in: Rebuilt.
931
d954b040
HPN
9322001-04-09 Hans-Peter Nilsson <[email protected]>
933
934 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
935 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
936
fdbafa10
L
9372001-04-05 Steven J. Hill <[email protected]>
938
939 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
940 endian MIPS ELF target.
941 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
942 MIPS ELF target.
943
944 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
945 64bit big endian MIPS ELF target.
653165cc 946 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
fdbafa10
L
947 endian MIPS ELF target.
948 * configure: Regenerated.
949
950 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
951 little endian targets.
952 (mips_elf_sym_is_global): Handle traditional targets.
953
954 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
955 64bit big endian MIPS ELF target.
956 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
957 endian MIPS ELF target.
958
959 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
960 and bfd_elf64_tradlittlemips_vec.
961
dd484e5c
L
9622001-04-05 David Mosberger <[email protected]>
963
964 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
965 ordinary "progbits" section.
966
391a809a
AM
9672001-04-04 Alan Modra <[email protected]>
968
969 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
970 when -Bsymbolic causes a symbol to no longer need a .plt entry.
971
5854c633
L
9722001-04-03 David Mosberger <[email protected]>
973
974 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
975
8b4b0fac
L
9762001-03-30 H.J. Lu <[email protected]>
977
978 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
979 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
980
eb4a6e4f
L
9812001-03-26 H.J. Lu <[email protected]>
982
983 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
984 if there are any relocations for generic ELF.
985 (bfd_elf32_bfd_link_add_symbols): Defined to
986 elf32_generic_link_add_symbols.
987 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
988 if there are any relocations for generic ELF.
989 (bfd_elf64_bfd_link_add_symbols): Defined to
990 elf64_generic_link_add_symbols.
991
55c80943
NC
9922001-03-23 Nick Clifton <[email protected]>
993
994 * Makefile.am (BUILD_CFILES): New variable: List of C source
995 files created in build directory.
996 (BUILD_HFILES): New variable: List of header files created in
997 build directory.
998 (POTFILES): Delete.
999 (po/POTFILES.in): Replace rule with empty entry.
1000 (po/SRC-POTFILES.in): New rule: Create a list of source files
1001 in the source directory.
1002 (po/BLD-POTFILES.in): New rule: Create a list of source files
1003 in the build directory.
1004 (MOSTLYCLEAN): Do not delete source files created in build
1005 directory.
1006 * Makefile.in: Regenerate.
1007 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
1008 into po/Makefile.
1009 * configure: Regenerate.
1010
1011 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
1012 and BLD_POTFILES.
1013 Add .. to the search path when building bfd.pot.
1014 Delete POTFILES when performing distclean.
1015 Add comment describing why distclean is broken in maintainer mode.
1016 * po/POTFILES.in: Delete.
1017 * po/SRC-POTFILES.in: New file.
1018 * po/BLD-POTFILES.in: New file.
1019 * po/bfd.pot: Regenerate.
1020
58d29fc3
HPN
10212001-03-22 Hans-Peter Nilsson <[email protected]>
1022
915e5146
HPN
1023 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
1024 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
1025 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
1026 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
1027 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
1028 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
1029 functions.
1030 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
1031 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
1032 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
1033 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
1034 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
1035 New HOWTO members for new relocs.
1036 (cris_reloc_map): Map new relocs.
1037 (ELF_DYNAMIC_INTERPRETER): Define.
1038 (PLT_ENTRY_SIZE): Define.
1039 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
1040 elf_cris_pic_plt_entry): New, PLT templates.
1041 (struct elf_cris_pcrel_relocs_copied, struct
1042 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
1043 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
1044 (cris_final_link_relocate): Check that 16-bit GOT relocs have
1045 positive values. Adjust PCREL relocs to be relative to location
1046 after relocation.
1047 (cris_elf_relocate_section): Handle relocations to dynamic
1048 objects. Handle new relocations. Call error handler when seeing
1049 non-PIC relocation for read-only sections while generating shared
1050 object.
1051 (cris_elf_check_relocs): Set reference counts for GOT and PLT
1052 entries.
1053 (bfd_elf32_bfd_link_hash_table_create,
1054 elf_backend_adjust_dynamic_symbol,
1055 elf_backend_size_dynamic_sections,
1056 elf_backend_finish_dynamic_symbol,
1057 elf_backend_finish_dynamic_sections,
1058 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
1059 elf_backend_hide_symbol, elf_backend_want_got_plt,
1060 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1061 elf_backend_got_header_size, elf_backend_plt_header_size):
1062 Define.
1063
58d29fc3
HPN
1064 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
1065 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
1066 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
1067 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
1068 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
1069 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
1070 * bfd-in2.h, libbfd.h: Regenerate.
1071
7a65545d
DN
10722001-03-21 Diego Novillo <[email protected]>
1073
1074 (_bfd_mips_elf_relocate_section): Give a better error message when
1075 a relocation is not recognized.
1076
b32b5d6e
AM
10772001-03-21 Alan Modra <[email protected]>
1078
1079 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
1080 non-NULL before attempting to dereference.
1081
f4fbb4a3
L
10822001-03-20 H.J. Lu <[email protected]>
1083
1084 * configure.in: Remove the redundent AC_ARG_PROGRAM.
1085 * configure: Rebuild.
1086
95fc45e6
AS
10872001-03-20 Andreas Schwab <[email protected]>
1088
1089 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
1090 relocation value when resolving a reference from a debugging
1091 section.
1092
03d411a9
NC
10932001-03-16 Scott Thomason <[email protected]>
1094
1095 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
1096 (xcoff64_swap_sym_out): Fix syntax errors.
1097
d1659392
NC
10982001-03-16 Richard Sandiford <[email protected]>
1099
1100 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
1101
12cca0d2
AM
11022001-03-15 Alan Modra <[email protected]>
1103
1104 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
1105 (hppa_link_hash_newfunc): Init it.
1106 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
1107 section appears to be non-PIC.
1108 (final_link_relocate): Likewise.
1109 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
1110 possible candidate function, and set pic_call for those that will
1111 only have a .plt entry for the PIC call stub.
1112 (hppa_handle_PIC_calls): Set maybe_pic_call.
1113
cd6ec716
DD
11142001-03-12 DJ Delorie <[email protected]>
1115
1116 * elf32-sh.c (sh_elf_relocate_section): Only relocation
1117 R_SH_DIR8WP* relocs if they're against external symbols, else
1118 they're just for relaxing. Validate the reloc values.
1119
43a0748c
NC
11202001-03-12 Stefan Geuken <[email protected]>
1121
1122 * binary.c (bfd_external_binary_architecture): Declare.
1123 (binary_object_p): If bfd_external_binary_architecture is defined,
1124 set the architecture to this string.
1125
d982ba73
PB
11262001-03-11 Philip Blundell <[email protected]>
1127
1128 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
1129 entries that could serve as a definition for a weak symbol.
1130
7898deda
NC
11312001-03-08 Nick Clifton <[email protected]>
1132
1133 * Most files: Update copyright notices using Perl script created
1134 by Kevin Buettner <[email protected]>.
653165cc 1135
df425bc0
NC
11362001-03-07 Nick Clifton <[email protected]>
1137
1138 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
1139 prior patch on ! defined OLD_ARM_ABI.
1140
bcdd92f3
AJ
11412001-03-07 Andreas Jaeger <[email protected]>
1142
1143 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
1144 some relocation values.
1145
4f3c3dbb
NC
11462001-03-06 Nick Clifton <[email protected]>
1147
1148 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
1149 of offset in BLX(1) instruction.
1150 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
1151 offset in BLX(1) instruction.
1152 Fix formatting.
1153
f8f3c6cc
NC
11542001-03-06 Nick Clifton <[email protected]>
1155
1156 * coff-arm.c (coff_arm_reloc_type_lookup): Add
1157 BFD_RELOC_THUMB_PCREL_BLX.
1158
3cac17ae
NC
11592001-03-06 Igor Shevlyakov <[email protected]>
1160
1161 * archures.c (bfd_default_scan): Add Coldfire CPUs.
1162 * bfd-in2.h: Regenerate.
1163 * cpu-m68k.c: Add Coldfire CPUs for arch table.
1164 * ieee.c (ieee_write_processor): Set proper id for
1165 Coldfire CPUs.
1166
d1b17ab0
NC
11672001-03-01 D.J. Barrow <[email protected],[email protected]>
1168
1169 * configure.in: Add s390 target.
1170 * configure: Regenerate.
1171
5608e05b
AJ
11722001-02-28 Andreas Jaeger <[email protected]>
1173
1174 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
1175 to addend.
1176
fd2ec330
PB
11772001-02-28 Philip Blundell <[email protected]>
1178
1179 * elf32-arm.h: Update mentions of renamed EF_xx constants.
5608e05b 1180 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
fd2ec330 1181
920581c5
L
11822001-02-27 H.J. Lu <[email protected]>
1183
1184 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
1185 abfd->tdata.aout_data == NULL.
1186
27b7e12d
AM
11872001-02-27 Alan Modra <[email protected]>
1188
3ee1d854
AM
1189 * elf32-hppa.c: Correct field selector in stub comments.
1190 (clobber_millicode_symbols): Formatting fix.
1191
27b7e12d
AM
1192 * configure.in: Bump version to 2.11.90.
1193 * configure: Regenerate.
1194 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
1195 (CFILES): $SOURCE_CFILES + generated C files.
1196 (POTFILES): Include $HFILES not $SOURCE_HFILES.
1197 Run "make dep-am"
1198 * Makefile.in: Regenerate.
1199 * doc/Makefile.in: This too.
1200
10d1e03a
TW
12012001-02-26 Timothy Wall <[email protected]>
1202
1203 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
5608e05b 1204 comments.
10d1e03a 1205
1276aefa
NC
12062001-02-26 Nick Clifton <[email protected]>
1207
1208 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
1209 up, replacing multiple if statements with a switch.
1210 (handle_COMDAT): New function.
1211
12122001-02-26 H.J. Lu <[email protected]>
1213
1214 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
1215 a warning for section flags we do not handle instead of
1216 aborting.
1217
4a73f21b
AJ
12182001-02-26 Andreas Jaeger <[email protected]>
1219
1220 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
1221
7b6dab7f
TW
12222001-02-22 Timothy Wall <[email protected]>
1223
1224 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
1225 * configure.in: Add objects for elf64_ia64_aix vectors.
1226 * configure: Regenerated.
1227 * configure.host: Recognize ia64-*-aix*.
1228 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
1229 for AIX. AIX5 requires most relocations to be dynamic (*all*
1230 binaries are somewhat similar to shared libraries).
1231 * targets.c: Add elf64_ia64_aix vectors.
4a73f21b 1232
87f8eb97
JW
12332001-02-21 David Mosberger <[email protected]>
1234
1235 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
1236 C8 said "1" instead of "8". Clarify error string for IMM22:
1237 "signed integer" instead of just "integer".
1238
05aa1441
AJ
12392001-02-20 Andreas Jaeger <[email protected]>
1240
1241 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
1242 PLT entries that could serve as a definition for a weak symbol.
1243
8701c1bc
JJ
12442001-02-19 Jakub Jelinek <[email protected]>
1245
1246 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
1247 entries that could serve as a definition for a weak symbol.
1248 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
1249
d4af9775
DB
12502001-02-18 David O'Brien <obrien@FreeBSD>
1251
1252 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
1253 FreeBSD/i386-CURRENT differently until I can figure out the needed
1254 corefile changes.
1255 * configure: Regenerate.
1256 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
1257 FreeBSD/PowerPC, and FreeBSD/sparc64.
1258
e135f41b
NC
12592001-02-18 lars brinkhoff <[email protected]>
1260
1261 * Makefile.am: Add PDP-11 a.out target.
1262 * config.bfd: Likewise.
1263 * configure.in: Likewise.
1264 * targets.c: Likewise.
1265 * archures.c: Likewise.
1266 * bfd-in2.h: Likewise. Add PDP-11 relocations.
1267 * libbfd.h: Add PDP-11 relocations.
1268 * reloc.c: Likewise.
1269 * cpu-pdp11.c: New file.
1270 * pdp11.c: New file.
1271
1272 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
1273 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1274 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1275 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
1276 (GET_MAGIC): New macro.
1277 (PUT_MAGIC): Likewise.
1278 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
1279
dc3febfa
NC
12802001-02-18 Jim Kingdon <[email protected]>
1281
1282 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
1283 multiarch needs it).
1284
ea412e04
L
12852001-02-18 H.J. Lu <[email protected]>
1286
1287 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
1288 index.
1289
47eee8a9
KH
12902001-02-18 Kazu Hirata <[email protected]>
1291
1292 * vms-misc.c: Fix formatting.
1293
8a0c27cd
KH
12942001-02-16 Kazu Hirata <[email protected]>
1295
1296 * vms.c: Fix formatting.
1297
d1fad7c6
NC
12982001-02-14 H.J. Lu <[email protected]>
1299
1300 * elf.c (elf_find_function): New function.
1301 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
1302 the file name and function name.
1303
825b47db
NC
13042001-02-14 Nick Clifton <[email protected]>
1305
51d7ee16
NC
1306 * ecoff.c (bfd_debug_section): Update to initialise new fields in
1307 asection structure.
1308
825b47db
NC
1309 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
1310 (BFD64_BACKENDS): Add pepigen.c
1311 Add rules to create peigen.c and pepigen.c from peXXigen.c.
1312
1313 * Makefile.in: Regenerate.
1314 * configure: Regenerate.
1315 * po/POTFILES.in: Regenerate.
1316 * po/bfd.pot: Regenerate.
1317
ea36a178
L
13182001-02-14 H.J. Lu <[email protected]>
1319
1320 * libcoff-in.h (pe_tdata): Add members target_subsystem and
1321 force_minimum_alignment.
1322
407443a3
AJ
13232001-02-14 Bo Thorsen <[email protected]>
1324
1325 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
1326 (elf64_86_64_size_info): Struct added to fix a problem
1327 with the hashtable string entries.
1328 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
1329 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
1330 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
1331 remove the FIXME for this.
1332 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
1333 section. Also removed the FIXME for it.
1334 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
1335 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
1336 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
1337
b4adccfd
RH
13382001-02-13 Richard Henderson <[email protected]>
1339
1340 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
1341 and not user provided.
1342
9635981a
KH
13432001-02-13 Kazu Hirata <[email protected]>
1344
1345 * vms.c (vms_print_symbol): Remove unreachable code.
1346
6a125b16
KH
1347 * rs6000-core.c: Fix formatting.
1348
cbff5e0d
DD
13492001-02-13 David Mosberger <[email protected]>
1350
1351 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
1352 as _bfd_XXi_only_swap_filehdr_out.
1353 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
1354 pe->force_minimum_alignment to TRUE.
1355 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
1356 PEI_TARGET_SUBSYSTEM.
1357 (pe_print_private_bfd_data): Call
1358 _bfd_XX_print_private_bfd_data_common() instead of
1359 _bfd_pe_print_private_bfd_data_common().
1360 (pe_bfd_copy_private_bfd_data): Call
1361 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
1362 _bfd_pe_bfd_copy_private_bfd_data_common().
1363 (coff_bfd_copy_private_section_data): Define as
1364 _bfd_XX_bfd_copy_private_section_data instead of
1365 _bfd_pe_bfd_copy_private_section_data.
1366 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
1367 of a _bfd_pe_get_symbol_info.
1368
1369 * peigen.c: Delete.
1370
1371 * peXXigen.c: Renamed from peigen.c.
1372 (COFF_WITH_XX): Define this macro (will get expanded into
1373 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
1374 compiled as peigen.c or pepigen.c.
1375 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
1376 define the canonical PEP structures and definitions.
1377 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
1378 effect, enforce minimum file and section alignments. If
1379 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
1380 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
1381 so, by default, this is a no-op).
1382
1383 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
1384 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
1385 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
1386 _bfd_pefoo if it's not defined. Use these macros to define
1387 coff swap macros.
1388
1389 * libcoff.h (pe_tdata): Add members target_subsystem and
1390 force_minimum_alignment.
1391
1392 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
1393 COFF_WITH_pep.
1394 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
1395
1396 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
1397 peigen.lo.
1398
1399 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
1400 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
1401 PEPAOUTHDR.
1402
1403 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
1404 (BFD64_BACKENDS_CFILES): Mention pepigen.c
1405 (peigen.c): Add rule to generate from peXXigen.c.
1406 (pepigen.c): Ditto.
1407 (pepigen.lo): List dependencies for pepigen.lo.
1408
df8634e3
AM
14092001-02-13 Alan Modra <[email protected]>
1410
1411 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
1412 $global$ referenced but not defined, set its value here.
1413
51e0a107
JH
14142001-02-09 Bo Thorsen <[email protected]>
1415
1416 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
1417 alignment to 3.
1418 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
1419 and relocation.
1420 (elf64_x86_64_relocate_section): Fix formatting.
1421 (elf64_x86_64_relocate_section): Fix addend for relocation of
1422 R_X86_64_(8|16|32|PC8|PC16|PC32).
1423
d1fad7c6 14242001-02-12 Jan Hubicka <[email protected]>
23df1078
JH
1425
1426 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
1427
f0e1d18a
L
14282001-02-11 H.J. Lu <[email protected]>
1429
6757257f 1430 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
f0e1d18a
L
1431 alignment.
1432
9117d219
NC
14332001-02-11 Maciej W. Rozycki <[email protected]>
1434
1435 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
1436 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
1437 relocations against dynsym symbols.
1438
1439 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
1440 the R_MIPS_26 relocation.
1441 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
1442 the R_MIPS_26 relocation.
1443 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
1444 relocation.
1445 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
1446 the R_MIPS_26 relocation.
1447 (mips_elf64_howto_table_rela): Likewise.
1448
1449 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
1450 member to mark symbols that have non-CALL relocations against
1451 them.
1452 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
1453 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
1454 R_MIPS_GOT16.
1455 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
1456 non-CALL relocation against it is encountered.
1457 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
1458 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
1459 no_fn_stub is not set.
1460
1461 * elf32-mips.c (mips_elf_output_extsym): Get the output section
1462 information from the real symbol for indirect ones.
1463 Check no_fn_stub to find out if a symbol has a function stub
1464 indeed.
1465
9f93bca5
MS
14662001-02-11 Michael Sokolov <[email protected]>
1467
1468 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
1469 * Makefile.in: Regenerate.
1470
81545d45
RH
14712001-02-09 David Mosberger <[email protected]>
1472
1473 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
1474 true if section name is an unwind table section name.
1475 (elfNN_ia64_additional_program_headers): Count each unwind section
1476 separately.
1477 (elfNN_ia64_modify_segment_map): Install one unwind program header
1478 for each unwind separate section. Note: normally the linker
1479 script merges the unwind sections that go into a single segment,
1480 so this still generates at most one unwind program header per
1481 segment.
1482
1483 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
1484 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
1485 (elfNN_ia64_fake_sections): Mark sections with names that start
1486 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
1487 unwind section.
1488
1489 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
1490 Use it to make sh_info in unwind section point to the text section
1491 it applies to.
1492
a85d7ed0
NC
14932001-02-09 Martin Schwidefsky <[email protected]>
1494
1495 * Makefile.am: Add linux target for S/390.
1496 * archures.c: Likewise.
1497 * bfd-in2.h: Likewise.
1498 * config.bfd: Likewise.
1499 * configure.in: Likewise.
1500 * elf.c: Likewise.
1501 * libbfd.h: Likewise.
1502 * targets.c: Likewise.
1503 * cpu-s390.c: New file.
1504 * elf32-s390.c: New file.
1505 * elf64-s390.c: New file.
1506
356d255d
NC
15072001-02-09 Nick Clifton <[email protected]>
1508
1509 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
1510 ImageBase. This has already been done by coff_swap_hdr_in.
1511
069f40e5
JJ
15122001-02-09 Jakub Jelinek <[email protected]>
1513
1514 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
1515
eadfa8ab
JJ
15162001-02-09 Jakub Jelinek <[email protected]>
1517
1518 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
1519 (sparc64_elf_relocate_section): Likewise.
1520
9fc54e19
MK
15212001-02-09 Mark Kettenis <[email protected]>
1522
1523 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
1524 similar to R_SPARC_32.
1525 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
1526
1f655a09
L
15272001-02-08 H.J. Lu <[email protected]>
1528
1529 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
1530 relocation entries for weak definitions when building DSO with
1531 -Bsymbolic.
1532
ca88208a
RH
15332001-02-08 Richard Henderson <[email protected]>
1534
1535 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
1536 before visibility. Locally defined protected symbols are not
1537 dynamic.
1538
4603e845
GK
15392001-02-08 Geoffrey Keating <[email protected]>
1540
1541 * config.bfd: Enable coff64 for rs6000-*. Patch from
1542 <[email protected]>.
1543
4ca29a6a
NC
15442001-02-07 Mark Elbrecht <[email protected]>
1545
1546 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
1547 found, do not attempt to find dwarf2 info before returning.
1548
7da9d88f
NC
15492001-02-07 Jakub Jelinek <[email protected]>
1550
1551 * elflink.h (is_global_symbol_definition): Rename to
1552 is_global_data_symbol_definition and have it reject function
1553 symbols.
1554 (elf_link_is_defined_archive_symbol): Use renamed function.
1555
7340082d
NC
15562001-02-07 Todd Vierling <[email protected]>
1557
1558 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
1559 * libbfd.h (bfd_target_vector): Likewise.
1560 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
81545d45 1561 make static; create pointer reference named bfd_target_vector.
7340082d
NC
1562 (_bfd_target_vector_entries): Calculate this based on the array
1563 typed _bfd_target_vector.
1564
2719f880
L
15652001-02-06 H.J. Lu <[email protected]>
1566
1567 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
1568 internal symbols are not dynamic.
1569 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
1570
175aa013
NC
15712001-02-06 Nick Clifton <[email protected]>
1572
1573 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
1574 that it will not be pulled into the list of files that make up
1575 po/POTFILES.in.
1576 * Makefile.in: Regenerate.
1577 * po/bfd.pot: Regenerate.
1578
15e0ecd9
L
15792001-02-06 H.J. Lu <[email protected]>
1580
7898deda 1581 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
15e0ecd9
L
1582 checking.
1583 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
1584 external_PEI_IMAGE_hdr.
1585
27def10f
KH
15862001-02-06 Kazu Hirata <[email protected]>
1587
1588 * elf-m10200.c: Fix formatting.
1589
a0f2e916
NC
15902001-02-04 Nick Clifton <[email protected]>
1591
1592 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
1593 rel, it will be handled later on.
1594
d96031fb
NC
15952001-02-02 Fred Fish <[email protected]>
1596
1597 * Makefile.in: Fix typo.
1598
010ac81f
KH
15992001-02-01 Kazu Hirata <[email protected]>
1600
1601 * elf-m10300.c: Fix formatting.
1602
3fab46d0
AM
16032001-01-30 Alan Modra <[email protected]>
1604
1605 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
1606 (elf_backend_get_symbol_type): Define.
d9634ba1
AM
1607 (elf64_hppa_object_p): Set architecture and machine from elf
1608 header flags.
3fab46d0 1609
95404643
RH
16102001-01-30 Curtis L. Janssen <[email protected]>
1611
1612 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
1613 before mdebug.
1614
8fb35fed
RH
16152001-01-26 Richard Henderson <[email protected]>
1616
1617 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
1618 for non-default visibility.
1619 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
1620 delete ugly macro and replace with pretty function.
1621
a4f68544
NC
16222001-01-25 Mark Elbrecht <[email protected]>
1623
1624 * coff-go32.c: Update copyright.
1625 * coff-stgo32.c: Likewise.
1626 * coff-go32.c (COFF_LONG_FILENAMES): Define.
1627 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
1628 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
1629 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
1630
c02e7c3e
KH
16312001-01-25 Kazu Hirata <[email protected]>
1632
1633 * bfd-in2.h: Rebuild.
1634 * libbfd.h: Likewise.
1635
541389e2
L
16362001-01-23 H.J. Lu <[email protected]>
1637
1638 * bfd-in2.h: Rebuild.
1639
0007625f
L
16402001-01-23 H.J. Lu <[email protected]>
1641
1642 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
1643 is NULL or PRIV(vms_rec) is outside of the buffer.
1644
b653e1b1
KH
16452001-01-23 Kazu Hirata <[email protected]>
1646
1647 * coff64-rs6000.c: Fix formatting.
1648 * coff-arm.c: Likewise.
1649 * coffgen.c: Likewise.
1650 * cofflink.c: Likewise.
1651 * coff-mcore.c: Likewise.
1652 * coff-mips.c: Likewise.
1653 * coff-pmac.c: Likewise.
1654 * coff-ppc.c: Likewise.
1655 * coff-rs6000.c: Likewise.
1656 * elf32.c: Likewise.
1657 * elf32-fr30.c: Likewise.
1658 * elf32-i370.c: Likewise.
1659 * elf32-i860.c: Likewise.
1660 * elf32-m32r.c: Likewise.
1661 * elf32-m68k.c: Likewise.
1662 * elf32-mcore.c: Likewise.
1663 * elf32-ppc.c: Likewise.
1664 * elf32-sh.c: Likewise.
1665 * elf32-v850.c: Likewise.
1666 * elf64-alpha.c: Likewise.
1667 * elf64-sparc.c: Likewise.
1668 * elflink.c: Likewise.
1669 * elflink.h: Likewise.
1670 * elf-m10200.c: Likewise.
1671 * elf-m10300.c: Likewise.
1672 * elfxx-ia64.c: Likewise.
1673
3fde5a36
KH
1674 * aoutx.h: Fix formatting.
1675 * bfd.c: Likewise.
1676 * bfd-in2.h: Likewise.
1677 * bfd-in.h: Likewise.
1678 * cpu-i386.c: Likewise.
1679 * cpu-m68hc11.c: Likewise.
1680 * dwarf2.c: Likewise.
1681 * elf64-x86-64.c: Likewise.
1682 * format.c: Likewise.
1683 * freebsd.h: Likewise.
1684 * hash.c: Likewise.
1685 * hp300hpux.c: Likewise.
1686 * hppabsd-core.c: Likewise.
1687 * hpux-core.c: Likewise.
1688
70256ad8
AJ
16892001-01-22 Bo Thorsen <[email protected]>
1690
1691 * elf64-x86-64.c: Added PIC support for X86-64.
1692 (elf64_x86_64_link_hash_newfunc): Function added.
1693 (elf64_x86_64_link_hash_table_create): Likewise.
1694 (elf64_x86_64_check_relocs): Likewise.
1695 (elf64_x86_64_gc_mark_hook): Likewise.
1696 (elf64_x86_64_gc_sweep_hook): Likewise.
1697 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
1698 (elf64_x86_64_size_dynamic_sections): Likewise.
1699 (elf64_x86_64_discard_copies): Likewise.
1700 (elf64_x86_64_finish_dynamic_symbol): Likewise.
1701 (elf64_x86_64_finish_dynamic_sections): Likewise.
1702 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
1703
ee0bebb8
AJ
17042001-01-21 Maciej W. Rozycki <[email protected]>
1705
1706 * Makefile.am (install-data-local): Make use of $(DESTDIR).
1707 * Makefile.in: Regenerate.
1708
2a38f751
KH
17092001-01-21 Kazu Hirata <[email protected]>
1710
1711 * coff-a29k.c: Fix formatting.
1712
c8492176
L
17132001-01-19 H.J. Lu <[email protected]>
1714
1715 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
1716 relocation section names.
1717 (elf_i386_relocate_section): Report files with bad relocation
1718 section names and return false.
1719
a5377ec0
AJ
17202001-01-17 Bo Thorsen <[email protected]>
1721
1722 * targets.c: Alphabetize list of xvecs.
1723
b352eebf
AM
17242001-01-14 Alan Modra <[email protected]>
1725
d952f17a
AM
1726 * config.bfd: Add linux target variant for elfxx-hppa.
1727 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
1728 bfd_elf64_hppa_linux_vec.
1729 * configure: Regenerate.
1730 * elf64-hppa.c: Include elf64-target.h again to support linux
1731 target variant.
1732 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
1733 * elf32-hppa.c: Include elf32-target.h again to support linux
1734 target variant.
1735 (elf32_hppa_post_process_headers): New function.
1736 (elf_backend_post_process_headers): Define.
1737 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
1738 bfd_elf32_hppa_linux_vec.
1739
c46b7515
AM
1740 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
1741 and data_segment_base fields.
1742 (elf32_hppa_link_hash_table_create ): Init them.
1743 (elf32_hppa_check_relocs): Update comments.
1744 (hppa_record_segment_addr): New function.
1745 (elf32_hppa_relocate_section): Call it.
1746 (final_link_relocate): Handle R_PARISC_SEGREL32.
1747 (elf32_hppa_final_link): New function.
1748 (bfd_elf32_bfd_final_link): Define to call it.
1749 (hppa_unwind_entry_compare): New function.
1750 * cache.c (bfd_open_file): Create files in write+read mode.
1751
1752 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
1753 SEGREL32 and numerous other relocs. Change duplicate
1754 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
1755
d768008d
AM
1756 * opncls.c (bfd_fdopenr): Add parens like the comment says around
1757 O_ACCMODE.
1758
150ccafb
AM
1759 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
1760 .plt entries for DT_INIT and DT_FINI.
1761 (elf32_hppa_finish_dynamic_sections): Remove special handling of
1762 DT_INIT and DT_FINI.
1763
b352eebf
AM
1764 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
1765 offsets for stub .plt access if wide mode. Check offset in range.
1766
b3b9a062
NC
17672001-01-13 Nick Clifton <[email protected]>
1768
b7ed8fad
NC
1769 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
1770 line.
1771
b3b9a062
NC
1772 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
1773 line.
1774
6e0b89ee
AM
17752001-01-12 Alan Modra <[email protected]>
1776
1777 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
1778 * configure: Regenerate.
1779
0d2bcfaf
NC
17802001-01-11 Peter Targett <[email protected]>
1781
1782 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
1783 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
1784 * cpu-arc.c (arch_info_struct): Add entries for variants.
1785 (bfd_arc_arch) Set default to bfd_mach_arc_5.
1786 (arc_get_mach) Don't assume machine names prefixed arc- before
1787 testing.
1788 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
1789 selections.
1790 (arc_elf_final_write_processing) Likewise.
1791 (ELF_MACHINE_CODE) Use EM_ARC.
1792
c31c1f70
NC
17932001-01-10 Nick Clifton <[email protected]>
1794
2758140b 1795 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
c31c1f70 1796
5ad083e3
PB
17972001-01-07 Philip Blundell <[email protected]>
1798
1799 * README: Replace `[email protected]' with
1800 `[email protected]'.
1801
7eae7d22
KH
18022001-01-04 Kazu Hirata <[email protected]>
1803
1804 * som.c: Fix formatting.
1805
509945ae
KH
18062001-01-03 Kazu Hirata <[email protected]>
1807
3e932841
KH
1808 * ecoffswap.h: Fix formatting.
1809 * elf-bfd.h: Likewise.
1810 * elfarm-nabi.c: Likewise.
1811 * elfarm-oabi.c: Likewise.
1812 * elfcode.h: Likewise.
1813 * elfcore.h: Likewise.
1814 * elflink.c: Likewise.
1815 * elflink.h: Likewise.
1816 * elfxx-ia64.c: Likewise.
1817 * elfxx-target.h: Likewise.
1818 * libbfd.c: Likewise
509945ae
KH
1819 * linker.c: Likewise.
1820 * lynx-core.c: Likewise.
1821
892339ee
KH
18222001-01-02 Kazu Hirata <[email protected]>
1823
1824 * pc532-mach.c: Fix formatting.
1825 * pe-arm.c: Likewise.
1826 * pe-i386.c: Likewise.
1827 * pe-mips.c: Likewise.
1828 * pe-ppc.c: Likewise.
1829 * pe-sh.c: Likewise.
1830 * pei-mips.c: Likewise.
1831 * pei-sh.c: Likewise.
ee91ed79 1832 * peicode.h: Likewise.
892339ee
KH
1833 * ppcboot.c: Likewise.
1834 * ptrace-core.c: Likewise.
1835
3d855632
KH
18362001-01-01 Kazu Hirata <[email protected]>
1837
1838 * reloc.c: Fix formatting.
1839 * riscix.c: Likewise.
1840 * rs6000-core.c: Likewise.
1841 * xcoff-target.h: Likewise.
1842
a77a9fef
HPN
18432000-12-29 Hans-Peter Nilsson <[email protected]>
1844
1845 * elfcode.h (elf_object_p): Also restore the bfd mach field on
1846 error, by calling bfd_default_set_arch_mach with incoming
1847 values.
1848
558e161f
KH
18492000-12-26 Kazu Hirata <[email protected]>
1850
1851 * vaxnetbsd.c: Fix formatting.
1852 * versados.c: Likewise.
1853 * vms-gsd.c: Likewise.
1854 * vms-hdr.c: Likewise.
1855 * vms-misc.c: Likewise.
1856
3c579812
AO
18572000-12-25 Alexandre Oliva <[email protected]>
1858
1859 * archive.c (coff_write_armap): Don't write more than symbol_count
1860 `archive_member_file_ptr's.
1861
672579e9
KH
18622000-12-25 Kazu Hirata <[email protected]>
1863
1864 * vms-tir.c: Fix formatting.
1865
55f2d5ed
KH
18662000-12-23 Kazu Hirata <[email protected]>
1867
1868 * vms.c: Fix formatting.
1869 * vms.h: Likewise.
1870
23ccc829
NC
18712000-12-21 Santeri Paavolainen <[email protected]>
1872
1873 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
1874
1875 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
1876
1877 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
1878 arithmetic.
1879
1880 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
1881
1882 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
1883
8c603c85
NC
18842000-12-21 Richard Sandiford <[email protected]>
1885
1886 * libbfd.c (bfd_get_bits): Added
1887 (bfd_put_bits): Likewise
1888 * bfd-in.h: Declared the above.
1889 * bfd-in2.h: Regenerated.
1890
5bff4f56
KH
18912000-12-20 Kazu Hirata <[email protected]>
1892
1893 * targets.c: Fix formatting.
1894 * tekhex.c: Likewise.
1895 * trad-core.c: Likewise.
1896
7b82c249
KH
18972000-12-19 Kazu Hirata <[email protected]>
1898
1899 * sco5-core.c: Fix formatting.
1900 * section.c: Likewise.
1901 * sparclinux.c: Likewise.
1902 * sparclynx.c: Likewise.
1903 * sparcnetbsd.c: Likewise.
1904 * srec.c: Likewise.
1905 * stabs.c: Likewise.
1906 * stab-syms.c: Likewise.
1907 * sunos.c: Likewise.
1908 * syms.c: Likewise.
1909 * sysdep.h: Likewise.
1910
f78c5281
NC
19112000-12-18 Nick Clifton <[email protected]>
1912
1913 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
1914 defined.
1915 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
1916 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
1917
02b89dce
NC
19182000-12-18 Nick Clifton <[email protected]>
1919
1920 * vms-misc.c (_bfd_vms_get_record): Add default case to
1921 file_format switch.
1922
d20966a7
NC
19232000-12-15 Miloslav Trmac <[email protected]>
1924
1925 * elfcore.h (elf_core_file_p): Move to the start of the program
1926 headers before attempting to read them.
1927
6fa957a9
KH
19282000-12-14 Kazu Hirata <[email protected]>
1929
1930 * peigen.c: Fix formatting.
1931 * som.c: Likewise.
1932 * som.h: Likewise.
1933
9602af51
KH
19342000-12-13 Kazu Hirata <[email protected]>
1935
1936 * peigen.c: Fix formatting.
1937
514829c3
JW
19382000-12-12 Jim Wilson <[email protected]>
1939
1940 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
1941
3a71aec8
NC
19422000-12-08 Mark Salter <[email protected]>
1943
1944 * binary.c (binary_set_section_contents): Ignore sections
1945 with zero size.
1946
1518639e
KH
19472000-12-12 Kazu Hirata <[email protected]>
1948
1949 * m68klinux.c: Fix formatting.
1950 * m68knetbsd.c: Likewise.
1951 * mipsbsd.c: Likewise.
1952 * netbsd-core.c: Likewise.
1953 * netbsd.h: Likewise.
1954 * newsos3.c: Likewise.
1955 * nlm32-alpha.c: Likewise.
1956 * nlm32-i386.c: Likewise.
1957 * nlm32-ppc.c: Likewise.
1958 * nlm32-sparc.c: Likewise.
1959 * nlmcode.h: Likewise.
1960 * nlmswap.h: Likewise.
1961 * nlm-target.h: Likewise.
1962 * ns32knetbsd.c: Likewise.
1963
b79e8c78
NC
19642000-12-10 Fred Fish <[email protected]>
1965
d952f17a
AM
1966 * elflink.h (elf_link_output_extsym): Don't complain about undefined
1967 symbols in shared objects if allow_shlib_undefined is true.
b79e8c78 1968
38b1a46c
NC
19692000-12-12 Nick Clifton <[email protected]>
1970
1971 * cpu-sh.c: Fix formattng.
1972 * elf.c: Fix formattng.
1973 * elf32-mips.c: Fix formattng.
1974 * elf32-sh.c: Fix formattng.
1975 * elf64-alpha.c: Fix formattng.
1976
857ec808
NC
19772000-12-09 Nick Clifton <[email protected]>
1978
1979 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
1980 dwarf2_find_line_info as last parameter to invocation of
1981 _bfd_dwarf2_find_nearest_line.
1982 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
1983 dwarf2_find_line_info as last parameter to invocation of
1984 _bfd_dwarf2_find_nearest_line.
1985
51db3708
NC
19862000-12-08 Mark Elbrecht <[email protected]>
1987
1988 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
857ec808
NC
1989 (BFD_LIBS): ...to here.
1990 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
1991 (BFD_LIBS_CFILES): ...to here.
51db3708
NC
1992 * Makefile.in: Regenerate.
1993 * configure.in: Remove dwarf.lo from the elf shell variable.
1994 * configure: Regenerate.
1995 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
1996 * libcoff.h: Regenerate.
d952f17a 1997 * coffgen.c (coff_find_nearest_line): Call
857ec808 1998 _bfd_dwarf2_find_nearest_line.
51db3708 1999 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
857ec808
NC
2000 accordingly.
2001 (read_abbrevs): Likewise
2002 (decode_line_info): Likewise.
2003 (parse_comp_unit): Likewise.
2004 (comp_unit_find_nearest_line): Likewise.
51db3708
NC
2005 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
2006 * libbfd.h: Regenerate.
2007 * elf.c (_bfd_elf_find_nearest_line): Update call.
2008 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
2009 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
2010 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
857ec808
NC
2011 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
2012 (styp_to_sec_flags): Handle DWARF2 sections.
2013 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
2014 to _bfd_find_nearest_line.
2015 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
2016 call to _bfd_find_nearest_line.
d952f17a 2017
435b1e90
KH
20182000-12-08 Kazu Hirata <[email protected]>
2019
2020 * coffgen.c: Fix formatting.
fe8bc63d 2021 * elf-m10300.c: Likewise.
435b1e90
KH
2022 * elf32-i386.c: Likewise.
2023 * elf32-i960.c: Likewise.
2024 * elf32-m68k.c: Likewise.
2025 * elf32-mcore.c: Likewise.
2026 * elf32-ppc.c: Likewise.
2027 * elf32-sh.c: Likewise.
2028 * elf32-sparc.c: Likewise.
2029 * elf32-v850.c: Likewise.
fe8bc63d
KH
2030 * elf64-alpha.c: Likewise.
2031 * elf64-hppa.c: Likewise.
2032 * elf64-mips.c: Likewise.
435b1e90 2033 * elf64-sparc.c: Likewise.
435b1e90 2034
8da6118f
KH
20352000-12-07 Kazu Hirata <[email protected]>
2036
2037 * elf32-ppc.c: Fix formatting.
2038 * elf64-x86-64.c: Likewise.
2039
a9922e52
UC
20402000-12-06 Ulf Carlsson <[email protected]>
2041
2042 From Ralf Baechle <[email protected]>
2043
2044 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
2045 BFDs containing no sections or empty .text, .data or .bss sections
2046 to be merged, regardless of their flags.
2047
c3668558
KH
20482000-12-06 Kazu Hirata <[email protected]>
2049
2050 * elf32-m32r.c: Fix formatting.
2051 * elf32-m68hc11.c: Likewise.
2052 * elf32-m68hc12.c: Likewise.
2053 * elf32-m68k.c: Likewise.
2054 * elf32-mcore.c: Likewise.
2055 * elf32-pj.c: Likewise.
2056 * elf32-ppc.c: Likewise.
2057
6609fa74
KH
20582000-12-05 Kazu Hirata <[email protected]>
2059
2060 * elf32-fr30.c: Fix formatting.
2061 * elf32-hppa.c: Likewise.
2062 * elf32-i370.c: Likewise.
2063 * elf32-i386.c: Likewise.
2064 * elf32-i860.c: Likewise.
2065 * elf32-i960.c: Likewise.
2066
a7c10850
KH
20672000-12-03 Kazu Hirata <[email protected]>
2068
2069 * elf32-arm.h: Fix formatting.
2070 * elf32-avr.c: Likewise.
2071 * elf32-cris.c: Likewise.
2072 * elf32-d10v.c: Likewise.
2073 * elf32-d30v.c: Likewise.
2074 * elf-hppa.h: Likewise.
2075 * elf-m10200.c: Likewise.
2076 * elf-m10300.c: Likewise.
2077
e7af610e
NC
20782000-12-01 Chris Demetriou <[email protected]>
2079
d952f17a
AM
2080 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
2081 bfd_mach_mips32_4k. Update FIXME comment.
2082 * archures.c (bfd_mach_mips32): New constant.
2083 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2084 the latter, renumber it.
2085 * bfd-in2.h (bfd_mach_mips32): New constant.
2086 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2087 the latter, renumber it.
2088 * cpu-mips.c (I_mips32): New constant.
2089 (I_mips4K, I_mips32_4k): Rename the former to the latter.
2090 (arch_info_struct): Add bfd_mach_mips32 entry, replace
2091 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
2092 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
2093 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
2094 with E_MIPS_MACH_MIPS32_4K.
2095 (_bfd_mips_elf_final_write_processing): Replace
2096 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
2097 bfd_mach_mips32 case.
2098 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
2099 comparison with support for MIPS32.
2100 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
2101 MIPS32.
2102
2103 * aoutx.h (NAME(aout,machine_type)): Add cases for
2104 bfd_mach_mips5 and bfd_mach_mips64.
2105 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
2106 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
2107 * cpu_mips.c (I_mips5, I_mips64): New definitions.
2108 (arch_info_struct): Add entries for bfd_mach_mips5 and
2109 bfd_mach_mips64.
2110 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
2111 _bfd_mips_elf_print_private_bfd_data): Add cases for
2112 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
2113 (_bfd_mips_elf_final_write_processing): Add cases for
2114 bfd_mach_mips5 and bfd_mach_mips64.
2115
7898deda 2116 * aoutx.h (NAME(aout,machine_type)): Add a
d952f17a 2117 bfd_mach_mips_sb1 case.
7898deda
NC
2118 * archures.c (bfd_mach_mips_sb1): New constant.
2119 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
2120 * cpu-mips.c (I_sb1): New constant.
d952f17a 2121 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
7898deda 2122 * elf32-mips.c (elf_mips_mach): Add case for
d952f17a
AM
2123 E_MIPS_MACH_SB1.
2124 (_bfd_mips_elf_final_write_processing): Add case for
2125 bfd_mach_mips_sb1.
2126
21272000-12-01 Joel Sherrill <[email protected]>
ddcfc5fc
NC
2128
2129 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
2130 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2131 (sparc*-*-rtems*): Switched from a.out to ELF.
2132
8d88c4ca 21332000-11-30 Jan Hubicka <[email protected]>
d952f17a
AM
2134
2135 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
2136 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
2137 (elf64-x86-64.lo): Add dependencies.
2138 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
2139 bfd_mach_x86_64_intel_syntax.
2140 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
2141 * config.bfd (x86_64): Add.
2142 * configure.in: Add support for bfd_elf64_x86_64_vec.
2143 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
2144 (bfd_i386_arch, i8086_ar): Link in.
2145 * elf64-x86-64.c: New file.
2146 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
2147 * targets.c (bfd_elf64_x86_64_vec): Add.
2148 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
8d88c4ca 2149
fbc4fff4
KH
21502000-11-30 Kazu Hirata <[email protected]>
2151
2152 * xcofflink.c: Fix formatting.
2153
e60b52c6
KH
21542000-11-28 Kazu Hirata <[email protected]>
2155
2156 * aoutx.h: Fix formatting.
2157 * bfd-in.h: Likewise.
2158 * bfd-in2.h: Likewise.
2159 * cache.c: Likewise.
2160 * cisco-core.c: Likewise.
2161 * coff64-rs6000.c: Likewise.
2162 * coffcode.h: Likewise.
2163 * coffswap.h: Likewise.
2164 * corefile.c: Likewise.
be3ccd9c 2165 * elf32-mips.c: Likewise.
e60b52c6 2166
336eced2
KH
21672000-11-27 Kazu Hirata <[email protected]>
2168
2169 * aout-adobe.c: Fix formatting.
244148ad
KH
2170 * coff64-rs6000.c: Likewise.
2171 * coffgen.c: Likewise.
2172 * cofflink.c: Likewise.
336eced2 2173
d71f672e
PB
21742000-11-27 Philip Blundell <[email protected]>
2175
2176 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
2177 (obj_coff_strings_written): New accessor macro for above.
2178 * libcoff.h: Regenerate.
2179 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
2180 strings.
2181 * coffcode.h (coff_write_object_contents): No need to write out
2182 the string table if it's already been done.
2183
bc7a577d
PB
21842000-11-22 Philip Blundell <[email protected]>
2185
d952f17a 2186 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
bc7a577d
PB
2187 weak undefined symbols.
2188
077b8428
NC
21892000-11-24 Nick Clifton <[email protected]>
2190
2191 * archures.c (bfd_mach_arm_5TE): Define.
2192 (bfd_mach_arm+XScale): Define.
2193 * bfd-in2.h: Regenerate.
2194
2195 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
2196 BFD_RELOC_ARM_PCREL_BLX.
2197
2198 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
2199 XScale machine numbers.
2200
2201 * config.bfd (xscale-elf): Add target.
2202 (xscale-coff): Add target.
2203
2204 * cpu-arm.c: Add xscale machine name.
2205 Add v5t, v5te and XScale machine numbers.
2206
e9e41bd9
KH
22072000-11-23 Kazu Hirata <[email protected]>
2208
2209 * aix386-core.c: Fix formatting.
2210
64bf6ae6
JW
22112000-11-22 Jim Wilson <[email protected]>
2212
2213 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
2214 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
2215 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
2216 (ins_imms_scaled): Initialize sign_bit at function entry.
2217 (elf64_ia64_operands): Add missing initializers.
2218 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
2219 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
2220 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
2221 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
2222 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
2223 parameters.
2224 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
2225 and free_extsyms at function entry.
2226 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
2227 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
2228 (get_got): Delete unused local srel.
2229 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
2230 (elfNN_ia64_relocate_section): Delete unused local dynindx.
d952f17a 2231
1abaf976
KH
22322000-11-21 Kazu Hirata <[email protected]>
2233
6e301b2b
KH
2234 * coff-a29k.c: Fix formatting.
2235 * coff-h8500.c: Likewise.
2236 * coff-i960.c: Likewise.
2237 * coff-ppc.c: Likewise.
2238 * coff-rs6000.c: Likewise.
2239 * coff-stgo32.c: Likewise.
2240 * coff-tic54x.c: Likewise.
2241 * coff-w65.c: Likewise.
2242 * cpu-h8500.c: Likewise.
2243 * cpu-hppa.c: Likewise.
2244 * cpu-ns32k.c: Likewise.
2245 * ecoff.c: Likewise.
1abaf976
KH
2246 * ecofflink.c: Likewise.
2247
a0fc8ba1
NC
22482000-11-21 Nick Clifton <[email protected]>
2249
2250 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
2251 remove possibility of infinite loop.
2252
beb0d161
KH
22532000-11-20 Kazu Hirata <[email protected]>
2254
2255 * aix386-core.c: Fix formatting.
2256 * aout-adobe.c: Likewise.
2257 * aout-arm.c: Likewise.
2258 * aout-encap.c: Likewise.
2259 * aout-ns32k.c: Likewise.
2260 * aout-target.h: Likewise.
2261 * aout-tic30.c: Likewise.
2262 * aoutf1.h: Likewise.
2263 * aoutx.h: Likewise.
2264 * archive.c: Likewise.
eb6e10cb
KH
2265 * bfd-in.h: Likewise.
2266 * bfd-in2.h: Likewise.
2267 * bfd.c: Likewise.
2268 * bout.c: Likewise.
beb0d161 2269
2c2475db
JW
22702000-11-17 H.J. Lu <[email protected]>
2271
2272 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
2273 pltoff entries for DT_INIT and DT_FINI.
2274 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
2275 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
2276 entries.
2277
18b27f17
RH
22782000-11-16 Richard Henderson <[email protected]>
2279
2280 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
2281 (allocate_dynrel_entries): Likewise.
2282 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
2283 (set_pltoff_entry): Likewise.
2284 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
2285 (elfNN_ia64_reloc_type_lookup): Likewise.
2286 (elfNN_ia64_install_value): Likewise.
2287 (elfNN_ia64_relocate_section): Likewise.
2288 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
2289 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
2290
98591c73
KH
22912000-11-16 Kazu Hirata <[email protected]>
2292
71f6b586
KH
2293 * cpu-a29k.c: Fix formatting.
2294 * cpu-alpha.c: Likewise.
2295 * cpu-arm.c: Likewise.
2296 * cpu-avr.c: Likewise.
2297 * cpu-d10v.c: Likewise.
2298 * cpu-h8500.c: Likewise.
2299 * cpu-hppa.c: Likewise.
2300 * cpu-i370.c: Likewise.
2301 * cpu-i386.c: Likewise.
2302 * cpu-i960.c: Likewise.
2303 * cpu-ia64-opc.c: Likewise.
2304 * cpu-ia64.c: Likewise.
2305 * cpu-m32r.c: Likewise.
2306 * cpu-m68hc11.c: Likewise.
2307 * cpu-m68hc12.c: Likewise.
2308 * cpu-m68k.c: Likewise.
2309 * cpu-m88k.c: Likewise.
2310 * cpu-mips.c: Likewise.
2311 * cpu-ns32k.c: Likewise.
2312 * cpu-pj.c: Likewise.
2313 * cpu-powerpc.c: Likewise.
2314 * cpu-sh.c: Likewise.
2315 * cpu-sparc.c: Likewise.
2316 * cpu-tic54x.c: Likewise.
2317 * cpu-v850.c: Likewise.
2318 * cpu-vax.c: Likewise.
2319 * cpu-w65.c: Likewise.
2320 * cpu-we32k.c: Likewise.
2321 * cpu-z8k.c: Likewise.
2322 * dwarf1.c: Likewise.
98591c73
KH
2323 * dwarf2.c: Likewise.
2324
c5930ee6
KH
23252000-11-15 Kazu Hirata <[email protected]>
2326
2327 * coff-arm.c: Fix formatting.
2328 * coff-ppc.c: Likewise.
2329 * coff-rs6000.c: Likewise.
cbfe05c4
KH
2330 * coff-sh.c: Likewise.
2331 * coff-sparc.c: Likewise.
2332 * coff-tic30.c: Likewise.
2333 * coff-tic54x.c: Likewise.
2334 * coff-tic80.c: Likewise.
2335 * coff-w65.c: Likewise.
2336 * coff-we32k.c: Likewise.
2337 * coff-z8k.c: Likewise.
c5930ee6 2338
dac544a8
RH
23392000-11-15 Richard Henderson <[email protected]>
2340
2341 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
2342 section with the same ALLOC|LOAD flags as the source section.
2343
c810873d
JJ
23442000-11-14 Jakub Jelinek <[email protected]>
2345
2346 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
2347 by STO_ALPHA constants.
2348
43646c9d
KH
23492000-11-14 Kazu Hirata <[email protected]>
2350
2351 * coff-pmac.c: Fix formatting.
2352 * coff-ppc.c: Likewise.
2353
051b8577
L
23542000-11-13 H.J. Lu <[email protected]>
2355
2356 * elflink.h (elf_link_add_object_symbols): Also add indirect
2357 symbols for common symbols with the default version.
2358
90460d97
PB
23592000-11-09 Philip Blundell <[email protected]>
2360
2361 * section.c (STD_SECTION): Set gc_mark flag.
2362
b48499ec
KH
23632000-11-11 Kazu Hirata <[email protected]>
2364
2365 * coff-i960.c: Likewise.
2366 * coff-m68k.c: Likewise.
2367 * coff-m88k.c: Likewise.
2368 * coff-mcore.c: Likewise.
2369 * coff-mips.c: Likewise.
2370
c5aeb40f
AO
23712000-11-11 Bernd Schmidt <[email protected]>
2372
2373 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
2374
5fcfd273
KH
23752000-11-10 Kazu Hirata <[email protected]>
2376
2377 * coff-h8300.c: Fix formatting.
2378 * coff-h8500.c: Likewise.
2379 * coff-i386.c: Likewise.
2380 * coff-i860.c: Likewise.
2381 * coff-i960.c: Likewise.
2382 * coff-ia64.c: Likewise.
2383
047066e1
KH
23842000-11-09 Kazu Hirata <[email protected]>
2385
2386 * archive.c: Fix formatting.
2387 * archures.c: Likewise.
2388
9a951beb
RH
23892000-11-07 Richard Henderson <[email protected]>
2390
2391 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
2392 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
2393 * section.c (bfd_set_section_contents): Call memcpy if
2394 section->contents set and location not equal to contents plus offset.
2395
aebad5fe
KH
23962000-11-08 Kazu Hirata <[email protected]>
2397
8546af74
KH
2398 * bfd-in.h: Fix formatting.
2399 * bfd-in2.h: Likewise.
2400 * bfd.c: Likewise.
aebad5fe
KH
2401 * binary.c: Likewise.
2402 * bout.c: Likewise.
346ceb11
KH
2403 * coff-a29k.c: Likewise.
2404 * coff-alpha.c: Likewise.
2405 * coff-apollo.c: Likewise.
2406 * coff-aux.c: Likewise.
aebad5fe 2407
0ef5a5bd
KH
24082000-11-07 Kazu Hirata <[email protected]>
2409
2410 * aix386-core.c: Fix formatting.
2411 * aoutf1.h: Likewise.
2412 * aoutx.h: Likewise.
2413 * archures.c: Likewise.
2414 * armnetbsd.c: Likewise.
2415
d562d2fb
AM
24162000-11-07 Alan Modra <[email protected]>
2417
2418 * coff-h8300.c (special): Adjust reloc address.
2419
bbe66d08
JW
24202000-11-06 Steve Ellcey <[email protected]>
2421
4efc3e05 2422 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
bbe66d08
JW
2423 to differentiate elf32 and elf64 on ia64.
2424 * bfd-in2.h: Regenerate.
2425 * config.bfd: Add target for "ia64*-*-hpux*".
2426 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
2427 * configure: Regenerate.
4efc3e05 2428 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
bbe66d08
JW
2429 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
2430
2431 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
2432 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
2433 * Makefile.in: Regnerate.
4efc3e05 2434 * elf64-ia64.c: Deleted.
bbe66d08
JW
2435 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
2436
c4dfa77f
KH
24372000-11-06 Kazu Hirata <[email protected]>
2438
2439 * aout-adobe.c: Fix formatting.
2440 * aout-arm.c: Likewise.
2441 * aout-cris.c: Likewise.
2442 * aout-encap.c: Likewise.
2443 * aout-ns32k.c: Likewise.
2444 * aout-target.h: Likewise.
2445 * aout-tic30.c: Likewise.
2446
cf919dfd
PB
24472000-11-05 Philip Blundell <[email protected]>
2448
2449 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
2450 BFDs containing no sections to be merged, regardless of their flags.
2451
24522000-11-04 Philip Blundell <[email protected]>
2453
2454 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
2455 if a relocation for an undefined symbol also results in an
2456 overflow.
2457
8d88c4ca 24582000-11-06 Christopher Faylor <[email protected]>
8848a8d0
CF
2459
2460 * config.bfd: Add support for Sun Chorus.
2461
46d59bfa
DB
24622000-11-05 David O'Brien <[email protected]>
2463
2464 * configure.in: Recognize alpha-*-freebsd*.
2465 * configure: Regenerate.
2466
d952f17a 24672000-11-02 Luciano Gemme <[email protected]>
420496c1
NC
2468
2469 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
2470 (Chunk): New global variable set by a parameter in objcopy.c.
2471 (S3Forced): New global variable set by a parameter in
2472 objcopy.c.
2473 (srec_set_section_contents): If S3Forced is true, always generate
2474 S3 records.
2475 (srec_write_section): Use 'Chunk' to limit maximum length of S
2476 records.
2477
59ff2774
NC
24782000-11-02 Per Lundberg <[email protected]>
2479
2480 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
2481 * Makefile.in: Regenerate.
2482 * bfd-in2.h: Regenerate.
2483 * po/bfd.pot: Regenerate.
d952f17a 2484
ee43f35e
PB
24852000-10-31 Philip Blundell <[email protected]>
2486
2487 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
2488 EF_SOFT_FLOAT if it is defined.
2489
1006ba19
PB
24902000-10-27 Philip Blundell <[email protected]>
2491
2492 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
2493 attempts to mix PIC code with non-PIC, just mark the output as
2494 being position dependent.
d952f17a
AM
2495 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
2496 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1006ba19 2497 all mismatches, not just the first one.
d952f17a 2498
c4920b97
NC
24992000-10-25 Chris Demetriou <[email protected]>
2500
2501 * ieee.c (ieee_archive_p): Plug one of many possible
2502 memory leaks in error handling.
2503
19f7b010
JJ
25042000-10-20 Jakub Jelinek <[email protected]>
2505
2506 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
2507 elf32_sparc_object_p, elf32_sparc_final_write_processing):
2508 Support v8plusb.
2509 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
2510 sparc64_elf_object_p): Support v9b.
2511 * archures.c: Declare v8plusb and v9b machines.
2512 * bfd-in2.h: Ditto.
2513 * cpu-sparc.c: Ditto.
2514
e1e0340b
GK
25152000-10-16 Geoffrey Keating <[email protected]>
2516
ea5fbc67
GK
2517 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
2518 of a GOT reloc.
2519
e1e0340b
GK
2520 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
2521 (SYMBOL_CALLS_LOCAL): New macro.
2522 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
2523 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
2524 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
2525 (ppc_elf_relocate_section): Use flag variable to determine
2526 whether the relocation refers to a local symbol.
2527 Test whether a PLTREL24 reloc will produce a reloc by looking
2528 to see whether a PLT entry was made.
2529
a4b120e1
GK
25302000-10-14 Geoffrey Keating <[email protected]>
2531
2532 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
2533 entries that could serve as a definition for a weak symbol.
2534
5af5b85b
UC
25352000-10-13 Ulf Carlsson <[email protected]>
2536
2537 From Ralf Baechle <[email protected]>
2538
2539 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
2540 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
2541 against local symbols.
2542 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
d952f17a 2543
3ef20aaa
AM
25442000-10-12 Alan Modra <[email protected]>
2545
24376d1b
AM
2546 * section.c (struct sec): Add kept_section.
2547 (struct bfd_comdat_info): Remove sec, we can use above.
2548 (STD_SECTION): Add initializer.
2549 (bfd_make_section_anyway): Init here too.
2550
2551 * bfd-in2.h: Regenerate.
2552
2553 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
d952f17a 2554 zeroing of `flags'.
24376d1b
AM
2555 (elf_link_input_bfd): Set all asection->symbol->value's here, and
2556 fudge values for discarded link-once section symbols.
2557
3ef20aaa
AM
2558 * elf64-hppa.c: Include alloca-conf.h
2559
c0e219cc
AM
25602000-10-11 Alan Modra <[email protected]>
2561
d01e2a23
AM
2562 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
2563
c0e219cc
AM
2564 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
2565
fe268b66
AM
25662000-10-10 Alan Modra <[email protected]>
2567
2568 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
2569
4d7ce4dd
AM
25702000-10-10 Tom Rix <[email protected]>
2571
d952f17a 2572 * section.c (bfd_make_section_anyway): Release newsect ptr when
4d7ce4dd
AM
2573 newsect->symbol fails to alloc. Use bfd_release instead of free.
2574
f3b6f7c3
RH
25752000-10-09 Richard Henderson <[email protected]
2576
2577 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
2578 (elf64_ia64_unwind_entry_compare): New.
2579 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
2580
44852b19
AM
25812000-10-07 Alan Modra <[email protected]>
2582
fc8c40a0
AM
2583 * elflink.h (size_dynamic_sections): Don't create various tags if
2584 .dynstr is excluded from the link. Don't set first dynsym entry
2585 if dynsymcount is zero.
2586 (elf_bfd_final_link): Don't try to swap out dynamic syms if
2587 .dynsym excluded from the link. Don't try to write any dynamic
2588 sections excluded from the link.
2589
44852b19
AM
2590 * elf.c (swap_out_syms): Handle global section symbols.
2591
3e4554a2
DD
25922000-10-05 DJ Delorie <[email protected]>
2593
2594 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
2595 * coffcode.h (coff_set_alignment_hook): read extended reloc count
2596 (coff_write_relocs): write extended reloc count
2597 (coff_write_object_contents): account for extended relocs
2598
fa152c49
JW
25992000-10-05 Jim Wilson <[email protected]>
2600
2601 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
2602 field.
2603 * elf.c (_bfd_elf_make_section_from_shdr): Call the
2604 elf_backend_section_flags function.
2605 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
2606 code.
2607 (elf64_ia64_section_flags): New function containing flag conversion
2608 code.
2609 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
2610 * elfxx-target.h (elf_backend_section_flags): Define.
2611 (elfNN_bed): Initialize elf_backend_section_flags field.
2612
36605136
AM
26132000-10-02 Alan Modra <[email protected]>
2614
2615 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
2616 _bfd_elf32_gc_record_vtable. Correct a comment.
2617
4b6609a0
UC
26182000-10-01 Ulf Carlsson <[email protected]>
2619
2620 From Ralf Baechle <[email protected]>
2621
2622 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
2623 produces binaries with got[1] = 0x80000001 to differenciate them
2624 for the dynamic linker from the broken binaries produced by old
2625 versions.
36605136 2626
f572a39d
AM
26272000-09-30 Petr Sorfa <[email protected]>
2628
2629 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
2630 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
2631 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
2632 * configure: Regenerate.
2633
4da81684
HPN
26342000-09-27 Hans-Peter Nilsson <[email protected]>
2635
2636 Define two bfd_targets for absence and presence of leading
2637 underscore on symbols. Make sure to only link same kind.
2638 * elf32-cris.c (cris_elf_object_p,
2639 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
2640 cris_elf_merge_private_bfd_data): New.
2641 (elf_backend_object_p, elf_backend_final_write_processing,
2642 bfd_elf32_bfd_print_private_bfd_data,
2643 bfd_elf32_bfd_merge_private_bfd_data): Define.
2644 <Target vector definition>: Include elf32-target.h twice with
2645 different macro settings:
2646 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
2647 bfd_elf32_us_cris_vec.
2648 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
2649 (elf_symbol_leading_char): First as 0, then '_'.
2650 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
2651 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
2652 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
2653 * configure: Regenerate.
2654 * targets.c: Declare bfd_elf32_us_cris_vec.
2655 * po/bfd.pot: Regenerate.
2656
9a5aca8c
AM
26572000-09-29 Momchil Velikov <[email protected]>
2658
2659 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
2660 R_ARM_THM_PC22 relocations.
2661
512a2384
AM
26622000-09-29 NIIBE Yutaka <[email protected]>
2663
2664 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
2665
6c99a5c3
AM
26662000-09-29 Momchil Velikov <[email protected]>
2667
2668 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
2669 is has the SEC_HAS_CONTENTS flag set.
2670
64e9ece0 2671