* elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
814fa6ab
AM
12001-08-10 Alan Modra <amodra@bigpond.net.au>
2
cc55aec9
AM
3 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
4 warning if not BFD64. Add braces so emacs auto format works.
5 (bfd_elf_fprintf_vma): Likewise.
6
814fa6ab
AM
7 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
8 of _xcoff_swap_ld*.
9 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
10 param to agree with libxcoff.h.
11 (xcoff_swap_ldhdr_out): Likewise.
12 (xcoff_swap_ldsym_in): Likewise.
13 (xcoff_swap_ldsym_out): Likewise.
14 (xcoff_swap_ldrel_in): Likewise.
15 (xcoff_swap_ldrel_out): Likewise.
16 (xcoff_create_csect_from_smclas): Likewise.
17 * coff64-rs6000.c: Add missing prototypes.
18 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
19 with libxcoff.h.
20 (xcoff64_swap_ldhdr_out): Likewise.
21 (xcoff64_swap_ldsym_in): Likewise.
22 (xcoff64_swap_ldsym_out): Likewise.
23 (xcoff64_swap_ldrel_in): Likewise.
24 (xcoff64_swap_ldrel_out): Likewise.
25 (xcoff64_ppc_relocate_section): Make static.
26 (xcoff64_slurp_armap): Likewise.
27 (xcoff64_archive_p): Likewise.
28 (xcoff64_openr_next_archived_file): Likewise.
29 (xcoff64_sizeof_headers): Likewise.
30 (xcoff64_is_lineno_count_overflow): Likewise.
31 (xcoff64_is_reloc_count_overflow): Likewise.
32 (xcoff64_loader_symbol_offset): Likewise.
33 (xcoff64_loader_reloc_offset): Likewise.
34 * elf64-gen.c: Add missing prototypes.
35
d3b05f8d
L
362001-08-09 H.J. Lu <hjl@gnu.org>
37
38 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
39 (bfd_elf_fprintf_vma): Likewise.
40
d69bb69b
L
412001-08-09 H.J. Lu <hjl@gnu.org>
42
43 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
44 to ...
45 * elf-bfd.h: Here.
46 * bfd-in2.h: Regenerated.
47
ae4221d7
L
482001-08-09 H.J. Lu <hjl@gnu.org>
49
50 * bfd-in.h (bfd_sprintf_vma): New prototype.
51 (bfd_fprintf_vma): Likewise.
52 (bfd_elf_sprintf_vma): Likewise.
53 (bfd_elf_fprintf_vma): Likewise.
54 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
55 * bfd-in2.h: Regenerated.
56
57 * bfd.c (bfd_sprintf_vma): New. Defined.
58 (bfd_fprintf_vma): Likewise.
59
60 * elf.c (bfd_elf_sprintf_vma): New. Defined.
61 (bfd_elf_fprintf_vma): Likewise.
62
a7b97311
AM
632001-08-09 Alan Modra <amodra@bigpond.net.au>
64
65 * coff-rs6000.c: Add missing prototypes.
66 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
67 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
68 xcoff_loader_reloc_offset): Make static.
69 * dwarf1.c: Add missing prototypes.
70 * dwarf2.c: Add missing prototypes.
71 (struct abbrev_info): Move definition.
72 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
73 * elf.c: Add missing prototypes.
74 * elf32-gen.c: Likewise.
75 * elf32-i386.c: Likewise.
76 * elf32-ppc.c: Likewise.
77 (ppc_elf_sort_rela): Use PTR instead of "void *".
78 * elflink.h: Add missing prototypes. Formatting fixes.
79 * merge.c: Add missing prototypes.
80 (last4_eq): Use PTR instead of "void *".
81 (last_eq): Likewise.
82 * syms.c: Add missing prototypes.
83
55ab10f0
NC
842001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
85
86 * bfd.c: Fix formatting.
87 * bfd-in2.h: Regenerate.
88
1c26dc27
NC
892001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
90
91 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
92 true (this target uses REL relocations) and 'pcrel_offset' to
93 false (the PC is implied, not stored in the offset).
94
2517a57f
AM
952001-08-08 Alan Modra <amodra@bigpond.net.au>
96
97 1999-10-19 Linus Nordberg <linus@swox.se>
98 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
99 * elfxx-target.h (elf_backend_want_got_sym): Define.
100 (elfNN_bed): Add elf_backend_want_got_sym.
101 * elflink.c (_bfd_elf_create_got_section): Define
102 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
103
f2363ce5
AO
1042001-08-08 Alexandre Oliva <aoliva@redhat.com>
105
106 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
107 (find_rela_addend): New function.
108 (parse_comp_unit): Call it to find the abbrev offset addend.
109 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
110 members of dwarf2_debug as debugging information is read.
111
993e9275
NC
1122001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
113
114 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
115 targets as well as sh-pe.
116
62efb346
NC
1172001-08-03 Ben Harris <bjh21@netbsd.org>
118
119 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
120 reloc from start of section when computing value for R_ARM_REL32
121 reloc.
122
8e1d4bbb
AM
1232001-08-03 Alan Modra <amodra@bigpond.net.au>
124
125 From H.J. Lu <hjl@gnu.org>
126 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
127 keep relocs for undefined syms if there are no dynamic sections in
128 executable.
129 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
130
8ceb7a1b
CW
1312001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
132
133 * cofflink.c (coff_link_check_ar_symbols): also search for
134 __imp__symbol as well as _symbol.
135 * linker.c (_bfd_generic_link_add_archive_symbols): also
136 search for __imp__symbol as well as _symbol.
137
00a7cdc5
NC
1382001-08-01 Adam Nemet <anemet@lnxw.com>
139
140 * elf.c (elf_sort_sections): Return zero only as the last step.
141
d8adc60f
NC
1422001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
143
144 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
145 ARM_COFF_BUGFIX.
146 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
147 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
148 ARM_COFF_BUGFIX.
149
407c2b92
NC
1502001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
151
152 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
153 to match corresponding bfd_coff_backend data member.
154
8a5cc6be
AM
1552001-07-24 Alan Modra <amodra@bigpond.net.au>
156
157 * Makefile.am: Update dependencies with "make dep-am".
158 * Makefile.in: Regenerate
159
01467f2a
L
1602001-07-15 H.J. Lu <hjl@gnu.org>
161
162 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
163 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
164 * Makefile.in: Regenerate.
165
824e2cb4
L
1662001-07-11 H.J. Lu <hjl@gnu.org>
167
168 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
169 flags when creating the reloc section if the ALLOC flag in the
170 source section is set.
171
a4bd8390
JW
1722001-07-11 Steve Ellcey <sje@cup.hp.com>
173
174 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
175 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
176 * bfd-in2.h: Regenerate.
177 * libbfd.h: Regenerate.
178 * elfxx-ia64.c (ia64_howto_table): Define how to handle
179 new relocations.
180 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
181 (elfNN_ia64_check_relocs): Likewise.
182 (elfNN_ia64_install_value): Likewise.
183 (elfNN_ia64_relocate_section): Likewise.
184
20278fa3
JJ
1852001-07-11 Jakub Jelinek <jakub@redhat.com>
186
187 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
188 R_SPARC_UA64.
189 (elf32_sparc_check_relocs): Likewise.
190 Only create .rela section for alloced sections in shared libraries.
191 (elf32_sparc_relocate_section): Likewise.
192 Remove redundant check.
193 Optimize unaligned reloc usage.
194 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
195 check.
196
067a7d17
L
1972001-07-11 H.J. Lu <hjl@gnu.org>
198
199 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
200 ALLOC|LOAD flags as the source section for debugging sections
201 when creating the reloc section.
202
a78f18dc
JW
2032001-07-05 Jim Wilson <wilson@redhat.com>
204
0a2afbc1
JW
205 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
206 the section of the bigger symbol.
207
a78f18dc
JW
208 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
209
0515494a
NC
2102001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
211
212 * peicode.h (coff_swap_scnhdr_in): For sections containing
213 uninitialised data, only set their size to s_paddr if this does
214 not reset their size to zero. MS's latest compilers will set
215 s_paddr to zero.
216
5e7079af
L
2172001-07-04 H.J. Lu <hjl@gnu.org>
218
219 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
220 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
221 bfd_mach_mips5000.
222
440c4607
NC
2232001-07-03 Mark Elbrecht <snowball3@softhome.net>
224
f47e5071
NC
225 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
226
440c4607
NC
227 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
228 sections being discarded.
229
936e320b
AM
2302001-06-30 Alan Modra <amodra@bigpond.net.au>
231
232 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
233 instead of _bfd_elfcore_section_from_phdr.
234 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
235 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
236 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
237 (elfcore_grok_prstatus): Likewise.
238 (elfcore_grok_lwpstatus): Likewise.
239 (bfd_get_elf_phdr_upper_bound): Likewise.
240 (elfcore_make_note_pseudosection): Formatting.
241 (_bfd_elfcore_strndup): Formatting.
242 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
243 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
244
bb0082d6
AM
2452001-06-29 Daniel Jacobowitz <drow@mvista.com>
246
247 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
248 and _bfd_elfcore_strndup.
249 (struct elf_backend_data): Add elf_backend_grok_prstatus
250 and elf_backend_grok_psinfo.
251 * elf.c (_bfd_elfcore_make_pseudosection): New function.
252 (elfcore_grok_prstatus): Use it.
253 (elfcore_make_note_pseudosection): Likewise.
254 (elfcore_strndup): Rename to...
255 (_bfd_elfcore_strndup): Here, and make global.
256 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
257 (elfcore_grok_note): Call elf_backend_grok_prstatus
258 and elf_backend_grok_psinfo if available.
259 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
260 (_bfd_elf32_mips_grok_psinfo): New function.
261 (elf_backend_grok_prstatus): Define.
262 (elf_backend_grok_psinfo): Define.
263 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
264 (elf_backend_grok_psinfo): Likewise.
265 (elfNN_bed): Include elf_backend_grok_prstatus and
266 elf_backend_grok_psinfo.
267
b64977c5
L
2682001-06-29 H.J. Lu <hjl@gnu.org>
269
270 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
8e1d4bbb 271 hplink->sgot is NULL before filling GOT. Check if hplink->splt
b64977c5
L
272 is NULL before filling PLT.
273
e45bf863
AM
2742001-06-29 Alan Modra <amodra@bigpond.net.au>
275
276 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
277
5a15f56f
AM
2782001-06-27 Alan Modra <amodra@bigpond.net.au>
279
446f2863
AM
280 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
281 here..
282 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
283 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
284 after gc has run.
285
286 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
287 (IS_ABSOLUTE_RELOC): Define.
288 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
289 (hppa_link_hash_newfunc): Always init it.
290 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
291 create COPY relocs only when the reloc is in a read-only section.
292 Instead, allocate space for a dynamic reloc to reference the
293 library symbol directly. Keep track of space we allocate using
294 relocs_entries.
295 (hppa_discard_copies): Delete, and move code to..
296 (allocate_plt_and_got): ..here. Rename to
297 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
298 relocs for non-shared link.
299 (elf32_hppa_size_dynamic_sections): Update calls to above.
300 (elf32_hppa_relocate_section): Write out the dynamic relocs used
301 in lieu of COPY relocs.
302
5a15f56f
AM
303 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
304 here..
305 (elf_i386_adjust_dynamic_symbol): ..nor here..
306 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
307 after gc has run.
308 (elf_i386_size_dynamic_sections): Fix a comment.
309 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
310 involved in writing reloc out.
311
866b3400
AM
3122001-06-25 Alan Modra <amodra@bigpond.net.au>
313
28d0b90e
AM
314 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
315 Ensure syms are dynamic if we might be emitting a reloc.
316 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
317 for undefweak or undefined syms..
318 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
319
866b3400
AM
320 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
321 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
322 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
323 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
324
6cbac8b9
L
3252001-06-24 H.J. Lu <hjl@gnu.org>
326
327 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
328 strncasecmp/strcasecmp instead of strncmp/strcmp.
329
62b7d3f1
L
3302001-06-23 H.J. Lu <hjl@gnu.org>
331
866b3400
AM
332 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
333 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
62b7d3f1
L
334 in the regular object file and treat the weak definition as
335 the normal one.
336
12d0ee4a
AM
3372001-06-23 Alan Modra <amodra@bigpond.net.au>
338
8c694914
AM
339 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
340 unresolved_reloc test to exclude cases where we use "relocation"
341 before setting it to point into the .got. Reinstate fudge for
342 unresolved relocs in debugging sections.
343
83be169b
AM
344 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
345 complicated tests for unresolvable relocs with a simple direct
346 scheme using "unresolved_reloc" var.
347
ffb2e45b
AM
348 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
349 elf_i386_dyn_relocs. Update comment.
350 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
351 dyn_relocs.
352 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
353 others to aborts.
354 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
355 abort.
356 (elf_i386_size_dynamic_sections): Likewise.
357 (elf_i386_finish_dynamic_symbol): Likewise.
358 (elf_i386_finish_dynamic_sections): Likewise.
359 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
360 handling code.
361
12d0ee4a
AM
362 Avoid creating COPY relocs if possible.
363 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
364 which .got created. Mark symbols used by R_386_32 and R_386_PC32
365 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
366 reloc is in a read-only section. Instead, allocate space for a
367 dynamic reloc to reference the library symbol directly. Keep
368 track of space we allocate using pcrel_relocs_copied.
369 (discard_copies): Delete, and move code to ..
370 (allocate_plt_and_got): ..here. Rename to
371 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
372 relocs for non-shared link.
373 (elf_i386_size_dynamic_sections): Update calls to above functions.
374 (elf_i386_relocate_section): Write out the dynamic relocs. Add
375 more ugly logic to avoid "unresolvable relocation" error. Use
376 htab shortcut in place of elf_hash_table macro.
377 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
378 not always be created now.
379
f631948d
AJ
3802001-06-20 Bo Thorsen <bo@suse.co.uk>
381
382 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
383 shared libraries.
384
89084430
NC
3852001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
386
387 * configure.host (mips64-*-linux): Reformat.
388
68fb2e56
AM
3892001-06-21 Alan Modra <amodra@bigpond.net.au>
390
391 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
392 allocate local .got space. Use shortcuts from hash table for .got
393 and .plt rather than comparing section names.
394 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
395 adjusting index into local_got_refcounts to document what we are
396 really doing.
397 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
398 Tidy .got and .plt error checking.
399
9317eacc
CM
4002001-06-20 Catherine Moore <clm@redhat.com>
401
bb0082d6
AM
402 * elf-bfd.h (struct elf_backend_data):
403 elf_backend_emit_relocs: New field: Function for emitting
404 relocs.
405 elf_backend_count_relocs: New field: Function for determining
406 the number of relocs to be emitted.
407 * elfxx-target.h: Provide default (NULL) values for
408 elf_backend_emit_relocs and elf_backend_count_relocs.
409 * elflink.h (elf_link_size_reloc_section): Make the hash table
410 big enough to hold the relocs counted by either reloc_count or
411 o->reloc_count.
412 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
413 should be emitted, either because of a command line option
414 stored in the info structure or because the target provides a
415 special reloc emitting function.
416 If the target provides a reloc counting function use it,
417 unless performing a relocatable link or emitting all relocs.
418 Also set the SEC_RELOC flag on any output section which will
419 contain relocs.
420 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
421 should be emitted, either because of a command line option
422 stored in the info structure or because the target provides a
423 special reloc emitting function.
424 If the target provides a reloc emitting function, use it,
425 unless performing a relocatable link or emitting all relocs.
9317eacc 426
161d71a6
L
4272001-06-20 H.J. Lu <hjl@gnu.org>
428
429 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
430 allocate local .got space.
431
fd8ab9e5
AJ
4322001-06-19 Andreas Jaeger <aj@suse.de>
433
434 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
435 dynamic symbols.
436
99293407
HPN
4372001-06-18 Hans-Peter Nilsson <hp@axis.com>
438
439 * elflink.h (struct elf_assign_sym_version_info): Remove member
440 export_dynamic. All users changed to use info member.
441 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
442 export_dynamic, instead use member in parameter info.
443 * bfd-in.h (bfd_elf32_size_dynamic_sections,
444 bfd_elf64_size_dynamic_sections): Update prototype.
445 * bfd-in2.h: Regenerate.
446
bc2b6df7
L
4472001-06-18 H.J. Lu <hjl@gnu.org>
448
449 * elflink.h (elf_info_failed): Add a new field, verdefs.
450 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
451 elf_export_symbol.
452 (elf_export_symbol): Check eif->verdefs to decide if a symbol
453 should be exported.
454
43917054
L
4552001-06-17 H.J. Lu <hjl@gnu.org>
456
457 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
458 readonly_reloc, to record if a relocation in the .rel.dyn
f631948d 459 section is against a read-only section.
43917054
L
460 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
461 field to false.
462 (_bfd_mips_elf_check_relocs): Record if there is a relocation
463 in the .rel.dyn section against a read-only section by setting
464 DF_TEXTREL or readonly_reloc.
465 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
466 it is true.
467 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
468 there is a relocation in the .rel.dyn section against a
469 read-only section.
470 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
471 DF_TEXTREL is set.
472
7c8ca0e4
NC
4732001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
474
475 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
476 function. Move flagword result into parameter list. Remove
477 comment about setting bfd_error_handler to intercept failure
478 results.
bb0082d6 479 * coffgen.c (make_a_section_from_file): Examine result of
7c8ca0e4
NC
480 calling bfd_coff_styp_to_sec_flags and pass a failure back to
481 caller.
bb0082d6 482 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
7c8ca0e4 483 function. Move flagword result into parameter list.
bb0082d6
AM
484 * libcoff.h: Regenerate.
485 * libecoff.h: Regenerate.
7c8ca0e4 486
dee0a8f4
NC
4872001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
488
489 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
490 section is going to follow it.
491
0d1ea5c0
CM
4922001-06-12 Catherine Moore <clm@redhat.com>
493
bb0082d6
AM
494 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
495 with the file_align entry from elf_backend_data.
496 (elf_gc_smash_unused_vtentry_relocs): Likewise.
497 (elf_gc_record_vtentry): Likewise.
0d1ea5c0 498
4e8a9624
AM
4992001-06-10 Alan Modra <amodra@bigpond.net.au>
500
501 * elflink.h: Whitespace changes.
502 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
503 rather than "unsigned char".
504 (elf_link_output_relocs): Likewise.
505 (elf_link_input_bfd): Likewise.
506 (elf_reloc_link_order): LIkewise.
507 * elf.c: s/CONST/const/. Whitespace changes.
508 * elf32-mips.c: Formatting fix.
509
510 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
511 * Makefile.in: Regenerate.
512 * po/Make-in: Remove trailing tab.
513
7a25cd3e
PB
5142001-06-09 Philip Blundell <philb@gnu.org>
515
516 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
517 change.
518 (elf32_arm_plt_entry): Likewise.
519
3f5a136d
L
5202001-06-08 H.J. Lu <hjl@gnu.org>
521
522 * elf.c (swap_out_syms): Keep names for global section symbols.
523
d8fe1fed
L
5242001-06-07 H.J. Lu <hjl@gnu.org>
525
526 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
527 MIPS-based machines need it.
528
c36e006f
L
5292001-06-07 H.J. Lu <hjl@gnu.org>
530
531 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
532 for SGI only.
533
534 * config.bfd: Remove ecoff from Linux/mips.
535
cc78d0af
AJ
5362001-06-07 Andreas Jaeger <aj@suse.de>
537
538 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
539 assertion.
540 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
541 alignment of 8 for .rela sections; handle further relocations.
542
879db8be
NC
5432001-06-06 Christian Groessler <cpg@aladdin.de>
544
bb0082d6 545 * coff-z8k.c: Fix formatting.
879db8be
NC
546 Fix howtos: howto->size was always 1.
547
cbb1fd50
NC
5482001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
549
550 * configure.host (mips64*-*-linux*): Define.
551
73a74a62
AM
5522001-06-05 Alan Modra <amodra@bigpond.net.au>
553
6725bdbf
AM
554 * elf32-i386.c (elf_i386_discard_copies): Rename to
555 discard_copies, and use elf_link_hash_entry arg rather than
556 elf_i386_link_hash_entry.
557 (elf_i386_link_hash_traverse): Delete.
558 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
559 Tidy sizing of dynamic sections.
560 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
561 possible .plt entries.
562 (elf_i386_gc_sweep_hook): Likewise.
563 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
564 everything with plt.refcount <= 0.
565
566 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
567 .relgot space here.
568 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
4e8a9624 569 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
6725bdbf
AM
570 .rel.plt here..
571 (allocate_plt_and_got): ..instead do it all here. New function.
572 (elf_i386_size_dynamic_sections): Allocate local .got space and
573 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
574 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
575 rather than gc variety).
576 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
577 (elf_i386_relocate_section): Use it here and correct handling of
578 R_386_GOT32. Provide section and offset for "unresolvable
579 relocation" error message.
580 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
581
582 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
583 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
584 (elf_i386_link_hash_table_create): Init them.
585 (create_got_section): New function.
586 (elf_i386_create_dynamic_sections): New function.
587 (elf_backend_create_dynamic_sections): Set to above.
588 (elf_i386_check_relocs): Use shortcuts from hash table rather than
589 calling bfd_get_section_by_name.
590 (elf_i386_gc_sweep_hook): Likewise.
591 (elf_i386_adjust_dynamic_symbol): Likewise.
592 (elf_i386_size_dynamic_sections): Likewise.
593 (elf_i386_relocate_section): Likewise.
594 (elf_i386_finish_dynamic_sections): Likewise.
595
73a74a62
AM
596 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
597
24a5e751
L
5982001-06-02 H.J. Lu <hjl@gnu.org>
599
600 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
601 and ELFOSABI_HPUX.
602 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
603
15103188
L
6042001-06-02 H.J. Lu <hjl@gnu.org>
605
606 * aout-cris.c (MACHTYPE_OK): New. Defined.
607
2f484710
HPN
6082001-06-02 Hans-Peter Nilsson <hp@axis.com>
609
610 * section.c (_bfd_strip_section_from_output): Handle NULL
611 output_section.
612
a5ac692b
L
6132001-06-02 H.J. Lu <hjl@gnu.org>
614
615 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
616 rs6000coff64_vec only if BFD64 is defined.
617 (powerpc64-*-aix*): Enable only if BFD64 is defined.
618
27e53099
L
6192001-06-02 H.J. Lu <hjl@gnu.org>
620
621 * coff-ia64.c (ia64coff_object_p): Rewrite with
622 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
623
80643fbc
AJ
6242001-06-01 Andreas Jaeger <aj@suse.de>
625
626 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
627 relocation, small reformatting.
628
6b3db546
AJ
6292001-05-29 Andreas Jaeger <aj@suse.de>
630
631 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
632 (elf64_x86_64_relocate_section): Likewise.
633
4dc86686
AM
6342001-05-30 Alan Modra <amodra@one.net.au>
635
636 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
637 millicode. Don't allocate .got and .rela.got space here..
638 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
639 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
640 .rela.plt here..
641 (hppa_handle_PIC_calls): ..nor here..
642 (allocate_plt_and_got): ..instead do it all here. New function.
643 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
644 call allocate_plt_and_got. No need to zap .got if not dynamic.
645 (elf32_hppa_final_link): Call regular bfd_final_link instead of
646 gc_common_final_link.
647 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
648 (elf32_hppa_relocate_section): Use it here.
649 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
650 dynamic_sections_created.
651 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
652
de41dcd8
AJ
6532001-05-28 Andreas Jaeger <aj@suse.de>
654
655 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
656 generic version since we want a hashsize of 4.
657 (elf_backend_size_info): Likewise.
658
209f668e
NC
6592001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
660
209f668e
NC
661 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
662 a zeroing loop.
663 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
664 (elf_link_input_bfd): Likewise.
665 (elf_reloc_link_order): Likewise.
666 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
667 relocations correctly.
668
f7a74f8c
NC
6692001-05-28 Nicolas Pitre <nico@cam.org>
670
671 * elf32-arm.h: fix PLT generation for big endian ARM
672
8dea1268
AM
6732001-05-28 Alan Modra <amodra@one.net.au>
674
675 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
676 for symbols forced local that need plabels.
677 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
678 .plt.rela for local syms if non-shared.
679 (hppa_build_one_stub): Mask lsb of plt.offset.
680 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
681 (clobber_millicode_symbols): Correct comment.
682 (elf32_hppa_relocate_section): Likewise.
683 (elf32_hppa_finish_dynamic_symbol): Likewise.
684
0f2712ed
NC
6852001-05-28 Jeff Sturm <jsturm@one-point.com>
686
687 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
688 * bfd-in2.h: Regenerate.
689 * libbfd.h: Regenerate.
690 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
691 and BFD_RELOC_SPARC_UA64 mapping
692 * elf64-sparc.c: Likewise.
de41dcd8 693
6768c14a
L
6942001-05-25 H.J. Lu <hjl@gnu.org>
695
696 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
697 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
698 (coff-rs6000.lo): Remove the old dependency.
699 * Makefile.in: Rebuild.
700
701 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
702 coff-rs6000.lo.
703
b55039f4
L
7042001-05-25 H.J. Lu <hjl@gnu.org>
705
706 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
707 rs6000coff_core_file_matches_executable_p,
708 rs6000coff_core_file_failing_command and
709 rs6000coff_core_file_failing_signal only if AIX_CORE is
710 defined.
711 (pmac_xcoff_vec): Likewise.
712 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
713
64e9ece0
TW
7142001-05-25 Timothy Wall <twall@redhat.com>
715
716 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
717 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
718
f34d8777
L
7192001-05-25 H.J. Lu <hjl@gnu.org>
720
721 * bfd-in2.h: Regenerated.
722 * libcoff.h: Likewise.
723
49e9d0d3
AM
7242001-05-25 Alan Modra <amodra@one.net.au>
725
726 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
727 undefined millicode syms in shared libs.
728 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
729 (elf32_hppa_check_relocs): Likewise.
730 (elf32_hppa_adjust_dynamic_symbol): Likewise.
731 (elf32_hppa_size_dynamic_sections): Likewise.
732 (elf32_hppa_relocate_section): Likewise.
733 (elf32_hppa_finish_dynamic_symbol): Likewise.
734 (elf32_hppa_finish_dynamic_sections): Likewise.
735
beb1bf64
TR
7362001-05-24 Tom Rix <trix@redhat.com>
737
bb0082d6 738 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
beb1bf64
TR
739 xcoff-target.h not used to define rs6000 or ppc bfd.
740 * Makefile.in same
741
742 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
743 to 64 bit.
744
745 * coff-rs6000.c : Many changes for 64 bit support. Move common
746 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
747 and pmac_xcoff_vec
748
749 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
750 linker now supported. Explictly define the rs6000coff64_vec.
751
752 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
de41dcd8 753 (coff_print_aux) same
beb1bf64
TR
754 (coff_write_object_contents) same
755 (coff_slurp_line_table) same
756
757 * coffgen.c : (coff_fix_symbol_name) formatting
758 (coff_mangle_symbols) xcoff 64 bit support
759 (coff_write_symbol) same
760 (coff_write_alien_symbol) same
761 (coff_write_native_symbol) same
762 (coff_write_symbols) same
763 (coff_get_symbol_info) same
764 (bfd_coff_get_syment) same
765 (coff_print_symbol) same
766
767 * config.bfd : add powerpc64-*-aix* target
768
769 * libcoff-in.h : formatting
770
771 * libcoff.h : move xcoff extern declarations to libxcoff.h
772
773 * libxcoff.h : New file
774
de41dcd8
AJ
775 * xcofflink.c : Many changes for xcoff64 support. Move common
776 structures to include/coff/xcoff.h. Move specific structure to
beb1bf64
TR
777 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
778 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
de41dcd8
AJ
779
780 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
beb1bf64
TR
781 aix4.2+ -binitfini.
782
783 (xcoff_build_ldsyms) : handle special __rtinit symbol.
784
e90fdc1a
AO
7852001-05-23 Alexandre Oliva <aoliva@redhat.com>
786
787 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
788 s/ENTIRES/ENTRIES/.
789
d1cf510e
NC
7902001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
791
c2feb664
NC
792 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
793 * libbfd.h: Regenerate.
4e8a9624 794 * bfd-in2.h: Regenerate.
c2feb664 795
d1cf510e
NC
796 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
797 * archures.c (bfd_mach_mips12000): Define.
798 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
799 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
800 support.
801 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
802 * bfd-in2.h: Regenerate.
803 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
804
6c426cf3
NC
8052001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
806
807 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
808 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
809 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
810 that is used by GCC.
811
d9bc7a44
NC
8122001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
813
814 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
815 of entries in a structured section.
bb0082d6
AM
816 * elf.c: Use new macro.
817 * elf32-i386.c: Use new macro.
818 * elf32-mips.c: Use new macro.
819 * elf64-alpha.c: Use new macro.
820 * elf64-sparc.c: Use new macro.
821 * elfcode.h: Use new macro.
822 * elflink.h: Use new macro.
d9bc7a44
NC
823
8242001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
825
826 * bfdint.texi: Replace -oformat with --oformat.
827
f5198f61
AJ
8282001-05-21 Andreas Jaeger <aj@suse.de>
829
830 * dwarf2.c (decode_line_info): Fix error message.
831 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
832 adjust error message.
833
7913c838
L
8342001-05-18 H.J. Lu <hjl@gnu.org>
835
836 * elflink.h (elf_link_add_object_symbols): Revert the last
837 change.
838
e0522e89
AM
8392001-05-17 Alan Modra <amodra@one.net.au>
840
841 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
842 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
843 (hppa_build_one_stub): Add an assert to check plt.offset.
844
96fd004e
L
8452001-05-17 H.J. Lu <hjl@gnu.org>
846
847 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
848 version definition to basename of the output filename.
849
f3876d8b
L
8502001-05-17 H.J. Lu <hjl@gnu.org>
851
852 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
853 basename of the bfd filename.
854
d1778b88
AM
8552001-05-16 Alan Modra <amodra@one.net.au>
856
857 * section.c (asection): Add linker_has_input field.
858 (STD_SECTION): Adjust initialization to suit.
859 * ecoff.c (bfd_debug_section): Likewise.
860 * bfd-in2.h: Regenerate.
861
2a0fa943
AO
8622001-05-15 Alexandre Oliva <aoliva@redhat.com>
863
864 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
865 negative 32-bit operands to 16 operands when the operand is
866 going to be zero-extended by the modified opcode.
867
bcee8eb8
AM
8682001-05-12 Peter Targett <peter.targett@arccores.com>
869
870 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
871 name for 'arc5' core versions.
872 (bfd_arc_arch): Make bfd_mach_arc_6 default.
873
874 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
875 architecture.
876 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
877
579f31ac
JJ
8782001-05-11 Jakub Jelinek <jakub@redhat.com>
879
880 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
881 sections as well.
882 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
883 to .gnu.linkonce.t.FOO text section.
884
8550eb6e
JJ
8852001-05-11 Jakub Jelinek <jakub@redhat.com>
886
887 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
888 fields, change sec into secinfo.
889 (struct sec_merge_info): Add chain, remove last fields.
890 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
891 (sec_merge_hash_lookup): If lookup could not use a string only
892 because it has bad alignment, mark the old string for deletion.
893 (sec_merge_add): Add secinfo argument. Don't compute entry's
894 position, instead record the section.
895 (sec_merge_emit): Update for the sec into secinfo change in
896 struct sec_merge_hash_entry.
897 (_bfd_merge_section): Only record the section for merging, defer
898 putting strings into the hash table.
899 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
900 _bfd_merge_sections): New functions.
901 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
902 changes.
903 * libbfd-in.h (_bfd_merge_sections): Add prototype.
904 (_bfd_nolink_bfd_merge_sections): Define.
905 * libbfd.h: Likewise.
906 (bfd_generic_merge_sections): Add prototype.
907 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
908 (struct bfd_target): Likewise.
909 * bfd.c (bfd_merge_sections): Define.
910 * bfd-in2.h: Rebuilt.
911 * elf.c (_bfd_elf_merge_sections): New function.
912 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
913 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
914 * reloc.c (bfd_generic_merge_sections): New function.
915 * vms.c (vms_bfd_merge_sections): New function.
916 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
917 * aout-target.h (MY_bfd_merge_sections): Define.
918 * aout-tic30.c (MY_bfd_merge_sections): Define.
919 * binary.c (binary_bfd_merge_sections): Define.
920 * bout.c (b_out_bfd_merge_sections): Define.
921 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
922 * coffcode.c (coff_bfd_merge_sections): Define.
923 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
924 * i386msdos.c (msdos_bfd_merge_sections): Define.
925 * i386os9k.c (os9k_bfd_merge_sections): Define.
926 * ieee.c (ieee_bfd_merge_sections): Define.
927 * ihex.c (ihex_bfd_merge_sections): Define.
928 * nlm-target.h (nlm_bfd_merge_sections): Define.
929 * oasys.c (oasys_bfd_merge_sections): Define.
930 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
931 * som.c (som_bfd_merge_sections): Define.
932 * srec.c (srec_bfd_merge_sections): Define.
933 * tekhex.c (tekhex_bfd_merge_sections): Define.
934 * versados.c (versados_bfd_merge_sections): Define.
935 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
936
1548c54f
NC
9372001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
938
939 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
940 to be unsigned long, in order to match its use.
941
689effed
L
9422001-05-10 H.J. Lu <hjl@gnu.org>
943
944 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
945 indirect symbols.
946
6e5222be
L
9472001-05-09 H.J. Lu <hjl@gnu.org>
948
949 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
950 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
951 Remove the unused veriable `dynver'.
952
8e191bd3
ILT
9532001-05-08 Ian Lance Taylor <ian@zembu.com>
954
955 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
956 NULL or is not COFF.
957 (coff_i386_rtype_to_howto): Don't dump core if output section
958 owner is not COFF.
959
062e2358
AM
9602001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
961
962 * ecoff.c (bfd_debug_section): Fix initialization.
963 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
964 is always a positive integer. Cast away sign mismatch.
965 * elf32-mips.c: Fix misleading comment and typo.
966 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
967 correct data type.
968 * elflink.c: Fix typo.
969 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
970 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
971
16b65e4e
RH
9722001-05-04 Richard Henderson <rth@redhat.com>
973
974 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
975
cac15327
NC
9762001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
977
978 * elf32-arm.h (elf32_arm_final_link_relocate): Set
bb0082d6 979 EF_ARM_HASENTRY if the start address is set.
cac15327 980
966b3e0b
NC
9812001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
982
983 * targets.c (_bfd_target_vector_entries): Compute value based on
984 the size of the _bfd_target_vector and not bfd_target_vector.
985
210ba1e8
L
9862001-05-03 H.J. Lu <hjl@gnu.org>
987
988 * elfcode.h: Include "libiberty.h".
989
990 * elflink.h (elf_link_add_object_symbols): Set
991 elf_dt_name (abfd) to basename of the bfd filename.
992 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
993 of the bfd filename.
994
56fc028e
AJ
9952001-05-03 Andreas Jaeger <aj@suse.de>
996
997 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
998 (elf_generic_info_to_howto_rel): Likewise.
999 * coff-alpha.c (reloc_nil): Likewise.
1000 (alpha_ecoff_bad_format_hook): Likewise.
1001 (alpha_adjust_reloc_out): Likewise.
1002 (alpha_bfd_reloc_type_lookup): Likewise.
1003 (alpha_convert_external_reloc): Likewise.
1004 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
1005 (elf64_alpha_reloc_bad): Likewise.
1006 (elf64_alpha_reloc_gpdisp): Likewise.
1007 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
1008 (elf64_alpha_info_to_howto): Likewise.
1009 (elf64_alpha_add_symbol_hook): Likewise.
1010 (elf64_alpha_create_got_section): Likewise.
1011 (elf64_alpha_is_local_label_name): Likewise.
1012 (elf64_alpha_merge_ind_symbols): Likewise.
1013 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
1014 (mips_elf64_get_reloc_upper_bound): Likewise.
1015 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
1016 (nlm_alpha_get_public_offset): Likewise.
1017
c7e40348
NC
10182001-05-02 Johan Rydberg <jrydberg@opencores.org>
1019
bb0082d6 1020 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
c7e40348 1021 about overflow in R_OPENRISC_LO_16_IN_INSN and
56fc028e 1022 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
c7e40348 1023
5fba655a
L
10242001-04-30 H.J. Lu <hjl@gnu.org>
1025
1026 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
1027 only for ELF_LINK_FORCED_LOCAL.
1028 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1029 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
1030 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
1031
1032 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
1033 if the symbol has hidden or internal visibility.
1034
db20fd76
AM
10352001-04-30 Alan Modra <amodra@one.net.au>
1036
1037 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
1038 calls to undefined weak symbols.
1039
6a2bda3f
AJ
10402001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
1041
1042 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
1043 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
1044
053579d7
AJ
10452001-04-27 Andreas Jaeger <aj@suse.de>
1046
1047 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
1048 out handled entries.
1049 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
1050 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
1051 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
1052 GOT32.
1053
87748b32
NC
10542001-04-27 Sean McNeil <sean@mcneil.com>
1055
1056 * config.bfd: Add arm-vxworks target.
1057 * coff-arm (coff_arm_relocate_section): Add in symbol value to
1058 addend (fro VXworks targets).
1059
f5f31454
L
10602001-04-26 H.J. Lu <hjl@gnu.org>
1061
1062 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
1063 valid.
1064
d436a9b3
FCE
10652001-04-25 Frank Ch. Eigler <fche@redhat.com>
1066
1067 * bfd-in.h (bfd_cache_close): Declare newly exported function.
1068 * bfd-in2.h: Regenerated.
1069
a531bbd2
JJ
10702001-04-24 Jakub Jelinek <jakub@redhat.com>
1071
1072 * merge.c (struct sec_merge_hash_entry): Add alignment field.
1073 (struct sec_merge_hash): Remove alignment_power.
1074 (sec_merge_hash_newfunc): Clear alignment.
1075 (sec_merge_hash_lookup): Pass alignment as argument.
1076 Use hashp->root.next, not hashp->next to walk the hash chain.
1077 If a string already in the hashtable does not have required
1078 alignment, create a new hashtable entry.
1079 (sec_merge_init): Remove alignment_power argument.
1080 (sec_merge_add): Add alignment argument.
1081 (sec_merge_emit): Alignment is now a per-entity thing, not per
1082 section.
1083 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
1084 for proper alignment.
1085 Pass alignment information to sec_merge_add.
1086
6840198f
NC
10872001-04-24 Christian Groessler <cpg@aladdin.de>
1088
1089 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
1090 and R_REL16 reloc types; accept odd values for R_REL16 type
1091
b3baf5d0
NC
10922001-04-24 Johan Rydberg <jrydberg@opencores.org>
1093
1094 * cpu-openrisc.c: New file.
1095 * elf32-openrisc.c: Likewise.
1096
1097 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
1098 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
1099 (BFD32_BACKENDS): Add elf32-openrisc.lo.
1100 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
1101 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
1102 * Makefile.in: Regenerated.
1103 * config.bfd: (openrisc-*-elf): New target.
053579d7 1104 * configure.in (bfd_elf32_openrisc_vec): New vector.
b3baf5d0
NC
1105 * configure: Regenerated.
1106 * libbfd.h: Regenerated.
1107 * bfd-in2.h: Regenerated.
1108 * reloc.c: Add OpenRISC relocations.
053579d7 1109 * targets.c (bfd_elf32_openrisc_vec): Declare.
b3baf5d0
NC
1110 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
1111 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
1112 (bfd_openrisc_arch): Declare.
1113 (bfd_archures_list): Add bfd_openrisc_arch.
1114 * elf.c (prep_headers): Add bfd_arch_openrisc.
1115
fe4770f4
AJ
11162001-04-23 Bo Thorsen <bo@suse.de>
1117
1118 * elf64-x86-64.c: Add c++ vtable hack.
1119 Small whitespace and comment changes.
1120
653165cc
AJ
11212001-04-19 Andreas Jaeger <aj@suse.de>
1122
1123 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
1124 (elf64_x86_64_plt_entry): Likewise.
1125 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
1126 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
1127
4d96d128
HPN
11282001-04-17 Hans-Peter Nilsson <hp@axis.com>
1129
1130 * elf32-cris.c: Tweak comments related to dynamic linking.
1131 (cris_elf_relocate_section): When not creating shared object, fill
1132 in the .got table for any symbol not in the dynamic symbol table.
1133 (elf_cris_finish_dynamic_symbol): When not creating shared object,
1134 only emit a .got.rela reloc if the symbol is in the dynamic symbol
1135 table.
1136 (cris_elf_check_relocs): Use variable r_type in all places rather
1137 than the original expression. Add default case in switch for
1138 reloc types.
1139 (elf_cris_size_dynamic_sections): Iterate over
1140 elf_cris_discard_excess_program_dynamics when not creating shared
1141 library.
653165cc 1142 (elf_cris_discard_excess_dso_dynamics): Renamed from
4d96d128
HPN
1143 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
1144 (elf_cris_discard_excess_program_dynamics): New.
1145
3ed30d29
DD
11462001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
1147
1148 * coffcode.h (coff_write_object_contents): Use
1149 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
1150
a80f6941
L
11512001-04-14 H.J. Lu <hjl@gnu.org>
1152
1153 * bfd-in2.h: Regenerate.
1154
767e4b0d
JJ
11552001-04-14 Jakub Jelinek <jakub@redhat.com>
1156
1157 * section.c (STD_SECTION): Add entsize.
1158
2dd439c5
L
11592001-04-13 H.J. Lu <hjl@gnu.org>
1160
1161 * section.c (SEC_MERGE): Define new flag for merging.
1162 (SEC_STRINGS): Likewise.
1163 (entsize): New field.
1164
baf80c32
DD
11652001-04-13 Roger Sayle <roger@metaphorics.com>
1166
1167 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
1168 flag on pe-i386 targets.
1169
f5fa8ca2
JJ
11702001-04-13 Jakub Jelinek <jakub@redhat.com>
1171
1172 * libbfd-in.h (_bfd_merge_section): New.
1173 (_bfd_write_merged_section): New.
1174 (_bfd_merged_section_offset): New.
1175 * libbfd.h: Rebuilt.
1176 * linker.c (_bfd_generic_link_output_symbols): Handle
1177 discard_sec_merge.
1178 * aoutx.h (aout_link_write_symbols): Likewise.
1179 * pdp11.c (aout_link_write_symbols): Likewise.
1180 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
1181 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
1182 sections.
1183 (elf_link_sec_merge_syms): New.
1184 (elf_link_input_bfd): Call _bfd_merged_section_offset
1185 and _bfd_write_merged_section.
1186 Handle discard_sec_merge.
1187 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
1188 field.
1189 (struct bfd_elf_section_data): Likewise.
1190 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
1191 SEC_STRINGS section flags and entsize from their ELF counterparts.
1192 (_bfd_elf_link_hash_table_init): Initialize merge_info.
1193 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
1194 from their BFD counterparts.
1195 * merge.c: New file.
1196 * Makefile.am: Add strtab.lo.
1197 * Makefile.in: Rebuilt.
1198
d954b040
HPN
11992001-04-09 Hans-Peter Nilsson <hp@axis.com>
1200
1201 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
1202 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
1203
fdbafa10
L
12042001-04-05 Steven J. Hill <sjhill@cotw.com>
1205
1206 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
1207 endian MIPS ELF target.
1208 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
1209 MIPS ELF target.
1210
1211 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
1212 64bit big endian MIPS ELF target.
653165cc 1213 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
fdbafa10
L
1214 endian MIPS ELF target.
1215 * configure: Regenerated.
1216
1217 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
1218 little endian targets.
1219 (mips_elf_sym_is_global): Handle traditional targets.
1220
1221 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
1222 64bit big endian MIPS ELF target.
1223 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1224 endian MIPS ELF target.
1225
1226 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
1227 and bfd_elf64_tradlittlemips_vec.
1228
dd484e5c
L
12292001-04-05 David Mosberger <davidm@hpl.hp.com>
1230
1231 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
1232 ordinary "progbits" section.
1233
391a809a
AM
12342001-04-04 Alan Modra <alan@linuxcare.com.au>
1235
1236 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
1237 when -Bsymbolic causes a symbol to no longer need a .plt entry.
1238
5854c633
L
12392001-04-03 David Mosberger <davidm@hpl.hp.com>
1240
1241 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
1242
8b4b0fac
L
12432001-03-30 H.J. Lu <hjl@gnu.org>
1244
1245 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
1246 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
1247
eb4a6e4f
L
12482001-03-26 H.J. Lu <hjl@gnu.org>
1249
1250 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
1251 if there are any relocations for generic ELF.
1252 (bfd_elf32_bfd_link_add_symbols): Defined to
1253 elf32_generic_link_add_symbols.
1254 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
1255 if there are any relocations for generic ELF.
1256 (bfd_elf64_bfd_link_add_symbols): Defined to
1257 elf64_generic_link_add_symbols.
1258
55c80943
NC
12592001-03-23 Nick Clifton <nickc@redhat.com>
1260
1261 * Makefile.am (BUILD_CFILES): New variable: List of C source
bb0082d6
AM
1262 files created in build directory.
1263 (BUILD_HFILES): New variable: List of header files created in
1264 build directory.
1265 (POTFILES): Delete.
1266 (po/POTFILES.in): Replace rule with empty entry.
1267 (po/SRC-POTFILES.in): New rule: Create a list of source files
1268 in the source directory.
1269 (po/BLD-POTFILES.in): New rule: Create a list of source files
1270 in the build directory.
1271 (MOSTLYCLEAN): Do not delete source files created in build
1272 directory.
1273 * Makefile.in: Regenerate.
1274 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
1275 into po/Makefile.
1276 * configure: Regenerate.
1277
1278 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
1279 and BLD_POTFILES.
55c80943 1280 Add .. to the search path when building bfd.pot.
bb0082d6
AM
1281 Delete POTFILES when performing distclean.
1282 Add comment describing why distclean is broken in maintainer mode.
55c80943
NC
1283 * po/POTFILES.in: Delete.
1284 * po/SRC-POTFILES.in: New file.
1285 * po/BLD-POTFILES.in: New file.
bb0082d6 1286 * po/bfd.pot: Regenerate.
55c80943 1287
58d29fc3
HPN
12882001-03-22 Hans-Peter Nilsson <hp@axis.com>
1289
915e5146
HPN
1290 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
1291 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
1292 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
1293 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
1294 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
1295 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
1296 functions.
1297 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
1298 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
1299 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
1300 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
1301 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
1302 New HOWTO members for new relocs.
1303 (cris_reloc_map): Map new relocs.
1304 (ELF_DYNAMIC_INTERPRETER): Define.
1305 (PLT_ENTRY_SIZE): Define.
1306 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
1307 elf_cris_pic_plt_entry): New, PLT templates.
1308 (struct elf_cris_pcrel_relocs_copied, struct
1309 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
1310 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
1311 (cris_final_link_relocate): Check that 16-bit GOT relocs have
1312 positive values. Adjust PCREL relocs to be relative to location
1313 after relocation.
1314 (cris_elf_relocate_section): Handle relocations to dynamic
1315 objects. Handle new relocations. Call error handler when seeing
1316 non-PIC relocation for read-only sections while generating shared
1317 object.
1318 (cris_elf_check_relocs): Set reference counts for GOT and PLT
1319 entries.
1320 (bfd_elf32_bfd_link_hash_table_create,
1321 elf_backend_adjust_dynamic_symbol,
1322 elf_backend_size_dynamic_sections,
1323 elf_backend_finish_dynamic_symbol,
1324 elf_backend_finish_dynamic_sections,
1325 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
1326 elf_backend_hide_symbol, elf_backend_want_got_plt,
1327 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1328 elf_backend_got_header_size, elf_backend_plt_header_size):
1329 Define.
1330
58d29fc3
HPN
1331 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
1332 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
1333 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
1334 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
1335 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
1336 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
1337 * bfd-in2.h, libbfd.h: Regenerate.
1338
7a65545d
DN
13392001-03-21 Diego Novillo <dnovillo@redhat.com>
1340
1341 (_bfd_mips_elf_relocate_section): Give a better error message when
1342 a relocation is not recognized.
1343
b32b5d6e
AM
13442001-03-21 Alan Modra <alan@linuxcare.com.au>
1345
1346 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
1347 non-NULL before attempting to dereference.
1348
f4fbb4a3
L
13492001-03-20 H.J. Lu <hjl@gnu.org>
1350
1351 * configure.in: Remove the redundent AC_ARG_PROGRAM.
1352 * configure: Rebuild.
1353
95fc45e6
AS
13542001-03-20 Andreas Schwab <schwab@suse.de>
1355
1356 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
1357 relocation value when resolving a reference from a debugging
1358 section.
1359
03d411a9
NC
13602001-03-16 Scott Thomason <SThomaso@hii.com>
1361
1362 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
1363 (xcoff64_swap_sym_out): Fix syntax errors.
1364
d1659392
NC
13652001-03-16 Richard Sandiford <rsandifo@redhat.com>
1366
1367 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
1368
12cca0d2
AM
13692001-03-15 Alan Modra <alan@linuxcare.com.au>
1370
1371 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
1372 (hppa_link_hash_newfunc): Init it.
1373 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
1374 section appears to be non-PIC.
1375 (final_link_relocate): Likewise.
1376 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
1377 possible candidate function, and set pic_call for those that will
1378 only have a .plt entry for the PIC call stub.
1379 (hppa_handle_PIC_calls): Set maybe_pic_call.
1380
cd6ec716
DD
13812001-03-12 DJ Delorie <dj@redhat.com>
1382
1383 * elf32-sh.c (sh_elf_relocate_section): Only relocation
1384 R_SH_DIR8WP* relocs if they're against external symbols, else
1385 they're just for relaxing. Validate the reloc values.
1386
43a0748c
NC
13872001-03-12 Stefan Geuken <mail@stefan-geuken.de>
1388
1389 * binary.c (bfd_external_binary_architecture): Declare.
1390 (binary_object_p): If bfd_external_binary_architecture is defined,
1391 set the architecture to this string.
1392
d982ba73
PB
13932001-03-11 Philip Blundell <philb@gnu.org>
1394
1395 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
1396 entries that could serve as a definition for a weak symbol.
1397
7898deda
NC
13982001-03-08 Nick Clifton <nickc@redhat.com>
1399
1400 * Most files: Update copyright notices using Perl script created
1401 by Kevin Buettner <kevinb@redhat.com>.
653165cc 1402
df425bc0
NC
14032001-03-07 Nick Clifton <nickc@redhat.com>
1404
1405 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
1406 prior patch on ! defined OLD_ARM_ABI.
1407
bcdd92f3
AJ
14082001-03-07 Andreas Jaeger <aj@suse.de>
1409
1410 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
1411 some relocation values.
1412
4f3c3dbb
NC
14132001-03-06 Nick Clifton <nickc@redhat.com>
1414
1415 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
1416 of offset in BLX(1) instruction.
1417 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
1418 offset in BLX(1) instruction.
bb0082d6 1419 Fix formatting.
4f3c3dbb 1420
f8f3c6cc
NC
14212001-03-06 Nick Clifton <nickc@redhat.com>
1422
1423 * coff-arm.c (coff_arm_reloc_type_lookup): Add
1424 BFD_RELOC_THUMB_PCREL_BLX.
1425
3cac17ae
NC
14262001-03-06 Igor Shevlyakov <igor@windriver.com>
1427
1428 * archures.c (bfd_default_scan): Add Coldfire CPUs.
1429 * bfd-in2.h: Regenerate.
1430 * cpu-m68k.c: Add Coldfire CPUs for arch table.
1431 * ieee.c (ieee_write_processor): Set proper id for
1432 Coldfire CPUs.
1433
d1b17ab0
NC
14342001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
1435
1436 * configure.in: Add s390 target.
1437 * configure: Regenerate.
1438
5608e05b
AJ
14392001-02-28 Andreas Jaeger <aj@suse.de>
1440
1441 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
1442 to addend.
1443
fd2ec330
PB
14442001-02-28 Philip Blundell <pb@futuretv.com>
1445
1446 * elf32-arm.h: Update mentions of renamed EF_xx constants.
5608e05b 1447 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
fd2ec330 1448
920581c5
L
14492001-02-27 H.J. Lu <hjl@gnu.org>
1450
1451 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
1452 abfd->tdata.aout_data == NULL.
1453
27b7e12d
AM
14542001-02-27 Alan Modra <alan@linuxcare.com.au>
1455
3ee1d854
AM
1456 * elf32-hppa.c: Correct field selector in stub comments.
1457 (clobber_millicode_symbols): Formatting fix.
1458
27b7e12d
AM
1459 * configure.in: Bump version to 2.11.90.
1460 * configure: Regenerate.
1461 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
1462 (CFILES): $SOURCE_CFILES + generated C files.
1463 (POTFILES): Include $HFILES not $SOURCE_HFILES.
1464 Run "make dep-am"
1465 * Makefile.in: Regenerate.
1466 * doc/Makefile.in: This too.
1467
10d1e03a
TW
14682001-02-26 Timothy Wall <twall@cygnus.com>
1469
1470 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
5608e05b 1471 comments.
10d1e03a 1472
1276aefa
NC
14732001-02-26 Nick Clifton <nickc@redhat.com>
1474
1475 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
1476 up, replacing multiple if statements with a switch.
bb0082d6 1477 (handle_COMDAT): New function.
1276aefa
NC
1478
14792001-02-26 H.J. Lu <hjl@gnu.org>
1480
1481 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
1482 a warning for section flags we do not handle instead of
1483 aborting.
1484
4a73f21b
AJ
14852001-02-26 Andreas Jaeger <aj@suse.de>
1486
1487 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
1488
7b6dab7f
TW
14892001-02-22 Timothy Wall <twall@cygnus.com>
1490
1491 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
1492 * configure.in: Add objects for elf64_ia64_aix vectors.
1493 * configure: Regenerated.
1494 * configure.host: Recognize ia64-*-aix*.
1495 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
1496 for AIX. AIX5 requires most relocations to be dynamic (*all*
1497 binaries are somewhat similar to shared libraries).
1498 * targets.c: Add elf64_ia64_aix vectors.
4a73f21b 1499
87f8eb97
JW
15002001-02-21 David Mosberger <davidm@hpl.hp.com>
1501
1502 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
1503 C8 said "1" instead of "8". Clarify error string for IMM22:
1504 "signed integer" instead of just "integer".
1505
05aa1441
AJ
15062001-02-20 Andreas Jaeger <aj@suse.de>
1507
1508 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
1509 PLT entries that could serve as a definition for a weak symbol.
1510
8701c1bc
JJ
15112001-02-19 Jakub Jelinek <jakub@redhat.com>
1512
1513 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
1514 entries that could serve as a definition for a weak symbol.
1515 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
1516
d4af9775
DB
15172001-02-18 David O'Brien <obrien@FreeBSD>
1518
1519 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
1520 FreeBSD/i386-CURRENT differently until I can figure out the needed
1521 corefile changes.
1522 * configure: Regenerate.
1523 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
1524 FreeBSD/PowerPC, and FreeBSD/sparc64.
1525
e135f41b
NC
15262001-02-18 lars brinkhoff <lars@nocrew.org>
1527
1528 * Makefile.am: Add PDP-11 a.out target.
1529 * config.bfd: Likewise.
1530 * configure.in: Likewise.
1531 * targets.c: Likewise.
1532 * archures.c: Likewise.
1533 * bfd-in2.h: Likewise. Add PDP-11 relocations.
1534 * libbfd.h: Add PDP-11 relocations.
1535 * reloc.c: Likewise.
1536 * cpu-pdp11.c: New file.
1537 * pdp11.c: New file.
1538
1539 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
1540 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1541 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1542 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
1543 (GET_MAGIC): New macro.
1544 (PUT_MAGIC): Likewise.
1545 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
1546
dc3febfa
NC
15472001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
1548
1549 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
1550 multiarch needs it).
1551
ea412e04
L
15522001-02-18 H.J. Lu <hjl@gnu.org>
1553
1554 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
1555 index.
1556
47eee8a9
KH
15572001-02-18 Kazu Hirata <kazu@hxi.com>
1558
1559 * vms-misc.c: Fix formatting.
1560
8a0c27cd
KH
15612001-02-16 Kazu Hirata <kazu@hxi.com>
1562
1563 * vms.c: Fix formatting.
1564
d1fad7c6
NC
15652001-02-14 H.J. Lu <hjl@gnu.org>
1566
1567 * elf.c (elf_find_function): New function.
1568 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
1569 the file name and function name.
1570
825b47db
NC
15712001-02-14 Nick Clifton <nickc@redhat.com>
1572
51d7ee16
NC
1573 * ecoff.c (bfd_debug_section): Update to initialise new fields in
1574 asection structure.
1575
825b47db
NC
1576 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
1577 (BFD64_BACKENDS): Add pepigen.c
1578 Add rules to create peigen.c and pepigen.c from peXXigen.c.
1579
1580 * Makefile.in: Regenerate.
1581 * configure: Regenerate.
1582 * po/POTFILES.in: Regenerate.
1583 * po/bfd.pot: Regenerate.
1584
ea36a178
L
15852001-02-14 H.J. Lu <hjl@gnu.org>
1586
1587 * libcoff-in.h (pe_tdata): Add members target_subsystem and
1588 force_minimum_alignment.
1589
407443a3
AJ
15902001-02-14 Bo Thorsen <bo@suse.de>
1591
1592 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
1593 (elf64_86_64_size_info): Struct added to fix a problem
1594 with the hashtable string entries.
1595 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
1596 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
1597 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
1598 remove the FIXME for this.
1599 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
1600 section. Also removed the FIXME for it.
1601 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
1602 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
1603 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
1604
b4adccfd
RH
16052001-02-13 Richard Henderson <rth@redhat.com>
1606
1607 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
1608 and not user provided.
1609
9635981a
KH
16102001-02-13 Kazu Hirata <kazu@hxi.com>
1611
1612 * vms.c (vms_print_symbol): Remove unreachable code.
1613
6a125b16
KH
1614 * rs6000-core.c: Fix formatting.
1615
cbff5e0d
DD
16162001-02-13 David Mosberger <davidm@hpl.hp.com>
1617
1618 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
1619 as _bfd_XXi_only_swap_filehdr_out.
1620 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
1621 pe->force_minimum_alignment to TRUE.
1622 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
1623 PEI_TARGET_SUBSYSTEM.
1624 (pe_print_private_bfd_data): Call
1625 _bfd_XX_print_private_bfd_data_common() instead of
1626 _bfd_pe_print_private_bfd_data_common().
1627 (pe_bfd_copy_private_bfd_data): Call
1628 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
1629 _bfd_pe_bfd_copy_private_bfd_data_common().
1630 (coff_bfd_copy_private_section_data): Define as
1631 _bfd_XX_bfd_copy_private_section_data instead of
1632 _bfd_pe_bfd_copy_private_section_data.
1633 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
1634 of a _bfd_pe_get_symbol_info.
1635
1636 * peigen.c: Delete.
1637
1638 * peXXigen.c: Renamed from peigen.c.
1639 (COFF_WITH_XX): Define this macro (will get expanded into
1640 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
1641 compiled as peigen.c or pepigen.c.
1642 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
1643 define the canonical PEP structures and definitions.
1644 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
1645 effect, enforce minimum file and section alignments. If
1646 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
1647 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
1648 so, by default, this is a no-op).
1649
1650 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
1651 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
1652 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
1653 _bfd_pefoo if it's not defined. Use these macros to define
1654 coff swap macros.
1655
1656 * libcoff.h (pe_tdata): Add members target_subsystem and
1657 force_minimum_alignment.
1658
1659 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
1660 COFF_WITH_pep.
1661 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
1662
1663 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
1664 peigen.lo.
1665
1666 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
1667 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
1668 PEPAOUTHDR.
1669
1670 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
1671 (BFD64_BACKENDS_CFILES): Mention pepigen.c
1672 (peigen.c): Add rule to generate from peXXigen.c.
1673 (pepigen.c): Ditto.
1674 (pepigen.lo): List dependencies for pepigen.lo.
1675
df8634e3
AM
16762001-02-13 Alan Modra <alan@linuxcare.com.au>
1677
1678 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
1679 $global$ referenced but not defined, set its value here.
1680
51e0a107
JH
16812001-02-09 Bo Thorsen <bo@suse.de>
1682
1683 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
1684 alignment to 3.
1685 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
1686 and relocation.
1687 (elf64_x86_64_relocate_section): Fix formatting.
1688 (elf64_x86_64_relocate_section): Fix addend for relocation of
1689 R_X86_64_(8|16|32|PC8|PC16|PC32).
1690
d1fad7c6 16912001-02-12 Jan Hubicka <jh@suse.cz>
23df1078
JH
1692
1693 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
1694
f0e1d18a
L
16952001-02-11 H.J. Lu <hjl@gnu.org>
1696
6757257f 1697 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
f0e1d18a
L
1698 alignment.
1699
9117d219
NC
17002001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1701
1702 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
1703 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
1704 relocations against dynsym symbols.
1705
1706 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
1707 the R_MIPS_26 relocation.
1708 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
1709 the R_MIPS_26 relocation.
1710 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
1711 relocation.
1712 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
1713 the R_MIPS_26 relocation.
1714 (mips_elf64_howto_table_rela): Likewise.
1715
1716 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
1717 member to mark symbols that have non-CALL relocations against
1718 them.
1719 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
1720 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
1721 R_MIPS_GOT16.
1722 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
1723 non-CALL relocation against it is encountered.
1724 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
1725 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
1726 no_fn_stub is not set.
1727
1728 * elf32-mips.c (mips_elf_output_extsym): Get the output section
1729 information from the real symbol for indirect ones.
1730 Check no_fn_stub to find out if a symbol has a function stub
1731 indeed.
1732
9f93bca5
MS
17332001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1734
1735 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
1736 * Makefile.in: Regenerate.
1737
81545d45
RH
17382001-02-09 David Mosberger <davidm@hpl.hp.com>
1739
1740 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
1741 true if section name is an unwind table section name.
1742 (elfNN_ia64_additional_program_headers): Count each unwind section
1743 separately.
1744 (elfNN_ia64_modify_segment_map): Install one unwind program header
1745 for each unwind separate section. Note: normally the linker
1746 script merges the unwind sections that go into a single segment,
1747 so this still generates at most one unwind program header per
1748 segment.
1749
1750 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
1751 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
1752 (elfNN_ia64_fake_sections): Mark sections with names that start
1753 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
1754 unwind section.
1755
1756 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
1757 Use it to make sh_info in unwind section point to the text section
1758 it applies to.
1759
a85d7ed0
NC
17602001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1761
1762 * Makefile.am: Add linux target for S/390.
1763 * archures.c: Likewise.
1764 * bfd-in2.h: Likewise.
1765 * config.bfd: Likewise.
1766 * configure.in: Likewise.
1767 * elf.c: Likewise.
1768 * libbfd.h: Likewise.
1769 * targets.c: Likewise.
1770 * cpu-s390.c: New file.
1771 * elf32-s390.c: New file.
1772 * elf64-s390.c: New file.
1773
356d255d
NC
17742001-02-09 Nick Clifton <nickc@redhat.com>
1775
1776 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
1777 ImageBase. This has already been done by coff_swap_hdr_in.
1778
069f40e5
JJ
17792001-02-09 Jakub Jelinek <jakub@redhat.com>
1780
1781 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
1782
eadfa8ab
JJ
17832001-02-09 Jakub Jelinek <jakub@redhat.com>
1784
1785 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
1786 (sparc64_elf_relocate_section): Likewise.
1787
9fc54e19
MK
17882001-02-09 Mark Kettenis <kettenis@gnu.org>
1789
1790 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
1791 similar to R_SPARC_32.
1792 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
1793
1f655a09
L
17942001-02-08 H.J. Lu <hjl@gnu.org>
1795
1796 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
1797 relocation entries for weak definitions when building DSO with
1798 -Bsymbolic.
1799
ca88208a
RH
18002001-02-08 Richard Henderson <rth@redhat.com>
1801
1802 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
1803 before visibility. Locally defined protected symbols are not
1804 dynamic.
1805
4603e845
GK
18062001-02-08 Geoffrey Keating <geoffk@redhat.com>
1807
1808 * config.bfd: Enable coff64 for rs6000-*. Patch from
1809 <hzoli@austin.ibm.com>.
1810
4ca29a6a
NC
18112001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
1812
1813 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
1814 found, do not attempt to find dwarf2 info before returning.
1815
7da9d88f
NC
18162001-02-07 Jakub Jelinek <jakub@redhat.com>
1817
1818 * elflink.h (is_global_symbol_definition): Rename to
1819 is_global_data_symbol_definition and have it reject function
1820 symbols.
1821 (elf_link_is_defined_archive_symbol): Use renamed function.
1822
7340082d
NC
18232001-02-07 Todd Vierling <tv@wasabisystems.com>
1824
1825 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
1826 * libbfd.h (bfd_target_vector): Likewise.
1827 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
81545d45 1828 make static; create pointer reference named bfd_target_vector.
7340082d
NC
1829 (_bfd_target_vector_entries): Calculate this based on the array
1830 typed _bfd_target_vector.
1831
2719f880
L
18322001-02-06 H.J. Lu <hjl@gnu.org>
1833
1834 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
1835 internal symbols are not dynamic.
1836 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
1837
175aa013
NC
18382001-02-06 Nick Clifton <nickc@redhat.com>
1839
1840 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
1841 that it will not be pulled into the list of files that make up
1842 po/POTFILES.in.
1843 * Makefile.in: Regenerate.
1844 * po/bfd.pot: Regenerate.
1845
15e0ecd9
L
18462001-02-06 H.J. Lu <hjl@gnu.org>
1847
7898deda 1848 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
15e0ecd9
L
1849 checking.
1850 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
1851 external_PEI_IMAGE_hdr.
1852
27def10f
KH
18532001-02-06 Kazu Hirata <kazu@hxi.com>
1854
1855 * elf-m10200.c: Fix formatting.
1856
a0f2e916
NC
18572001-02-04 Nick Clifton <nickc@redhat.com>
1858
1859 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
1860 rel, it will be handled later on.
1861
d96031fb
NC
18622001-02-02 Fred Fish <fnf@ninemoons.com>
1863
1864 * Makefile.in: Fix typo.
1865
010ac81f
KH
18662001-02-01 Kazu Hirata <kazu@hxi.com>
1867
1868 * elf-m10300.c: Fix formatting.
1869
3fab46d0
AM
18702001-01-30 Alan Modra <alan@linuxcare.com.au>
1871
1872 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
1873 (elf_backend_get_symbol_type): Define.
d9634ba1
AM
1874 (elf64_hppa_object_p): Set architecture and machine from elf
1875 header flags.
3fab46d0 1876
95404643
RH
18772001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
1878
1879 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
1880 before mdebug.
1881
8fb35fed
RH
18822001-01-26 Richard Henderson <rth@redhat.com>
1883
1884 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
1885 for non-default visibility.
1886 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
1887 delete ugly macro and replace with pretty function.
1888
a4f68544
NC
18892001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
1890
1891 * coff-go32.c: Update copyright.
1892 * coff-stgo32.c: Likewise.
1893 * coff-go32.c (COFF_LONG_FILENAMES): Define.
1894 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
1895 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
1896 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
1897
c02e7c3e
KH
18982001-01-25 Kazu Hirata <kazu@hxi.com>
1899
1900 * bfd-in2.h: Rebuild.
1901 * libbfd.h: Likewise.
1902
541389e2
L
19032001-01-23 H.J. Lu <hjl@gnu.org>
1904
1905 * bfd-in2.h: Rebuild.
1906
0007625f
L
19072001-01-23 H.J. Lu <hjl@gnu.org>
1908
1909 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
1910 is NULL or PRIV(vms_rec) is outside of the buffer.
1911
b653e1b1
KH
19122001-01-23 Kazu Hirata <kazu@hxi.com>
1913
1914 * coff64-rs6000.c: Fix formatting.
1915 * coff-arm.c: Likewise.
1916 * coffgen.c: Likewise.
1917 * cofflink.c: Likewise.
1918 * coff-mcore.c: Likewise.
1919 * coff-mips.c: Likewise.
1920 * coff-pmac.c: Likewise.
1921 * coff-ppc.c: Likewise.
1922 * coff-rs6000.c: Likewise.
1923 * elf32.c: Likewise.
1924 * elf32-fr30.c: Likewise.
1925 * elf32-i370.c: Likewise.
1926 * elf32-i860.c: Likewise.
1927 * elf32-m32r.c: Likewise.
1928 * elf32-m68k.c: Likewise.
1929 * elf32-mcore.c: Likewise.
1930 * elf32-ppc.c: Likewise.
1931 * elf32-sh.c: Likewise.
1932 * elf32-v850.c: Likewise.
1933 * elf64-alpha.c: Likewise.
1934 * elf64-sparc.c: Likewise.
1935 * elflink.c: Likewise.
1936 * elflink.h: Likewise.
1937 * elf-m10200.c: Likewise.
1938 * elf-m10300.c: Likewise.
1939 * elfxx-ia64.c: Likewise.
1940
3fde5a36
KH
1941 * aoutx.h: Fix formatting.
1942 * bfd.c: Likewise.
1943 * bfd-in2.h: Likewise.
1944 * bfd-in.h: Likewise.
1945 * cpu-i386.c: Likewise.
1946 * cpu-m68hc11.c: Likewise.
1947 * dwarf2.c: Likewise.
1948 * elf64-x86-64.c: Likewise.
1949 * format.c: Likewise.
1950 * freebsd.h: Likewise.
1951 * hash.c: Likewise.
1952 * hp300hpux.c: Likewise.
1953 * hppabsd-core.c: Likewise.
1954 * hpux-core.c: Likewise.
1955
70256ad8
AJ
19562001-01-22 Bo Thorsen <bo@suse.de>
1957
1958 * elf64-x86-64.c: Added PIC support for X86-64.
1959 (elf64_x86_64_link_hash_newfunc): Function added.
1960 (elf64_x86_64_link_hash_table_create): Likewise.
1961 (elf64_x86_64_check_relocs): Likewise.
1962 (elf64_x86_64_gc_mark_hook): Likewise.
1963 (elf64_x86_64_gc_sweep_hook): Likewise.
1964 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
1965 (elf64_x86_64_size_dynamic_sections): Likewise.
1966 (elf64_x86_64_discard_copies): Likewise.
1967 (elf64_x86_64_finish_dynamic_symbol): Likewise.
1968 (elf64_x86_64_finish_dynamic_sections): Likewise.
1969 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
1970
ee0bebb8
AJ
19712001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1972
1973 * Makefile.am (install-data-local): Make use of $(DESTDIR).
1974 * Makefile.in: Regenerate.
1975
2a38f751
KH
19762001-01-21 Kazu Hirata <kazu@hxi.com>
1977
1978 * coff-a29k.c: Fix formatting.
1979
c8492176
L
19802001-01-19 H.J. Lu <hjl@gnu.org>
1981
1982 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
1983 relocation section names.
1984 (elf_i386_relocate_section): Report files with bad relocation
1985 section names and return false.
1986
a5377ec0
AJ
19872001-01-17 Bo Thorsen <bo@suse.de>
1988
1989 * targets.c: Alphabetize list of xvecs.
1990
b352eebf
AM
19912001-01-14 Alan Modra <alan@linuxcare.com.au>
1992
d952f17a
AM
1993 * config.bfd: Add linux target variant for elfxx-hppa.
1994 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
1995 bfd_elf64_hppa_linux_vec.
1996 * configure: Regenerate.
1997 * elf64-hppa.c: Include elf64-target.h again to support linux
1998 target variant.
1999 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
2000 * elf32-hppa.c: Include elf32-target.h again to support linux
2001 target variant.
2002 (elf32_hppa_post_process_headers): New function.
2003 (elf_backend_post_process_headers): Define.
2004 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
2005 bfd_elf32_hppa_linux_vec.
2006
c46b7515
AM
2007 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
2008 and data_segment_base fields.
2009 (elf32_hppa_link_hash_table_create ): Init them.
2010 (elf32_hppa_check_relocs): Update comments.
2011 (hppa_record_segment_addr): New function.
2012 (elf32_hppa_relocate_section): Call it.
2013 (final_link_relocate): Handle R_PARISC_SEGREL32.
2014 (elf32_hppa_final_link): New function.
2015 (bfd_elf32_bfd_final_link): Define to call it.
2016 (hppa_unwind_entry_compare): New function.
2017 * cache.c (bfd_open_file): Create files in write+read mode.
2018
2019 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
2020 SEGREL32 and numerous other relocs. Change duplicate
2021 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
2022
d768008d
AM
2023 * opncls.c (bfd_fdopenr): Add parens like the comment says around
2024 O_ACCMODE.
2025
150ccafb
AM
2026 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
2027 .plt entries for DT_INIT and DT_FINI.
2028 (elf32_hppa_finish_dynamic_sections): Remove special handling of
2029 DT_INIT and DT_FINI.
2030
b352eebf
AM
2031 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
2032 offsets for stub .plt access if wide mode. Check offset in range.
2033
b3b9a062
NC
20342001-01-13 Nick Clifton <nickc@redhat.com>
2035
b7ed8fad
NC
2036 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
2037 line.
2038
b3b9a062
NC
2039 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
2040 line.
2041
6e0b89ee
AM
20422001-01-12 Alan Modra <alan@linuxcare.com.au>
2043
2044 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
2045 * configure: Regenerate.
2046
0d2bcfaf
NC
20472001-01-11 Peter Targett <peter.targett@arccores.com>
2048
2049 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
2050 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
2051 * cpu-arc.c (arch_info_struct): Add entries for variants.
2052 (bfd_arc_arch) Set default to bfd_mach_arc_5.
2053 (arc_get_mach) Don't assume machine names prefixed arc- before
2054 testing.
2055 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
2056 selections.
2057 (arc_elf_final_write_processing) Likewise.
2058 (ELF_MACHINE_CODE) Use EM_ARC.
2059
c31c1f70
NC
20602001-01-10 Nick Clifton <nickc@redhat.com>
2061
2758140b 2062 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
c31c1f70 2063
5ad083e3
PB
20642001-01-07 Philip Blundell <philb@gnu.org>
2065
2066 * README: Replace `bug-gnu-utils@gnu.org' with
2067 `bug-binutils@gnu.org'.
2068
7eae7d22
KH
20692001-01-04 Kazu Hirata <kazu@hxi.com>
2070
2071 * som.c: Fix formatting.
2072
509945ae
KH
20732001-01-03 Kazu Hirata <kazu@hxi.com>
2074
3e932841
KH
2075 * ecoffswap.h: Fix formatting.
2076 * elf-bfd.h: Likewise.
2077 * elfarm-nabi.c: Likewise.
2078 * elfarm-oabi.c: Likewise.
2079 * elfcode.h: Likewise.
2080 * elfcore.h: Likewise.
2081 * elflink.c: Likewise.
2082 * elflink.h: Likewise.
2083 * elfxx-ia64.c: Likewise.
2084 * elfxx-target.h: Likewise.
2085 * libbfd.c: Likewise
509945ae
KH
2086 * linker.c: Likewise.
2087 * lynx-core.c: Likewise.
2088
892339ee
KH
20892001-01-02 Kazu Hirata <kazu@hxi.com>
2090
2091 * pc532-mach.c: Fix formatting.
2092 * pe-arm.c: Likewise.
2093 * pe-i386.c: Likewise.
2094 * pe-mips.c: Likewise.
2095 * pe-ppc.c: Likewise.
2096 * pe-sh.c: Likewise.
2097 * pei-mips.c: Likewise.
2098 * pei-sh.c: Likewise.
ee91ed79 2099 * peicode.h: Likewise.
892339ee
KH
2100 * ppcboot.c: Likewise.
2101 * ptrace-core.c: Likewise.
2102
3d855632
KH
21032001-01-01 Kazu Hirata <kazu@hxi.com>
2104
2105 * reloc.c: Fix formatting.
2106 * riscix.c: Likewise.
2107 * rs6000-core.c: Likewise.
2108 * xcoff-target.h: Likewise.
2109
a77a9fef
HPN
21102000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
2111
2112 * elfcode.h (elf_object_p): Also restore the bfd mach field on
2113 error, by calling bfd_default_set_arch_mach with incoming
2114 values.
2115
558e161f
KH
21162000-12-26 Kazu Hirata <kazu@hxi.com>
2117
2118 * vaxnetbsd.c: Fix formatting.
2119 * versados.c: Likewise.
2120 * vms-gsd.c: Likewise.
2121 * vms-hdr.c: Likewise.
2122 * vms-misc.c: Likewise.
2123
3c579812
AO
21242000-12-25 Alexandre Oliva <aoliva@redhat.com>
2125
2126 * archive.c (coff_write_armap): Don't write more than symbol_count
2127 `archive_member_file_ptr's.
2128
672579e9
KH
21292000-12-25 Kazu Hirata <kazu@hxi.com>
2130
2131 * vms-tir.c: Fix formatting.
2132
55f2d5ed
KH
21332000-12-23 Kazu Hirata <kazu@hxi.com>
2134
2135 * vms.c: Fix formatting.
2136 * vms.h: Likewise.
2137
23ccc829
NC
21382000-12-21 Santeri Paavolainen <santtu@ssh.com>
2139
2140 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
2141
2142 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
2143
2144 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
2145 arithmetic.
2146
2147 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
2148
2149 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
2150
8c603c85
NC
21512000-12-21 Richard Sandiford <rsandifo@redhat.com>
2152
2153 * libbfd.c (bfd_get_bits): Added
2154 (bfd_put_bits): Likewise
2155 * bfd-in.h: Declared the above.
2156 * bfd-in2.h: Regenerated.
2157
5bff4f56
KH
21582000-12-20 Kazu Hirata <kazu@hxi.com>
2159
2160 * targets.c: Fix formatting.
2161 * tekhex.c: Likewise.
2162 * trad-core.c: Likewise.
2163
7b82c249
KH
21642000-12-19 Kazu Hirata <kazu@hxi.com>
2165
2166 * sco5-core.c: Fix formatting.
2167 * section.c: Likewise.
2168 * sparclinux.c: Likewise.
2169 * sparclynx.c: Likewise.
2170 * sparcnetbsd.c: Likewise.
2171 * srec.c: Likewise.
2172 * stabs.c: Likewise.
2173 * stab-syms.c: Likewise.
2174 * sunos.c: Likewise.
2175 * syms.c: Likewise.
2176 * sysdep.h: Likewise.
2177
f78c5281
NC
21782000-12-18 Nick Clifton <nickc@redhat.com>
2179
2180 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
2181 defined.
2182 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
2183 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
2184
02b89dce
NC
21852000-12-18 Nick Clifton <nickc@redhat.com>
2186
2187 * vms-misc.c (_bfd_vms_get_record): Add default case to
2188 file_format switch.
2189
d20966a7
NC
21902000-12-15 Miloslav Trmac <mitr@volny.cz>
2191
2192 * elfcore.h (elf_core_file_p): Move to the start of the program
2193 headers before attempting to read them.
2194
6fa957a9
KH
21952000-12-14 Kazu Hirata <kazu@hxi.com>
2196
2197 * peigen.c: Fix formatting.
2198 * som.c: Likewise.
2199 * som.h: Likewise.
2200
9602af51
KH
22012000-12-13 Kazu Hirata <kazu@hxi.com>
2202
2203 * peigen.c: Fix formatting.
2204
514829c3
JW
22052000-12-12 Jim Wilson <wilson@redhat.com>
2206
2207 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
2208
3a71aec8
NC
22092000-12-08 Mark Salter <msalter@redhat.com>
2210
2211 * binary.c (binary_set_section_contents): Ignore sections
2212 with zero size.
2213
1518639e
KH
22142000-12-12 Kazu Hirata <kazu@hxi.com>
2215
2216 * m68klinux.c: Fix formatting.
2217 * m68knetbsd.c: Likewise.
2218 * mipsbsd.c: Likewise.
2219 * netbsd-core.c: Likewise.
2220 * netbsd.h: Likewise.
2221 * newsos3.c: Likewise.
2222 * nlm32-alpha.c: Likewise.
2223 * nlm32-i386.c: Likewise.
2224 * nlm32-ppc.c: Likewise.
2225 * nlm32-sparc.c: Likewise.
2226 * nlmcode.h: Likewise.
2227 * nlmswap.h: Likewise.
2228 * nlm-target.h: Likewise.
2229 * ns32knetbsd.c: Likewise.
2230
b79e8c78
NC
22312000-12-10 Fred Fish <fnf@be.com>
2232
d952f17a
AM
2233 * elflink.h (elf_link_output_extsym): Don't complain about undefined
2234 symbols in shared objects if allow_shlib_undefined is true.
b79e8c78 2235
38b1a46c
NC
22362000-12-12 Nick Clifton <nickc@redhat.com>
2237
2238 * cpu-sh.c: Fix formattng.
2239 * elf.c: Fix formattng.
2240 * elf32-mips.c: Fix formattng.
2241 * elf32-sh.c: Fix formattng.
2242 * elf64-alpha.c: Fix formattng.
2243
857ec808
NC
22442000-12-09 Nick Clifton <nickc@redhat.com>
2245
2246 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
2247 dwarf2_find_line_info as last parameter to invocation of
2248 _bfd_dwarf2_find_nearest_line.
2249 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
2250 dwarf2_find_line_info as last parameter to invocation of
2251 _bfd_dwarf2_find_nearest_line.
2252
51db3708
NC
22532000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
2254
2255 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
857ec808
NC
2256 (BFD_LIBS): ...to here.
2257 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
2258 (BFD_LIBS_CFILES): ...to here.
51db3708
NC
2259 * Makefile.in: Regenerate.
2260 * configure.in: Remove dwarf.lo from the elf shell variable.
2261 * configure: Regenerate.
2262 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
2263 * libcoff.h: Regenerate.
d952f17a 2264 * coffgen.c (coff_find_nearest_line): Call
857ec808 2265 _bfd_dwarf2_find_nearest_line.
51db3708 2266 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
857ec808
NC
2267 accordingly.
2268 (read_abbrevs): Likewise
2269 (decode_line_info): Likewise.
2270 (parse_comp_unit): Likewise.
2271 (comp_unit_find_nearest_line): Likewise.
51db3708
NC
2272 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
2273 * libbfd.h: Regenerate.
2274 * elf.c (_bfd_elf_find_nearest_line): Update call.
2275 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
2276 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
2277 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
857ec808
NC
2278 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
2279 (styp_to_sec_flags): Handle DWARF2 sections.
2280 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
2281 to _bfd_find_nearest_line.
2282 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
2283 call to _bfd_find_nearest_line.
d952f17a 2284
435b1e90
KH
22852000-12-08 Kazu Hirata <kazu@hxi.com>
2286
2287 * coffgen.c: Fix formatting.
fe8bc63d 2288 * elf-m10300.c: Likewise.
435b1e90
KH
2289 * elf32-i386.c: Likewise.
2290 * elf32-i960.c: Likewise.
2291 * elf32-m68k.c: Likewise.
2292 * elf32-mcore.c: Likewise.
2293 * elf32-ppc.c: Likewise.
2294 * elf32-sh.c: Likewise.
2295 * elf32-sparc.c: Likewise.
2296 * elf32-v850.c: Likewise.
fe8bc63d
KH
2297 * elf64-alpha.c: Likewise.
2298 * elf64-hppa.c: Likewise.
2299 * elf64-mips.c: Likewise.
435b1e90 2300 * elf64-sparc.c: Likewise.
435b1e90 2301
8da6118f
KH
23022000-12-07 Kazu Hirata <kazu@hxi.com>
2303
2304 * elf32-ppc.c: Fix formatting.
2305 * elf64-x86-64.c: Likewise.
2306
a9922e52
UC
23072000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
2308
2309 From Ralf Baechle <ralf@gnu.org>
2310
2311 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
2312 BFDs containing no sections or empty .text, .data or .bss sections
2313 to be merged, regardless of their flags.
2314
c3668558
KH
23152000-12-06 Kazu Hirata <kazu@hxi.com>
2316
2317 * elf32-m32r.c: Fix formatting.
2318 * elf32-m68hc11.c: Likewise.
2319 * elf32-m68hc12.c: Likewise.
2320 * elf32-m68k.c: Likewise.
2321 * elf32-mcore.c: Likewise.
2322 * elf32-pj.c: Likewise.
2323 * elf32-ppc.c: Likewise.
2324
6609fa74
KH
23252000-12-05 Kazu Hirata <kazu@hxi.com>
2326
2327 * elf32-fr30.c: Fix formatting.
2328 * elf32-hppa.c: Likewise.
2329 * elf32-i370.c: Likewise.
2330 * elf32-i386.c: Likewise.
2331 * elf32-i860.c: Likewise.
2332 * elf32-i960.c: Likewise.
2333
a7c10850
KH
23342000-12-03 Kazu Hirata <kazu@hxi.com>
2335
2336 * elf32-arm.h: Fix formatting.
2337 * elf32-avr.c: Likewise.
2338 * elf32-cris.c: Likewise.
2339 * elf32-d10v.c: Likewise.
2340 * elf32-d30v.c: Likewise.
2341 * elf-hppa.h: Likewise.
2342 * elf-m10200.c: Likewise.
2343 * elf-m10300.c: Likewise.
2344
e7af610e
NC
23452000-12-01 Chris Demetriou <cgd@sibyte.com>
2346
d952f17a
AM
2347 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
2348 bfd_mach_mips32_4k. Update FIXME comment.
2349 * archures.c (bfd_mach_mips32): New constant.
2350 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2351 the latter, renumber it.
2352 * bfd-in2.h (bfd_mach_mips32): New constant.
2353 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2354 the latter, renumber it.
2355 * cpu-mips.c (I_mips32): New constant.
2356 (I_mips4K, I_mips32_4k): Rename the former to the latter.
2357 (arch_info_struct): Add bfd_mach_mips32 entry, replace
2358 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
2359 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
2360 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
2361 with E_MIPS_MACH_MIPS32_4K.
2362 (_bfd_mips_elf_final_write_processing): Replace
2363 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
2364 bfd_mach_mips32 case.
2365 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
2366 comparison with support for MIPS32.
2367 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
2368 MIPS32.
2369
2370 * aoutx.h (NAME(aout,machine_type)): Add cases for
2371 bfd_mach_mips5 and bfd_mach_mips64.
2372 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
2373 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
2374 * cpu_mips.c (I_mips5, I_mips64): New definitions.
2375 (arch_info_struct): Add entries for bfd_mach_mips5 and
2376 bfd_mach_mips64.
2377 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
2378 _bfd_mips_elf_print_private_bfd_data): Add cases for
2379 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
2380 (_bfd_mips_elf_final_write_processing): Add cases for
2381 bfd_mach_mips5 and bfd_mach_mips64.
2382
7898deda 2383 * aoutx.h (NAME(aout,machine_type)): Add a
d952f17a 2384 bfd_mach_mips_sb1 case.
7898deda
NC
2385 * archures.c (bfd_mach_mips_sb1): New constant.
2386 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
2387 * cpu-mips.c (I_sb1): New constant.
d952f17a 2388 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
7898deda 2389 * elf32-mips.c (elf_mips_mach): Add case for
d952f17a
AM
2390 E_MIPS_MACH_SB1.
2391 (_bfd_mips_elf_final_write_processing): Add case for
2392 bfd_mach_mips_sb1.
2393
23942000-12-01 Joel Sherrill <joel@OARcorp.com>
ddcfc5fc
NC
2395
2396 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
2397 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2398 (sparc*-*-rtems*): Switched from a.out to ELF.
2399
8d88c4ca 24002000-11-30 Jan Hubicka <jh@suse.cz>
d952f17a
AM
2401
2402 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
2403 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
2404 (elf64-x86-64.lo): Add dependencies.
2405 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
2406 bfd_mach_x86_64_intel_syntax.
2407 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
2408 * config.bfd (x86_64): Add.
2409 * configure.in: Add support for bfd_elf64_x86_64_vec.
2410 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
2411 (bfd_i386_arch, i8086_ar): Link in.
2412 * elf64-x86-64.c: New file.
2413 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
2414 * targets.c (bfd_elf64_x86_64_vec): Add.
2415 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
8d88c4ca 2416
fbc4fff4
KH
24172000-11-30 Kazu Hirata <kazu@hxi.com>
2418
2419 * xcofflink.c: Fix formatting.
2420
e60b52c6
KH
24212000-11-28 Kazu Hirata <kazu@hxi.com>
2422
2423 * aoutx.h: Fix formatting.
2424 * bfd-in.h: Likewise.
2425 * bfd-in2.h: Likewise.
2426 * cache.c: Likewise.
2427 * cisco-core.c: Likewise.
2428 * coff64-rs6000.c: Likewise.
2429 * coffcode.h: Likewise.
2430 * coffswap.h: Likewise.
2431 * corefile.c: Likewise.
be3ccd9c 2432 * elf32-mips.c: Likewise.
e60b52c6 2433
336eced2
KH
24342000-11-27 Kazu Hirata <kazu@hxi.com>
2435
2436 * aout-adobe.c: Fix formatting.
244148ad
KH
2437 * coff64-rs6000.c: Likewise.
2438 * coffgen.c: Likewise.
2439 * cofflink.c: Likewise.
336eced2 2440
d71f672e
PB
24412000-11-27 Philip Blundell <pb@futuretv.com>
2442
2443 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
2444 (obj_coff_strings_written): New accessor macro for above.
2445 * libcoff.h: Regenerate.
2446 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
2447 strings.
2448 * coffcode.h (coff_write_object_contents): No need to write out
2449 the string table if it's already been done.
2450
bc7a577d
PB
24512000-11-22 Philip Blundell <pb@futuretv.com>
2452
d952f17a 2453 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
bc7a577d
PB
2454 weak undefined symbols.
2455
077b8428
NC
24562000-11-24 Nick Clifton <nickc@redhat.com>
2457
2458 * archures.c (bfd_mach_arm_5TE): Define.
2459 (bfd_mach_arm+XScale): Define.
2460 * bfd-in2.h: Regenerate.
2461
2462 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
2463 BFD_RELOC_ARM_PCREL_BLX.
2464
2465 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
2466 XScale machine numbers.
2467
2468 * config.bfd (xscale-elf): Add target.
2469 (xscale-coff): Add target.
2470
2471 * cpu-arm.c: Add xscale machine name.
2472 Add v5t, v5te and XScale machine numbers.
2473
e9e41bd9
KH
24742000-11-23 Kazu Hirata <kazu@hxi.com>
2475
2476 * aix386-core.c: Fix formatting.
2477
64bf6ae6
JW
24782000-11-22 Jim Wilson <wilson@redhat.com>
2479
2480 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
2481 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
2482 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
2483 (ins_imms_scaled): Initialize sign_bit at function entry.
2484 (elf64_ia64_operands): Add missing initializers.
2485 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
2486 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
2487 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
2488 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
2489 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
2490 parameters.
2491 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
2492 and free_extsyms at function entry.
2493 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
2494 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
2495 (get_got): Delete unused local srel.
2496 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
2497 (elfNN_ia64_relocate_section): Delete unused local dynindx.
d952f17a 2498
1abaf976
KH
24992000-11-21 Kazu Hirata <kazu@hxi.com>
2500
6e301b2b
KH
2501 * coff-a29k.c: Fix formatting.
2502 * coff-h8500.c: Likewise.
2503 * coff-i960.c: Likewise.
2504 * coff-ppc.c: Likewise.
2505 * coff-rs6000.c: Likewise.
2506 * coff-stgo32.c: Likewise.
2507 * coff-tic54x.c: Likewise.
2508 * coff-w65.c: Likewise.
2509 * cpu-h8500.c: Likewise.
2510 * cpu-hppa.c: Likewise.
2511 * cpu-ns32k.c: Likewise.
2512 * ecoff.c: Likewise.
1abaf976
KH
2513 * ecofflink.c: Likewise.
2514
a0fc8ba1
NC
25152000-11-21 Nick Clifton <nickc@redhat.com>
2516
2517 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
2518 remove possibility of infinite loop.
2519
beb0d161
KH
25202000-11-20 Kazu Hirata <kazu@hxi.com>
2521
2522 * aix386-core.c: Fix formatting.
2523 * aout-adobe.c: Likewise.
2524 * aout-arm.c: Likewise.
2525 * aout-encap.c: Likewise.
2526 * aout-ns32k.c: Likewise.
2527 * aout-target.h: Likewise.
2528 * aout-tic30.c: Likewise.
2529 * aoutf1.h: Likewise.
2530 * aoutx.h: Likewise.
2531 * archive.c: Likewise.
eb6e10cb
KH
2532 * bfd-in.h: Likewise.
2533 * bfd-in2.h: Likewise.
2534 * bfd.c: Likewise.
2535 * bout.c: Likewise.
beb0d161 2536
2c2475db
JW
25372000-11-17 H.J. Lu <hjl@gnu.org>
2538
2539 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
2540 pltoff entries for DT_INIT and DT_FINI.
2541 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
2542 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
2543 entries.
2544
18b27f17
RH
25452000-11-16 Richard Henderson <rth@redhat.com>
2546
2547 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
2548 (allocate_dynrel_entries): Likewise.
2549 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
2550 (set_pltoff_entry): Likewise.
2551 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
2552 (elfNN_ia64_reloc_type_lookup): Likewise.
2553 (elfNN_ia64_install_value): Likewise.
2554 (elfNN_ia64_relocate_section): Likewise.
2555 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
2556 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
2557
98591c73
KH
25582000-11-16 Kazu Hirata <kazu@hxi.com>
2559
71f6b586
KH
2560 * cpu-a29k.c: Fix formatting.
2561 * cpu-alpha.c: Likewise.
2562 * cpu-arm.c: Likewise.
2563 * cpu-avr.c: Likewise.
2564 * cpu-d10v.c: Likewise.
2565 * cpu-h8500.c: Likewise.
2566 * cpu-hppa.c: Likewise.
2567 * cpu-i370.c: Likewise.
2568 * cpu-i386.c: Likewise.
2569 * cpu-i960.c: Likewise.
2570 * cpu-ia64-opc.c: Likewise.
2571 * cpu-ia64.c: Likewise.
2572 * cpu-m32r.c: Likewise.
2573 * cpu-m68hc11.c: Likewise.
2574 * cpu-m68hc12.c: Likewise.
2575 * cpu-m68k.c: Likewise.
2576 * cpu-m88k.c: Likewise.
2577 * cpu-mips.c: Likewise.
2578 * cpu-ns32k.c: Likewise.
2579 * cpu-pj.c: Likewise.
2580 * cpu-powerpc.c: Likewise.
2581 * cpu-sh.c: Likewise.
2582 * cpu-sparc.c: Likewise.
2583 * cpu-tic54x.c: Likewise.
2584 * cpu-v850.c: Likewise.
2585 * cpu-vax.c: Likewise.
2586 * cpu-w65.c: Likewise.
2587 * cpu-we32k.c: Likewise.
2588 * cpu-z8k.c: Likewise.
2589 * dwarf1.c: Likewise.
98591c73
KH
2590 * dwarf2.c: Likewise.
2591
c5930ee6
KH
25922000-11-15 Kazu Hirata <kazu@hxi.com>
2593
2594 * coff-arm.c: Fix formatting.
2595 * coff-ppc.c: Likewise.
2596 * coff-rs6000.c: Likewise.
cbfe05c4
KH
2597 * coff-sh.c: Likewise.
2598 * coff-sparc.c: Likewise.
2599 * coff-tic30.c: Likewise.
2600 * coff-tic54x.c: Likewise.
2601 * coff-tic80.c: Likewise.
2602 * coff-w65.c: Likewise.
2603 * coff-we32k.c: Likewise.
2604 * coff-z8k.c: Likewise.
c5930ee6 2605
dac544a8
RH
26062000-11-15 Richard Henderson <rth@redhat.com>
2607
2608 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
2609 section with the same ALLOC|LOAD flags as the source section.
2610
c810873d
JJ
26112000-11-14 Jakub Jelinek <jakub@redhat.com>
2612
2613 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
2614 by STO_ALPHA constants.
2615
43646c9d
KH
26162000-11-14 Kazu Hirata <kazu@hxi.com>
2617
2618 * coff-pmac.c: Fix formatting.
2619 * coff-ppc.c: Likewise.
2620
051b8577
L
26212000-11-13 H.J. Lu <hjl@gnu.org>
2622
2623 * elflink.h (elf_link_add_object_symbols): Also add indirect
2624 symbols for common symbols with the default version.
2625
90460d97
PB
26262000-11-09 Philip Blundell <pb@futuretv.com>
2627
2628 * section.c (STD_SECTION): Set gc_mark flag.
2629
b48499ec
KH
26302000-11-11 Kazu Hirata <kazu@hxi.com>
2631
2632 * coff-i960.c: Likewise.
2633 * coff-m68k.c: Likewise.
2634 * coff-m88k.c: Likewise.
2635 * coff-mcore.c: Likewise.
2636 * coff-mips.c: Likewise.
2637
c5aeb40f
AO
26382000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
2639
2640 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
2641
5fcfd273
KH
26422000-11-10 Kazu Hirata <kazu@hxi.com>
2643
2644 * coff-h8300.c: Fix formatting.
2645 * coff-h8500.c: Likewise.
2646 * coff-i386.c: Likewise.
2647 * coff-i860.c: Likewise.
2648 * coff-i960.c: Likewise.
2649 * coff-ia64.c: Likewise.
2650
047066e1
KH
26512000-11-09 Kazu Hirata <kazu@hxi.com>
2652
2653 * archive.c: Fix formatting.
2654 * archures.c: Likewise.
2655
9a951beb
RH
26562000-11-07 Richard Henderson <rth@redhat.com>
2657
2658 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
2659 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
2660 * section.c (bfd_set_section_contents): Call memcpy if
2661 section->contents set and location not equal to contents plus offset.
2662
aebad5fe
KH
26632000-11-08 Kazu Hirata <kazu@hxi.com>
2664
8546af74
KH
2665 * bfd-in.h: Fix formatting.
2666 * bfd-in2.h: Likewise.
2667 * bfd.c: Likewise.
aebad5fe
KH
2668 * binary.c: Likewise.
2669 * bout.c: Likewise.
346ceb11
KH
2670 * coff-a29k.c: Likewise.
2671 * coff-alpha.c: Likewise.
2672 * coff-apollo.c: Likewise.
2673 * coff-aux.c: Likewise.
aebad5fe 2674
0ef5a5bd
KH
26752000-11-07 Kazu Hirata <kazu@hxi.com>
2676
2677 * aix386-core.c: Fix formatting.
2678 * aoutf1.h: Likewise.
2679 * aoutx.h: Likewise.
2680 * archures.c: Likewise.
2681 * armnetbsd.c: Likewise.
2682
d562d2fb
AM
26832000-11-07 Alan Modra <alan@linuxcare.com.au>
2684
2685 * coff-h8300.c (special): Adjust reloc address.
2686
bbe66d08
JW
26872000-11-06 Steve Ellcey <sje@cup.hp.com>
2688
4efc3e05 2689 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
bbe66d08
JW
2690 to differentiate elf32 and elf64 on ia64.
2691 * bfd-in2.h: Regenerate.
2692 * config.bfd: Add target for "ia64*-*-hpux*".
2693 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
2694 * configure: Regenerate.
4efc3e05 2695 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
bbe66d08
JW
2696 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
2697
2698 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
2699 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
2700 * Makefile.in: Regnerate.
4efc3e05 2701 * elf64-ia64.c: Deleted.
bbe66d08
JW
2702 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
2703
c4dfa77f
KH
27042000-11-06 Kazu Hirata <kazu@hxi.com>
2705
2706 * aout-adobe.c: Fix formatting.
2707 * aout-arm.c: Likewise.
2708 * aout-cris.c: Likewise.
2709 * aout-encap.c: Likewise.
2710 * aout-ns32k.c: Likewise.
2711 * aout-target.h: Likewise.
2712 * aout-tic30.c: Likewise.
2713
cf919dfd
PB
27142000-11-05 Philip Blundell <philb@gnu.org>
2715
2716 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
2717 BFDs containing no sections to be merged, regardless of their flags.
2718
27192000-11-04 Philip Blundell <philb@gnu.org>
2720
2721 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
2722 if a relocation for an undefined symbol also results in an
2723 overflow.
2724
8d88c4ca 27252000-11-06 Christopher Faylor <cgf@cygnus.com>
8848a8d0
CF
2726
2727 * config.bfd: Add support for Sun Chorus.
2728
46d59bfa
DB
27292000-11-05 David O'Brien <obrien@FreeBSD.org>
2730
2731 * configure.in: Recognize alpha-*-freebsd*.
2732 * configure: Regenerate.
2733
d952f17a 27342000-11-02 Luciano Gemme <ishitawa@yahoo.com>
420496c1
NC
2735
2736 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
2737 (Chunk): New global variable set by a parameter in objcopy.c.
2738 (S3Forced): New global variable set by a parameter in
2739 objcopy.c.
2740 (srec_set_section_contents): If S3Forced is true, always generate
2741 S3 records.
2742 (srec_write_section): Use 'Chunk' to limit maximum length of S
2743 records.
2744
59ff2774
NC
27452000-11-02 Per Lundberg <plundis@chaosdev.org>
2746
2747 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
2748 * Makefile.in: Regenerate.
2749 * bfd-in2.h: Regenerate.
2750 * po/bfd.pot: Regenerate.
d952f17a 2751
ee43f35e
PB
27522000-10-31 Philip Blundell <philb@gnu.org>
2753
2754 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
2755 EF_SOFT_FLOAT if it is defined.
2756
1006ba19
PB
27572000-10-27 Philip Blundell <philb@gnu.org>
2758
2759 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
2760 attempts to mix PIC code with non-PIC, just mark the output as
2761 being position dependent.
d952f17a
AM
2762 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
2763 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
1006ba19 2764 all mismatches, not just the first one.
d952f17a 2765
c4920b97
NC
27662000-10-25 Chris Demetriou <cgd@sibyte.com>
2767
2768 * ieee.c (ieee_archive_p): Plug one of many possible
2769 memory leaks in error handling.
2770
19f7b010
JJ
27712000-10-20 Jakub Jelinek <jakub@redhat.com>
2772
2773 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
2774 elf32_sparc_object_p, elf32_sparc_final_write_processing):
2775 Support v8plusb.
2776 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
2777 sparc64_elf_object_p): Support v9b.
2778 * archures.c: Declare v8plusb and v9b machines.
2779 * bfd-in2.h: Ditto.
2780 * cpu-sparc.c: Ditto.
2781
e1e0340b
GK
27822000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2783
ea5fbc67
GK
2784 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
2785 of a GOT reloc.
2786
e1e0340b
GK
2787 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
2788 (SYMBOL_CALLS_LOCAL): New macro.
2789 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
2790 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
2791 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
2792 (ppc_elf_relocate_section): Use flag variable to determine
2793 whether the relocation refers to a local symbol.
2794 Test whether a PLTREL24 reloc will produce a reloc by looking
2795 to see whether a PLT entry was made.
2796
a4b120e1
GK
27972000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2798
2799 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
2800 entries that could serve as a definition for a weak symbol.
2801
5af5b85b
UC
28022000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
2803
2804 From Ralf Baechle <ralf@gnu.org>
2805
2806 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
2807 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
2808 against local symbols.
2809 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
d952f17a 2810
3ef20aaa
AM
28112000-10-12 Alan Modra <alan@linuxcare.com.au>
2812
24376d1b
AM
2813 * section.c (struct sec): Add kept_section.
2814 (struct bfd_comdat_info): Remove sec, we can use above.
2815 (STD_SECTION): Add initializer.
2816 (bfd_make_section_anyway): Init here too.
2817
2818 * bfd-in2.h: Regenerate.
2819
2820 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
d952f17a 2821 zeroing of `flags'.
24376d1b
AM
2822 (elf_link_input_bfd): Set all asection->symbol->value's here, and
2823 fudge values for discarded link-once section symbols.
2824
3ef20aaa
AM
2825 * elf64-hppa.c: Include alloca-conf.h
2826
c0e219cc
AM
28272000-10-11 Alan Modra <alan@linuxcare.com.au>
2828
d01e2a23
AM
2829 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
2830
c0e219cc
AM
2831 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
2832
fe268b66
AM
28332000-10-10 Alan Modra <alan@linuxcare.com.au>
2834
2835 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
2836
4d7ce4dd
AM
28372000-10-10 Tom Rix <trix@redhat.com>
2838
d952f17a 2839 * section.c (bfd_make_section_anyway): Release newsect ptr when
4d7ce4dd
AM
2840 newsect->symbol fails to alloc. Use bfd_release instead of free.
2841
f3b6f7c3
RH
28422000-10-09 Richard Henderson <rth@cygnus.com
2843
2844 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
2845 (elf64_ia64_unwind_entry_compare): New.
2846 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
2847
44852b19
AM
28482000-10-07 Alan Modra <alan@linuxcare.com.au>
2849
fc8c40a0
AM
2850 * elflink.h (size_dynamic_sections): Don't create various tags if
2851 .dynstr is excluded from the link. Don't set first dynsym entry
2852 if dynsymcount is zero.
2853 (elf_bfd_final_link): Don't try to swap out dynamic syms if
2854 .dynsym excluded from the link. Don't try to write any dynamic
2855 sections excluded from the link.
2856
44852b19
AM
2857 * elf.c (swap_out_syms): Handle global section symbols.
2858
3e4554a2
DD
28592000-10-05 DJ Delorie <dj@redhat.com>
2860
2861 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
2862 * coffcode.h (coff_set_alignment_hook): read extended reloc count
2863 (coff_write_relocs): write extended reloc count
2864 (coff_write_object_contents): account for extended relocs
2865
fa152c49
JW
28662000-10-05 Jim Wilson <wilson@cygnus.com>
2867
2868 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
2869 field.
2870 * elf.c (_bfd_elf_make_section_from_shdr): Call the
2871 elf_backend_section_flags function.
2872 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
2873 code.
2874 (elf64_ia64_section_flags): New function containing flag conversion
2875 code.
2876 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
2877 * elfxx-target.h (elf_backend_section_flags): Define.
2878 (elfNN_bed): Initialize elf_backend_section_flags field.
2879
36605136
AM
28802000-10-02 Alan Modra <alan@linuxcare.com.au>
2881
2882 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
2883 _bfd_elf32_gc_record_vtable. Correct a comment.
2884
4b6609a0
UC
28852000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
2886
2887 From Ralf Baechle <ralf@gnu.org>
2888
2889 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
2890 produces binaries with got[1] = 0x80000001 to differenciate them
2891 for the dynamic linker from the broken binaries produced by old
2892 versions.
36605136 2893
f572a39d
AM
28942000-09-30 Petr Sorfa <petrs@sco.com>
2895
2896 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
2897 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
2898 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
2899 * configure: Regenerate.
2900
4da81684
HPN
29012000-09-27 Hans-Peter Nilsson <hp@axis.com>
2902
2903 Define two bfd_targets for absence and presence of leading
2904 underscore on symbols. Make sure to only link same kind.
2905 * elf32-cris.c (cris_elf_object_p,
2906 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
2907 cris_elf_merge_private_bfd_data): New.
2908 (elf_backend_object_p, elf_backend_final_write_processing,
2909 bfd_elf32_bfd_print_private_bfd_data,
2910 bfd_elf32_bfd_merge_private_bfd_data): Define.
2911 <Target vector definition>: Include elf32-target.h twice with
2912 different macro settings:
2913 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
2914 bfd_elf32_us_cris_vec.
2915 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
2916 (elf_symbol_leading_char): First as 0, then '_'.
2917 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
2918 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
2919 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
2920 * configure: Regenerate.
2921 * targets.c: Declare bfd_elf32_us_cris_vec.
2922 * po/bfd.pot: Regenerate.
2923
9a5aca8c
AM
29242000-09-29 Momchil Velikov <velco@fadata.bg>
2925
2926 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
2927 R_ARM_THM_PC22 relocations.
2928
512a2384
AM
29292000-09-29 NIIBE Yutaka <gniibe@chroot.org>
2930
2931 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
2932
6c99a5c3
AM
29332000-09-29 Momchil Velikov <velco@fadata.bg>
2934
2935 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
2936 is has the SEC_HAS_CONTENTS flag set.
2937