Add missing prototypes. Fix formatting.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
... / ...
CommitLineData
12001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
2
3 * elf-bfd.h (struct elf_backend_data): Add new fields
4 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
5 (bfd_elf_sprintf_vma): Rename function prototype to
6 '_bfd_elf_sprintf_vma'.
7 (bfd_elf_fprintf_vma): Rename function prototype to
8 '_bfd_elf_fprintf_vma'.
9 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
10 directly, instead indirect via the elf_backend_data structure.
11 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
12 instead indirect via the elf_backend_data structure.
13 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
14 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
15 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
16 already defined.
17 (elf_backend_fprintf_vma): Initialise if not already defined.
18 (struct elf_backend_data): Initialise the
19 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
20
212001-08-10 Andreas Jaeger <aj@suse.de>
22
23 * elf64-sparc.c: Add missing prototypes.
24 * elf32-cris.c: Likewise.
25 * elf32-i370.c: Likewise.
26 * elf64-hppa.c: Likewise.
27 * elf64-s390.c: Likewise.
28
292001-08-10 Andreas Jaeger <aj@suse.de>
30
31 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
32 Add prototypes where needed.
33
342001-08-10 H.J. Lu <hjl@gnu.org>
35
36 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
37 (bfd_fprintf_vma): Likewise.
38
392001-08-10 H.J. Lu <hjl@gnu.org>
40
41 * bfd.c (bfd_sprintf_vma): Don't return void.
42 (bfd_fprintf_vma): Likewise.
43
442001-08-10 Andreas Jaeger <aj@suse.de>
45
46 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
47 to build warnings.
48 * configure: Regenerate.
49
502001-08-10 Alan Modra <amodra@bigpond.net.au>
51
52 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
53 warning if not BFD64. Add braces so emacs auto format works.
54 (bfd_elf_fprintf_vma): Likewise.
55
56 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
57 of _xcoff_swap_ld*.
58 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
59 param to agree with libxcoff.h.
60 (xcoff_swap_ldhdr_out): Likewise.
61 (xcoff_swap_ldsym_in): Likewise.
62 (xcoff_swap_ldsym_out): Likewise.
63 (xcoff_swap_ldrel_in): Likewise.
64 (xcoff_swap_ldrel_out): Likewise.
65 (xcoff_create_csect_from_smclas): Likewise.
66 * coff64-rs6000.c: Add missing prototypes.
67 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
68 with libxcoff.h.
69 (xcoff64_swap_ldhdr_out): Likewise.
70 (xcoff64_swap_ldsym_in): Likewise.
71 (xcoff64_swap_ldsym_out): Likewise.
72 (xcoff64_swap_ldrel_in): Likewise.
73 (xcoff64_swap_ldrel_out): Likewise.
74 (xcoff64_ppc_relocate_section): Make static.
75 (xcoff64_slurp_armap): Likewise.
76 (xcoff64_archive_p): Likewise.
77 (xcoff64_openr_next_archived_file): Likewise.
78 (xcoff64_sizeof_headers): Likewise.
79 (xcoff64_is_lineno_count_overflow): Likewise.
80 (xcoff64_is_reloc_count_overflow): Likewise.
81 (xcoff64_loader_symbol_offset): Likewise.
82 (xcoff64_loader_reloc_offset): Likewise.
83 * elf64-gen.c: Add missing prototypes.
84
852001-08-09 H.J. Lu <hjl@gnu.org>
86
87 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
88 (bfd_elf_fprintf_vma): Likewise.
89
902001-08-09 H.J. Lu <hjl@gnu.org>
91
92 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
93 to ...
94 * elf-bfd.h: Here.
95 * bfd-in2.h: Regenerated.
96
972001-08-09 H.J. Lu <hjl@gnu.org>
98
99 * bfd-in.h (bfd_sprintf_vma): New prototype.
100 (bfd_fprintf_vma): Likewise.
101 (bfd_elf_sprintf_vma): Likewise.
102 (bfd_elf_fprintf_vma): Likewise.
103 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
104 * bfd-in2.h: Regenerated.
105
106 * bfd.c (bfd_sprintf_vma): New. Defined.
107 (bfd_fprintf_vma): Likewise.
108
109 * elf.c (bfd_elf_sprintf_vma): New. Defined.
110 (bfd_elf_fprintf_vma): Likewise.
111
1122001-08-09 Alan Modra <amodra@bigpond.net.au>
113
114 * coff-rs6000.c: Add missing prototypes.
115 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
116 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
117 xcoff_loader_reloc_offset): Make static.
118 * dwarf1.c: Add missing prototypes.
119 * dwarf2.c: Add missing prototypes.
120 (struct abbrev_info): Move definition.
121 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
122 * elf.c: Add missing prototypes.
123 * elf32-gen.c: Likewise.
124 * elf32-i386.c: Likewise.
125 * elf32-ppc.c: Likewise.
126 (ppc_elf_sort_rela): Use PTR instead of "void *".
127 * elflink.h: Add missing prototypes. Formatting fixes.
128 * merge.c: Add missing prototypes.
129 (last4_eq): Use PTR instead of "void *".
130 (last_eq): Likewise.
131 * syms.c: Add missing prototypes.
132
1332001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
134
135 * bfd.c: Fix formatting.
136 * bfd-in2.h: Regenerate.
137
1382001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
139
140 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
141 true (this target uses REL relocations) and 'pcrel_offset' to
142 false (the PC is implied, not stored in the offset).
143
1442001-08-08 Alan Modra <amodra@bigpond.net.au>
145
146 1999-10-19 Linus Nordberg <linus@swox.se>
147 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
148 * elfxx-target.h (elf_backend_want_got_sym): Define.
149 (elfNN_bed): Add elf_backend_want_got_sym.
150 * elflink.c (_bfd_elf_create_got_section): Define
151 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
152
1532001-08-08 Alexandre Oliva <aoliva@redhat.com>
154
155 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
156 (find_rela_addend): New function.
157 (parse_comp_unit): Call it to find the abbrev offset addend.
158 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
159 members of dwarf2_debug as debugging information is read.
160
1612001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
162
163 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
164 targets as well as sh-pe.
165
1662001-08-03 Ben Harris <bjh21@netbsd.org>
167
168 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
169 reloc from start of section when computing value for R_ARM_REL32
170 reloc.
171
1722001-08-03 Alan Modra <amodra@bigpond.net.au>
173
174 From H.J. Lu <hjl@gnu.org>
175 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
176 keep relocs for undefined syms if there are no dynamic sections in
177 executable.
178 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
179
1802001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
181
182 * cofflink.c (coff_link_check_ar_symbols): also search for
183 __imp__symbol as well as _symbol.
184 * linker.c (_bfd_generic_link_add_archive_symbols): also
185 search for __imp__symbol as well as _symbol.
186
1872001-08-01 Adam Nemet <anemet@lnxw.com>
188
189 * elf.c (elf_sort_sections): Return zero only as the last step.
190
1912001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
192
193 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
194 ARM_COFF_BUGFIX.
195 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
196 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
197 ARM_COFF_BUGFIX.
198
1992001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
200
201 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
202 to match corresponding bfd_coff_backend data member.
203
2042001-07-24 Alan Modra <amodra@bigpond.net.au>
205
206 * Makefile.am: Update dependencies with "make dep-am".
207 * Makefile.in: Regenerate
208
2092001-07-15 H.J. Lu <hjl@gnu.org>
210
211 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
212 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
213 * Makefile.in: Regenerate.
214
2152001-07-11 H.J. Lu <hjl@gnu.org>
216
217 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
218 flags when creating the reloc section if the ALLOC flag in the
219 source section is set.
220
2212001-07-11 Steve Ellcey <sje@cup.hp.com>
222
223 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
224 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
225 * bfd-in2.h: Regenerate.
226 * libbfd.h: Regenerate.
227 * elfxx-ia64.c (ia64_howto_table): Define how to handle
228 new relocations.
229 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
230 (elfNN_ia64_check_relocs): Likewise.
231 (elfNN_ia64_install_value): Likewise.
232 (elfNN_ia64_relocate_section): Likewise.
233
2342001-07-11 Jakub Jelinek <jakub@redhat.com>
235
236 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
237 R_SPARC_UA64.
238 (elf32_sparc_check_relocs): Likewise.
239 Only create .rela section for alloced sections in shared libraries.
240 (elf32_sparc_relocate_section): Likewise.
241 Remove redundant check.
242 Optimize unaligned reloc usage.
243 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
244 check.
245
2462001-07-11 H.J. Lu <hjl@gnu.org>
247
248 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
249 ALLOC|LOAD flags as the source section for debugging sections
250 when creating the reloc section.
251
2522001-07-05 Jim Wilson <wilson@redhat.com>
253
254 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
255 the section of the bigger symbol.
256
257 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
258
2592001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
260
261 * peicode.h (coff_swap_scnhdr_in): For sections containing
262 uninitialised data, only set their size to s_paddr if this does
263 not reset their size to zero. MS's latest compilers will set
264 s_paddr to zero.
265
2662001-07-04 H.J. Lu <hjl@gnu.org>
267
268 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
269 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
270 bfd_mach_mips5000.
271
2722001-07-03 Mark Elbrecht <snowball3@softhome.net>
273
274 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
275
276 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
277 sections being discarded.
278
2792001-06-30 Alan Modra <amodra@bigpond.net.au>
280
281 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
282 instead of _bfd_elfcore_section_from_phdr.
283 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
284 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
285 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
286 (elfcore_grok_prstatus): Likewise.
287 (elfcore_grok_lwpstatus): Likewise.
288 (bfd_get_elf_phdr_upper_bound): Likewise.
289 (elfcore_make_note_pseudosection): Formatting.
290 (_bfd_elfcore_strndup): Formatting.
291 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
292 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
293
2942001-06-29 Daniel Jacobowitz <drow@mvista.com>
295
296 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
297 and _bfd_elfcore_strndup.
298 (struct elf_backend_data): Add elf_backend_grok_prstatus
299 and elf_backend_grok_psinfo.
300 * elf.c (_bfd_elfcore_make_pseudosection): New function.
301 (elfcore_grok_prstatus): Use it.
302 (elfcore_make_note_pseudosection): Likewise.
303 (elfcore_strndup): Rename to...
304 (_bfd_elfcore_strndup): Here, and make global.
305 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
306 (elfcore_grok_note): Call elf_backend_grok_prstatus
307 and elf_backend_grok_psinfo if available.
308 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
309 (_bfd_elf32_mips_grok_psinfo): New function.
310 (elf_backend_grok_prstatus): Define.
311 (elf_backend_grok_psinfo): Define.
312 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
313 (elf_backend_grok_psinfo): Likewise.
314 (elfNN_bed): Include elf_backend_grok_prstatus and
315 elf_backend_grok_psinfo.
316
3172001-06-29 H.J. Lu <hjl@gnu.org>
318
319 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
320 hplink->sgot is NULL before filling GOT. Check if hplink->splt
321 is NULL before filling PLT.
322
3232001-06-29 Alan Modra <amodra@bigpond.net.au>
324
325 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
326
3272001-06-27 Alan Modra <amodra@bigpond.net.au>
328
329 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
330 here..
331 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
332 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
333 after gc has run.
334
335 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
336 (IS_ABSOLUTE_RELOC): Define.
337 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
338 (hppa_link_hash_newfunc): Always init it.
339 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
340 create COPY relocs only when the reloc is in a read-only section.
341 Instead, allocate space for a dynamic reloc to reference the
342 library symbol directly. Keep track of space we allocate using
343 relocs_entries.
344 (hppa_discard_copies): Delete, and move code to..
345 (allocate_plt_and_got): ..here. Rename to
346 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
347 relocs for non-shared link.
348 (elf32_hppa_size_dynamic_sections): Update calls to above.
349 (elf32_hppa_relocate_section): Write out the dynamic relocs used
350 in lieu of COPY relocs.
351
352 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
353 here..
354 (elf_i386_adjust_dynamic_symbol): ..nor here..
355 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
356 after gc has run.
357 (elf_i386_size_dynamic_sections): Fix a comment.
358 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
359 involved in writing reloc out.
360
3612001-06-25 Alan Modra <amodra@bigpond.net.au>
362
363 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
364 Ensure syms are dynamic if we might be emitting a reloc.
365 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
366 for undefweak or undefined syms..
367 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
368
369 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
370 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
371 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
372 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
373
3742001-06-24 H.J. Lu <hjl@gnu.org>
375
376 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
377 strncasecmp/strcasecmp instead of strncmp/strcmp.
378
3792001-06-23 H.J. Lu <hjl@gnu.org>
380
381 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
382 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
383 in the regular object file and treat the weak definition as
384 the normal one.
385
3862001-06-23 Alan Modra <amodra@bigpond.net.au>
387
388 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
389 unresolved_reloc test to exclude cases where we use "relocation"
390 before setting it to point into the .got. Reinstate fudge for
391 unresolved relocs in debugging sections.
392
393 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
394 complicated tests for unresolvable relocs with a simple direct
395 scheme using "unresolved_reloc" var.
396
397 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
398 elf_i386_dyn_relocs. Update comment.
399 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
400 dyn_relocs.
401 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
402 others to aborts.
403 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
404 abort.
405 (elf_i386_size_dynamic_sections): Likewise.
406 (elf_i386_finish_dynamic_symbol): Likewise.
407 (elf_i386_finish_dynamic_sections): Likewise.
408 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
409 handling code.
410
411 Avoid creating COPY relocs if possible.
412 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
413 which .got created. Mark symbols used by R_386_32 and R_386_PC32
414 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
415 reloc is in a read-only section. Instead, allocate space for a
416 dynamic reloc to reference the library symbol directly. Keep
417 track of space we allocate using pcrel_relocs_copied.
418 (discard_copies): Delete, and move code to ..
419 (allocate_plt_and_got): ..here. Rename to
420 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
421 relocs for non-shared link.
422 (elf_i386_size_dynamic_sections): Update calls to above functions.
423 (elf_i386_relocate_section): Write out the dynamic relocs. Add
424 more ugly logic to avoid "unresolvable relocation" error. Use
425 htab shortcut in place of elf_hash_table macro.
426 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
427 not always be created now.
428
4292001-06-20 Bo Thorsen <bo@suse.co.uk>
430
431 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
432 shared libraries.
433
4342001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
435
436 * configure.host (mips64-*-linux): Reformat.
437
4382001-06-21 Alan Modra <amodra@bigpond.net.au>
439
440 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
441 allocate local .got space. Use shortcuts from hash table for .got
442 and .plt rather than comparing section names.
443 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
444 adjusting index into local_got_refcounts to document what we are
445 really doing.
446 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
447 Tidy .got and .plt error checking.
448
4492001-06-20 Catherine Moore <clm@redhat.com>
450
451 * elf-bfd.h (struct elf_backend_data):
452 elf_backend_emit_relocs: New field: Function for emitting
453 relocs.
454 elf_backend_count_relocs: New field: Function for determining
455 the number of relocs to be emitted.
456 * elfxx-target.h: Provide default (NULL) values for
457 elf_backend_emit_relocs and elf_backend_count_relocs.
458 * elflink.h (elf_link_size_reloc_section): Make the hash table
459 big enough to hold the relocs counted by either reloc_count or
460 o->reloc_count.
461 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
462 should be emitted, either because of a command line option
463 stored in the info structure or because the target provides a
464 special reloc emitting function.
465 If the target provides a reloc counting function use it,
466 unless performing a relocatable link or emitting all relocs.
467 Also set the SEC_RELOC flag on any output section which will
468 contain relocs.
469 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
470 should be emitted, either because of a command line option
471 stored in the info structure or because the target provides a
472 special reloc emitting function.
473 If the target provides a reloc emitting function, use it,
474 unless performing a relocatable link or emitting all relocs.
475
4762001-06-20 H.J. Lu <hjl@gnu.org>
477
478 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
479 allocate local .got space.
480
4812001-06-19 Andreas Jaeger <aj@suse.de>
482
483 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
484 dynamic symbols.
485
4862001-06-18 Hans-Peter Nilsson <hp@axis.com>
487
488 * elflink.h (struct elf_assign_sym_version_info): Remove member
489 export_dynamic. All users changed to use info member.
490 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
491 export_dynamic, instead use member in parameter info.
492 * bfd-in.h (bfd_elf32_size_dynamic_sections,
493 bfd_elf64_size_dynamic_sections): Update prototype.
494 * bfd-in2.h: Regenerate.
495
4962001-06-18 H.J. Lu <hjl@gnu.org>
497
498 * elflink.h (elf_info_failed): Add a new field, verdefs.
499 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
500 elf_export_symbol.
501 (elf_export_symbol): Check eif->verdefs to decide if a symbol
502 should be exported.
503
5042001-06-17 H.J. Lu <hjl@gnu.org>
505
506 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
507 readonly_reloc, to record if a relocation in the .rel.dyn
508 section is against a read-only section.
509 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
510 field to false.
511 (_bfd_mips_elf_check_relocs): Record if there is a relocation
512 in the .rel.dyn section against a read-only section by setting
513 DF_TEXTREL or readonly_reloc.
514 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
515 it is true.
516 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
517 there is a relocation in the .rel.dyn section against a
518 read-only section.
519 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
520 DF_TEXTREL is set.
521
5222001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
523
524 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
525 function. Move flagword result into parameter list. Remove
526 comment about setting bfd_error_handler to intercept failure
527 results.
528 * coffgen.c (make_a_section_from_file): Examine result of
529 calling bfd_coff_styp_to_sec_flags and pass a failure back to
530 caller.
531 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
532 function. Move flagword result into parameter list.
533 * libcoff.h: Regenerate.
534 * libecoff.h: Regenerate.
535
5362001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
537
538 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
539 section is going to follow it.
540
5412001-06-12 Catherine Moore <clm@redhat.com>
542
543 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
544 with the file_align entry from elf_backend_data.
545 (elf_gc_smash_unused_vtentry_relocs): Likewise.
546 (elf_gc_record_vtentry): Likewise.
547
5482001-06-10 Alan Modra <amodra@bigpond.net.au>
549
550 * elflink.h: Whitespace changes.
551 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
552 rather than "unsigned char".
553 (elf_link_output_relocs): Likewise.
554 (elf_link_input_bfd): Likewise.
555 (elf_reloc_link_order): LIkewise.
556 * elf.c: s/CONST/const/. Whitespace changes.
557 * elf32-mips.c: Formatting fix.
558
559 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
560 * Makefile.in: Regenerate.
561 * po/Make-in: Remove trailing tab.
562
5632001-06-09 Philip Blundell <philb@gnu.org>
564
565 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
566 change.
567 (elf32_arm_plt_entry): Likewise.
568
5692001-06-08 H.J. Lu <hjl@gnu.org>
570
571 * elf.c (swap_out_syms): Keep names for global section symbols.
572
5732001-06-07 H.J. Lu <hjl@gnu.org>
574
575 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
576 MIPS-based machines need it.
577
5782001-06-07 H.J. Lu <hjl@gnu.org>
579
580 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
581 for SGI only.
582
583 * config.bfd: Remove ecoff from Linux/mips.
584
5852001-06-07 Andreas Jaeger <aj@suse.de>
586
587 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
588 assertion.
589 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
590 alignment of 8 for .rela sections; handle further relocations.
591
5922001-06-06 Christian Groessler <cpg@aladdin.de>
593
594 * coff-z8k.c: Fix formatting.
595 Fix howtos: howto->size was always 1.
596
5972001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
598
599 * configure.host (mips64*-*-linux*): Define.
600
6012001-06-05 Alan Modra <amodra@bigpond.net.au>
602
603 * elf32-i386.c (elf_i386_discard_copies): Rename to
604 discard_copies, and use elf_link_hash_entry arg rather than
605 elf_i386_link_hash_entry.
606 (elf_i386_link_hash_traverse): Delete.
607 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
608 Tidy sizing of dynamic sections.
609 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
610 possible .plt entries.
611 (elf_i386_gc_sweep_hook): Likewise.
612 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
613 everything with plt.refcount <= 0.
614
615 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
616 .relgot space here.
617 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
618 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
619 .rel.plt here..
620 (allocate_plt_and_got): ..instead do it all here. New function.
621 (elf_i386_size_dynamic_sections): Allocate local .got space and
622 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
623 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
624 rather than gc variety).
625 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
626 (elf_i386_relocate_section): Use it here and correct handling of
627 R_386_GOT32. Provide section and offset for "unresolvable
628 relocation" error message.
629 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
630
631 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
632 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
633 (elf_i386_link_hash_table_create): Init them.
634 (create_got_section): New function.
635 (elf_i386_create_dynamic_sections): New function.
636 (elf_backend_create_dynamic_sections): Set to above.
637 (elf_i386_check_relocs): Use shortcuts from hash table rather than
638 calling bfd_get_section_by_name.
639 (elf_i386_gc_sweep_hook): Likewise.
640 (elf_i386_adjust_dynamic_symbol): Likewise.
641 (elf_i386_size_dynamic_sections): Likewise.
642 (elf_i386_relocate_section): Likewise.
643 (elf_i386_finish_dynamic_sections): Likewise.
644
645 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
646
6472001-06-02 H.J. Lu <hjl@gnu.org>
648
649 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
650 and ELFOSABI_HPUX.
651 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
652
6532001-06-02 H.J. Lu <hjl@gnu.org>
654
655 * aout-cris.c (MACHTYPE_OK): New. Defined.
656
6572001-06-02 Hans-Peter Nilsson <hp@axis.com>
658
659 * section.c (_bfd_strip_section_from_output): Handle NULL
660 output_section.
661
6622001-06-02 H.J. Lu <hjl@gnu.org>
663
664 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
665 rs6000coff64_vec only if BFD64 is defined.
666 (powerpc64-*-aix*): Enable only if BFD64 is defined.
667
6682001-06-02 H.J. Lu <hjl@gnu.org>
669
670 * coff-ia64.c (ia64coff_object_p): Rewrite with
671 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
672
6732001-06-01 Andreas Jaeger <aj@suse.de>
674
675 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
676 relocation, small reformatting.
677
6782001-05-29 Andreas Jaeger <aj@suse.de>
679
680 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
681 (elf64_x86_64_relocate_section): Likewise.
682
6832001-05-30 Alan Modra <amodra@one.net.au>
684
685 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
686 millicode. Don't allocate .got and .rela.got space here..
687 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
688 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
689 .rela.plt here..
690 (hppa_handle_PIC_calls): ..nor here..
691 (allocate_plt_and_got): ..instead do it all here. New function.
692 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
693 call allocate_plt_and_got. No need to zap .got if not dynamic.
694 (elf32_hppa_final_link): Call regular bfd_final_link instead of
695 gc_common_final_link.
696 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
697 (elf32_hppa_relocate_section): Use it here.
698 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
699 dynamic_sections_created.
700 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
701
7022001-05-28 Andreas Jaeger <aj@suse.de>
703
704 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
705 generic version since we want a hashsize of 4.
706 (elf_backend_size_info): Likewise.
707
7082001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
709
710 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
711 a zeroing loop.
712 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
713 (elf_link_input_bfd): Likewise.
714 (elf_reloc_link_order): Likewise.
715 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
716 relocations correctly.
717
7182001-05-28 Nicolas Pitre <nico@cam.org>
719
720 * elf32-arm.h: fix PLT generation for big endian ARM
721
7222001-05-28 Alan Modra <amodra@one.net.au>
723
724 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
725 for symbols forced local that need plabels.
726 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
727 .plt.rela for local syms if non-shared.
728 (hppa_build_one_stub): Mask lsb of plt.offset.
729 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
730 (clobber_millicode_symbols): Correct comment.
731 (elf32_hppa_relocate_section): Likewise.
732 (elf32_hppa_finish_dynamic_symbol): Likewise.
733
7342001-05-28 Jeff Sturm <jsturm@one-point.com>
735
736 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
737 * bfd-in2.h: Regenerate.
738 * libbfd.h: Regenerate.
739 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
740 and BFD_RELOC_SPARC_UA64 mapping
741 * elf64-sparc.c: Likewise.
742
7432001-05-25 H.J. Lu <hjl@gnu.org>
744
745 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
746 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
747 (coff-rs6000.lo): Remove the old dependency.
748 * Makefile.in: Rebuild.
749
750 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
751 coff-rs6000.lo.
752
7532001-05-25 H.J. Lu <hjl@gnu.org>
754
755 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
756 rs6000coff_core_file_matches_executable_p,
757 rs6000coff_core_file_failing_command and
758 rs6000coff_core_file_failing_signal only if AIX_CORE is
759 defined.
760 (pmac_xcoff_vec): Likewise.
761 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
762
7632001-05-25 Timothy Wall <twall@redhat.com>
764
765 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
766 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
767
7682001-05-25 H.J. Lu <hjl@gnu.org>
769
770 * bfd-in2.h: Regenerated.
771 * libcoff.h: Likewise.
772
7732001-05-25 Alan Modra <amodra@one.net.au>
774
775 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
776 undefined millicode syms in shared libs.
777 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
778 (elf32_hppa_check_relocs): Likewise.
779 (elf32_hppa_adjust_dynamic_symbol): Likewise.
780 (elf32_hppa_size_dynamic_sections): Likewise.
781 (elf32_hppa_relocate_section): Likewise.
782 (elf32_hppa_finish_dynamic_symbol): Likewise.
783 (elf32_hppa_finish_dynamic_sections): Likewise.
784
7852001-05-24 Tom Rix <trix@redhat.com>
786
787 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
788 xcoff-target.h not used to define rs6000 or ppc bfd.
789 * Makefile.in same
790
791 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
792 to 64 bit.
793
794 * coff-rs6000.c : Many changes for 64 bit support. Move common
795 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
796 and pmac_xcoff_vec
797
798 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
799 linker now supported. Explictly define the rs6000coff64_vec.
800
801 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
802 (coff_print_aux) same
803 (coff_write_object_contents) same
804 (coff_slurp_line_table) same
805
806 * coffgen.c : (coff_fix_symbol_name) formatting
807 (coff_mangle_symbols) xcoff 64 bit support
808 (coff_write_symbol) same
809 (coff_write_alien_symbol) same
810 (coff_write_native_symbol) same
811 (coff_write_symbols) same
812 (coff_get_symbol_info) same
813 (bfd_coff_get_syment) same
814 (coff_print_symbol) same
815
816 * config.bfd : add powerpc64-*-aix* target
817
818 * libcoff-in.h : formatting
819
820 * libcoff.h : move xcoff extern declarations to libxcoff.h
821
822 * libxcoff.h : New file
823
824 * xcofflink.c : Many changes for xcoff64 support. Move common
825 structures to include/coff/xcoff.h. Move specific structure to
826 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
827 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
828
829 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
830 aix4.2+ -binitfini.
831
832 (xcoff_build_ldsyms) : handle special __rtinit symbol.
833
8342001-05-23 Alexandre Oliva <aoliva@redhat.com>
835
836 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
837 s/ENTIRES/ENTRIES/.
838
8392001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
840
841 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
842 * libbfd.h: Regenerate.
843 * bfd-in2.h: Regenerate.
844
845 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
846 * archures.c (bfd_mach_mips12000): Define.
847 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
848 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
849 support.
850 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
851 * bfd-in2.h: Regenerate.
852 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
853
8542001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
855
856 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
857 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
858 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
859 that is used by GCC.
860
8612001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
862
863 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
864 of entries in a structured section.
865 * elf.c: Use new macro.
866 * elf32-i386.c: Use new macro.
867 * elf32-mips.c: Use new macro.
868 * elf64-alpha.c: Use new macro.
869 * elf64-sparc.c: Use new macro.
870 * elfcode.h: Use new macro.
871 * elflink.h: Use new macro.
872
8732001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
874
875 * bfdint.texi: Replace -oformat with --oformat.
876
8772001-05-21 Andreas Jaeger <aj@suse.de>
878
879 * dwarf2.c (decode_line_info): Fix error message.
880 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
881 adjust error message.
882
8832001-05-18 H.J. Lu <hjl@gnu.org>
884
885 * elflink.h (elf_link_add_object_symbols): Revert the last
886 change.
887
8882001-05-17 Alan Modra <amodra@one.net.au>
889
890 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
891 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
892 (hppa_build_one_stub): Add an assert to check plt.offset.
893
8942001-05-17 H.J. Lu <hjl@gnu.org>
895
896 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
897 version definition to basename of the output filename.
898
8992001-05-17 H.J. Lu <hjl@gnu.org>
900
901 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
902 basename of the bfd filename.
903
9042001-05-16 Alan Modra <amodra@one.net.au>
905
906 * section.c (asection): Add linker_has_input field.
907 (STD_SECTION): Adjust initialization to suit.
908 * ecoff.c (bfd_debug_section): Likewise.
909 * bfd-in2.h: Regenerate.
910
9112001-05-15 Alexandre Oliva <aoliva@redhat.com>
912
913 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
914 negative 32-bit operands to 16 operands when the operand is
915 going to be zero-extended by the modified opcode.
916
9172001-05-12 Peter Targett <peter.targett@arccores.com>
918
919 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
920 name for 'arc5' core versions.
921 (bfd_arc_arch): Make bfd_mach_arc_6 default.
922
923 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
924 architecture.
925 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
926
9272001-05-11 Jakub Jelinek <jakub@redhat.com>
928
929 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
930 sections as well.
931 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
932 to .gnu.linkonce.t.FOO text section.
933
9342001-05-11 Jakub Jelinek <jakub@redhat.com>
935
936 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
937 fields, change sec into secinfo.
938 (struct sec_merge_info): Add chain, remove last fields.
939 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
940 (sec_merge_hash_lookup): If lookup could not use a string only
941 because it has bad alignment, mark the old string for deletion.
942 (sec_merge_add): Add secinfo argument. Don't compute entry's
943 position, instead record the section.
944 (sec_merge_emit): Update for the sec into secinfo change in
945 struct sec_merge_hash_entry.
946 (_bfd_merge_section): Only record the section for merging, defer
947 putting strings into the hash table.
948 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
949 _bfd_merge_sections): New functions.
950 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
951 changes.
952 * libbfd-in.h (_bfd_merge_sections): Add prototype.
953 (_bfd_nolink_bfd_merge_sections): Define.
954 * libbfd.h: Likewise.
955 (bfd_generic_merge_sections): Add prototype.
956 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
957 (struct bfd_target): Likewise.
958 * bfd.c (bfd_merge_sections): Define.
959 * bfd-in2.h: Rebuilt.
960 * elf.c (_bfd_elf_merge_sections): New function.
961 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
962 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
963 * reloc.c (bfd_generic_merge_sections): New function.
964 * vms.c (vms_bfd_merge_sections): New function.
965 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
966 * aout-target.h (MY_bfd_merge_sections): Define.
967 * aout-tic30.c (MY_bfd_merge_sections): Define.
968 * binary.c (binary_bfd_merge_sections): Define.
969 * bout.c (b_out_bfd_merge_sections): Define.
970 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
971 * coffcode.c (coff_bfd_merge_sections): Define.
972 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
973 * i386msdos.c (msdos_bfd_merge_sections): Define.
974 * i386os9k.c (os9k_bfd_merge_sections): Define.
975 * ieee.c (ieee_bfd_merge_sections): Define.
976 * ihex.c (ihex_bfd_merge_sections): Define.
977 * nlm-target.h (nlm_bfd_merge_sections): Define.
978 * oasys.c (oasys_bfd_merge_sections): Define.
979 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
980 * som.c (som_bfd_merge_sections): Define.
981 * srec.c (srec_bfd_merge_sections): Define.
982 * tekhex.c (tekhex_bfd_merge_sections): Define.
983 * versados.c (versados_bfd_merge_sections): Define.
984 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
985
9862001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
987
988 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
989 to be unsigned long, in order to match its use.
990
9912001-05-10 H.J. Lu <hjl@gnu.org>
992
993 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
994 indirect symbols.
995
9962001-05-09 H.J. Lu <hjl@gnu.org>
997
998 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
999 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
1000 Remove the unused veriable `dynver'.
1001
10022001-05-08 Ian Lance Taylor <ian@zembu.com>
1003
1004 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
1005 NULL or is not COFF.
1006 (coff_i386_rtype_to_howto): Don't dump core if output section
1007 owner is not COFF.
1008
10092001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1010
1011 * ecoff.c (bfd_debug_section): Fix initialization.
1012 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
1013 is always a positive integer. Cast away sign mismatch.
1014 * elf32-mips.c: Fix misleading comment and typo.
1015 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
1016 correct data type.
1017 * elflink.c: Fix typo.
1018 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
1019 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
1020
10212001-05-04 Richard Henderson <rth@redhat.com>
1022
1023 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
1024
10252001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
1026
1027 * elf32-arm.h (elf32_arm_final_link_relocate): Set
1028 EF_ARM_HASENTRY if the start address is set.
1029
10302001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
1031
1032 * targets.c (_bfd_target_vector_entries): Compute value based on
1033 the size of the _bfd_target_vector and not bfd_target_vector.
1034
10352001-05-03 H.J. Lu <hjl@gnu.org>
1036
1037 * elfcode.h: Include "libiberty.h".
1038
1039 * elflink.h (elf_link_add_object_symbols): Set
1040 elf_dt_name (abfd) to basename of the bfd filename.
1041 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
1042 of the bfd filename.
1043
10442001-05-03 Andreas Jaeger <aj@suse.de>
1045
1046 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
1047 (elf_generic_info_to_howto_rel): Likewise.
1048 * coff-alpha.c (reloc_nil): Likewise.
1049 (alpha_ecoff_bad_format_hook): Likewise.
1050 (alpha_adjust_reloc_out): Likewise.
1051 (alpha_bfd_reloc_type_lookup): Likewise.
1052 (alpha_convert_external_reloc): Likewise.
1053 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
1054 (elf64_alpha_reloc_bad): Likewise.
1055 (elf64_alpha_reloc_gpdisp): Likewise.
1056 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
1057 (elf64_alpha_info_to_howto): Likewise.
1058 (elf64_alpha_add_symbol_hook): Likewise.
1059 (elf64_alpha_create_got_section): Likewise.
1060 (elf64_alpha_is_local_label_name): Likewise.
1061 (elf64_alpha_merge_ind_symbols): Likewise.
1062 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
1063 (mips_elf64_get_reloc_upper_bound): Likewise.
1064 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
1065 (nlm_alpha_get_public_offset): Likewise.
1066
10672001-05-02 Johan Rydberg <jrydberg@opencores.org>
1068
1069 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
1070 about overflow in R_OPENRISC_LO_16_IN_INSN and
1071 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
1072
10732001-04-30 H.J. Lu <hjl@gnu.org>
1074
1075 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
1076 only for ELF_LINK_FORCED_LOCAL.
1077 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1078 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
1079 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
1080
1081 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
1082 if the symbol has hidden or internal visibility.
1083
10842001-04-30 Alan Modra <amodra@one.net.au>
1085
1086 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
1087 calls to undefined weak symbols.
1088
10892001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
1090
1091 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
1092 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
1093
10942001-04-27 Andreas Jaeger <aj@suse.de>
1095
1096 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
1097 out handled entries.
1098 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
1099 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
1100 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
1101 GOT32.
1102
11032001-04-27 Sean McNeil <sean@mcneil.com>
1104
1105 * config.bfd: Add arm-vxworks target.
1106 * coff-arm (coff_arm_relocate_section): Add in symbol value to
1107 addend (fro VXworks targets).
1108
11092001-04-26 H.J. Lu <hjl@gnu.org>
1110
1111 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
1112 valid.
1113
11142001-04-25 Frank Ch. Eigler <fche@redhat.com>
1115
1116 * bfd-in.h (bfd_cache_close): Declare newly exported function.
1117 * bfd-in2.h: Regenerated.
1118
11192001-04-24 Jakub Jelinek <jakub@redhat.com>
1120
1121 * merge.c (struct sec_merge_hash_entry): Add alignment field.
1122 (struct sec_merge_hash): Remove alignment_power.
1123 (sec_merge_hash_newfunc): Clear alignment.
1124 (sec_merge_hash_lookup): Pass alignment as argument.
1125 Use hashp->root.next, not hashp->next to walk the hash chain.
1126 If a string already in the hashtable does not have required
1127 alignment, create a new hashtable entry.
1128 (sec_merge_init): Remove alignment_power argument.
1129 (sec_merge_add): Add alignment argument.
1130 (sec_merge_emit): Alignment is now a per-entity thing, not per
1131 section.
1132 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
1133 for proper alignment.
1134 Pass alignment information to sec_merge_add.
1135
11362001-04-24 Christian Groessler <cpg@aladdin.de>
1137
1138 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
1139 and R_REL16 reloc types; accept odd values for R_REL16 type
1140
11412001-04-24 Johan Rydberg <jrydberg@opencores.org>
1142
1143 * cpu-openrisc.c: New file.
1144 * elf32-openrisc.c: Likewise.
1145
1146 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
1147 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
1148 (BFD32_BACKENDS): Add elf32-openrisc.lo.
1149 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
1150 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
1151 * Makefile.in: Regenerated.
1152 * config.bfd: (openrisc-*-elf): New target.
1153 * configure.in (bfd_elf32_openrisc_vec): New vector.
1154 * configure: Regenerated.
1155 * libbfd.h: Regenerated.
1156 * bfd-in2.h: Regenerated.
1157 * reloc.c: Add OpenRISC relocations.
1158 * targets.c (bfd_elf32_openrisc_vec): Declare.
1159 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
1160 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
1161 (bfd_openrisc_arch): Declare.
1162 (bfd_archures_list): Add bfd_openrisc_arch.
1163 * elf.c (prep_headers): Add bfd_arch_openrisc.
1164
11652001-04-23 Bo Thorsen <bo@suse.de>
1166
1167 * elf64-x86-64.c: Add c++ vtable hack.
1168 Small whitespace and comment changes.
1169
11702001-04-19 Andreas Jaeger <aj@suse.de>
1171
1172 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
1173 (elf64_x86_64_plt_entry): Likewise.
1174 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
1175 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
1176
11772001-04-17 Hans-Peter Nilsson <hp@axis.com>
1178
1179 * elf32-cris.c: Tweak comments related to dynamic linking.
1180 (cris_elf_relocate_section): When not creating shared object, fill
1181 in the .got table for any symbol not in the dynamic symbol table.
1182 (elf_cris_finish_dynamic_symbol): When not creating shared object,
1183 only emit a .got.rela reloc if the symbol is in the dynamic symbol
1184 table.
1185 (cris_elf_check_relocs): Use variable r_type in all places rather
1186 than the original expression. Add default case in switch for
1187 reloc types.
1188 (elf_cris_size_dynamic_sections): Iterate over
1189 elf_cris_discard_excess_program_dynamics when not creating shared
1190 library.
1191 (elf_cris_discard_excess_dso_dynamics): Renamed from
1192 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
1193 (elf_cris_discard_excess_program_dynamics): New.
1194
11952001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
1196
1197 * coffcode.h (coff_write_object_contents): Use
1198 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
1199
12002001-04-14 H.J. Lu <hjl@gnu.org>
1201
1202 * bfd-in2.h: Regenerate.
1203
12042001-04-14 Jakub Jelinek <jakub@redhat.com>
1205
1206 * section.c (STD_SECTION): Add entsize.
1207
12082001-04-13 H.J. Lu <hjl@gnu.org>
1209
1210 * section.c (SEC_MERGE): Define new flag for merging.
1211 (SEC_STRINGS): Likewise.
1212 (entsize): New field.
1213
12142001-04-13 Roger Sayle <roger@metaphorics.com>
1215
1216 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
1217 flag on pe-i386 targets.
1218
12192001-04-13 Jakub Jelinek <jakub@redhat.com>
1220
1221 * libbfd-in.h (_bfd_merge_section): New.
1222 (_bfd_write_merged_section): New.
1223 (_bfd_merged_section_offset): New.
1224 * libbfd.h: Rebuilt.
1225 * linker.c (_bfd_generic_link_output_symbols): Handle
1226 discard_sec_merge.
1227 * aoutx.h (aout_link_write_symbols): Likewise.
1228 * pdp11.c (aout_link_write_symbols): Likewise.
1229 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
1230 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
1231 sections.
1232 (elf_link_sec_merge_syms): New.
1233 (elf_link_input_bfd): Call _bfd_merged_section_offset
1234 and _bfd_write_merged_section.
1235 Handle discard_sec_merge.
1236 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
1237 field.
1238 (struct bfd_elf_section_data): Likewise.
1239 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
1240 SEC_STRINGS section flags and entsize from their ELF counterparts.
1241 (_bfd_elf_link_hash_table_init): Initialize merge_info.
1242 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
1243 from their BFD counterparts.
1244 * merge.c: New file.
1245 * Makefile.am: Add strtab.lo.
1246 * Makefile.in: Rebuilt.
1247
12482001-04-09 Hans-Peter Nilsson <hp@axis.com>
1249
1250 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
1251 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
1252
12532001-04-05 Steven J. Hill <sjhill@cotw.com>
1254
1255 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
1256 endian MIPS ELF target.
1257 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
1258 MIPS ELF target.
1259
1260 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
1261 64bit big endian MIPS ELF target.
1262 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1263 endian MIPS ELF target.
1264 * configure: Regenerated.
1265
1266 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
1267 little endian targets.
1268 (mips_elf_sym_is_global): Handle traditional targets.
1269
1270 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
1271 64bit big endian MIPS ELF target.
1272 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1273 endian MIPS ELF target.
1274
1275 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
1276 and bfd_elf64_tradlittlemips_vec.
1277
12782001-04-05 David Mosberger <davidm@hpl.hp.com>
1279
1280 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
1281 ordinary "progbits" section.
1282
12832001-04-04 Alan Modra <alan@linuxcare.com.au>
1284
1285 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
1286 when -Bsymbolic causes a symbol to no longer need a .plt entry.
1287
12882001-04-03 David Mosberger <davidm@hpl.hp.com>
1289
1290 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
1291
12922001-03-30 H.J. Lu <hjl@gnu.org>
1293
1294 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
1295 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
1296
12972001-03-26 H.J. Lu <hjl@gnu.org>
1298
1299 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
1300 if there are any relocations for generic ELF.
1301 (bfd_elf32_bfd_link_add_symbols): Defined to
1302 elf32_generic_link_add_symbols.
1303 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
1304 if there are any relocations for generic ELF.
1305 (bfd_elf64_bfd_link_add_symbols): Defined to
1306 elf64_generic_link_add_symbols.
1307
13082001-03-23 Nick Clifton <nickc@redhat.com>
1309
1310 * Makefile.am (BUILD_CFILES): New variable: List of C source
1311 files created in build directory.
1312 (BUILD_HFILES): New variable: List of header files created in
1313 build directory.
1314 (POTFILES): Delete.
1315 (po/POTFILES.in): Replace rule with empty entry.
1316 (po/SRC-POTFILES.in): New rule: Create a list of source files
1317 in the source directory.
1318 (po/BLD-POTFILES.in): New rule: Create a list of source files
1319 in the build directory.
1320 (MOSTLYCLEAN): Do not delete source files created in build
1321 directory.
1322 * Makefile.in: Regenerate.
1323 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
1324 into po/Makefile.
1325 * configure: Regenerate.
1326
1327 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
1328 and BLD_POTFILES.
1329 Add .. to the search path when building bfd.pot.
1330 Delete POTFILES when performing distclean.
1331 Add comment describing why distclean is broken in maintainer mode.
1332 * po/POTFILES.in: Delete.
1333 * po/SRC-POTFILES.in: New file.
1334 * po/BLD-POTFILES.in: New file.
1335 * po/bfd.pot: Regenerate.
1336
13372001-03-22 Hans-Peter Nilsson <hp@axis.com>
1338
1339 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
1340 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
1341 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
1342 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
1343 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
1344 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
1345 functions.
1346 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
1347 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
1348 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
1349 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
1350 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
1351 New HOWTO members for new relocs.
1352 (cris_reloc_map): Map new relocs.
1353 (ELF_DYNAMIC_INTERPRETER): Define.
1354 (PLT_ENTRY_SIZE): Define.
1355 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
1356 elf_cris_pic_plt_entry): New, PLT templates.
1357 (struct elf_cris_pcrel_relocs_copied, struct
1358 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
1359 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
1360 (cris_final_link_relocate): Check that 16-bit GOT relocs have
1361 positive values. Adjust PCREL relocs to be relative to location
1362 after relocation.
1363 (cris_elf_relocate_section): Handle relocations to dynamic
1364 objects. Handle new relocations. Call error handler when seeing
1365 non-PIC relocation for read-only sections while generating shared
1366 object.
1367 (cris_elf_check_relocs): Set reference counts for GOT and PLT
1368 entries.
1369 (bfd_elf32_bfd_link_hash_table_create,
1370 elf_backend_adjust_dynamic_symbol,
1371 elf_backend_size_dynamic_sections,
1372 elf_backend_finish_dynamic_symbol,
1373 elf_backend_finish_dynamic_sections,
1374 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
1375 elf_backend_hide_symbol, elf_backend_want_got_plt,
1376 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1377 elf_backend_got_header_size, elf_backend_plt_header_size):
1378 Define.
1379
1380 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
1381 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
1382 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
1383 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
1384 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
1385 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
1386 * bfd-in2.h, libbfd.h: Regenerate.
1387
13882001-03-21 Diego Novillo <dnovillo@redhat.com>
1389
1390 (_bfd_mips_elf_relocate_section): Give a better error message when
1391 a relocation is not recognized.
1392
13932001-03-21 Alan Modra <alan@linuxcare.com.au>
1394
1395 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
1396 non-NULL before attempting to dereference.
1397
13982001-03-20 H.J. Lu <hjl@gnu.org>
1399
1400 * configure.in: Remove the redundent AC_ARG_PROGRAM.
1401 * configure: Rebuild.
1402
14032001-03-20 Andreas Schwab <schwab@suse.de>
1404
1405 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
1406 relocation value when resolving a reference from a debugging
1407 section.
1408
14092001-03-16 Scott Thomason <SThomaso@hii.com>
1410
1411 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
1412 (xcoff64_swap_sym_out): Fix syntax errors.
1413
14142001-03-16 Richard Sandiford <rsandifo@redhat.com>
1415
1416 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
1417
14182001-03-15 Alan Modra <alan@linuxcare.com.au>
1419
1420 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
1421 (hppa_link_hash_newfunc): Init it.
1422 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
1423 section appears to be non-PIC.
1424 (final_link_relocate): Likewise.
1425 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
1426 possible candidate function, and set pic_call for those that will
1427 only have a .plt entry for the PIC call stub.
1428 (hppa_handle_PIC_calls): Set maybe_pic_call.
1429
14302001-03-12 DJ Delorie <dj@redhat.com>
1431
1432 * elf32-sh.c (sh_elf_relocate_section): Only relocation
1433 R_SH_DIR8WP* relocs if they're against external symbols, else
1434 they're just for relaxing. Validate the reloc values.
1435
14362001-03-12 Stefan Geuken <mail@stefan-geuken.de>
1437
1438 * binary.c (bfd_external_binary_architecture): Declare.
1439 (binary_object_p): If bfd_external_binary_architecture is defined,
1440 set the architecture to this string.
1441
14422001-03-11 Philip Blundell <philb@gnu.org>
1443
1444 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
1445 entries that could serve as a definition for a weak symbol.
1446
14472001-03-08 Nick Clifton <nickc@redhat.com>
1448
1449 * Most files: Update copyright notices using Perl script created
1450 by Kevin Buettner <kevinb@redhat.com>.
1451
14522001-03-07 Nick Clifton <nickc@redhat.com>
1453
1454 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
1455 prior patch on ! defined OLD_ARM_ABI.
1456
14572001-03-07 Andreas Jaeger <aj@suse.de>
1458
1459 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
1460 some relocation values.
1461
14622001-03-06 Nick Clifton <nickc@redhat.com>
1463
1464 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
1465 of offset in BLX(1) instruction.
1466 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
1467 offset in BLX(1) instruction.
1468 Fix formatting.
1469
14702001-03-06 Nick Clifton <nickc@redhat.com>
1471
1472 * coff-arm.c (coff_arm_reloc_type_lookup): Add
1473 BFD_RELOC_THUMB_PCREL_BLX.
1474
14752001-03-06 Igor Shevlyakov <igor@windriver.com>
1476
1477 * archures.c (bfd_default_scan): Add Coldfire CPUs.
1478 * bfd-in2.h: Regenerate.
1479 * cpu-m68k.c: Add Coldfire CPUs for arch table.
1480 * ieee.c (ieee_write_processor): Set proper id for
1481 Coldfire CPUs.
1482
14832001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
1484
1485 * configure.in: Add s390 target.
1486 * configure: Regenerate.
1487
14882001-02-28 Andreas Jaeger <aj@suse.de>
1489
1490 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
1491 to addend.
1492
14932001-02-28 Philip Blundell <pb@futuretv.com>
1494
1495 * elf32-arm.h: Update mentions of renamed EF_xx constants.
1496 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
1497
14982001-02-27 H.J. Lu <hjl@gnu.org>
1499
1500 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
1501 abfd->tdata.aout_data == NULL.
1502
15032001-02-27 Alan Modra <alan@linuxcare.com.au>
1504
1505 * elf32-hppa.c: Correct field selector in stub comments.
1506 (clobber_millicode_symbols): Formatting fix.
1507
1508 * configure.in: Bump version to 2.11.90.
1509 * configure: Regenerate.
1510 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
1511 (CFILES): $SOURCE_CFILES + generated C files.
1512 (POTFILES): Include $HFILES not $SOURCE_HFILES.
1513 Run "make dep-am"
1514 * Makefile.in: Regenerate.
1515 * doc/Makefile.in: This too.
1516
15172001-02-26 Timothy Wall <twall@cygnus.com>
1518
1519 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
1520 comments.
1521
15222001-02-26 Nick Clifton <nickc@redhat.com>
1523
1524 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
1525 up, replacing multiple if statements with a switch.
1526 (handle_COMDAT): New function.
1527
15282001-02-26 H.J. Lu <hjl@gnu.org>
1529
1530 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
1531 a warning for section flags we do not handle instead of
1532 aborting.
1533
15342001-02-26 Andreas Jaeger <aj@suse.de>
1535
1536 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
1537
15382001-02-22 Timothy Wall <twall@cygnus.com>
1539
1540 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
1541 * configure.in: Add objects for elf64_ia64_aix vectors.
1542 * configure: Regenerated.
1543 * configure.host: Recognize ia64-*-aix*.
1544 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
1545 for AIX. AIX5 requires most relocations to be dynamic (*all*
1546 binaries are somewhat similar to shared libraries).
1547 * targets.c: Add elf64_ia64_aix vectors.
1548
15492001-02-21 David Mosberger <davidm@hpl.hp.com>
1550
1551 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
1552 C8 said "1" instead of "8". Clarify error string for IMM22:
1553 "signed integer" instead of just "integer".
1554
15552001-02-20 Andreas Jaeger <aj@suse.de>
1556
1557 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
1558 PLT entries that could serve as a definition for a weak symbol.
1559
15602001-02-19 Jakub Jelinek <jakub@redhat.com>
1561
1562 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
1563 entries that could serve as a definition for a weak symbol.
1564 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
1565
15662001-02-18 David O'Brien <obrien@FreeBSD>
1567
1568 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
1569 FreeBSD/i386-CURRENT differently until I can figure out the needed
1570 corefile changes.
1571 * configure: Regenerate.
1572 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
1573 FreeBSD/PowerPC, and FreeBSD/sparc64.
1574
15752001-02-18 lars brinkhoff <lars@nocrew.org>
1576
1577 * Makefile.am: Add PDP-11 a.out target.
1578 * config.bfd: Likewise.
1579 * configure.in: Likewise.
1580 * targets.c: Likewise.
1581 * archures.c: Likewise.
1582 * bfd-in2.h: Likewise. Add PDP-11 relocations.
1583 * libbfd.h: Add PDP-11 relocations.
1584 * reloc.c: Likewise.
1585 * cpu-pdp11.c: New file.
1586 * pdp11.c: New file.
1587
1588 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
1589 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1590 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1591 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
1592 (GET_MAGIC): New macro.
1593 (PUT_MAGIC): Likewise.
1594 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
1595
15962001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
1597
1598 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
1599 multiarch needs it).
1600
16012001-02-18 H.J. Lu <hjl@gnu.org>
1602
1603 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
1604 index.
1605
16062001-02-18 Kazu Hirata <kazu@hxi.com>
1607
1608 * vms-misc.c: Fix formatting.
1609
16102001-02-16 Kazu Hirata <kazu@hxi.com>
1611
1612 * vms.c: Fix formatting.
1613
16142001-02-14 H.J. Lu <hjl@gnu.org>
1615
1616 * elf.c (elf_find_function): New function.
1617 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
1618 the file name and function name.
1619
16202001-02-14 Nick Clifton <nickc@redhat.com>
1621
1622 * ecoff.c (bfd_debug_section): Update to initialise new fields in
1623 asection structure.
1624
1625 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
1626 (BFD64_BACKENDS): Add pepigen.c
1627 Add rules to create peigen.c and pepigen.c from peXXigen.c.
1628
1629 * Makefile.in: Regenerate.
1630 * configure: Regenerate.
1631 * po/POTFILES.in: Regenerate.
1632 * po/bfd.pot: Regenerate.
1633
16342001-02-14 H.J. Lu <hjl@gnu.org>
1635
1636 * libcoff-in.h (pe_tdata): Add members target_subsystem and
1637 force_minimum_alignment.
1638
16392001-02-14 Bo Thorsen <bo@suse.de>
1640
1641 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
1642 (elf64_86_64_size_info): Struct added to fix a problem
1643 with the hashtable string entries.
1644 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
1645 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
1646 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
1647 remove the FIXME for this.
1648 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
1649 section. Also removed the FIXME for it.
1650 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
1651 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
1652 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
1653
16542001-02-13 Richard Henderson <rth@redhat.com>
1655
1656 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
1657 and not user provided.
1658
16592001-02-13 Kazu Hirata <kazu@hxi.com>
1660
1661 * vms.c (vms_print_symbol): Remove unreachable code.
1662
1663 * rs6000-core.c: Fix formatting.
1664
16652001-02-13 David Mosberger <davidm@hpl.hp.com>
1666
1667 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
1668 as _bfd_XXi_only_swap_filehdr_out.
1669 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
1670 pe->force_minimum_alignment to TRUE.
1671 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
1672 PEI_TARGET_SUBSYSTEM.
1673 (pe_print_private_bfd_data): Call
1674 _bfd_XX_print_private_bfd_data_common() instead of
1675 _bfd_pe_print_private_bfd_data_common().
1676 (pe_bfd_copy_private_bfd_data): Call
1677 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
1678 _bfd_pe_bfd_copy_private_bfd_data_common().
1679 (coff_bfd_copy_private_section_data): Define as
1680 _bfd_XX_bfd_copy_private_section_data instead of
1681 _bfd_pe_bfd_copy_private_section_data.
1682 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
1683 of a _bfd_pe_get_symbol_info.
1684
1685 * peigen.c: Delete.
1686
1687 * peXXigen.c: Renamed from peigen.c.
1688 (COFF_WITH_XX): Define this macro (will get expanded into
1689 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
1690 compiled as peigen.c or pepigen.c.
1691 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
1692 define the canonical PEP structures and definitions.
1693 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
1694 effect, enforce minimum file and section alignments. If
1695 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
1696 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
1697 so, by default, this is a no-op).
1698
1699 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
1700 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
1701 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
1702 _bfd_pefoo if it's not defined. Use these macros to define
1703 coff swap macros.
1704
1705 * libcoff.h (pe_tdata): Add members target_subsystem and
1706 force_minimum_alignment.
1707
1708 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
1709 COFF_WITH_pep.
1710 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
1711
1712 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
1713 peigen.lo.
1714
1715 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
1716 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
1717 PEPAOUTHDR.
1718
1719 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
1720 (BFD64_BACKENDS_CFILES): Mention pepigen.c
1721 (peigen.c): Add rule to generate from peXXigen.c.
1722 (pepigen.c): Ditto.
1723 (pepigen.lo): List dependencies for pepigen.lo.
1724
17252001-02-13 Alan Modra <alan@linuxcare.com.au>
1726
1727 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
1728 $global$ referenced but not defined, set its value here.
1729
17302001-02-09 Bo Thorsen <bo@suse.de>
1731
1732 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
1733 alignment to 3.
1734 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
1735 and relocation.
1736 (elf64_x86_64_relocate_section): Fix formatting.
1737 (elf64_x86_64_relocate_section): Fix addend for relocation of
1738 R_X86_64_(8|16|32|PC8|PC16|PC32).
1739
17402001-02-12 Jan Hubicka <jh@suse.cz>
1741
1742 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
1743
17442001-02-11 H.J. Lu <hjl@gnu.org>
1745
1746 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
1747 alignment.
1748
17492001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1750
1751 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
1752 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
1753 relocations against dynsym symbols.
1754
1755 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
1756 the R_MIPS_26 relocation.
1757 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
1758 the R_MIPS_26 relocation.
1759 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
1760 relocation.
1761 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
1762 the R_MIPS_26 relocation.
1763 (mips_elf64_howto_table_rela): Likewise.
1764
1765 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
1766 member to mark symbols that have non-CALL relocations against
1767 them.
1768 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
1769 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
1770 R_MIPS_GOT16.
1771 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
1772 non-CALL relocation against it is encountered.
1773 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
1774 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
1775 no_fn_stub is not set.
1776
1777 * elf32-mips.c (mips_elf_output_extsym): Get the output section
1778 information from the real symbol for indirect ones.
1779 Check no_fn_stub to find out if a symbol has a function stub
1780 indeed.
1781
17822001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1783
1784 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
1785 * Makefile.in: Regenerate.
1786
17872001-02-09 David Mosberger <davidm@hpl.hp.com>
1788
1789 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
1790 true if section name is an unwind table section name.
1791 (elfNN_ia64_additional_program_headers): Count each unwind section
1792 separately.
1793 (elfNN_ia64_modify_segment_map): Install one unwind program header
1794 for each unwind separate section. Note: normally the linker
1795 script merges the unwind sections that go into a single segment,
1796 so this still generates at most one unwind program header per
1797 segment.
1798
1799 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
1800 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
1801 (elfNN_ia64_fake_sections): Mark sections with names that start
1802 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
1803 unwind section.
1804
1805 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
1806 Use it to make sh_info in unwind section point to the text section
1807 it applies to.
1808
18092001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1810
1811 * Makefile.am: Add linux target for S/390.
1812 * archures.c: Likewise.
1813 * bfd-in2.h: Likewise.
1814 * config.bfd: Likewise.
1815 * configure.in: Likewise.
1816 * elf.c: Likewise.
1817 * libbfd.h: Likewise.
1818 * targets.c: Likewise.
1819 * cpu-s390.c: New file.
1820 * elf32-s390.c: New file.
1821 * elf64-s390.c: New file.
1822
18232001-02-09 Nick Clifton <nickc@redhat.com>
1824
1825 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
1826 ImageBase. This has already been done by coff_swap_hdr_in.
1827
18282001-02-09 Jakub Jelinek <jakub@redhat.com>
1829
1830 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
1831
18322001-02-09 Jakub Jelinek <jakub@redhat.com>
1833
1834 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
1835 (sparc64_elf_relocate_section): Likewise.
1836
18372001-02-09 Mark Kettenis <kettenis@gnu.org>
1838
1839 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
1840 similar to R_SPARC_32.
1841 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
1842
18432001-02-08 H.J. Lu <hjl@gnu.org>
1844
1845 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
1846 relocation entries for weak definitions when building DSO with
1847 -Bsymbolic.
1848
18492001-02-08 Richard Henderson <rth@redhat.com>
1850
1851 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
1852 before visibility. Locally defined protected symbols are not
1853 dynamic.
1854
18552001-02-08 Geoffrey Keating <geoffk@redhat.com>
1856
1857 * config.bfd: Enable coff64 for rs6000-*. Patch from
1858 <hzoli@austin.ibm.com>.
1859
18602001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
1861
1862 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
1863 found, do not attempt to find dwarf2 info before returning.
1864
18652001-02-07 Jakub Jelinek <jakub@redhat.com>
1866
1867 * elflink.h (is_global_symbol_definition): Rename to
1868 is_global_data_symbol_definition and have it reject function
1869 symbols.
1870 (elf_link_is_defined_archive_symbol): Use renamed function.
1871
18722001-02-07 Todd Vierling <tv@wasabisystems.com>
1873
1874 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
1875 * libbfd.h (bfd_target_vector): Likewise.
1876 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
1877 make static; create pointer reference named bfd_target_vector.
1878 (_bfd_target_vector_entries): Calculate this based on the array
1879 typed _bfd_target_vector.
1880
18812001-02-06 H.J. Lu <hjl@gnu.org>
1882
1883 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
1884 internal symbols are not dynamic.
1885 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
1886
18872001-02-06 Nick Clifton <nickc@redhat.com>
1888
1889 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
1890 that it will not be pulled into the list of files that make up
1891 po/POTFILES.in.
1892 * Makefile.in: Regenerate.
1893 * po/bfd.pot: Regenerate.
1894
18952001-02-06 H.J. Lu <hjl@gnu.org>
1896
1897 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
1898 checking.
1899 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
1900 external_PEI_IMAGE_hdr.
1901
19022001-02-06 Kazu Hirata <kazu@hxi.com>
1903
1904 * elf-m10200.c: Fix formatting.
1905
19062001-02-04 Nick Clifton <nickc@redhat.com>
1907
1908 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
1909 rel, it will be handled later on.
1910
19112001-02-02 Fred Fish <fnf@ninemoons.com>
1912
1913 * Makefile.in: Fix typo.
1914
19152001-02-01 Kazu Hirata <kazu@hxi.com>
1916
1917 * elf-m10300.c: Fix formatting.
1918
19192001-01-30 Alan Modra <alan@linuxcare.com.au>
1920
1921 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
1922 (elf_backend_get_symbol_type): Define.
1923 (elf64_hppa_object_p): Set architecture and machine from elf
1924 header flags.
1925
19262001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
1927
1928 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
1929 before mdebug.
1930
19312001-01-26 Richard Henderson <rth@redhat.com>
1932
1933 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
1934 for non-default visibility.
1935 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
1936 delete ugly macro and replace with pretty function.
1937
19382001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
1939
1940 * coff-go32.c: Update copyright.
1941 * coff-stgo32.c: Likewise.
1942 * coff-go32.c (COFF_LONG_FILENAMES): Define.
1943 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
1944 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
1945 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
1946
19472001-01-25 Kazu Hirata <kazu@hxi.com>
1948
1949 * bfd-in2.h: Rebuild.
1950 * libbfd.h: Likewise.
1951
19522001-01-23 H.J. Lu <hjl@gnu.org>
1953
1954 * bfd-in2.h: Rebuild.
1955
19562001-01-23 H.J. Lu <hjl@gnu.org>
1957
1958 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
1959 is NULL or PRIV(vms_rec) is outside of the buffer.
1960
19612001-01-23 Kazu Hirata <kazu@hxi.com>
1962
1963 * coff64-rs6000.c: Fix formatting.
1964 * coff-arm.c: Likewise.
1965 * coffgen.c: Likewise.
1966 * cofflink.c: Likewise.
1967 * coff-mcore.c: Likewise.
1968 * coff-mips.c: Likewise.
1969 * coff-pmac.c: Likewise.
1970 * coff-ppc.c: Likewise.
1971 * coff-rs6000.c: Likewise.
1972 * elf32.c: Likewise.
1973 * elf32-fr30.c: Likewise.
1974 * elf32-i370.c: Likewise.
1975 * elf32-i860.c: Likewise.
1976 * elf32-m32r.c: Likewise.
1977 * elf32-m68k.c: Likewise.
1978 * elf32-mcore.c: Likewise.
1979 * elf32-ppc.c: Likewise.
1980 * elf32-sh.c: Likewise.
1981 * elf32-v850.c: Likewise.
1982 * elf64-alpha.c: Likewise.
1983 * elf64-sparc.c: Likewise.
1984 * elflink.c: Likewise.
1985 * elflink.h: Likewise.
1986 * elf-m10200.c: Likewise.
1987 * elf-m10300.c: Likewise.
1988 * elfxx-ia64.c: Likewise.
1989
1990 * aoutx.h: Fix formatting.
1991 * bfd.c: Likewise.
1992 * bfd-in2.h: Likewise.
1993 * bfd-in.h: Likewise.
1994 * cpu-i386.c: Likewise.
1995 * cpu-m68hc11.c: Likewise.
1996 * dwarf2.c: Likewise.
1997 * elf64-x86-64.c: Likewise.
1998 * format.c: Likewise.
1999 * freebsd.h: Likewise.
2000 * hash.c: Likewise.
2001 * hp300hpux.c: Likewise.
2002 * hppabsd-core.c: Likewise.
2003 * hpux-core.c: Likewise.
2004
20052001-01-22 Bo Thorsen <bo@suse.de>
2006
2007 * elf64-x86-64.c: Added PIC support for X86-64.
2008 (elf64_x86_64_link_hash_newfunc): Function added.
2009 (elf64_x86_64_link_hash_table_create): Likewise.
2010 (elf64_x86_64_check_relocs): Likewise.
2011 (elf64_x86_64_gc_mark_hook): Likewise.
2012 (elf64_x86_64_gc_sweep_hook): Likewise.
2013 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
2014 (elf64_x86_64_size_dynamic_sections): Likewise.
2015 (elf64_x86_64_discard_copies): Likewise.
2016 (elf64_x86_64_finish_dynamic_symbol): Likewise.
2017 (elf64_x86_64_finish_dynamic_sections): Likewise.
2018 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
2019
20202001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2021
2022 * Makefile.am (install-data-local): Make use of $(DESTDIR).
2023 * Makefile.in: Regenerate.
2024
20252001-01-21 Kazu Hirata <kazu@hxi.com>
2026
2027 * coff-a29k.c: Fix formatting.
2028
20292001-01-19 H.J. Lu <hjl@gnu.org>
2030
2031 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
2032 relocation section names.
2033 (elf_i386_relocate_section): Report files with bad relocation
2034 section names and return false.
2035
20362001-01-17 Bo Thorsen <bo@suse.de>
2037
2038 * targets.c: Alphabetize list of xvecs.
2039
20402001-01-14 Alan Modra <alan@linuxcare.com.au>
2041
2042 * config.bfd: Add linux target variant for elfxx-hppa.
2043 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
2044 bfd_elf64_hppa_linux_vec.
2045 * configure: Regenerate.
2046 * elf64-hppa.c: Include elf64-target.h again to support linux
2047 target variant.
2048 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
2049 * elf32-hppa.c: Include elf32-target.h again to support linux
2050 target variant.
2051 (elf32_hppa_post_process_headers): New function.
2052 (elf_backend_post_process_headers): Define.
2053 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
2054 bfd_elf32_hppa_linux_vec.
2055
2056 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
2057 and data_segment_base fields.
2058 (elf32_hppa_link_hash_table_create ): Init them.
2059 (elf32_hppa_check_relocs): Update comments.
2060 (hppa_record_segment_addr): New function.
2061 (elf32_hppa_relocate_section): Call it.
2062 (final_link_relocate): Handle R_PARISC_SEGREL32.
2063 (elf32_hppa_final_link): New function.
2064 (bfd_elf32_bfd_final_link): Define to call it.
2065 (hppa_unwind_entry_compare): New function.
2066 * cache.c (bfd_open_file): Create files in write+read mode.
2067
2068 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
2069 SEGREL32 and numerous other relocs. Change duplicate
2070 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
2071
2072 * opncls.c (bfd_fdopenr): Add parens like the comment says around
2073 O_ACCMODE.
2074
2075 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
2076 .plt entries for DT_INIT and DT_FINI.
2077 (elf32_hppa_finish_dynamic_sections): Remove special handling of
2078 DT_INIT and DT_FINI.
2079
2080 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
2081 offsets for stub .plt access if wide mode. Check offset in range.
2082
20832001-01-13 Nick Clifton <nickc@redhat.com>
2084
2085 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
2086 line.
2087
2088 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
2089 line.
2090
20912001-01-12 Alan Modra <alan@linuxcare.com.au>
2092
2093 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
2094 * configure: Regenerate.
2095
20962001-01-11 Peter Targett <peter.targett@arccores.com>
2097
2098 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
2099 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
2100 * cpu-arc.c (arch_info_struct): Add entries for variants.
2101 (bfd_arc_arch) Set default to bfd_mach_arc_5.
2102 (arc_get_mach) Don't assume machine names prefixed arc- before
2103 testing.
2104 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
2105 selections.
2106 (arc_elf_final_write_processing) Likewise.
2107 (ELF_MACHINE_CODE) Use EM_ARC.
2108
21092001-01-10 Nick Clifton <nickc@redhat.com>
2110
2111 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
2112
21132001-01-07 Philip Blundell <philb@gnu.org>
2114
2115 * README: Replace `bug-gnu-utils@gnu.org' with
2116 `bug-binutils@gnu.org'.
2117
21182001-01-04 Kazu Hirata <kazu@hxi.com>
2119
2120 * som.c: Fix formatting.
2121
21222001-01-03 Kazu Hirata <kazu@hxi.com>
2123
2124 * ecoffswap.h: Fix formatting.
2125 * elf-bfd.h: Likewise.
2126 * elfarm-nabi.c: Likewise.
2127 * elfarm-oabi.c: Likewise.
2128 * elfcode.h: Likewise.
2129 * elfcore.h: Likewise.
2130 * elflink.c: Likewise.
2131 * elflink.h: Likewise.
2132 * elfxx-ia64.c: Likewise.
2133 * elfxx-target.h: Likewise.
2134 * libbfd.c: Likewise
2135 * linker.c: Likewise.
2136 * lynx-core.c: Likewise.
2137
21382001-01-02 Kazu Hirata <kazu@hxi.com>
2139
2140 * pc532-mach.c: Fix formatting.
2141 * pe-arm.c: Likewise.
2142 * pe-i386.c: Likewise.
2143 * pe-mips.c: Likewise.
2144 * pe-ppc.c: Likewise.
2145 * pe-sh.c: Likewise.
2146 * pei-mips.c: Likewise.
2147 * pei-sh.c: Likewise.
2148 * peicode.h: Likewise.
2149 * ppcboot.c: Likewise.
2150 * ptrace-core.c: Likewise.
2151
21522001-01-01 Kazu Hirata <kazu@hxi.com>
2153
2154 * reloc.c: Fix formatting.
2155 * riscix.c: Likewise.
2156 * rs6000-core.c: Likewise.
2157 * xcoff-target.h: Likewise.
2158
21592000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
2160
2161 * elfcode.h (elf_object_p): Also restore the bfd mach field on
2162 error, by calling bfd_default_set_arch_mach with incoming
2163 values.
2164
21652000-12-26 Kazu Hirata <kazu@hxi.com>
2166
2167 * vaxnetbsd.c: Fix formatting.
2168 * versados.c: Likewise.
2169 * vms-gsd.c: Likewise.
2170 * vms-hdr.c: Likewise.
2171 * vms-misc.c: Likewise.
2172
21732000-12-25 Alexandre Oliva <aoliva@redhat.com>
2174
2175 * archive.c (coff_write_armap): Don't write more than symbol_count
2176 `archive_member_file_ptr's.
2177
21782000-12-25 Kazu Hirata <kazu@hxi.com>
2179
2180 * vms-tir.c: Fix formatting.
2181
21822000-12-23 Kazu Hirata <kazu@hxi.com>
2183
2184 * vms.c: Fix formatting.
2185 * vms.h: Likewise.
2186
21872000-12-21 Santeri Paavolainen <santtu@ssh.com>
2188
2189 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
2190
2191 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
2192
2193 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
2194 arithmetic.
2195
2196 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
2197
2198 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
2199
22002000-12-21 Richard Sandiford <rsandifo@redhat.com>
2201
2202 * libbfd.c (bfd_get_bits): Added
2203 (bfd_put_bits): Likewise
2204 * bfd-in.h: Declared the above.
2205 * bfd-in2.h: Regenerated.
2206
22072000-12-20 Kazu Hirata <kazu@hxi.com>
2208
2209 * targets.c: Fix formatting.
2210 * tekhex.c: Likewise.
2211 * trad-core.c: Likewise.
2212
22132000-12-19 Kazu Hirata <kazu@hxi.com>
2214
2215 * sco5-core.c: Fix formatting.
2216 * section.c: Likewise.
2217 * sparclinux.c: Likewise.
2218 * sparclynx.c: Likewise.
2219 * sparcnetbsd.c: Likewise.
2220 * srec.c: Likewise.
2221 * stabs.c: Likewise.
2222 * stab-syms.c: Likewise.
2223 * sunos.c: Likewise.
2224 * syms.c: Likewise.
2225 * sysdep.h: Likewise.
2226
22272000-12-18 Nick Clifton <nickc@redhat.com>
2228
2229 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
2230 defined.
2231 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
2232 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
2233
22342000-12-18 Nick Clifton <nickc@redhat.com>
2235
2236 * vms-misc.c (_bfd_vms_get_record): Add default case to
2237 file_format switch.
2238
22392000-12-15 Miloslav Trmac <mitr@volny.cz>
2240
2241 * elfcore.h (elf_core_file_p): Move to the start of the program
2242 headers before attempting to read them.
2243
22442000-12-14 Kazu Hirata <kazu@hxi.com>
2245
2246 * peigen.c: Fix formatting.
2247 * som.c: Likewise.
2248 * som.h: Likewise.
2249
22502000-12-13 Kazu Hirata <kazu@hxi.com>
2251
2252 * peigen.c: Fix formatting.
2253
22542000-12-12 Jim Wilson <wilson@redhat.com>
2255
2256 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
2257
22582000-12-08 Mark Salter <msalter@redhat.com>
2259
2260 * binary.c (binary_set_section_contents): Ignore sections
2261 with zero size.
2262
22632000-12-12 Kazu Hirata <kazu@hxi.com>
2264
2265 * m68klinux.c: Fix formatting.
2266 * m68knetbsd.c: Likewise.
2267 * mipsbsd.c: Likewise.
2268 * netbsd-core.c: Likewise.
2269 * netbsd.h: Likewise.
2270 * newsos3.c: Likewise.
2271 * nlm32-alpha.c: Likewise.
2272 * nlm32-i386.c: Likewise.
2273 * nlm32-ppc.c: Likewise.
2274 * nlm32-sparc.c: Likewise.
2275 * nlmcode.h: Likewise.
2276 * nlmswap.h: Likewise.
2277 * nlm-target.h: Likewise.
2278 * ns32knetbsd.c: Likewise.
2279
22802000-12-10 Fred Fish <fnf@be.com>
2281
2282 * elflink.h (elf_link_output_extsym): Don't complain about undefined
2283 symbols in shared objects if allow_shlib_undefined is true.
2284
22852000-12-12 Nick Clifton <nickc@redhat.com>
2286
2287 * cpu-sh.c: Fix formattng.
2288 * elf.c: Fix formattng.
2289 * elf32-mips.c: Fix formattng.
2290 * elf32-sh.c: Fix formattng.
2291 * elf64-alpha.c: Fix formattng.
2292
22932000-12-09 Nick Clifton <nickc@redhat.com>
2294
2295 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
2296 dwarf2_find_line_info as last parameter to invocation of
2297 _bfd_dwarf2_find_nearest_line.
2298 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
2299 dwarf2_find_line_info as last parameter to invocation of
2300 _bfd_dwarf2_find_nearest_line.
2301
23022000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
2303
2304 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
2305 (BFD_LIBS): ...to here.
2306 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
2307 (BFD_LIBS_CFILES): ...to here.
2308 * Makefile.in: Regenerate.
2309 * configure.in: Remove dwarf.lo from the elf shell variable.
2310 * configure: Regenerate.
2311 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
2312 * libcoff.h: Regenerate.
2313 * coffgen.c (coff_find_nearest_line): Call
2314 _bfd_dwarf2_find_nearest_line.
2315 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
2316 accordingly.
2317 (read_abbrevs): Likewise
2318 (decode_line_info): Likewise.
2319 (parse_comp_unit): Likewise.
2320 (comp_unit_find_nearest_line): Likewise.
2321 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
2322 * libbfd.h: Regenerate.
2323 * elf.c (_bfd_elf_find_nearest_line): Update call.
2324 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
2325 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
2326 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
2327 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
2328 (styp_to_sec_flags): Handle DWARF2 sections.
2329 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
2330 to _bfd_find_nearest_line.
2331 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
2332 call to _bfd_find_nearest_line.
2333
23342000-12-08 Kazu Hirata <kazu@hxi.com>
2335
2336 * coffgen.c: Fix formatting.
2337 * elf-m10300.c: Likewise.
2338 * elf32-i386.c: Likewise.
2339 * elf32-i960.c: Likewise.
2340 * elf32-m68k.c: Likewise.
2341 * elf32-mcore.c: Likewise.
2342 * elf32-ppc.c: Likewise.
2343 * elf32-sh.c: Likewise.
2344 * elf32-sparc.c: Likewise.
2345 * elf32-v850.c: Likewise.
2346 * elf64-alpha.c: Likewise.
2347 * elf64-hppa.c: Likewise.
2348 * elf64-mips.c: Likewise.
2349 * elf64-sparc.c: Likewise.
2350
23512000-12-07 Kazu Hirata <kazu@hxi.com>
2352
2353 * elf32-ppc.c: Fix formatting.
2354 * elf64-x86-64.c: Likewise.
2355
23562000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
2357
2358 From Ralf Baechle <ralf@gnu.org>
2359
2360 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
2361 BFDs containing no sections or empty .text, .data or .bss sections
2362 to be merged, regardless of their flags.
2363
23642000-12-06 Kazu Hirata <kazu@hxi.com>
2365
2366 * elf32-m32r.c: Fix formatting.
2367 * elf32-m68hc11.c: Likewise.
2368 * elf32-m68hc12.c: Likewise.
2369 * elf32-m68k.c: Likewise.
2370 * elf32-mcore.c: Likewise.
2371 * elf32-pj.c: Likewise.
2372 * elf32-ppc.c: Likewise.
2373
23742000-12-05 Kazu Hirata <kazu@hxi.com>
2375
2376 * elf32-fr30.c: Fix formatting.
2377 * elf32-hppa.c: Likewise.
2378 * elf32-i370.c: Likewise.
2379 * elf32-i386.c: Likewise.
2380 * elf32-i860.c: Likewise.
2381 * elf32-i960.c: Likewise.
2382
23832000-12-03 Kazu Hirata <kazu@hxi.com>
2384
2385 * elf32-arm.h: Fix formatting.
2386 * elf32-avr.c: Likewise.
2387 * elf32-cris.c: Likewise.
2388 * elf32-d10v.c: Likewise.
2389 * elf32-d30v.c: Likewise.
2390 * elf-hppa.h: Likewise.
2391 * elf-m10200.c: Likewise.
2392 * elf-m10300.c: Likewise.
2393
23942000-12-01 Chris Demetriou <cgd@sibyte.com>
2395
2396 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
2397 bfd_mach_mips32_4k. Update FIXME comment.
2398 * archures.c (bfd_mach_mips32): New constant.
2399 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2400 the latter, renumber it.
2401 * bfd-in2.h (bfd_mach_mips32): New constant.
2402 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2403 the latter, renumber it.
2404 * cpu-mips.c (I_mips32): New constant.
2405 (I_mips4K, I_mips32_4k): Rename the former to the latter.
2406 (arch_info_struct): Add bfd_mach_mips32 entry, replace
2407 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
2408 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
2409 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
2410 with E_MIPS_MACH_MIPS32_4K.
2411 (_bfd_mips_elf_final_write_processing): Replace
2412 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
2413 bfd_mach_mips32 case.
2414 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
2415 comparison with support for MIPS32.
2416 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
2417 MIPS32.
2418
2419 * aoutx.h (NAME(aout,machine_type)): Add cases for
2420 bfd_mach_mips5 and bfd_mach_mips64.
2421 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
2422 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
2423 * cpu_mips.c (I_mips5, I_mips64): New definitions.
2424 (arch_info_struct): Add entries for bfd_mach_mips5 and
2425 bfd_mach_mips64.
2426 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
2427 _bfd_mips_elf_print_private_bfd_data): Add cases for
2428 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
2429 (_bfd_mips_elf_final_write_processing): Add cases for
2430 bfd_mach_mips5 and bfd_mach_mips64.
2431
2432 * aoutx.h (NAME(aout,machine_type)): Add a
2433 bfd_mach_mips_sb1 case.
2434 * archures.c (bfd_mach_mips_sb1): New constant.
2435 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
2436 * cpu-mips.c (I_sb1): New constant.
2437 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
2438 * elf32-mips.c (elf_mips_mach): Add case for
2439 E_MIPS_MACH_SB1.
2440 (_bfd_mips_elf_final_write_processing): Add case for
2441 bfd_mach_mips_sb1.
2442
24432000-12-01 Joel Sherrill <joel@OARcorp.com>
2444
2445 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
2446 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2447 (sparc*-*-rtems*): Switched from a.out to ELF.
2448
24492000-11-30 Jan Hubicka <jh@suse.cz>
2450
2451 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
2452 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
2453 (elf64-x86-64.lo): Add dependencies.
2454 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
2455 bfd_mach_x86_64_intel_syntax.
2456 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
2457 * config.bfd (x86_64): Add.
2458 * configure.in: Add support for bfd_elf64_x86_64_vec.
2459 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
2460 (bfd_i386_arch, i8086_ar): Link in.
2461 * elf64-x86-64.c: New file.
2462 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
2463 * targets.c (bfd_elf64_x86_64_vec): Add.
2464 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
2465
24662000-11-30 Kazu Hirata <kazu@hxi.com>
2467
2468 * xcofflink.c: Fix formatting.
2469
24702000-11-28 Kazu Hirata <kazu@hxi.com>
2471
2472 * aoutx.h: Fix formatting.
2473 * bfd-in.h: Likewise.
2474 * bfd-in2.h: Likewise.
2475 * cache.c: Likewise.
2476 * cisco-core.c: Likewise.
2477 * coff64-rs6000.c: Likewise.
2478 * coffcode.h: Likewise.
2479 * coffswap.h: Likewise.
2480 * corefile.c: Likewise.
2481 * elf32-mips.c: Likewise.
2482
24832000-11-27 Kazu Hirata <kazu@hxi.com>
2484
2485 * aout-adobe.c: Fix formatting.
2486 * coff64-rs6000.c: Likewise.
2487 * coffgen.c: Likewise.
2488 * cofflink.c: Likewise.
2489
24902000-11-27 Philip Blundell <pb@futuretv.com>
2491
2492 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
2493 (obj_coff_strings_written): New accessor macro for above.
2494 * libcoff.h: Regenerate.
2495 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
2496 strings.
2497 * coffcode.h (coff_write_object_contents): No need to write out
2498 the string table if it's already been done.
2499
25002000-11-22 Philip Blundell <pb@futuretv.com>
2501
2502 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
2503 weak undefined symbols.
2504
25052000-11-24 Nick Clifton <nickc@redhat.com>
2506
2507 * archures.c (bfd_mach_arm_5TE): Define.
2508 (bfd_mach_arm+XScale): Define.
2509 * bfd-in2.h: Regenerate.
2510
2511 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
2512 BFD_RELOC_ARM_PCREL_BLX.
2513
2514 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
2515 XScale machine numbers.
2516
2517 * config.bfd (xscale-elf): Add target.
2518 (xscale-coff): Add target.
2519
2520 * cpu-arm.c: Add xscale machine name.
2521 Add v5t, v5te and XScale machine numbers.
2522
25232000-11-23 Kazu Hirata <kazu@hxi.com>
2524
2525 * aix386-core.c: Fix formatting.
2526
25272000-11-22 Jim Wilson <wilson@redhat.com>
2528
2529 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
2530 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
2531 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
2532 (ins_imms_scaled): Initialize sign_bit at function entry.
2533 (elf64_ia64_operands): Add missing initializers.
2534 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
2535 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
2536 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
2537 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
2538 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
2539 parameters.
2540 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
2541 and free_extsyms at function entry.
2542 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
2543 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
2544 (get_got): Delete unused local srel.
2545 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
2546 (elfNN_ia64_relocate_section): Delete unused local dynindx.
2547
25482000-11-21 Kazu Hirata <kazu@hxi.com>
2549
2550 * coff-a29k.c: Fix formatting.
2551 * coff-h8500.c: Likewise.
2552 * coff-i960.c: Likewise.
2553 * coff-ppc.c: Likewise.
2554 * coff-rs6000.c: Likewise.
2555 * coff-stgo32.c: Likewise.
2556 * coff-tic54x.c: Likewise.
2557 * coff-w65.c: Likewise.
2558 * cpu-h8500.c: Likewise.
2559 * cpu-hppa.c: Likewise.
2560 * cpu-ns32k.c: Likewise.
2561 * ecoff.c: Likewise.
2562 * ecofflink.c: Likewise.
2563
25642000-11-21 Nick Clifton <nickc@redhat.com>
2565
2566 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
2567 remove possibility of infinite loop.
2568
25692000-11-20 Kazu Hirata <kazu@hxi.com>
2570
2571 * aix386-core.c: Fix formatting.
2572 * aout-adobe.c: Likewise.
2573 * aout-arm.c: Likewise.
2574 * aout-encap.c: Likewise.
2575 * aout-ns32k.c: Likewise.
2576 * aout-target.h: Likewise.
2577 * aout-tic30.c: Likewise.
2578 * aoutf1.h: Likewise.
2579 * aoutx.h: Likewise.
2580 * archive.c: Likewise.
2581 * bfd-in.h: Likewise.
2582 * bfd-in2.h: Likewise.
2583 * bfd.c: Likewise.
2584 * bout.c: Likewise.
2585
25862000-11-17 H.J. Lu <hjl@gnu.org>
2587
2588 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
2589 pltoff entries for DT_INIT and DT_FINI.
2590 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
2591 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
2592 entries.
2593
25942000-11-16 Richard Henderson <rth@redhat.com>
2595
2596 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
2597 (allocate_dynrel_entries): Likewise.
2598 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
2599 (set_pltoff_entry): Likewise.
2600 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
2601 (elfNN_ia64_reloc_type_lookup): Likewise.
2602 (elfNN_ia64_install_value): Likewise.
2603 (elfNN_ia64_relocate_section): Likewise.
2604 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
2605 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
2606
26072000-11-16 Kazu Hirata <kazu@hxi.com>
2608
2609 * cpu-a29k.c: Fix formatting.
2610 * cpu-alpha.c: Likewise.
2611 * cpu-arm.c: Likewise.
2612 * cpu-avr.c: Likewise.
2613 * cpu-d10v.c: Likewise.
2614 * cpu-h8500.c: Likewise.
2615 * cpu-hppa.c: Likewise.
2616 * cpu-i370.c: Likewise.
2617 * cpu-i386.c: Likewise.
2618 * cpu-i960.c: Likewise.
2619 * cpu-ia64-opc.c: Likewise.
2620 * cpu-ia64.c: Likewise.
2621 * cpu-m32r.c: Likewise.
2622 * cpu-m68hc11.c: Likewise.
2623 * cpu-m68hc12.c: Likewise.
2624 * cpu-m68k.c: Likewise.
2625 * cpu-m88k.c: Likewise.
2626 * cpu-mips.c: Likewise.
2627 * cpu-ns32k.c: Likewise.
2628 * cpu-pj.c: Likewise.
2629 * cpu-powerpc.c: Likewise.
2630 * cpu-sh.c: Likewise.
2631 * cpu-sparc.c: Likewise.
2632 * cpu-tic54x.c: Likewise.
2633 * cpu-v850.c: Likewise.
2634 * cpu-vax.c: Likewise.
2635 * cpu-w65.c: Likewise.
2636 * cpu-we32k.c: Likewise.
2637 * cpu-z8k.c: Likewise.
2638 * dwarf1.c: Likewise.
2639 * dwarf2.c: Likewise.
2640
26412000-11-15 Kazu Hirata <kazu@hxi.com>
2642
2643 * coff-arm.c: Fix formatting.
2644 * coff-ppc.c: Likewise.
2645 * coff-rs6000.c: Likewise.
2646 * coff-sh.c: Likewise.
2647 * coff-sparc.c: Likewise.
2648 * coff-tic30.c: Likewise.
2649 * coff-tic54x.c: Likewise.
2650 * coff-tic80.c: Likewise.
2651 * coff-w65.c: Likewise.
2652 * coff-we32k.c: Likewise.
2653 * coff-z8k.c: Likewise.
2654
26552000-11-15 Richard Henderson <rth@redhat.com>
2656
2657 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
2658 section with the same ALLOC|LOAD flags as the source section.
2659
26602000-11-14 Jakub Jelinek <jakub@redhat.com>
2661
2662 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
2663 by STO_ALPHA constants.
2664
26652000-11-14 Kazu Hirata <kazu@hxi.com>
2666
2667 * coff-pmac.c: Fix formatting.
2668 * coff-ppc.c: Likewise.
2669
26702000-11-13 H.J. Lu <hjl@gnu.org>
2671
2672 * elflink.h (elf_link_add_object_symbols): Also add indirect
2673 symbols for common symbols with the default version.
2674
26752000-11-09 Philip Blundell <pb@futuretv.com>
2676
2677 * section.c (STD_SECTION): Set gc_mark flag.
2678
26792000-11-11 Kazu Hirata <kazu@hxi.com>
2680
2681 * coff-i960.c: Likewise.
2682 * coff-m68k.c: Likewise.
2683 * coff-m88k.c: Likewise.
2684 * coff-mcore.c: Likewise.
2685 * coff-mips.c: Likewise.
2686
26872000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
2688
2689 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
2690
26912000-11-10 Kazu Hirata <kazu@hxi.com>
2692
2693 * coff-h8300.c: Fix formatting.
2694 * coff-h8500.c: Likewise.
2695 * coff-i386.c: Likewise.
2696 * coff-i860.c: Likewise.
2697 * coff-i960.c: Likewise.
2698 * coff-ia64.c: Likewise.
2699
27002000-11-09 Kazu Hirata <kazu@hxi.com>
2701
2702 * archive.c: Fix formatting.
2703 * archures.c: Likewise.
2704
27052000-11-07 Richard Henderson <rth@redhat.com>
2706
2707 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
2708 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
2709 * section.c (bfd_set_section_contents): Call memcpy if
2710 section->contents set and location not equal to contents plus offset.
2711
27122000-11-08 Kazu Hirata <kazu@hxi.com>
2713
2714 * bfd-in.h: Fix formatting.
2715 * bfd-in2.h: Likewise.
2716 * bfd.c: Likewise.
2717 * binary.c: Likewise.
2718 * bout.c: Likewise.
2719 * coff-a29k.c: Likewise.
2720 * coff-alpha.c: Likewise.
2721 * coff-apollo.c: Likewise.
2722 * coff-aux.c: Likewise.
2723
27242000-11-07 Kazu Hirata <kazu@hxi.com>
2725
2726 * aix386-core.c: Fix formatting.
2727 * aoutf1.h: Likewise.
2728 * aoutx.h: Likewise.
2729 * archures.c: Likewise.
2730 * armnetbsd.c: Likewise.
2731
27322000-11-07 Alan Modra <alan@linuxcare.com.au>
2733
2734 * coff-h8300.c (special): Adjust reloc address.
2735
27362000-11-06 Steve Ellcey <sje@cup.hp.com>
2737
2738 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
2739 to differentiate elf32 and elf64 on ia64.
2740 * bfd-in2.h: Regenerate.
2741 * config.bfd: Add target for "ia64*-*-hpux*".
2742 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
2743 * configure: Regenerate.
2744 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
2745 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
2746
2747 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
2748 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
2749 * Makefile.in: Regnerate.
2750 * elf64-ia64.c: Deleted.
2751 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
2752
27532000-11-06 Kazu Hirata <kazu@hxi.com>
2754
2755 * aout-adobe.c: Fix formatting.
2756 * aout-arm.c: Likewise.
2757 * aout-cris.c: Likewise.
2758 * aout-encap.c: Likewise.
2759 * aout-ns32k.c: Likewise.
2760 * aout-target.h: Likewise.
2761 * aout-tic30.c: Likewise.
2762
27632000-11-05 Philip Blundell <philb@gnu.org>
2764
2765 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
2766 BFDs containing no sections to be merged, regardless of their flags.
2767
27682000-11-04 Philip Blundell <philb@gnu.org>
2769
2770 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
2771 if a relocation for an undefined symbol also results in an
2772 overflow.
2773
27742000-11-06 Christopher Faylor <cgf@cygnus.com>
2775
2776 * config.bfd: Add support for Sun Chorus.
2777
27782000-11-05 David O'Brien <obrien@FreeBSD.org>
2779
2780 * configure.in: Recognize alpha-*-freebsd*.
2781 * configure: Regenerate.
2782
27832000-11-02 Luciano Gemme <ishitawa@yahoo.com>
2784
2785 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
2786 (Chunk): New global variable set by a parameter in objcopy.c.
2787 (S3Forced): New global variable set by a parameter in
2788 objcopy.c.
2789 (srec_set_section_contents): If S3Forced is true, always generate
2790 S3 records.
2791 (srec_write_section): Use 'Chunk' to limit maximum length of S
2792 records.
2793
27942000-11-02 Per Lundberg <plundis@chaosdev.org>
2795
2796 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
2797 * Makefile.in: Regenerate.
2798 * bfd-in2.h: Regenerate.
2799 * po/bfd.pot: Regenerate.
2800
28012000-10-31 Philip Blundell <philb@gnu.org>
2802
2803 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
2804 EF_SOFT_FLOAT if it is defined.
2805
28062000-10-27 Philip Blundell <philb@gnu.org>
2807
2808 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
2809 attempts to mix PIC code with non-PIC, just mark the output as
2810 being position dependent.
2811 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
2812 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
2813 all mismatches, not just the first one.
2814
28152000-10-25 Chris Demetriou <cgd@sibyte.com>
2816
2817 * ieee.c (ieee_archive_p): Plug one of many possible
2818 memory leaks in error handling.
2819
28202000-10-20 Jakub Jelinek <jakub@redhat.com>
2821
2822 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
2823 elf32_sparc_object_p, elf32_sparc_final_write_processing):
2824 Support v8plusb.
2825 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
2826 sparc64_elf_object_p): Support v9b.
2827 * archures.c: Declare v8plusb and v9b machines.
2828 * bfd-in2.h: Ditto.
2829 * cpu-sparc.c: Ditto.
2830
28312000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2832
2833 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
2834 of a GOT reloc.
2835
2836 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
2837 (SYMBOL_CALLS_LOCAL): New macro.
2838 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
2839 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
2840 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
2841 (ppc_elf_relocate_section): Use flag variable to determine
2842 whether the relocation refers to a local symbol.
2843 Test whether a PLTREL24 reloc will produce a reloc by looking
2844 to see whether a PLT entry was made.
2845
28462000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2847
2848 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
2849 entries that could serve as a definition for a weak symbol.
2850
28512000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
2852
2853 From Ralf Baechle <ralf@gnu.org>
2854
2855 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
2856 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
2857 against local symbols.
2858 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
2859
28602000-10-12 Alan Modra <alan@linuxcare.com.au>
2861
2862 * section.c (struct sec): Add kept_section.
2863 (struct bfd_comdat_info): Remove sec, we can use above.
2864 (STD_SECTION): Add initializer.
2865 (bfd_make_section_anyway): Init here too.
2866
2867 * bfd-in2.h: Regenerate.
2868
2869 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
2870 zeroing of `flags'.
2871 (elf_link_input_bfd): Set all asection->symbol->value's here, and
2872 fudge values for discarded link-once section symbols.
2873
2874 * elf64-hppa.c: Include alloca-conf.h
2875
28762000-10-11 Alan Modra <alan@linuxcare.com.au>
2877
2878 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
2879
2880 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
2881
28822000-10-10 Alan Modra <alan@linuxcare.com.au>
2883
2884 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
2885
28862000-10-10 Tom Rix <trix@redhat.com>
2887
2888 * section.c (bfd_make_section_anyway): Release newsect ptr when
2889 newsect->symbol fails to alloc. Use bfd_release instead of free.
2890
28912000-10-09 Richard Henderson <rth@cygnus.com
2892
2893 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
2894 (elf64_ia64_unwind_entry_compare): New.
2895 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
2896
28972000-10-07 Alan Modra <alan@linuxcare.com.au>
2898
2899 * elflink.h (size_dynamic_sections): Don't create various tags if
2900 .dynstr is excluded from the link. Don't set first dynsym entry
2901 if dynsymcount is zero.
2902 (elf_bfd_final_link): Don't try to swap out dynamic syms if
2903 .dynsym excluded from the link. Don't try to write any dynamic
2904 sections excluded from the link.
2905
2906 * elf.c (swap_out_syms): Handle global section symbols.
2907
29082000-10-05 DJ Delorie <dj@redhat.com>
2909
2910 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
2911 * coffcode.h (coff_set_alignment_hook): read extended reloc count
2912 (coff_write_relocs): write extended reloc count
2913 (coff_write_object_contents): account for extended relocs
2914
29152000-10-05 Jim Wilson <wilson@cygnus.com>
2916
2917 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
2918 field.
2919 * elf.c (_bfd_elf_make_section_from_shdr): Call the
2920 elf_backend_section_flags function.
2921 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
2922 code.
2923 (elf64_ia64_section_flags): New function containing flag conversion
2924 code.
2925 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
2926 * elfxx-target.h (elf_backend_section_flags): Define.
2927 (elfNN_bed): Initialize elf_backend_section_flags field.
2928
29292000-10-02 Alan Modra <alan@linuxcare.com.au>
2930
2931 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
2932 _bfd_elf32_gc_record_vtable. Correct a comment.
2933
29342000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
2935
2936 From Ralf Baechle <ralf@gnu.org>
2937
2938 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
2939 produces binaries with got[1] = 0x80000001 to differenciate them
2940 for the dynamic linker from the broken binaries produced by old
2941 versions.
2942
29432000-09-30 Petr Sorfa <petrs@sco.com>
2944
2945 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
2946 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
2947 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
2948 * configure: Regenerate.
2949
29502000-09-27 Hans-Peter Nilsson <hp@axis.com>
2951
2952 Define two bfd_targets for absence and presence of leading
2953 underscore on symbols. Make sure to only link same kind.
2954 * elf32-cris.c (cris_elf_object_p,
2955 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
2956 cris_elf_merge_private_bfd_data): New.
2957 (elf_backend_object_p, elf_backend_final_write_processing,
2958 bfd_elf32_bfd_print_private_bfd_data,
2959 bfd_elf32_bfd_merge_private_bfd_data): Define.
2960 <Target vector definition>: Include elf32-target.h twice with
2961 different macro settings:
2962 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
2963 bfd_elf32_us_cris_vec.
2964 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
2965 (elf_symbol_leading_char): First as 0, then '_'.
2966 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
2967 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
2968 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
2969 * configure: Regenerate.
2970 * targets.c: Declare bfd_elf32_us_cris_vec.
2971 * po/bfd.pot: Regenerate.
2972
29732000-09-29 Momchil Velikov <velco@fadata.bg>
2974
2975 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
2976 R_ARM_THM_PC22 relocations.
2977
29782000-09-29 NIIBE Yutaka <gniibe@chroot.org>
2979
2980 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
2981
29822000-09-29 Momchil Velikov <velco@fadata.bg>
2983
2984 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
2985 is has the SEC_HAS_CONTENTS flag set.
2986