* coff-rs6000.c: Add missing prototypes.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
... / ...
CommitLineData
12001-08-09 Alan Modra <amodra@bigpond.net.au>
2
3 * coff-rs6000.c: Add missing prototypes.
4 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
5 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
6 xcoff_loader_reloc_offset): Make static.
7 * dwarf1.c: Add missing prototypes.
8 * dwarf2.c: Add missing prototypes.
9 (struct abbrev_info): Move definition.
10 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
11 * elf.c: Add missing prototypes.
12 * elf32-gen.c: Likewise.
13 * elf32-i386.c: Likewise.
14 * elf32-ppc.c: Likewise.
15 (ppc_elf_sort_rela): Use PTR instead of "void *".
16 * elflink.h: Add missing prototypes. Formatting fixes.
17 * merge.c: Add missing prototypes.
18 (last4_eq): Use PTR instead of "void *".
19 (last_eq): Likewise.
20 * syms.c: Add missing prototypes.
21
222001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
23
24 * bfd.c: Fix formatting.
25 * bfd-in2.h: Regenerate.
26
272001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
28
29 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
30 true (this target uses REL relocations) and 'pcrel_offset' to
31 false (the PC is implied, not stored in the offset).
32
332001-08-08 Alan Modra <amodra@bigpond.net.au>
34
35 1999-10-19 Linus Nordberg <linus@swox.se>
36 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
37 * elfxx-target.h (elf_backend_want_got_sym): Define.
38 (elfNN_bed): Add elf_backend_want_got_sym.
39 * elflink.c (_bfd_elf_create_got_section): Define
40 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
41
422001-08-08 Alexandre Oliva <aoliva@redhat.com>
43
44 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
45 (find_rela_addend): New function.
46 (parse_comp_unit): Call it to find the abbrev offset addend.
47 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
48 members of dwarf2_debug as debugging information is read.
49
502001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
51
52 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
53 targets as well as sh-pe.
54
552001-08-03 Ben Harris <bjh21@netbsd.org>
56
57 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
58 reloc from start of section when computing value for R_ARM_REL32
59 reloc.
60
612001-08-03 Alan Modra <amodra@bigpond.net.au>
62
63 From H.J. Lu <hjl@gnu.org>
64 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
65 keep relocs for undefined syms if there are no dynamic sections in
66 executable.
67 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
68
692001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
70
71 * cofflink.c (coff_link_check_ar_symbols): also search for
72 __imp__symbol as well as _symbol.
73 * linker.c (_bfd_generic_link_add_archive_symbols): also
74 search for __imp__symbol as well as _symbol.
75
762001-08-01 Adam Nemet <anemet@lnxw.com>
77
78 * elf.c (elf_sort_sections): Return zero only as the last step.
79
802001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
81
82 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
83 ARM_COFF_BUGFIX.
84 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
85 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
86 ARM_COFF_BUGFIX.
87
882001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
89
90 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
91 to match corresponding bfd_coff_backend data member.
92
932001-07-24 Alan Modra <amodra@bigpond.net.au>
94
95 * Makefile.am: Update dependencies with "make dep-am".
96 * Makefile.in: Regenerate
97
982001-07-15 H.J. Lu <hjl@gnu.org>
99
100 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
101 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
102 * Makefile.in: Regenerate.
103
1042001-07-11 H.J. Lu <hjl@gnu.org>
105
106 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
107 flags when creating the reloc section if the ALLOC flag in the
108 source section is set.
109
1102001-07-11 Steve Ellcey <sje@cup.hp.com>
111
112 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
113 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
114 * bfd-in2.h: Regenerate.
115 * libbfd.h: Regenerate.
116 * elfxx-ia64.c (ia64_howto_table): Define how to handle
117 new relocations.
118 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
119 (elfNN_ia64_check_relocs): Likewise.
120 (elfNN_ia64_install_value): Likewise.
121 (elfNN_ia64_relocate_section): Likewise.
122
1232001-07-11 Jakub Jelinek <jakub@redhat.com>
124
125 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
126 R_SPARC_UA64.
127 (elf32_sparc_check_relocs): Likewise.
128 Only create .rela section for alloced sections in shared libraries.
129 (elf32_sparc_relocate_section): Likewise.
130 Remove redundant check.
131 Optimize unaligned reloc usage.
132 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
133 check.
134
1352001-07-11 H.J. Lu <hjl@gnu.org>
136
137 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
138 ALLOC|LOAD flags as the source section for debugging sections
139 when creating the reloc section.
140
1412001-07-05 Jim Wilson <wilson@redhat.com>
142
143 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
144 the section of the bigger symbol.
145
146 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
147
1482001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
149
150 * peicode.h (coff_swap_scnhdr_in): For sections containing
151 uninitialised data, only set their size to s_paddr if this does
152 not reset their size to zero. MS's latest compilers will set
153 s_paddr to zero.
154
1552001-07-04 H.J. Lu <hjl@gnu.org>
156
157 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
158 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
159 bfd_mach_mips5000.
160
1612001-07-03 Mark Elbrecht <snowball3@softhome.net>
162
163 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
164
165 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
166 sections being discarded.
167
1682001-06-30 Alan Modra <amodra@bigpond.net.au>
169
170 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
171 instead of _bfd_elfcore_section_from_phdr.
172 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
173 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
174 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
175 (elfcore_grok_prstatus): Likewise.
176 (elfcore_grok_lwpstatus): Likewise.
177 (bfd_get_elf_phdr_upper_bound): Likewise.
178 (elfcore_make_note_pseudosection): Formatting.
179 (_bfd_elfcore_strndup): Formatting.
180 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
181 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
182
1832001-06-29 Daniel Jacobowitz <drow@mvista.com>
184
185 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
186 and _bfd_elfcore_strndup.
187 (struct elf_backend_data): Add elf_backend_grok_prstatus
188 and elf_backend_grok_psinfo.
189 * elf.c (_bfd_elfcore_make_pseudosection): New function.
190 (elfcore_grok_prstatus): Use it.
191 (elfcore_make_note_pseudosection): Likewise.
192 (elfcore_strndup): Rename to...
193 (_bfd_elfcore_strndup): Here, and make global.
194 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
195 (elfcore_grok_note): Call elf_backend_grok_prstatus
196 and elf_backend_grok_psinfo if available.
197 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
198 (_bfd_elf32_mips_grok_psinfo): New function.
199 (elf_backend_grok_prstatus): Define.
200 (elf_backend_grok_psinfo): Define.
201 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
202 (elf_backend_grok_psinfo): Likewise.
203 (elfNN_bed): Include elf_backend_grok_prstatus and
204 elf_backend_grok_psinfo.
205
2062001-06-29 H.J. Lu <hjl@gnu.org>
207
208 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
209 hplink->sgot is NULL before filling GOT. Check if hplink->splt
210 is NULL before filling PLT.
211
2122001-06-29 Alan Modra <amodra@bigpond.net.au>
213
214 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
215
2162001-06-27 Alan Modra <amodra@bigpond.net.au>
217
218 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
219 here..
220 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
221 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
222 after gc has run.
223
224 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
225 (IS_ABSOLUTE_RELOC): Define.
226 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
227 (hppa_link_hash_newfunc): Always init it.
228 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
229 create COPY relocs only when the reloc is in a read-only section.
230 Instead, allocate space for a dynamic reloc to reference the
231 library symbol directly. Keep track of space we allocate using
232 relocs_entries.
233 (hppa_discard_copies): Delete, and move code to..
234 (allocate_plt_and_got): ..here. Rename to
235 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
236 relocs for non-shared link.
237 (elf32_hppa_size_dynamic_sections): Update calls to above.
238 (elf32_hppa_relocate_section): Write out the dynamic relocs used
239 in lieu of COPY relocs.
240
241 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
242 here..
243 (elf_i386_adjust_dynamic_symbol): ..nor here..
244 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
245 after gc has run.
246 (elf_i386_size_dynamic_sections): Fix a comment.
247 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
248 involved in writing reloc out.
249
2502001-06-25 Alan Modra <amodra@bigpond.net.au>
251
252 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
253 Ensure syms are dynamic if we might be emitting a reloc.
254 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
255 for undefweak or undefined syms..
256 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
257
258 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
259 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
260 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
261 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
262
2632001-06-24 H.J. Lu <hjl@gnu.org>
264
265 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
266 strncasecmp/strcasecmp instead of strncmp/strcmp.
267
2682001-06-23 H.J. Lu <hjl@gnu.org>
269
270 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
271 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
272 in the regular object file and treat the weak definition as
273 the normal one.
274
2752001-06-23 Alan Modra <amodra@bigpond.net.au>
276
277 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
278 unresolved_reloc test to exclude cases where we use "relocation"
279 before setting it to point into the .got. Reinstate fudge for
280 unresolved relocs in debugging sections.
281
282 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
283 complicated tests for unresolvable relocs with a simple direct
284 scheme using "unresolved_reloc" var.
285
286 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
287 elf_i386_dyn_relocs. Update comment.
288 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
289 dyn_relocs.
290 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
291 others to aborts.
292 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
293 abort.
294 (elf_i386_size_dynamic_sections): Likewise.
295 (elf_i386_finish_dynamic_symbol): Likewise.
296 (elf_i386_finish_dynamic_sections): Likewise.
297 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
298 handling code.
299
300 Avoid creating COPY relocs if possible.
301 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
302 which .got created. Mark symbols used by R_386_32 and R_386_PC32
303 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
304 reloc is in a read-only section. Instead, allocate space for a
305 dynamic reloc to reference the library symbol directly. Keep
306 track of space we allocate using pcrel_relocs_copied.
307 (discard_copies): Delete, and move code to ..
308 (allocate_plt_and_got): ..here. Rename to
309 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
310 relocs for non-shared link.
311 (elf_i386_size_dynamic_sections): Update calls to above functions.
312 (elf_i386_relocate_section): Write out the dynamic relocs. Add
313 more ugly logic to avoid "unresolvable relocation" error. Use
314 htab shortcut in place of elf_hash_table macro.
315 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
316 not always be created now.
317
3182001-06-20 Bo Thorsen <bo@suse.co.uk>
319
320 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
321 shared libraries.
322
3232001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
324
325 * configure.host (mips64-*-linux): Reformat.
326
3272001-06-21 Alan Modra <amodra@bigpond.net.au>
328
329 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
330 allocate local .got space. Use shortcuts from hash table for .got
331 and .plt rather than comparing section names.
332 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
333 adjusting index into local_got_refcounts to document what we are
334 really doing.
335 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
336 Tidy .got and .plt error checking.
337
3382001-06-20 Catherine Moore <clm@redhat.com>
339
340 * elf-bfd.h (struct elf_backend_data):
341 elf_backend_emit_relocs: New field: Function for emitting
342 relocs.
343 elf_backend_count_relocs: New field: Function for determining
344 the number of relocs to be emitted.
345 * elfxx-target.h: Provide default (NULL) values for
346 elf_backend_emit_relocs and elf_backend_count_relocs.
347 * elflink.h (elf_link_size_reloc_section): Make the hash table
348 big enough to hold the relocs counted by either reloc_count or
349 o->reloc_count.
350 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
351 should be emitted, either because of a command line option
352 stored in the info structure or because the target provides a
353 special reloc emitting function.
354 If the target provides a reloc counting function use it,
355 unless performing a relocatable link or emitting all relocs.
356 Also set the SEC_RELOC flag on any output section which will
357 contain relocs.
358 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
359 should be emitted, either because of a command line option
360 stored in the info structure or because the target provides a
361 special reloc emitting function.
362 If the target provides a reloc emitting function, use it,
363 unless performing a relocatable link or emitting all relocs.
364
3652001-06-20 H.J. Lu <hjl@gnu.org>
366
367 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
368 allocate local .got space.
369
3702001-06-19 Andreas Jaeger <aj@suse.de>
371
372 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
373 dynamic symbols.
374
3752001-06-18 Hans-Peter Nilsson <hp@axis.com>
376
377 * elflink.h (struct elf_assign_sym_version_info): Remove member
378 export_dynamic. All users changed to use info member.
379 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
380 export_dynamic, instead use member in parameter info.
381 * bfd-in.h (bfd_elf32_size_dynamic_sections,
382 bfd_elf64_size_dynamic_sections): Update prototype.
383 * bfd-in2.h: Regenerate.
384
3852001-06-18 H.J. Lu <hjl@gnu.org>
386
387 * elflink.h (elf_info_failed): Add a new field, verdefs.
388 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
389 elf_export_symbol.
390 (elf_export_symbol): Check eif->verdefs to decide if a symbol
391 should be exported.
392
3932001-06-17 H.J. Lu <hjl@gnu.org>
394
395 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
396 readonly_reloc, to record if a relocation in the .rel.dyn
397 section is against a read-only section.
398 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
399 field to false.
400 (_bfd_mips_elf_check_relocs): Record if there is a relocation
401 in the .rel.dyn section against a read-only section by setting
402 DF_TEXTREL or readonly_reloc.
403 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
404 it is true.
405 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
406 there is a relocation in the .rel.dyn section against a
407 read-only section.
408 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
409 DF_TEXTREL is set.
410
4112001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
412
413 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
414 function. Move flagword result into parameter list. Remove
415 comment about setting bfd_error_handler to intercept failure
416 results.
417 * coffgen.c (make_a_section_from_file): Examine result of
418 calling bfd_coff_styp_to_sec_flags and pass a failure back to
419 caller.
420 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
421 function. Move flagword result into parameter list.
422 * libcoff.h: Regenerate.
423 * libecoff.h: Regenerate.
424
4252001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
426
427 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
428 section is going to follow it.
429
4302001-06-12 Catherine Moore <clm@redhat.com>
431
432 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
433 with the file_align entry from elf_backend_data.
434 (elf_gc_smash_unused_vtentry_relocs): Likewise.
435 (elf_gc_record_vtentry): Likewise.
436
4372001-06-10 Alan Modra <amodra@bigpond.net.au>
438
439 * elflink.h: Whitespace changes.
440 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
441 rather than "unsigned char".
442 (elf_link_output_relocs): Likewise.
443 (elf_link_input_bfd): Likewise.
444 (elf_reloc_link_order): LIkewise.
445 * elf.c: s/CONST/const/. Whitespace changes.
446 * elf32-mips.c: Formatting fix.
447
448 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
449 * Makefile.in: Regenerate.
450 * po/Make-in: Remove trailing tab.
451
4522001-06-09 Philip Blundell <philb@gnu.org>
453
454 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
455 change.
456 (elf32_arm_plt_entry): Likewise.
457
4582001-06-08 H.J. Lu <hjl@gnu.org>
459
460 * elf.c (swap_out_syms): Keep names for global section symbols.
461
4622001-06-07 H.J. Lu <hjl@gnu.org>
463
464 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
465 MIPS-based machines need it.
466
4672001-06-07 H.J. Lu <hjl@gnu.org>
468
469 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
470 for SGI only.
471
472 * config.bfd: Remove ecoff from Linux/mips.
473
4742001-06-07 Andreas Jaeger <aj@suse.de>
475
476 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
477 assertion.
478 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
479 alignment of 8 for .rela sections; handle further relocations.
480
4812001-06-06 Christian Groessler <cpg@aladdin.de>
482
483 * coff-z8k.c: Fix formatting.
484 Fix howtos: howto->size was always 1.
485
4862001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
487
488 * configure.host (mips64*-*-linux*): Define.
489
4902001-06-05 Alan Modra <amodra@bigpond.net.au>
491
492 * elf32-i386.c (elf_i386_discard_copies): Rename to
493 discard_copies, and use elf_link_hash_entry arg rather than
494 elf_i386_link_hash_entry.
495 (elf_i386_link_hash_traverse): Delete.
496 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
497 Tidy sizing of dynamic sections.
498 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
499 possible .plt entries.
500 (elf_i386_gc_sweep_hook): Likewise.
501 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
502 everything with plt.refcount <= 0.
503
504 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
505 .relgot space here.
506 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
507 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
508 .rel.plt here..
509 (allocate_plt_and_got): ..instead do it all here. New function.
510 (elf_i386_size_dynamic_sections): Allocate local .got space and
511 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
512 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
513 rather than gc variety).
514 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
515 (elf_i386_relocate_section): Use it here and correct handling of
516 R_386_GOT32. Provide section and offset for "unresolvable
517 relocation" error message.
518 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
519
520 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
521 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
522 (elf_i386_link_hash_table_create): Init them.
523 (create_got_section): New function.
524 (elf_i386_create_dynamic_sections): New function.
525 (elf_backend_create_dynamic_sections): Set to above.
526 (elf_i386_check_relocs): Use shortcuts from hash table rather than
527 calling bfd_get_section_by_name.
528 (elf_i386_gc_sweep_hook): Likewise.
529 (elf_i386_adjust_dynamic_symbol): Likewise.
530 (elf_i386_size_dynamic_sections): Likewise.
531 (elf_i386_relocate_section): Likewise.
532 (elf_i386_finish_dynamic_sections): Likewise.
533
534 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
535
5362001-06-02 H.J. Lu <hjl@gnu.org>
537
538 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
539 and ELFOSABI_HPUX.
540 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
541
5422001-06-02 H.J. Lu <hjl@gnu.org>
543
544 * aout-cris.c (MACHTYPE_OK): New. Defined.
545
5462001-06-02 Hans-Peter Nilsson <hp@axis.com>
547
548 * section.c (_bfd_strip_section_from_output): Handle NULL
549 output_section.
550
5512001-06-02 H.J. Lu <hjl@gnu.org>
552
553 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
554 rs6000coff64_vec only if BFD64 is defined.
555 (powerpc64-*-aix*): Enable only if BFD64 is defined.
556
5572001-06-02 H.J. Lu <hjl@gnu.org>
558
559 * coff-ia64.c (ia64coff_object_p): Rewrite with
560 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
561
5622001-06-01 Andreas Jaeger <aj@suse.de>
563
564 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
565 relocation, small reformatting.
566
5672001-05-29 Andreas Jaeger <aj@suse.de>
568
569 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
570 (elf64_x86_64_relocate_section): Likewise.
571
5722001-05-30 Alan Modra <amodra@one.net.au>
573
574 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
575 millicode. Don't allocate .got and .rela.got space here..
576 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
577 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
578 .rela.plt here..
579 (hppa_handle_PIC_calls): ..nor here..
580 (allocate_plt_and_got): ..instead do it all here. New function.
581 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
582 call allocate_plt_and_got. No need to zap .got if not dynamic.
583 (elf32_hppa_final_link): Call regular bfd_final_link instead of
584 gc_common_final_link.
585 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
586 (elf32_hppa_relocate_section): Use it here.
587 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
588 dynamic_sections_created.
589 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
590
5912001-05-28 Andreas Jaeger <aj@suse.de>
592
593 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
594 generic version since we want a hashsize of 4.
595 (elf_backend_size_info): Likewise.
596
5972001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
598
599 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
600 a zeroing loop.
601 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
602 (elf_link_input_bfd): Likewise.
603 (elf_reloc_link_order): Likewise.
604 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
605 relocations correctly.
606
6072001-05-28 Nicolas Pitre <nico@cam.org>
608
609 * elf32-arm.h: fix PLT generation for big endian ARM
610
6112001-05-28 Alan Modra <amodra@one.net.au>
612
613 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
614 for symbols forced local that need plabels.
615 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
616 .plt.rela for local syms if non-shared.
617 (hppa_build_one_stub): Mask lsb of plt.offset.
618 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
619 (clobber_millicode_symbols): Correct comment.
620 (elf32_hppa_relocate_section): Likewise.
621 (elf32_hppa_finish_dynamic_symbol): Likewise.
622
6232001-05-28 Jeff Sturm <jsturm@one-point.com>
624
625 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
626 * bfd-in2.h: Regenerate.
627 * libbfd.h: Regenerate.
628 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
629 and BFD_RELOC_SPARC_UA64 mapping
630 * elf64-sparc.c: Likewise.
631
6322001-05-25 H.J. Lu <hjl@gnu.org>
633
634 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
635 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
636 (coff-rs6000.lo): Remove the old dependency.
637 * Makefile.in: Rebuild.
638
639 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
640 coff-rs6000.lo.
641
6422001-05-25 H.J. Lu <hjl@gnu.org>
643
644 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
645 rs6000coff_core_file_matches_executable_p,
646 rs6000coff_core_file_failing_command and
647 rs6000coff_core_file_failing_signal only if AIX_CORE is
648 defined.
649 (pmac_xcoff_vec): Likewise.
650 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
651
6522001-05-25 Timothy Wall <twall@redhat.com>
653
654 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
655 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
656
6572001-05-25 H.J. Lu <hjl@gnu.org>
658
659 * bfd-in2.h: Regenerated.
660 * libcoff.h: Likewise.
661
6622001-05-25 Alan Modra <amodra@one.net.au>
663
664 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
665 undefined millicode syms in shared libs.
666 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
667 (elf32_hppa_check_relocs): Likewise.
668 (elf32_hppa_adjust_dynamic_symbol): Likewise.
669 (elf32_hppa_size_dynamic_sections): Likewise.
670 (elf32_hppa_relocate_section): Likewise.
671 (elf32_hppa_finish_dynamic_symbol): Likewise.
672 (elf32_hppa_finish_dynamic_sections): Likewise.
673
6742001-05-24 Tom Rix <trix@redhat.com>
675
676 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
677 xcoff-target.h not used to define rs6000 or ppc bfd.
678 * Makefile.in same
679
680 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
681 to 64 bit.
682
683 * coff-rs6000.c : Many changes for 64 bit support. Move common
684 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
685 and pmac_xcoff_vec
686
687 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
688 linker now supported. Explictly define the rs6000coff64_vec.
689
690 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
691 (coff_print_aux) same
692 (coff_write_object_contents) same
693 (coff_slurp_line_table) same
694
695 * coffgen.c : (coff_fix_symbol_name) formatting
696 (coff_mangle_symbols) xcoff 64 bit support
697 (coff_write_symbol) same
698 (coff_write_alien_symbol) same
699 (coff_write_native_symbol) same
700 (coff_write_symbols) same
701 (coff_get_symbol_info) same
702 (bfd_coff_get_syment) same
703 (coff_print_symbol) same
704
705 * config.bfd : add powerpc64-*-aix* target
706
707 * libcoff-in.h : formatting
708
709 * libcoff.h : move xcoff extern declarations to libxcoff.h
710
711 * libxcoff.h : New file
712
713 * xcofflink.c : Many changes for xcoff64 support. Move common
714 structures to include/coff/xcoff.h. Move specific structure to
715 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
716 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
717
718 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
719 aix4.2+ -binitfini.
720
721 (xcoff_build_ldsyms) : handle special __rtinit symbol.
722
7232001-05-23 Alexandre Oliva <aoliva@redhat.com>
724
725 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
726 s/ENTIRES/ENTRIES/.
727
7282001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
729
730 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
731 * libbfd.h: Regenerate.
732 * bfd-in2.h: Regenerate.
733
734 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
735 * archures.c (bfd_mach_mips12000): Define.
736 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
737 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
738 support.
739 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
740 * bfd-in2.h: Regenerate.
741 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
742
7432001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
744
745 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
746 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
747 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
748 that is used by GCC.
749
7502001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
751
752 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
753 of entries in a structured section.
754 * elf.c: Use new macro.
755 * elf32-i386.c: Use new macro.
756 * elf32-mips.c: Use new macro.
757 * elf64-alpha.c: Use new macro.
758 * elf64-sparc.c: Use new macro.
759 * elfcode.h: Use new macro.
760 * elflink.h: Use new macro.
761
7622001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
763
764 * bfdint.texi: Replace -oformat with --oformat.
765
7662001-05-21 Andreas Jaeger <aj@suse.de>
767
768 * dwarf2.c (decode_line_info): Fix error message.
769 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
770 adjust error message.
771
7722001-05-18 H.J. Lu <hjl@gnu.org>
773
774 * elflink.h (elf_link_add_object_symbols): Revert the last
775 change.
776
7772001-05-17 Alan Modra <amodra@one.net.au>
778
779 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
780 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
781 (hppa_build_one_stub): Add an assert to check plt.offset.
782
7832001-05-17 H.J. Lu <hjl@gnu.org>
784
785 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
786 version definition to basename of the output filename.
787
7882001-05-17 H.J. Lu <hjl@gnu.org>
789
790 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
791 basename of the bfd filename.
792
7932001-05-16 Alan Modra <amodra@one.net.au>
794
795 * section.c (asection): Add linker_has_input field.
796 (STD_SECTION): Adjust initialization to suit.
797 * ecoff.c (bfd_debug_section): Likewise.
798 * bfd-in2.h: Regenerate.
799
8002001-05-15 Alexandre Oliva <aoliva@redhat.com>
801
802 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
803 negative 32-bit operands to 16 operands when the operand is
804 going to be zero-extended by the modified opcode.
805
8062001-05-12 Peter Targett <peter.targett@arccores.com>
807
808 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
809 name for 'arc5' core versions.
810 (bfd_arc_arch): Make bfd_mach_arc_6 default.
811
812 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
813 architecture.
814 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
815
8162001-05-11 Jakub Jelinek <jakub@redhat.com>
817
818 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
819 sections as well.
820 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
821 to .gnu.linkonce.t.FOO text section.
822
8232001-05-11 Jakub Jelinek <jakub@redhat.com>
824
825 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
826 fields, change sec into secinfo.
827 (struct sec_merge_info): Add chain, remove last fields.
828 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
829 (sec_merge_hash_lookup): If lookup could not use a string only
830 because it has bad alignment, mark the old string for deletion.
831 (sec_merge_add): Add secinfo argument. Don't compute entry's
832 position, instead record the section.
833 (sec_merge_emit): Update for the sec into secinfo change in
834 struct sec_merge_hash_entry.
835 (_bfd_merge_section): Only record the section for merging, defer
836 putting strings into the hash table.
837 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
838 _bfd_merge_sections): New functions.
839 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
840 changes.
841 * libbfd-in.h (_bfd_merge_sections): Add prototype.
842 (_bfd_nolink_bfd_merge_sections): Define.
843 * libbfd.h: Likewise.
844 (bfd_generic_merge_sections): Add prototype.
845 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
846 (struct bfd_target): Likewise.
847 * bfd.c (bfd_merge_sections): Define.
848 * bfd-in2.h: Rebuilt.
849 * elf.c (_bfd_elf_merge_sections): New function.
850 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
851 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
852 * reloc.c (bfd_generic_merge_sections): New function.
853 * vms.c (vms_bfd_merge_sections): New function.
854 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
855 * aout-target.h (MY_bfd_merge_sections): Define.
856 * aout-tic30.c (MY_bfd_merge_sections): Define.
857 * binary.c (binary_bfd_merge_sections): Define.
858 * bout.c (b_out_bfd_merge_sections): Define.
859 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
860 * coffcode.c (coff_bfd_merge_sections): Define.
861 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
862 * i386msdos.c (msdos_bfd_merge_sections): Define.
863 * i386os9k.c (os9k_bfd_merge_sections): Define.
864 * ieee.c (ieee_bfd_merge_sections): Define.
865 * ihex.c (ihex_bfd_merge_sections): Define.
866 * nlm-target.h (nlm_bfd_merge_sections): Define.
867 * oasys.c (oasys_bfd_merge_sections): Define.
868 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
869 * som.c (som_bfd_merge_sections): Define.
870 * srec.c (srec_bfd_merge_sections): Define.
871 * tekhex.c (tekhex_bfd_merge_sections): Define.
872 * versados.c (versados_bfd_merge_sections): Define.
873 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
874
8752001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
876
877 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
878 to be unsigned long, in order to match its use.
879
8802001-05-10 H.J. Lu <hjl@gnu.org>
881
882 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
883 indirect symbols.
884
8852001-05-09 H.J. Lu <hjl@gnu.org>
886
887 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
888 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
889 Remove the unused veriable `dynver'.
890
8912001-05-08 Ian Lance Taylor <ian@zembu.com>
892
893 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
894 NULL or is not COFF.
895 (coff_i386_rtype_to_howto): Don't dump core if output section
896 owner is not COFF.
897
8982001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
899
900 * ecoff.c (bfd_debug_section): Fix initialization.
901 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
902 is always a positive integer. Cast away sign mismatch.
903 * elf32-mips.c: Fix misleading comment and typo.
904 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
905 correct data type.
906 * elflink.c: Fix typo.
907 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
908 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
909
9102001-05-04 Richard Henderson <rth@redhat.com>
911
912 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
913
9142001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
915
916 * elf32-arm.h (elf32_arm_final_link_relocate): Set
917 EF_ARM_HASENTRY if the start address is set.
918
9192001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
920
921 * targets.c (_bfd_target_vector_entries): Compute value based on
922 the size of the _bfd_target_vector and not bfd_target_vector.
923
9242001-05-03 H.J. Lu <hjl@gnu.org>
925
926 * elfcode.h: Include "libiberty.h".
927
928 * elflink.h (elf_link_add_object_symbols): Set
929 elf_dt_name (abfd) to basename of the bfd filename.
930 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
931 of the bfd filename.
932
9332001-05-03 Andreas Jaeger <aj@suse.de>
934
935 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
936 (elf_generic_info_to_howto_rel): Likewise.
937 * coff-alpha.c (reloc_nil): Likewise.
938 (alpha_ecoff_bad_format_hook): Likewise.
939 (alpha_adjust_reloc_out): Likewise.
940 (alpha_bfd_reloc_type_lookup): Likewise.
941 (alpha_convert_external_reloc): Likewise.
942 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
943 (elf64_alpha_reloc_bad): Likewise.
944 (elf64_alpha_reloc_gpdisp): Likewise.
945 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
946 (elf64_alpha_info_to_howto): Likewise.
947 (elf64_alpha_add_symbol_hook): Likewise.
948 (elf64_alpha_create_got_section): Likewise.
949 (elf64_alpha_is_local_label_name): Likewise.
950 (elf64_alpha_merge_ind_symbols): Likewise.
951 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
952 (mips_elf64_get_reloc_upper_bound): Likewise.
953 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
954 (nlm_alpha_get_public_offset): Likewise.
955
9562001-05-02 Johan Rydberg <jrydberg@opencores.org>
957
958 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
959 about overflow in R_OPENRISC_LO_16_IN_INSN and
960 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
961
9622001-04-30 H.J. Lu <hjl@gnu.org>
963
964 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
965 only for ELF_LINK_FORCED_LOCAL.
966 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
967 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
968 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
969
970 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
971 if the symbol has hidden or internal visibility.
972
9732001-04-30 Alan Modra <amodra@one.net.au>
974
975 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
976 calls to undefined weak symbols.
977
9782001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
979
980 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
981 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
982
9832001-04-27 Andreas Jaeger <aj@suse.de>
984
985 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
986 out handled entries.
987 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
988 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
989 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
990 GOT32.
991
9922001-04-27 Sean McNeil <sean@mcneil.com>
993
994 * config.bfd: Add arm-vxworks target.
995 * coff-arm (coff_arm_relocate_section): Add in symbol value to
996 addend (fro VXworks targets).
997
9982001-04-26 H.J. Lu <hjl@gnu.org>
999
1000 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
1001 valid.
1002
10032001-04-25 Frank Ch. Eigler <fche@redhat.com>
1004
1005 * bfd-in.h (bfd_cache_close): Declare newly exported function.
1006 * bfd-in2.h: Regenerated.
1007
10082001-04-24 Jakub Jelinek <jakub@redhat.com>
1009
1010 * merge.c (struct sec_merge_hash_entry): Add alignment field.
1011 (struct sec_merge_hash): Remove alignment_power.
1012 (sec_merge_hash_newfunc): Clear alignment.
1013 (sec_merge_hash_lookup): Pass alignment as argument.
1014 Use hashp->root.next, not hashp->next to walk the hash chain.
1015 If a string already in the hashtable does not have required
1016 alignment, create a new hashtable entry.
1017 (sec_merge_init): Remove alignment_power argument.
1018 (sec_merge_add): Add alignment argument.
1019 (sec_merge_emit): Alignment is now a per-entity thing, not per
1020 section.
1021 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
1022 for proper alignment.
1023 Pass alignment information to sec_merge_add.
1024
10252001-04-24 Christian Groessler <cpg@aladdin.de>
1026
1027 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
1028 and R_REL16 reloc types; accept odd values for R_REL16 type
1029
10302001-04-24 Johan Rydberg <jrydberg@opencores.org>
1031
1032 * cpu-openrisc.c: New file.
1033 * elf32-openrisc.c: Likewise.
1034
1035 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
1036 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
1037 (BFD32_BACKENDS): Add elf32-openrisc.lo.
1038 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
1039 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
1040 * Makefile.in: Regenerated.
1041 * config.bfd: (openrisc-*-elf): New target.
1042 * configure.in (bfd_elf32_openrisc_vec): New vector.
1043 * configure: Regenerated.
1044 * libbfd.h: Regenerated.
1045 * bfd-in2.h: Regenerated.
1046 * reloc.c: Add OpenRISC relocations.
1047 * targets.c (bfd_elf32_openrisc_vec): Declare.
1048 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
1049 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
1050 (bfd_openrisc_arch): Declare.
1051 (bfd_archures_list): Add bfd_openrisc_arch.
1052 * elf.c (prep_headers): Add bfd_arch_openrisc.
1053
10542001-04-23 Bo Thorsen <bo@suse.de>
1055
1056 * elf64-x86-64.c: Add c++ vtable hack.
1057 Small whitespace and comment changes.
1058
10592001-04-19 Andreas Jaeger <aj@suse.de>
1060
1061 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
1062 (elf64_x86_64_plt_entry): Likewise.
1063 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
1064 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
1065
10662001-04-17 Hans-Peter Nilsson <hp@axis.com>
1067
1068 * elf32-cris.c: Tweak comments related to dynamic linking.
1069 (cris_elf_relocate_section): When not creating shared object, fill
1070 in the .got table for any symbol not in the dynamic symbol table.
1071 (elf_cris_finish_dynamic_symbol): When not creating shared object,
1072 only emit a .got.rela reloc if the symbol is in the dynamic symbol
1073 table.
1074 (cris_elf_check_relocs): Use variable r_type in all places rather
1075 than the original expression. Add default case in switch for
1076 reloc types.
1077 (elf_cris_size_dynamic_sections): Iterate over
1078 elf_cris_discard_excess_program_dynamics when not creating shared
1079 library.
1080 (elf_cris_discard_excess_dso_dynamics): Renamed from
1081 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
1082 (elf_cris_discard_excess_program_dynamics): New.
1083
10842001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
1085
1086 * coffcode.h (coff_write_object_contents): Use
1087 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
1088
10892001-04-14 H.J. Lu <hjl@gnu.org>
1090
1091 * bfd-in2.h: Regenerate.
1092
10932001-04-14 Jakub Jelinek <jakub@redhat.com>
1094
1095 * section.c (STD_SECTION): Add entsize.
1096
10972001-04-13 H.J. Lu <hjl@gnu.org>
1098
1099 * section.c (SEC_MERGE): Define new flag for merging.
1100 (SEC_STRINGS): Likewise.
1101 (entsize): New field.
1102
11032001-04-13 Roger Sayle <roger@metaphorics.com>
1104
1105 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
1106 flag on pe-i386 targets.
1107
11082001-04-13 Jakub Jelinek <jakub@redhat.com>
1109
1110 * libbfd-in.h (_bfd_merge_section): New.
1111 (_bfd_write_merged_section): New.
1112 (_bfd_merged_section_offset): New.
1113 * libbfd.h: Rebuilt.
1114 * linker.c (_bfd_generic_link_output_symbols): Handle
1115 discard_sec_merge.
1116 * aoutx.h (aout_link_write_symbols): Likewise.
1117 * pdp11.c (aout_link_write_symbols): Likewise.
1118 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
1119 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
1120 sections.
1121 (elf_link_sec_merge_syms): New.
1122 (elf_link_input_bfd): Call _bfd_merged_section_offset
1123 and _bfd_write_merged_section.
1124 Handle discard_sec_merge.
1125 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
1126 field.
1127 (struct bfd_elf_section_data): Likewise.
1128 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
1129 SEC_STRINGS section flags and entsize from their ELF counterparts.
1130 (_bfd_elf_link_hash_table_init): Initialize merge_info.
1131 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
1132 from their BFD counterparts.
1133 * merge.c: New file.
1134 * Makefile.am: Add strtab.lo.
1135 * Makefile.in: Rebuilt.
1136
11372001-04-09 Hans-Peter Nilsson <hp@axis.com>
1138
1139 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
1140 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
1141
11422001-04-05 Steven J. Hill <sjhill@cotw.com>
1143
1144 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
1145 endian MIPS ELF target.
1146 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
1147 MIPS ELF target.
1148
1149 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
1150 64bit big endian MIPS ELF target.
1151 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1152 endian MIPS ELF target.
1153 * configure: Regenerated.
1154
1155 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
1156 little endian targets.
1157 (mips_elf_sym_is_global): Handle traditional targets.
1158
1159 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
1160 64bit big endian MIPS ELF target.
1161 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1162 endian MIPS ELF target.
1163
1164 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
1165 and bfd_elf64_tradlittlemips_vec.
1166
11672001-04-05 David Mosberger <davidm@hpl.hp.com>
1168
1169 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
1170 ordinary "progbits" section.
1171
11722001-04-04 Alan Modra <alan@linuxcare.com.au>
1173
1174 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
1175 when -Bsymbolic causes a symbol to no longer need a .plt entry.
1176
11772001-04-03 David Mosberger <davidm@hpl.hp.com>
1178
1179 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
1180
11812001-03-30 H.J. Lu <hjl@gnu.org>
1182
1183 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
1184 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
1185
11862001-03-26 H.J. Lu <hjl@gnu.org>
1187
1188 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
1189 if there are any relocations for generic ELF.
1190 (bfd_elf32_bfd_link_add_symbols): Defined to
1191 elf32_generic_link_add_symbols.
1192 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
1193 if there are any relocations for generic ELF.
1194 (bfd_elf64_bfd_link_add_symbols): Defined to
1195 elf64_generic_link_add_symbols.
1196
11972001-03-23 Nick Clifton <nickc@redhat.com>
1198
1199 * Makefile.am (BUILD_CFILES): New variable: List of C source
1200 files created in build directory.
1201 (BUILD_HFILES): New variable: List of header files created in
1202 build directory.
1203 (POTFILES): Delete.
1204 (po/POTFILES.in): Replace rule with empty entry.
1205 (po/SRC-POTFILES.in): New rule: Create a list of source files
1206 in the source directory.
1207 (po/BLD-POTFILES.in): New rule: Create a list of source files
1208 in the build directory.
1209 (MOSTLYCLEAN): Do not delete source files created in build
1210 directory.
1211 * Makefile.in: Regenerate.
1212 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
1213 into po/Makefile.
1214 * configure: Regenerate.
1215
1216 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
1217 and BLD_POTFILES.
1218 Add .. to the search path when building bfd.pot.
1219 Delete POTFILES when performing distclean.
1220 Add comment describing why distclean is broken in maintainer mode.
1221 * po/POTFILES.in: Delete.
1222 * po/SRC-POTFILES.in: New file.
1223 * po/BLD-POTFILES.in: New file.
1224 * po/bfd.pot: Regenerate.
1225
12262001-03-22 Hans-Peter Nilsson <hp@axis.com>
1227
1228 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
1229 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
1230 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
1231 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
1232 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
1233 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
1234 functions.
1235 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
1236 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
1237 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
1238 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
1239 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
1240 New HOWTO members for new relocs.
1241 (cris_reloc_map): Map new relocs.
1242 (ELF_DYNAMIC_INTERPRETER): Define.
1243 (PLT_ENTRY_SIZE): Define.
1244 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
1245 elf_cris_pic_plt_entry): New, PLT templates.
1246 (struct elf_cris_pcrel_relocs_copied, struct
1247 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
1248 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
1249 (cris_final_link_relocate): Check that 16-bit GOT relocs have
1250 positive values. Adjust PCREL relocs to be relative to location
1251 after relocation.
1252 (cris_elf_relocate_section): Handle relocations to dynamic
1253 objects. Handle new relocations. Call error handler when seeing
1254 non-PIC relocation for read-only sections while generating shared
1255 object.
1256 (cris_elf_check_relocs): Set reference counts for GOT and PLT
1257 entries.
1258 (bfd_elf32_bfd_link_hash_table_create,
1259 elf_backend_adjust_dynamic_symbol,
1260 elf_backend_size_dynamic_sections,
1261 elf_backend_finish_dynamic_symbol,
1262 elf_backend_finish_dynamic_sections,
1263 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
1264 elf_backend_hide_symbol, elf_backend_want_got_plt,
1265 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1266 elf_backend_got_header_size, elf_backend_plt_header_size):
1267 Define.
1268
1269 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
1270 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
1271 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
1272 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
1273 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
1274 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
1275 * bfd-in2.h, libbfd.h: Regenerate.
1276
12772001-03-21 Diego Novillo <dnovillo@redhat.com>
1278
1279 (_bfd_mips_elf_relocate_section): Give a better error message when
1280 a relocation is not recognized.
1281
12822001-03-21 Alan Modra <alan@linuxcare.com.au>
1283
1284 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
1285 non-NULL before attempting to dereference.
1286
12872001-03-20 H.J. Lu <hjl@gnu.org>
1288
1289 * configure.in: Remove the redundent AC_ARG_PROGRAM.
1290 * configure: Rebuild.
1291
12922001-03-20 Andreas Schwab <schwab@suse.de>
1293
1294 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
1295 relocation value when resolving a reference from a debugging
1296 section.
1297
12982001-03-16 Scott Thomason <SThomaso@hii.com>
1299
1300 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
1301 (xcoff64_swap_sym_out): Fix syntax errors.
1302
13032001-03-16 Richard Sandiford <rsandifo@redhat.com>
1304
1305 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
1306
13072001-03-15 Alan Modra <alan@linuxcare.com.au>
1308
1309 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
1310 (hppa_link_hash_newfunc): Init it.
1311 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
1312 section appears to be non-PIC.
1313 (final_link_relocate): Likewise.
1314 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
1315 possible candidate function, and set pic_call for those that will
1316 only have a .plt entry for the PIC call stub.
1317 (hppa_handle_PIC_calls): Set maybe_pic_call.
1318
13192001-03-12 DJ Delorie <dj@redhat.com>
1320
1321 * elf32-sh.c (sh_elf_relocate_section): Only relocation
1322 R_SH_DIR8WP* relocs if they're against external symbols, else
1323 they're just for relaxing. Validate the reloc values.
1324
13252001-03-12 Stefan Geuken <mail@stefan-geuken.de>
1326
1327 * binary.c (bfd_external_binary_architecture): Declare.
1328 (binary_object_p): If bfd_external_binary_architecture is defined,
1329 set the architecture to this string.
1330
13312001-03-11 Philip Blundell <philb@gnu.org>
1332
1333 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
1334 entries that could serve as a definition for a weak symbol.
1335
13362001-03-08 Nick Clifton <nickc@redhat.com>
1337
1338 * Most files: Update copyright notices using Perl script created
1339 by Kevin Buettner <kevinb@redhat.com>.
1340
13412001-03-07 Nick Clifton <nickc@redhat.com>
1342
1343 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
1344 prior patch on ! defined OLD_ARM_ABI.
1345
13462001-03-07 Andreas Jaeger <aj@suse.de>
1347
1348 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
1349 some relocation values.
1350
13512001-03-06 Nick Clifton <nickc@redhat.com>
1352
1353 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
1354 of offset in BLX(1) instruction.
1355 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
1356 offset in BLX(1) instruction.
1357 Fix formatting.
1358
13592001-03-06 Nick Clifton <nickc@redhat.com>
1360
1361 * coff-arm.c (coff_arm_reloc_type_lookup): Add
1362 BFD_RELOC_THUMB_PCREL_BLX.
1363
13642001-03-06 Igor Shevlyakov <igor@windriver.com>
1365
1366 * archures.c (bfd_default_scan): Add Coldfire CPUs.
1367 * bfd-in2.h: Regenerate.
1368 * cpu-m68k.c: Add Coldfire CPUs for arch table.
1369 * ieee.c (ieee_write_processor): Set proper id for
1370 Coldfire CPUs.
1371
13722001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
1373
1374 * configure.in: Add s390 target.
1375 * configure: Regenerate.
1376
13772001-02-28 Andreas Jaeger <aj@suse.de>
1378
1379 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
1380 to addend.
1381
13822001-02-28 Philip Blundell <pb@futuretv.com>
1383
1384 * elf32-arm.h: Update mentions of renamed EF_xx constants.
1385 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
1386
13872001-02-27 H.J. Lu <hjl@gnu.org>
1388
1389 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
1390 abfd->tdata.aout_data == NULL.
1391
13922001-02-27 Alan Modra <alan@linuxcare.com.au>
1393
1394 * elf32-hppa.c: Correct field selector in stub comments.
1395 (clobber_millicode_symbols): Formatting fix.
1396
1397 * configure.in: Bump version to 2.11.90.
1398 * configure: Regenerate.
1399 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
1400 (CFILES): $SOURCE_CFILES + generated C files.
1401 (POTFILES): Include $HFILES not $SOURCE_HFILES.
1402 Run "make dep-am"
1403 * Makefile.in: Regenerate.
1404 * doc/Makefile.in: This too.
1405
14062001-02-26 Timothy Wall <twall@cygnus.com>
1407
1408 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
1409 comments.
1410
14112001-02-26 Nick Clifton <nickc@redhat.com>
1412
1413 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
1414 up, replacing multiple if statements with a switch.
1415 (handle_COMDAT): New function.
1416
14172001-02-26 H.J. Lu <hjl@gnu.org>
1418
1419 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
1420 a warning for section flags we do not handle instead of
1421 aborting.
1422
14232001-02-26 Andreas Jaeger <aj@suse.de>
1424
1425 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
1426
14272001-02-22 Timothy Wall <twall@cygnus.com>
1428
1429 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
1430 * configure.in: Add objects for elf64_ia64_aix vectors.
1431 * configure: Regenerated.
1432 * configure.host: Recognize ia64-*-aix*.
1433 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
1434 for AIX. AIX5 requires most relocations to be dynamic (*all*
1435 binaries are somewhat similar to shared libraries).
1436 * targets.c: Add elf64_ia64_aix vectors.
1437
14382001-02-21 David Mosberger <davidm@hpl.hp.com>
1439
1440 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
1441 C8 said "1" instead of "8". Clarify error string for IMM22:
1442 "signed integer" instead of just "integer".
1443
14442001-02-20 Andreas Jaeger <aj@suse.de>
1445
1446 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
1447 PLT entries that could serve as a definition for a weak symbol.
1448
14492001-02-19 Jakub Jelinek <jakub@redhat.com>
1450
1451 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
1452 entries that could serve as a definition for a weak symbol.
1453 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
1454
14552001-02-18 David O'Brien <obrien@FreeBSD>
1456
1457 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
1458 FreeBSD/i386-CURRENT differently until I can figure out the needed
1459 corefile changes.
1460 * configure: Regenerate.
1461 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
1462 FreeBSD/PowerPC, and FreeBSD/sparc64.
1463
14642001-02-18 lars brinkhoff <lars@nocrew.org>
1465
1466 * Makefile.am: Add PDP-11 a.out target.
1467 * config.bfd: Likewise.
1468 * configure.in: Likewise.
1469 * targets.c: Likewise.
1470 * archures.c: Likewise.
1471 * bfd-in2.h: Likewise. Add PDP-11 relocations.
1472 * libbfd.h: Add PDP-11 relocations.
1473 * reloc.c: Likewise.
1474 * cpu-pdp11.c: New file.
1475 * pdp11.c: New file.
1476
1477 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
1478 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1479 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1480 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
1481 (GET_MAGIC): New macro.
1482 (PUT_MAGIC): Likewise.
1483 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
1484
14852001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
1486
1487 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
1488 multiarch needs it).
1489
14902001-02-18 H.J. Lu <hjl@gnu.org>
1491
1492 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
1493 index.
1494
14952001-02-18 Kazu Hirata <kazu@hxi.com>
1496
1497 * vms-misc.c: Fix formatting.
1498
14992001-02-16 Kazu Hirata <kazu@hxi.com>
1500
1501 * vms.c: Fix formatting.
1502
15032001-02-14 H.J. Lu <hjl@gnu.org>
1504
1505 * elf.c (elf_find_function): New function.
1506 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
1507 the file name and function name.
1508
15092001-02-14 Nick Clifton <nickc@redhat.com>
1510
1511 * ecoff.c (bfd_debug_section): Update to initialise new fields in
1512 asection structure.
1513
1514 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
1515 (BFD64_BACKENDS): Add pepigen.c
1516 Add rules to create peigen.c and pepigen.c from peXXigen.c.
1517
1518 * Makefile.in: Regenerate.
1519 * configure: Regenerate.
1520 * po/POTFILES.in: Regenerate.
1521 * po/bfd.pot: Regenerate.
1522
15232001-02-14 H.J. Lu <hjl@gnu.org>
1524
1525 * libcoff-in.h (pe_tdata): Add members target_subsystem and
1526 force_minimum_alignment.
1527
15282001-02-14 Bo Thorsen <bo@suse.de>
1529
1530 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
1531 (elf64_86_64_size_info): Struct added to fix a problem
1532 with the hashtable string entries.
1533 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
1534 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
1535 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
1536 remove the FIXME for this.
1537 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
1538 section. Also removed the FIXME for it.
1539 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
1540 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
1541 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
1542
15432001-02-13 Richard Henderson <rth@redhat.com>
1544
1545 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
1546 and not user provided.
1547
15482001-02-13 Kazu Hirata <kazu@hxi.com>
1549
1550 * vms.c (vms_print_symbol): Remove unreachable code.
1551
1552 * rs6000-core.c: Fix formatting.
1553
15542001-02-13 David Mosberger <davidm@hpl.hp.com>
1555
1556 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
1557 as _bfd_XXi_only_swap_filehdr_out.
1558 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
1559 pe->force_minimum_alignment to TRUE.
1560 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
1561 PEI_TARGET_SUBSYSTEM.
1562 (pe_print_private_bfd_data): Call
1563 _bfd_XX_print_private_bfd_data_common() instead of
1564 _bfd_pe_print_private_bfd_data_common().
1565 (pe_bfd_copy_private_bfd_data): Call
1566 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
1567 _bfd_pe_bfd_copy_private_bfd_data_common().
1568 (coff_bfd_copy_private_section_data): Define as
1569 _bfd_XX_bfd_copy_private_section_data instead of
1570 _bfd_pe_bfd_copy_private_section_data.
1571 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
1572 of a _bfd_pe_get_symbol_info.
1573
1574 * peigen.c: Delete.
1575
1576 * peXXigen.c: Renamed from peigen.c.
1577 (COFF_WITH_XX): Define this macro (will get expanded into
1578 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
1579 compiled as peigen.c or pepigen.c.
1580 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
1581 define the canonical PEP structures and definitions.
1582 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
1583 effect, enforce minimum file and section alignments. If
1584 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
1585 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
1586 so, by default, this is a no-op).
1587
1588 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
1589 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
1590 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
1591 _bfd_pefoo if it's not defined. Use these macros to define
1592 coff swap macros.
1593
1594 * libcoff.h (pe_tdata): Add members target_subsystem and
1595 force_minimum_alignment.
1596
1597 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
1598 COFF_WITH_pep.
1599 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
1600
1601 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
1602 peigen.lo.
1603
1604 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
1605 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
1606 PEPAOUTHDR.
1607
1608 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
1609 (BFD64_BACKENDS_CFILES): Mention pepigen.c
1610 (peigen.c): Add rule to generate from peXXigen.c.
1611 (pepigen.c): Ditto.
1612 (pepigen.lo): List dependencies for pepigen.lo.
1613
16142001-02-13 Alan Modra <alan@linuxcare.com.au>
1615
1616 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
1617 $global$ referenced but not defined, set its value here.
1618
16192001-02-09 Bo Thorsen <bo@suse.de>
1620
1621 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
1622 alignment to 3.
1623 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
1624 and relocation.
1625 (elf64_x86_64_relocate_section): Fix formatting.
1626 (elf64_x86_64_relocate_section): Fix addend for relocation of
1627 R_X86_64_(8|16|32|PC8|PC16|PC32).
1628
16292001-02-12 Jan Hubicka <jh@suse.cz>
1630
1631 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
1632
16332001-02-11 H.J. Lu <hjl@gnu.org>
1634
1635 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
1636 alignment.
1637
16382001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1639
1640 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
1641 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
1642 relocations against dynsym symbols.
1643
1644 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
1645 the R_MIPS_26 relocation.
1646 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
1647 the R_MIPS_26 relocation.
1648 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
1649 relocation.
1650 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
1651 the R_MIPS_26 relocation.
1652 (mips_elf64_howto_table_rela): Likewise.
1653
1654 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
1655 member to mark symbols that have non-CALL relocations against
1656 them.
1657 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
1658 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
1659 R_MIPS_GOT16.
1660 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
1661 non-CALL relocation against it is encountered.
1662 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
1663 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
1664 no_fn_stub is not set.
1665
1666 * elf32-mips.c (mips_elf_output_extsym): Get the output section
1667 information from the real symbol for indirect ones.
1668 Check no_fn_stub to find out if a symbol has a function stub
1669 indeed.
1670
16712001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1672
1673 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
1674 * Makefile.in: Regenerate.
1675
16762001-02-09 David Mosberger <davidm@hpl.hp.com>
1677
1678 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
1679 true if section name is an unwind table section name.
1680 (elfNN_ia64_additional_program_headers): Count each unwind section
1681 separately.
1682 (elfNN_ia64_modify_segment_map): Install one unwind program header
1683 for each unwind separate section. Note: normally the linker
1684 script merges the unwind sections that go into a single segment,
1685 so this still generates at most one unwind program header per
1686 segment.
1687
1688 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
1689 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
1690 (elfNN_ia64_fake_sections): Mark sections with names that start
1691 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
1692 unwind section.
1693
1694 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
1695 Use it to make sh_info in unwind section point to the text section
1696 it applies to.
1697
16982001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1699
1700 * Makefile.am: Add linux target for S/390.
1701 * archures.c: Likewise.
1702 * bfd-in2.h: Likewise.
1703 * config.bfd: Likewise.
1704 * configure.in: Likewise.
1705 * elf.c: Likewise.
1706 * libbfd.h: Likewise.
1707 * targets.c: Likewise.
1708 * cpu-s390.c: New file.
1709 * elf32-s390.c: New file.
1710 * elf64-s390.c: New file.
1711
17122001-02-09 Nick Clifton <nickc@redhat.com>
1713
1714 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
1715 ImageBase. This has already been done by coff_swap_hdr_in.
1716
17172001-02-09 Jakub Jelinek <jakub@redhat.com>
1718
1719 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
1720
17212001-02-09 Jakub Jelinek <jakub@redhat.com>
1722
1723 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
1724 (sparc64_elf_relocate_section): Likewise.
1725
17262001-02-09 Mark Kettenis <kettenis@gnu.org>
1727
1728 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
1729 similar to R_SPARC_32.
1730 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
1731
17322001-02-08 H.J. Lu <hjl@gnu.org>
1733
1734 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
1735 relocation entries for weak definitions when building DSO with
1736 -Bsymbolic.
1737
17382001-02-08 Richard Henderson <rth@redhat.com>
1739
1740 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
1741 before visibility. Locally defined protected symbols are not
1742 dynamic.
1743
17442001-02-08 Geoffrey Keating <geoffk@redhat.com>
1745
1746 * config.bfd: Enable coff64 for rs6000-*. Patch from
1747 <hzoli@austin.ibm.com>.
1748
17492001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
1750
1751 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
1752 found, do not attempt to find dwarf2 info before returning.
1753
17542001-02-07 Jakub Jelinek <jakub@redhat.com>
1755
1756 * elflink.h (is_global_symbol_definition): Rename to
1757 is_global_data_symbol_definition and have it reject function
1758 symbols.
1759 (elf_link_is_defined_archive_symbol): Use renamed function.
1760
17612001-02-07 Todd Vierling <tv@wasabisystems.com>
1762
1763 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
1764 * libbfd.h (bfd_target_vector): Likewise.
1765 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
1766 make static; create pointer reference named bfd_target_vector.
1767 (_bfd_target_vector_entries): Calculate this based on the array
1768 typed _bfd_target_vector.
1769
17702001-02-06 H.J. Lu <hjl@gnu.org>
1771
1772 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
1773 internal symbols are not dynamic.
1774 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
1775
17762001-02-06 Nick Clifton <nickc@redhat.com>
1777
1778 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
1779 that it will not be pulled into the list of files that make up
1780 po/POTFILES.in.
1781 * Makefile.in: Regenerate.
1782 * po/bfd.pot: Regenerate.
1783
17842001-02-06 H.J. Lu <hjl@gnu.org>
1785
1786 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
1787 checking.
1788 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
1789 external_PEI_IMAGE_hdr.
1790
17912001-02-06 Kazu Hirata <kazu@hxi.com>
1792
1793 * elf-m10200.c: Fix formatting.
1794
17952001-02-04 Nick Clifton <nickc@redhat.com>
1796
1797 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
1798 rel, it will be handled later on.
1799
18002001-02-02 Fred Fish <fnf@ninemoons.com>
1801
1802 * Makefile.in: Fix typo.
1803
18042001-02-01 Kazu Hirata <kazu@hxi.com>
1805
1806 * elf-m10300.c: Fix formatting.
1807
18082001-01-30 Alan Modra <alan@linuxcare.com.au>
1809
1810 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
1811 (elf_backend_get_symbol_type): Define.
1812 (elf64_hppa_object_p): Set architecture and machine from elf
1813 header flags.
1814
18152001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
1816
1817 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
1818 before mdebug.
1819
18202001-01-26 Richard Henderson <rth@redhat.com>
1821
1822 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
1823 for non-default visibility.
1824 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
1825 delete ugly macro and replace with pretty function.
1826
18272001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
1828
1829 * coff-go32.c: Update copyright.
1830 * coff-stgo32.c: Likewise.
1831 * coff-go32.c (COFF_LONG_FILENAMES): Define.
1832 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
1833 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
1834 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
1835
18362001-01-25 Kazu Hirata <kazu@hxi.com>
1837
1838 * bfd-in2.h: Rebuild.
1839 * libbfd.h: Likewise.
1840
18412001-01-23 H.J. Lu <hjl@gnu.org>
1842
1843 * bfd-in2.h: Rebuild.
1844
18452001-01-23 H.J. Lu <hjl@gnu.org>
1846
1847 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
1848 is NULL or PRIV(vms_rec) is outside of the buffer.
1849
18502001-01-23 Kazu Hirata <kazu@hxi.com>
1851
1852 * coff64-rs6000.c: Fix formatting.
1853 * coff-arm.c: Likewise.
1854 * coffgen.c: Likewise.
1855 * cofflink.c: Likewise.
1856 * coff-mcore.c: Likewise.
1857 * coff-mips.c: Likewise.
1858 * coff-pmac.c: Likewise.
1859 * coff-ppc.c: Likewise.
1860 * coff-rs6000.c: Likewise.
1861 * elf32.c: Likewise.
1862 * elf32-fr30.c: Likewise.
1863 * elf32-i370.c: Likewise.
1864 * elf32-i860.c: Likewise.
1865 * elf32-m32r.c: Likewise.
1866 * elf32-m68k.c: Likewise.
1867 * elf32-mcore.c: Likewise.
1868 * elf32-ppc.c: Likewise.
1869 * elf32-sh.c: Likewise.
1870 * elf32-v850.c: Likewise.
1871 * elf64-alpha.c: Likewise.
1872 * elf64-sparc.c: Likewise.
1873 * elflink.c: Likewise.
1874 * elflink.h: Likewise.
1875 * elf-m10200.c: Likewise.
1876 * elf-m10300.c: Likewise.
1877 * elfxx-ia64.c: Likewise.
1878
1879 * aoutx.h: Fix formatting.
1880 * bfd.c: Likewise.
1881 * bfd-in2.h: Likewise.
1882 * bfd-in.h: Likewise.
1883 * cpu-i386.c: Likewise.
1884 * cpu-m68hc11.c: Likewise.
1885 * dwarf2.c: Likewise.
1886 * elf64-x86-64.c: Likewise.
1887 * format.c: Likewise.
1888 * freebsd.h: Likewise.
1889 * hash.c: Likewise.
1890 * hp300hpux.c: Likewise.
1891 * hppabsd-core.c: Likewise.
1892 * hpux-core.c: Likewise.
1893
18942001-01-22 Bo Thorsen <bo@suse.de>
1895
1896 * elf64-x86-64.c: Added PIC support for X86-64.
1897 (elf64_x86_64_link_hash_newfunc): Function added.
1898 (elf64_x86_64_link_hash_table_create): Likewise.
1899 (elf64_x86_64_check_relocs): Likewise.
1900 (elf64_x86_64_gc_mark_hook): Likewise.
1901 (elf64_x86_64_gc_sweep_hook): Likewise.
1902 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
1903 (elf64_x86_64_size_dynamic_sections): Likewise.
1904 (elf64_x86_64_discard_copies): Likewise.
1905 (elf64_x86_64_finish_dynamic_symbol): Likewise.
1906 (elf64_x86_64_finish_dynamic_sections): Likewise.
1907 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
1908
19092001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1910
1911 * Makefile.am (install-data-local): Make use of $(DESTDIR).
1912 * Makefile.in: Regenerate.
1913
19142001-01-21 Kazu Hirata <kazu@hxi.com>
1915
1916 * coff-a29k.c: Fix formatting.
1917
19182001-01-19 H.J. Lu <hjl@gnu.org>
1919
1920 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
1921 relocation section names.
1922 (elf_i386_relocate_section): Report files with bad relocation
1923 section names and return false.
1924
19252001-01-17 Bo Thorsen <bo@suse.de>
1926
1927 * targets.c: Alphabetize list of xvecs.
1928
19292001-01-14 Alan Modra <alan@linuxcare.com.au>
1930
1931 * config.bfd: Add linux target variant for elfxx-hppa.
1932 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
1933 bfd_elf64_hppa_linux_vec.
1934 * configure: Regenerate.
1935 * elf64-hppa.c: Include elf64-target.h again to support linux
1936 target variant.
1937 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
1938 * elf32-hppa.c: Include elf32-target.h again to support linux
1939 target variant.
1940 (elf32_hppa_post_process_headers): New function.
1941 (elf_backend_post_process_headers): Define.
1942 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
1943 bfd_elf32_hppa_linux_vec.
1944
1945 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
1946 and data_segment_base fields.
1947 (elf32_hppa_link_hash_table_create ): Init them.
1948 (elf32_hppa_check_relocs): Update comments.
1949 (hppa_record_segment_addr): New function.
1950 (elf32_hppa_relocate_section): Call it.
1951 (final_link_relocate): Handle R_PARISC_SEGREL32.
1952 (elf32_hppa_final_link): New function.
1953 (bfd_elf32_bfd_final_link): Define to call it.
1954 (hppa_unwind_entry_compare): New function.
1955 * cache.c (bfd_open_file): Create files in write+read mode.
1956
1957 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
1958 SEGREL32 and numerous other relocs. Change duplicate
1959 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
1960
1961 * opncls.c (bfd_fdopenr): Add parens like the comment says around
1962 O_ACCMODE.
1963
1964 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
1965 .plt entries for DT_INIT and DT_FINI.
1966 (elf32_hppa_finish_dynamic_sections): Remove special handling of
1967 DT_INIT and DT_FINI.
1968
1969 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
1970 offsets for stub .plt access if wide mode. Check offset in range.
1971
19722001-01-13 Nick Clifton <nickc@redhat.com>
1973
1974 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
1975 line.
1976
1977 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
1978 line.
1979
19802001-01-12 Alan Modra <alan@linuxcare.com.au>
1981
1982 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
1983 * configure: Regenerate.
1984
19852001-01-11 Peter Targett <peter.targett@arccores.com>
1986
1987 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
1988 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
1989 * cpu-arc.c (arch_info_struct): Add entries for variants.
1990 (bfd_arc_arch) Set default to bfd_mach_arc_5.
1991 (arc_get_mach) Don't assume machine names prefixed arc- before
1992 testing.
1993 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
1994 selections.
1995 (arc_elf_final_write_processing) Likewise.
1996 (ELF_MACHINE_CODE) Use EM_ARC.
1997
19982001-01-10 Nick Clifton <nickc@redhat.com>
1999
2000 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
2001
20022001-01-07 Philip Blundell <philb@gnu.org>
2003
2004 * README: Replace `bug-gnu-utils@gnu.org' with
2005 `bug-binutils@gnu.org'.
2006
20072001-01-04 Kazu Hirata <kazu@hxi.com>
2008
2009 * som.c: Fix formatting.
2010
20112001-01-03 Kazu Hirata <kazu@hxi.com>
2012
2013 * ecoffswap.h: Fix formatting.
2014 * elf-bfd.h: Likewise.
2015 * elfarm-nabi.c: Likewise.
2016 * elfarm-oabi.c: Likewise.
2017 * elfcode.h: Likewise.
2018 * elfcore.h: Likewise.
2019 * elflink.c: Likewise.
2020 * elflink.h: Likewise.
2021 * elfxx-ia64.c: Likewise.
2022 * elfxx-target.h: Likewise.
2023 * libbfd.c: Likewise
2024 * linker.c: Likewise.
2025 * lynx-core.c: Likewise.
2026
20272001-01-02 Kazu Hirata <kazu@hxi.com>
2028
2029 * pc532-mach.c: Fix formatting.
2030 * pe-arm.c: Likewise.
2031 * pe-i386.c: Likewise.
2032 * pe-mips.c: Likewise.
2033 * pe-ppc.c: Likewise.
2034 * pe-sh.c: Likewise.
2035 * pei-mips.c: Likewise.
2036 * pei-sh.c: Likewise.
2037 * peicode.h: Likewise.
2038 * ppcboot.c: Likewise.
2039 * ptrace-core.c: Likewise.
2040
20412001-01-01 Kazu Hirata <kazu@hxi.com>
2042
2043 * reloc.c: Fix formatting.
2044 * riscix.c: Likewise.
2045 * rs6000-core.c: Likewise.
2046 * xcoff-target.h: Likewise.
2047
20482000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
2049
2050 * elfcode.h (elf_object_p): Also restore the bfd mach field on
2051 error, by calling bfd_default_set_arch_mach with incoming
2052 values.
2053
20542000-12-26 Kazu Hirata <kazu@hxi.com>
2055
2056 * vaxnetbsd.c: Fix formatting.
2057 * versados.c: Likewise.
2058 * vms-gsd.c: Likewise.
2059 * vms-hdr.c: Likewise.
2060 * vms-misc.c: Likewise.
2061
20622000-12-25 Alexandre Oliva <aoliva@redhat.com>
2063
2064 * archive.c (coff_write_armap): Don't write more than symbol_count
2065 `archive_member_file_ptr's.
2066
20672000-12-25 Kazu Hirata <kazu@hxi.com>
2068
2069 * vms-tir.c: Fix formatting.
2070
20712000-12-23 Kazu Hirata <kazu@hxi.com>
2072
2073 * vms.c: Fix formatting.
2074 * vms.h: Likewise.
2075
20762000-12-21 Santeri Paavolainen <santtu@ssh.com>
2077
2078 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
2079
2080 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
2081
2082 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
2083 arithmetic.
2084
2085 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
2086
2087 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
2088
20892000-12-21 Richard Sandiford <rsandifo@redhat.com>
2090
2091 * libbfd.c (bfd_get_bits): Added
2092 (bfd_put_bits): Likewise
2093 * bfd-in.h: Declared the above.
2094 * bfd-in2.h: Regenerated.
2095
20962000-12-20 Kazu Hirata <kazu@hxi.com>
2097
2098 * targets.c: Fix formatting.
2099 * tekhex.c: Likewise.
2100 * trad-core.c: Likewise.
2101
21022000-12-19 Kazu Hirata <kazu@hxi.com>
2103
2104 * sco5-core.c: Fix formatting.
2105 * section.c: Likewise.
2106 * sparclinux.c: Likewise.
2107 * sparclynx.c: Likewise.
2108 * sparcnetbsd.c: Likewise.
2109 * srec.c: Likewise.
2110 * stabs.c: Likewise.
2111 * stab-syms.c: Likewise.
2112 * sunos.c: Likewise.
2113 * syms.c: Likewise.
2114 * sysdep.h: Likewise.
2115
21162000-12-18 Nick Clifton <nickc@redhat.com>
2117
2118 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
2119 defined.
2120 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
2121 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
2122
21232000-12-18 Nick Clifton <nickc@redhat.com>
2124
2125 * vms-misc.c (_bfd_vms_get_record): Add default case to
2126 file_format switch.
2127
21282000-12-15 Miloslav Trmac <mitr@volny.cz>
2129
2130 * elfcore.h (elf_core_file_p): Move to the start of the program
2131 headers before attempting to read them.
2132
21332000-12-14 Kazu Hirata <kazu@hxi.com>
2134
2135 * peigen.c: Fix formatting.
2136 * som.c: Likewise.
2137 * som.h: Likewise.
2138
21392000-12-13 Kazu Hirata <kazu@hxi.com>
2140
2141 * peigen.c: Fix formatting.
2142
21432000-12-12 Jim Wilson <wilson@redhat.com>
2144
2145 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
2146
21472000-12-08 Mark Salter <msalter@redhat.com>
2148
2149 * binary.c (binary_set_section_contents): Ignore sections
2150 with zero size.
2151
21522000-12-12 Kazu Hirata <kazu@hxi.com>
2153
2154 * m68klinux.c: Fix formatting.
2155 * m68knetbsd.c: Likewise.
2156 * mipsbsd.c: Likewise.
2157 * netbsd-core.c: Likewise.
2158 * netbsd.h: Likewise.
2159 * newsos3.c: Likewise.
2160 * nlm32-alpha.c: Likewise.
2161 * nlm32-i386.c: Likewise.
2162 * nlm32-ppc.c: Likewise.
2163 * nlm32-sparc.c: Likewise.
2164 * nlmcode.h: Likewise.
2165 * nlmswap.h: Likewise.
2166 * nlm-target.h: Likewise.
2167 * ns32knetbsd.c: Likewise.
2168
21692000-12-10 Fred Fish <fnf@be.com>
2170
2171 * elflink.h (elf_link_output_extsym): Don't complain about undefined
2172 symbols in shared objects if allow_shlib_undefined is true.
2173
21742000-12-12 Nick Clifton <nickc@redhat.com>
2175
2176 * cpu-sh.c: Fix formattng.
2177 * elf.c: Fix formattng.
2178 * elf32-mips.c: Fix formattng.
2179 * elf32-sh.c: Fix formattng.
2180 * elf64-alpha.c: Fix formattng.
2181
21822000-12-09 Nick Clifton <nickc@redhat.com>
2183
2184 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
2185 dwarf2_find_line_info as last parameter to invocation of
2186 _bfd_dwarf2_find_nearest_line.
2187 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
2188 dwarf2_find_line_info as last parameter to invocation of
2189 _bfd_dwarf2_find_nearest_line.
2190
21912000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
2192
2193 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
2194 (BFD_LIBS): ...to here.
2195 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
2196 (BFD_LIBS_CFILES): ...to here.
2197 * Makefile.in: Regenerate.
2198 * configure.in: Remove dwarf.lo from the elf shell variable.
2199 * configure: Regenerate.
2200 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
2201 * libcoff.h: Regenerate.
2202 * coffgen.c (coff_find_nearest_line): Call
2203 _bfd_dwarf2_find_nearest_line.
2204 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
2205 accordingly.
2206 (read_abbrevs): Likewise
2207 (decode_line_info): Likewise.
2208 (parse_comp_unit): Likewise.
2209 (comp_unit_find_nearest_line): Likewise.
2210 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
2211 * libbfd.h: Regenerate.
2212 * elf.c (_bfd_elf_find_nearest_line): Update call.
2213 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
2214 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
2215 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
2216 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
2217 (styp_to_sec_flags): Handle DWARF2 sections.
2218 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
2219 to _bfd_find_nearest_line.
2220 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
2221 call to _bfd_find_nearest_line.
2222
22232000-12-08 Kazu Hirata <kazu@hxi.com>
2224
2225 * coffgen.c: Fix formatting.
2226 * elf-m10300.c: Likewise.
2227 * elf32-i386.c: Likewise.
2228 * elf32-i960.c: Likewise.
2229 * elf32-m68k.c: Likewise.
2230 * elf32-mcore.c: Likewise.
2231 * elf32-ppc.c: Likewise.
2232 * elf32-sh.c: Likewise.
2233 * elf32-sparc.c: Likewise.
2234 * elf32-v850.c: Likewise.
2235 * elf64-alpha.c: Likewise.
2236 * elf64-hppa.c: Likewise.
2237 * elf64-mips.c: Likewise.
2238 * elf64-sparc.c: Likewise.
2239
22402000-12-07 Kazu Hirata <kazu@hxi.com>
2241
2242 * elf32-ppc.c: Fix formatting.
2243 * elf64-x86-64.c: Likewise.
2244
22452000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
2246
2247 From Ralf Baechle <ralf@gnu.org>
2248
2249 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
2250 BFDs containing no sections or empty .text, .data or .bss sections
2251 to be merged, regardless of their flags.
2252
22532000-12-06 Kazu Hirata <kazu@hxi.com>
2254
2255 * elf32-m32r.c: Fix formatting.
2256 * elf32-m68hc11.c: Likewise.
2257 * elf32-m68hc12.c: Likewise.
2258 * elf32-m68k.c: Likewise.
2259 * elf32-mcore.c: Likewise.
2260 * elf32-pj.c: Likewise.
2261 * elf32-ppc.c: Likewise.
2262
22632000-12-05 Kazu Hirata <kazu@hxi.com>
2264
2265 * elf32-fr30.c: Fix formatting.
2266 * elf32-hppa.c: Likewise.
2267 * elf32-i370.c: Likewise.
2268 * elf32-i386.c: Likewise.
2269 * elf32-i860.c: Likewise.
2270 * elf32-i960.c: Likewise.
2271
22722000-12-03 Kazu Hirata <kazu@hxi.com>
2273
2274 * elf32-arm.h: Fix formatting.
2275 * elf32-avr.c: Likewise.
2276 * elf32-cris.c: Likewise.
2277 * elf32-d10v.c: Likewise.
2278 * elf32-d30v.c: Likewise.
2279 * elf-hppa.h: Likewise.
2280 * elf-m10200.c: Likewise.
2281 * elf-m10300.c: Likewise.
2282
22832000-12-01 Chris Demetriou <cgd@sibyte.com>
2284
2285 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
2286 bfd_mach_mips32_4k. Update FIXME comment.
2287 * archures.c (bfd_mach_mips32): New constant.
2288 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2289 the latter, renumber it.
2290 * bfd-in2.h (bfd_mach_mips32): New constant.
2291 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2292 the latter, renumber it.
2293 * cpu-mips.c (I_mips32): New constant.
2294 (I_mips4K, I_mips32_4k): Rename the former to the latter.
2295 (arch_info_struct): Add bfd_mach_mips32 entry, replace
2296 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
2297 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
2298 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
2299 with E_MIPS_MACH_MIPS32_4K.
2300 (_bfd_mips_elf_final_write_processing): Replace
2301 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
2302 bfd_mach_mips32 case.
2303 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
2304 comparison with support for MIPS32.
2305 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
2306 MIPS32.
2307
2308 * aoutx.h (NAME(aout,machine_type)): Add cases for
2309 bfd_mach_mips5 and bfd_mach_mips64.
2310 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
2311 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
2312 * cpu_mips.c (I_mips5, I_mips64): New definitions.
2313 (arch_info_struct): Add entries for bfd_mach_mips5 and
2314 bfd_mach_mips64.
2315 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
2316 _bfd_mips_elf_print_private_bfd_data): Add cases for
2317 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
2318 (_bfd_mips_elf_final_write_processing): Add cases for
2319 bfd_mach_mips5 and bfd_mach_mips64.
2320
2321 * aoutx.h (NAME(aout,machine_type)): Add a
2322 bfd_mach_mips_sb1 case.
2323 * archures.c (bfd_mach_mips_sb1): New constant.
2324 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
2325 * cpu-mips.c (I_sb1): New constant.
2326 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
2327 * elf32-mips.c (elf_mips_mach): Add case for
2328 E_MIPS_MACH_SB1.
2329 (_bfd_mips_elf_final_write_processing): Add case for
2330 bfd_mach_mips_sb1.
2331
23322000-12-01 Joel Sherrill <joel@OARcorp.com>
2333
2334 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
2335 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2336 (sparc*-*-rtems*): Switched from a.out to ELF.
2337
23382000-11-30 Jan Hubicka <jh@suse.cz>
2339
2340 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
2341 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
2342 (elf64-x86-64.lo): Add dependencies.
2343 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
2344 bfd_mach_x86_64_intel_syntax.
2345 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
2346 * config.bfd (x86_64): Add.
2347 * configure.in: Add support for bfd_elf64_x86_64_vec.
2348 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
2349 (bfd_i386_arch, i8086_ar): Link in.
2350 * elf64-x86-64.c: New file.
2351 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
2352 * targets.c (bfd_elf64_x86_64_vec): Add.
2353 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
2354
23552000-11-30 Kazu Hirata <kazu@hxi.com>
2356
2357 * xcofflink.c: Fix formatting.
2358
23592000-11-28 Kazu Hirata <kazu@hxi.com>
2360
2361 * aoutx.h: Fix formatting.
2362 * bfd-in.h: Likewise.
2363 * bfd-in2.h: Likewise.
2364 * cache.c: Likewise.
2365 * cisco-core.c: Likewise.
2366 * coff64-rs6000.c: Likewise.
2367 * coffcode.h: Likewise.
2368 * coffswap.h: Likewise.
2369 * corefile.c: Likewise.
2370 * elf32-mips.c: Likewise.
2371
23722000-11-27 Kazu Hirata <kazu@hxi.com>
2373
2374 * aout-adobe.c: Fix formatting.
2375 * coff64-rs6000.c: Likewise.
2376 * coffgen.c: Likewise.
2377 * cofflink.c: Likewise.
2378
23792000-11-27 Philip Blundell <pb@futuretv.com>
2380
2381 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
2382 (obj_coff_strings_written): New accessor macro for above.
2383 * libcoff.h: Regenerate.
2384 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
2385 strings.
2386 * coffcode.h (coff_write_object_contents): No need to write out
2387 the string table if it's already been done.
2388
23892000-11-22 Philip Blundell <pb@futuretv.com>
2390
2391 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
2392 weak undefined symbols.
2393
23942000-11-24 Nick Clifton <nickc@redhat.com>
2395
2396 * archures.c (bfd_mach_arm_5TE): Define.
2397 (bfd_mach_arm+XScale): Define.
2398 * bfd-in2.h: Regenerate.
2399
2400 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
2401 BFD_RELOC_ARM_PCREL_BLX.
2402
2403 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
2404 XScale machine numbers.
2405
2406 * config.bfd (xscale-elf): Add target.
2407 (xscale-coff): Add target.
2408
2409 * cpu-arm.c: Add xscale machine name.
2410 Add v5t, v5te and XScale machine numbers.
2411
24122000-11-23 Kazu Hirata <kazu@hxi.com>
2413
2414 * aix386-core.c: Fix formatting.
2415
24162000-11-22 Jim Wilson <wilson@redhat.com>
2417
2418 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
2419 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
2420 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
2421 (ins_imms_scaled): Initialize sign_bit at function entry.
2422 (elf64_ia64_operands): Add missing initializers.
2423 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
2424 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
2425 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
2426 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
2427 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
2428 parameters.
2429 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
2430 and free_extsyms at function entry.
2431 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
2432 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
2433 (get_got): Delete unused local srel.
2434 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
2435 (elfNN_ia64_relocate_section): Delete unused local dynindx.
2436
24372000-11-21 Kazu Hirata <kazu@hxi.com>
2438
2439 * coff-a29k.c: Fix formatting.
2440 * coff-h8500.c: Likewise.
2441 * coff-i960.c: Likewise.
2442 * coff-ppc.c: Likewise.
2443 * coff-rs6000.c: Likewise.
2444 * coff-stgo32.c: Likewise.
2445 * coff-tic54x.c: Likewise.
2446 * coff-w65.c: Likewise.
2447 * cpu-h8500.c: Likewise.
2448 * cpu-hppa.c: Likewise.
2449 * cpu-ns32k.c: Likewise.
2450 * ecoff.c: Likewise.
2451 * ecofflink.c: Likewise.
2452
24532000-11-21 Nick Clifton <nickc@redhat.com>
2454
2455 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
2456 remove possibility of infinite loop.
2457
24582000-11-20 Kazu Hirata <kazu@hxi.com>
2459
2460 * aix386-core.c: Fix formatting.
2461 * aout-adobe.c: Likewise.
2462 * aout-arm.c: Likewise.
2463 * aout-encap.c: Likewise.
2464 * aout-ns32k.c: Likewise.
2465 * aout-target.h: Likewise.
2466 * aout-tic30.c: Likewise.
2467 * aoutf1.h: Likewise.
2468 * aoutx.h: Likewise.
2469 * archive.c: Likewise.
2470 * bfd-in.h: Likewise.
2471 * bfd-in2.h: Likewise.
2472 * bfd.c: Likewise.
2473 * bout.c: Likewise.
2474
24752000-11-17 H.J. Lu <hjl@gnu.org>
2476
2477 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
2478 pltoff entries for DT_INIT and DT_FINI.
2479 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
2480 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
2481 entries.
2482
24832000-11-16 Richard Henderson <rth@redhat.com>
2484
2485 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
2486 (allocate_dynrel_entries): Likewise.
2487 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
2488 (set_pltoff_entry): Likewise.
2489 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
2490 (elfNN_ia64_reloc_type_lookup): Likewise.
2491 (elfNN_ia64_install_value): Likewise.
2492 (elfNN_ia64_relocate_section): Likewise.
2493 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
2494 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
2495
24962000-11-16 Kazu Hirata <kazu@hxi.com>
2497
2498 * cpu-a29k.c: Fix formatting.
2499 * cpu-alpha.c: Likewise.
2500 * cpu-arm.c: Likewise.
2501 * cpu-avr.c: Likewise.
2502 * cpu-d10v.c: Likewise.
2503 * cpu-h8500.c: Likewise.
2504 * cpu-hppa.c: Likewise.
2505 * cpu-i370.c: Likewise.
2506 * cpu-i386.c: Likewise.
2507 * cpu-i960.c: Likewise.
2508 * cpu-ia64-opc.c: Likewise.
2509 * cpu-ia64.c: Likewise.
2510 * cpu-m32r.c: Likewise.
2511 * cpu-m68hc11.c: Likewise.
2512 * cpu-m68hc12.c: Likewise.
2513 * cpu-m68k.c: Likewise.
2514 * cpu-m88k.c: Likewise.
2515 * cpu-mips.c: Likewise.
2516 * cpu-ns32k.c: Likewise.
2517 * cpu-pj.c: Likewise.
2518 * cpu-powerpc.c: Likewise.
2519 * cpu-sh.c: Likewise.
2520 * cpu-sparc.c: Likewise.
2521 * cpu-tic54x.c: Likewise.
2522 * cpu-v850.c: Likewise.
2523 * cpu-vax.c: Likewise.
2524 * cpu-w65.c: Likewise.
2525 * cpu-we32k.c: Likewise.
2526 * cpu-z8k.c: Likewise.
2527 * dwarf1.c: Likewise.
2528 * dwarf2.c: Likewise.
2529
25302000-11-15 Kazu Hirata <kazu@hxi.com>
2531
2532 * coff-arm.c: Fix formatting.
2533 * coff-ppc.c: Likewise.
2534 * coff-rs6000.c: Likewise.
2535 * coff-sh.c: Likewise.
2536 * coff-sparc.c: Likewise.
2537 * coff-tic30.c: Likewise.
2538 * coff-tic54x.c: Likewise.
2539 * coff-tic80.c: Likewise.
2540 * coff-w65.c: Likewise.
2541 * coff-we32k.c: Likewise.
2542 * coff-z8k.c: Likewise.
2543
25442000-11-15 Richard Henderson <rth@redhat.com>
2545
2546 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
2547 section with the same ALLOC|LOAD flags as the source section.
2548
25492000-11-14 Jakub Jelinek <jakub@redhat.com>
2550
2551 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
2552 by STO_ALPHA constants.
2553
25542000-11-14 Kazu Hirata <kazu@hxi.com>
2555
2556 * coff-pmac.c: Fix formatting.
2557 * coff-ppc.c: Likewise.
2558
25592000-11-13 H.J. Lu <hjl@gnu.org>
2560
2561 * elflink.h (elf_link_add_object_symbols): Also add indirect
2562 symbols for common symbols with the default version.
2563
25642000-11-09 Philip Blundell <pb@futuretv.com>
2565
2566 * section.c (STD_SECTION): Set gc_mark flag.
2567
25682000-11-11 Kazu Hirata <kazu@hxi.com>
2569
2570 * coff-i960.c: Likewise.
2571 * coff-m68k.c: Likewise.
2572 * coff-m88k.c: Likewise.
2573 * coff-mcore.c: Likewise.
2574 * coff-mips.c: Likewise.
2575
25762000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
2577
2578 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
2579
25802000-11-10 Kazu Hirata <kazu@hxi.com>
2581
2582 * coff-h8300.c: Fix formatting.
2583 * coff-h8500.c: Likewise.
2584 * coff-i386.c: Likewise.
2585 * coff-i860.c: Likewise.
2586 * coff-i960.c: Likewise.
2587 * coff-ia64.c: Likewise.
2588
25892000-11-09 Kazu Hirata <kazu@hxi.com>
2590
2591 * archive.c: Fix formatting.
2592 * archures.c: Likewise.
2593
25942000-11-07 Richard Henderson <rth@redhat.com>
2595
2596 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
2597 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
2598 * section.c (bfd_set_section_contents): Call memcpy if
2599 section->contents set and location not equal to contents plus offset.
2600
26012000-11-08 Kazu Hirata <kazu@hxi.com>
2602
2603 * bfd-in.h: Fix formatting.
2604 * bfd-in2.h: Likewise.
2605 * bfd.c: Likewise.
2606 * binary.c: Likewise.
2607 * bout.c: Likewise.
2608 * coff-a29k.c: Likewise.
2609 * coff-alpha.c: Likewise.
2610 * coff-apollo.c: Likewise.
2611 * coff-aux.c: Likewise.
2612
26132000-11-07 Kazu Hirata <kazu@hxi.com>
2614
2615 * aix386-core.c: Fix formatting.
2616 * aoutf1.h: Likewise.
2617 * aoutx.h: Likewise.
2618 * archures.c: Likewise.
2619 * armnetbsd.c: Likewise.
2620
26212000-11-07 Alan Modra <alan@linuxcare.com.au>
2622
2623 * coff-h8300.c (special): Adjust reloc address.
2624
26252000-11-06 Steve Ellcey <sje@cup.hp.com>
2626
2627 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
2628 to differentiate elf32 and elf64 on ia64.
2629 * bfd-in2.h: Regenerate.
2630 * config.bfd: Add target for "ia64*-*-hpux*".
2631 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
2632 * configure: Regenerate.
2633 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
2634 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
2635
2636 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
2637 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
2638 * Makefile.in: Regnerate.
2639 * elf64-ia64.c: Deleted.
2640 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
2641
26422000-11-06 Kazu Hirata <kazu@hxi.com>
2643
2644 * aout-adobe.c: Fix formatting.
2645 * aout-arm.c: Likewise.
2646 * aout-cris.c: Likewise.
2647 * aout-encap.c: Likewise.
2648 * aout-ns32k.c: Likewise.
2649 * aout-target.h: Likewise.
2650 * aout-tic30.c: Likewise.
2651
26522000-11-05 Philip Blundell <philb@gnu.org>
2653
2654 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
2655 BFDs containing no sections to be merged, regardless of their flags.
2656
26572000-11-04 Philip Blundell <philb@gnu.org>
2658
2659 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
2660 if a relocation for an undefined symbol also results in an
2661 overflow.
2662
26632000-11-06 Christopher Faylor <cgf@cygnus.com>
2664
2665 * config.bfd: Add support for Sun Chorus.
2666
26672000-11-05 David O'Brien <obrien@FreeBSD.org>
2668
2669 * configure.in: Recognize alpha-*-freebsd*.
2670 * configure: Regenerate.
2671
26722000-11-02 Luciano Gemme <ishitawa@yahoo.com>
2673
2674 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
2675 (Chunk): New global variable set by a parameter in objcopy.c.
2676 (S3Forced): New global variable set by a parameter in
2677 objcopy.c.
2678 (srec_set_section_contents): If S3Forced is true, always generate
2679 S3 records.
2680 (srec_write_section): Use 'Chunk' to limit maximum length of S
2681 records.
2682
26832000-11-02 Per Lundberg <plundis@chaosdev.org>
2684
2685 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
2686 * Makefile.in: Regenerate.
2687 * bfd-in2.h: Regenerate.
2688 * po/bfd.pot: Regenerate.
2689
26902000-10-31 Philip Blundell <philb@gnu.org>
2691
2692 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
2693 EF_SOFT_FLOAT if it is defined.
2694
26952000-10-27 Philip Blundell <philb@gnu.org>
2696
2697 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
2698 attempts to mix PIC code with non-PIC, just mark the output as
2699 being position dependent.
2700 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
2701 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
2702 all mismatches, not just the first one.
2703
27042000-10-25 Chris Demetriou <cgd@sibyte.com>
2705
2706 * ieee.c (ieee_archive_p): Plug one of many possible
2707 memory leaks in error handling.
2708
27092000-10-20 Jakub Jelinek <jakub@redhat.com>
2710
2711 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
2712 elf32_sparc_object_p, elf32_sparc_final_write_processing):
2713 Support v8plusb.
2714 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
2715 sparc64_elf_object_p): Support v9b.
2716 * archures.c: Declare v8plusb and v9b machines.
2717 * bfd-in2.h: Ditto.
2718 * cpu-sparc.c: Ditto.
2719
27202000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2721
2722 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
2723 of a GOT reloc.
2724
2725 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
2726 (SYMBOL_CALLS_LOCAL): New macro.
2727 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
2728 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
2729 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
2730 (ppc_elf_relocate_section): Use flag variable to determine
2731 whether the relocation refers to a local symbol.
2732 Test whether a PLTREL24 reloc will produce a reloc by looking
2733 to see whether a PLT entry was made.
2734
27352000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2736
2737 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
2738 entries that could serve as a definition for a weak symbol.
2739
27402000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
2741
2742 From Ralf Baechle <ralf@gnu.org>
2743
2744 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
2745 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
2746 against local symbols.
2747 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
2748
27492000-10-12 Alan Modra <alan@linuxcare.com.au>
2750
2751 * section.c (struct sec): Add kept_section.
2752 (struct bfd_comdat_info): Remove sec, we can use above.
2753 (STD_SECTION): Add initializer.
2754 (bfd_make_section_anyway): Init here too.
2755
2756 * bfd-in2.h: Regenerate.
2757
2758 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
2759 zeroing of `flags'.
2760 (elf_link_input_bfd): Set all asection->symbol->value's here, and
2761 fudge values for discarded link-once section symbols.
2762
2763 * elf64-hppa.c: Include alloca-conf.h
2764
27652000-10-11 Alan Modra <alan@linuxcare.com.au>
2766
2767 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
2768
2769 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
2770
27712000-10-10 Alan Modra <alan@linuxcare.com.au>
2772
2773 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
2774
27752000-10-10 Tom Rix <trix@redhat.com>
2776
2777 * section.c (bfd_make_section_anyway): Release newsect ptr when
2778 newsect->symbol fails to alloc. Use bfd_release instead of free.
2779
27802000-10-09 Richard Henderson <rth@cygnus.com
2781
2782 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
2783 (elf64_ia64_unwind_entry_compare): New.
2784 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
2785
27862000-10-07 Alan Modra <alan@linuxcare.com.au>
2787
2788 * elflink.h (size_dynamic_sections): Don't create various tags if
2789 .dynstr is excluded from the link. Don't set first dynsym entry
2790 if dynsymcount is zero.
2791 (elf_bfd_final_link): Don't try to swap out dynamic syms if
2792 .dynsym excluded from the link. Don't try to write any dynamic
2793 sections excluded from the link.
2794
2795 * elf.c (swap_out_syms): Handle global section symbols.
2796
27972000-10-05 DJ Delorie <dj@redhat.com>
2798
2799 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
2800 * coffcode.h (coff_set_alignment_hook): read extended reloc count
2801 (coff_write_relocs): write extended reloc count
2802 (coff_write_object_contents): account for extended relocs
2803
28042000-10-05 Jim Wilson <wilson@cygnus.com>
2805
2806 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
2807 field.
2808 * elf.c (_bfd_elf_make_section_from_shdr): Call the
2809 elf_backend_section_flags function.
2810 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
2811 code.
2812 (elf64_ia64_section_flags): New function containing flag conversion
2813 code.
2814 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
2815 * elfxx-target.h (elf_backend_section_flags): Define.
2816 (elfNN_bed): Initialize elf_backend_section_flags field.
2817
28182000-10-02 Alan Modra <alan@linuxcare.com.au>
2819
2820 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
2821 _bfd_elf32_gc_record_vtable. Correct a comment.
2822
28232000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
2824
2825 From Ralf Baechle <ralf@gnu.org>
2826
2827 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
2828 produces binaries with got[1] = 0x80000001 to differenciate them
2829 for the dynamic linker from the broken binaries produced by old
2830 versions.
2831
28322000-09-30 Petr Sorfa <petrs@sco.com>
2833
2834 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
2835 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
2836 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
2837 * configure: Regenerate.
2838
28392000-09-27 Hans-Peter Nilsson <hp@axis.com>
2840
2841 Define two bfd_targets for absence and presence of leading
2842 underscore on symbols. Make sure to only link same kind.
2843 * elf32-cris.c (cris_elf_object_p,
2844 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
2845 cris_elf_merge_private_bfd_data): New.
2846 (elf_backend_object_p, elf_backend_final_write_processing,
2847 bfd_elf32_bfd_print_private_bfd_data,
2848 bfd_elf32_bfd_merge_private_bfd_data): Define.
2849 <Target vector definition>: Include elf32-target.h twice with
2850 different macro settings:
2851 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
2852 bfd_elf32_us_cris_vec.
2853 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
2854 (elf_symbol_leading_char): First as 0, then '_'.
2855 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
2856 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
2857 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
2858 * configure: Regenerate.
2859 * targets.c: Declare bfd_elf32_us_cris_vec.
2860 * po/bfd.pot: Regenerate.
2861
28622000-09-29 Momchil Velikov <velco@fadata.bg>
2863
2864 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
2865 R_ARM_THM_PC22 relocations.
2866
28672000-09-29 NIIBE Yutaka <gniibe@chroot.org>
2868
2869 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
2870
28712000-09-29 Momchil Velikov <velco@fadata.bg>
2872
2873 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
2874 is has the SEC_HAS_CONTENTS flag set.
2875