* elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2001-08-10 Andreas Jaeger <aj@suse.de>
2
3 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
4 Add prototypes where needed.
5
6 2001-08-10 H.J. Lu <hjl@gnu.org>
7
8 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
9 (bfd_fprintf_vma): Likewise.
10
11 2001-08-10 H.J. Lu <hjl@gnu.org>
12
13 * bfd.c (bfd_sprintf_vma): Don't return void.
14 (bfd_fprintf_vma): Likewise.
15
16 2001-08-10 Andreas Jaeger <aj@suse.de>
17
18 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
19 to build warnings.
20 * configure: Regenerate.
21
22 2001-08-10 Alan Modra <amodra@bigpond.net.au>
23
24 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
25 warning if not BFD64. Add braces so emacs auto format works.
26 (bfd_elf_fprintf_vma): Likewise.
27
28 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
29 of _xcoff_swap_ld*.
30 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
31 param to agree with libxcoff.h.
32 (xcoff_swap_ldhdr_out): Likewise.
33 (xcoff_swap_ldsym_in): Likewise.
34 (xcoff_swap_ldsym_out): Likewise.
35 (xcoff_swap_ldrel_in): Likewise.
36 (xcoff_swap_ldrel_out): Likewise.
37 (xcoff_create_csect_from_smclas): Likewise.
38 * coff64-rs6000.c: Add missing prototypes.
39 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
40 with libxcoff.h.
41 (xcoff64_swap_ldhdr_out): Likewise.
42 (xcoff64_swap_ldsym_in): Likewise.
43 (xcoff64_swap_ldsym_out): Likewise.
44 (xcoff64_swap_ldrel_in): Likewise.
45 (xcoff64_swap_ldrel_out): Likewise.
46 (xcoff64_ppc_relocate_section): Make static.
47 (xcoff64_slurp_armap): Likewise.
48 (xcoff64_archive_p): Likewise.
49 (xcoff64_openr_next_archived_file): Likewise.
50 (xcoff64_sizeof_headers): Likewise.
51 (xcoff64_is_lineno_count_overflow): Likewise.
52 (xcoff64_is_reloc_count_overflow): Likewise.
53 (xcoff64_loader_symbol_offset): Likewise.
54 (xcoff64_loader_reloc_offset): Likewise.
55 * elf64-gen.c: Add missing prototypes.
56
57 2001-08-09 H.J. Lu <hjl@gnu.org>
58
59 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
60 (bfd_elf_fprintf_vma): Likewise.
61
62 2001-08-09 H.J. Lu <hjl@gnu.org>
63
64 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
65 to ...
66 * elf-bfd.h: Here.
67 * bfd-in2.h: Regenerated.
68
69 2001-08-09 H.J. Lu <hjl@gnu.org>
70
71 * bfd-in.h (bfd_sprintf_vma): New prototype.
72 (bfd_fprintf_vma): Likewise.
73 (bfd_elf_sprintf_vma): Likewise.
74 (bfd_elf_fprintf_vma): Likewise.
75 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
76 * bfd-in2.h: Regenerated.
77
78 * bfd.c (bfd_sprintf_vma): New. Defined.
79 (bfd_fprintf_vma): Likewise.
80
81 * elf.c (bfd_elf_sprintf_vma): New. Defined.
82 (bfd_elf_fprintf_vma): Likewise.
83
84 2001-08-09 Alan Modra <amodra@bigpond.net.au>
85
86 * coff-rs6000.c: Add missing prototypes.
87 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
88 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
89 xcoff_loader_reloc_offset): Make static.
90 * dwarf1.c: Add missing prototypes.
91 * dwarf2.c: Add missing prototypes.
92 (struct abbrev_info): Move definition.
93 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
94 * elf.c: Add missing prototypes.
95 * elf32-gen.c: Likewise.
96 * elf32-i386.c: Likewise.
97 * elf32-ppc.c: Likewise.
98 (ppc_elf_sort_rela): Use PTR instead of "void *".
99 * elflink.h: Add missing prototypes. Formatting fixes.
100 * merge.c: Add missing prototypes.
101 (last4_eq): Use PTR instead of "void *".
102 (last_eq): Likewise.
103 * syms.c: Add missing prototypes.
104
105 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
106
107 * bfd.c: Fix formatting.
108 * bfd-in2.h: Regenerate.
109
110 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
111
112 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
113 true (this target uses REL relocations) and 'pcrel_offset' to
114 false (the PC is implied, not stored in the offset).
115
116 2001-08-08 Alan Modra <amodra@bigpond.net.au>
117
118 1999-10-19 Linus Nordberg <linus@swox.se>
119 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
120 * elfxx-target.h (elf_backend_want_got_sym): Define.
121 (elfNN_bed): Add elf_backend_want_got_sym.
122 * elflink.c (_bfd_elf_create_got_section): Define
123 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
124
125 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
126
127 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
128 (find_rela_addend): New function.
129 (parse_comp_unit): Call it to find the abbrev offset addend.
130 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
131 members of dwarf2_debug as debugging information is read.
132
133 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
134
135 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
136 targets as well as sh-pe.
137
138 2001-08-03 Ben Harris <bjh21@netbsd.org>
139
140 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
141 reloc from start of section when computing value for R_ARM_REL32
142 reloc.
143
144 2001-08-03 Alan Modra <amodra@bigpond.net.au>
145
146 From H.J. Lu <hjl@gnu.org>
147 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
148 keep relocs for undefined syms if there are no dynamic sections in
149 executable.
150 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
151
152 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
153
154 * cofflink.c (coff_link_check_ar_symbols): also search for
155 __imp__symbol as well as _symbol.
156 * linker.c (_bfd_generic_link_add_archive_symbols): also
157 search for __imp__symbol as well as _symbol.
158
159 2001-08-01 Adam Nemet <anemet@lnxw.com>
160
161 * elf.c (elf_sort_sections): Return zero only as the last step.
162
163 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
164
165 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
166 ARM_COFF_BUGFIX.
167 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
168 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
169 ARM_COFF_BUGFIX.
170
171 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
172
173 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
174 to match corresponding bfd_coff_backend data member.
175
176 2001-07-24 Alan Modra <amodra@bigpond.net.au>
177
178 * Makefile.am: Update dependencies with "make dep-am".
179 * Makefile.in: Regenerate
180
181 2001-07-15 H.J. Lu <hjl@gnu.org>
182
183 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
184 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
185 * Makefile.in: Regenerate.
186
187 2001-07-11 H.J. Lu <hjl@gnu.org>
188
189 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
190 flags when creating the reloc section if the ALLOC flag in the
191 source section is set.
192
193 2001-07-11 Steve Ellcey <sje@cup.hp.com>
194
195 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
196 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
197 * bfd-in2.h: Regenerate.
198 * libbfd.h: Regenerate.
199 * elfxx-ia64.c (ia64_howto_table): Define how to handle
200 new relocations.
201 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
202 (elfNN_ia64_check_relocs): Likewise.
203 (elfNN_ia64_install_value): Likewise.
204 (elfNN_ia64_relocate_section): Likewise.
205
206 2001-07-11 Jakub Jelinek <jakub@redhat.com>
207
208 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
209 R_SPARC_UA64.
210 (elf32_sparc_check_relocs): Likewise.
211 Only create .rela section for alloced sections in shared libraries.
212 (elf32_sparc_relocate_section): Likewise.
213 Remove redundant check.
214 Optimize unaligned reloc usage.
215 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
216 check.
217
218 2001-07-11 H.J. Lu <hjl@gnu.org>
219
220 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
221 ALLOC|LOAD flags as the source section for debugging sections
222 when creating the reloc section.
223
224 2001-07-05 Jim Wilson <wilson@redhat.com>
225
226 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
227 the section of the bigger symbol.
228
229 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
230
231 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
232
233 * peicode.h (coff_swap_scnhdr_in): For sections containing
234 uninitialised data, only set their size to s_paddr if this does
235 not reset their size to zero. MS's latest compilers will set
236 s_paddr to zero.
237
238 2001-07-04 H.J. Lu <hjl@gnu.org>
239
240 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
241 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
242 bfd_mach_mips5000.
243
244 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
245
246 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
247
248 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
249 sections being discarded.
250
251 2001-06-30 Alan Modra <amodra@bigpond.net.au>
252
253 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
254 instead of _bfd_elfcore_section_from_phdr.
255 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
256 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
257 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
258 (elfcore_grok_prstatus): Likewise.
259 (elfcore_grok_lwpstatus): Likewise.
260 (bfd_get_elf_phdr_upper_bound): Likewise.
261 (elfcore_make_note_pseudosection): Formatting.
262 (_bfd_elfcore_strndup): Formatting.
263 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
264 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
265
266 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
267
268 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
269 and _bfd_elfcore_strndup.
270 (struct elf_backend_data): Add elf_backend_grok_prstatus
271 and elf_backend_grok_psinfo.
272 * elf.c (_bfd_elfcore_make_pseudosection): New function.
273 (elfcore_grok_prstatus): Use it.
274 (elfcore_make_note_pseudosection): Likewise.
275 (elfcore_strndup): Rename to...
276 (_bfd_elfcore_strndup): Here, and make global.
277 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
278 (elfcore_grok_note): Call elf_backend_grok_prstatus
279 and elf_backend_grok_psinfo if available.
280 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
281 (_bfd_elf32_mips_grok_psinfo): New function.
282 (elf_backend_grok_prstatus): Define.
283 (elf_backend_grok_psinfo): Define.
284 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
285 (elf_backend_grok_psinfo): Likewise.
286 (elfNN_bed): Include elf_backend_grok_prstatus and
287 elf_backend_grok_psinfo.
288
289 2001-06-29 H.J. Lu <hjl@gnu.org>
290
291 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
292 hplink->sgot is NULL before filling GOT. Check if hplink->splt
293 is NULL before filling PLT.
294
295 2001-06-29 Alan Modra <amodra@bigpond.net.au>
296
297 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
298
299 2001-06-27 Alan Modra <amodra@bigpond.net.au>
300
301 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
302 here..
303 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
304 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
305 after gc has run.
306
307 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
308 (IS_ABSOLUTE_RELOC): Define.
309 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
310 (hppa_link_hash_newfunc): Always init it.
311 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
312 create COPY relocs only when the reloc is in a read-only section.
313 Instead, allocate space for a dynamic reloc to reference the
314 library symbol directly. Keep track of space we allocate using
315 relocs_entries.
316 (hppa_discard_copies): Delete, and move code to..
317 (allocate_plt_and_got): ..here. Rename to
318 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
319 relocs for non-shared link.
320 (elf32_hppa_size_dynamic_sections): Update calls to above.
321 (elf32_hppa_relocate_section): Write out the dynamic relocs used
322 in lieu of COPY relocs.
323
324 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
325 here..
326 (elf_i386_adjust_dynamic_symbol): ..nor here..
327 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
328 after gc has run.
329 (elf_i386_size_dynamic_sections): Fix a comment.
330 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
331 involved in writing reloc out.
332
333 2001-06-25 Alan Modra <amodra@bigpond.net.au>
334
335 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
336 Ensure syms are dynamic if we might be emitting a reloc.
337 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
338 for undefweak or undefined syms..
339 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
340
341 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
342 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
343 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
344 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
345
346 2001-06-24 H.J. Lu <hjl@gnu.org>
347
348 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
349 strncasecmp/strcasecmp instead of strncmp/strcmp.
350
351 2001-06-23 H.J. Lu <hjl@gnu.org>
352
353 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
354 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
355 in the regular object file and treat the weak definition as
356 the normal one.
357
358 2001-06-23 Alan Modra <amodra@bigpond.net.au>
359
360 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
361 unresolved_reloc test to exclude cases where we use "relocation"
362 before setting it to point into the .got. Reinstate fudge for
363 unresolved relocs in debugging sections.
364
365 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
366 complicated tests for unresolvable relocs with a simple direct
367 scheme using "unresolved_reloc" var.
368
369 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
370 elf_i386_dyn_relocs. Update comment.
371 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
372 dyn_relocs.
373 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
374 others to aborts.
375 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
376 abort.
377 (elf_i386_size_dynamic_sections): Likewise.
378 (elf_i386_finish_dynamic_symbol): Likewise.
379 (elf_i386_finish_dynamic_sections): Likewise.
380 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
381 handling code.
382
383 Avoid creating COPY relocs if possible.
384 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
385 which .got created. Mark symbols used by R_386_32 and R_386_PC32
386 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
387 reloc is in a read-only section. Instead, allocate space for a
388 dynamic reloc to reference the library symbol directly. Keep
389 track of space we allocate using pcrel_relocs_copied.
390 (discard_copies): Delete, and move code to ..
391 (allocate_plt_and_got): ..here. Rename to
392 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
393 relocs for non-shared link.
394 (elf_i386_size_dynamic_sections): Update calls to above functions.
395 (elf_i386_relocate_section): Write out the dynamic relocs. Add
396 more ugly logic to avoid "unresolvable relocation" error. Use
397 htab shortcut in place of elf_hash_table macro.
398 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
399 not always be created now.
400
401 2001-06-20 Bo Thorsen <bo@suse.co.uk>
402
403 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
404 shared libraries.
405
406 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
407
408 * configure.host (mips64-*-linux): Reformat.
409
410 2001-06-21 Alan Modra <amodra@bigpond.net.au>
411
412 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
413 allocate local .got space. Use shortcuts from hash table for .got
414 and .plt rather than comparing section names.
415 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
416 adjusting index into local_got_refcounts to document what we are
417 really doing.
418 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
419 Tidy .got and .plt error checking.
420
421 2001-06-20 Catherine Moore <clm@redhat.com>
422
423 * elf-bfd.h (struct elf_backend_data):
424 elf_backend_emit_relocs: New field: Function for emitting
425 relocs.
426 elf_backend_count_relocs: New field: Function for determining
427 the number of relocs to be emitted.
428 * elfxx-target.h: Provide default (NULL) values for
429 elf_backend_emit_relocs and elf_backend_count_relocs.
430 * elflink.h (elf_link_size_reloc_section): Make the hash table
431 big enough to hold the relocs counted by either reloc_count or
432 o->reloc_count.
433 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
434 should be emitted, either because of a command line option
435 stored in the info structure or because the target provides a
436 special reloc emitting function.
437 If the target provides a reloc counting function use it,
438 unless performing a relocatable link or emitting all relocs.
439 Also set the SEC_RELOC flag on any output section which will
440 contain relocs.
441 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
442 should be emitted, either because of a command line option
443 stored in the info structure or because the target provides a
444 special reloc emitting function.
445 If the target provides a reloc emitting function, use it,
446 unless performing a relocatable link or emitting all relocs.
447
448 2001-06-20 H.J. Lu <hjl@gnu.org>
449
450 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
451 allocate local .got space.
452
453 2001-06-19 Andreas Jaeger <aj@suse.de>
454
455 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
456 dynamic symbols.
457
458 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
459
460 * elflink.h (struct elf_assign_sym_version_info): Remove member
461 export_dynamic. All users changed to use info member.
462 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
463 export_dynamic, instead use member in parameter info.
464 * bfd-in.h (bfd_elf32_size_dynamic_sections,
465 bfd_elf64_size_dynamic_sections): Update prototype.
466 * bfd-in2.h: Regenerate.
467
468 2001-06-18 H.J. Lu <hjl@gnu.org>
469
470 * elflink.h (elf_info_failed): Add a new field, verdefs.
471 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
472 elf_export_symbol.
473 (elf_export_symbol): Check eif->verdefs to decide if a symbol
474 should be exported.
475
476 2001-06-17 H.J. Lu <hjl@gnu.org>
477
478 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
479 readonly_reloc, to record if a relocation in the .rel.dyn
480 section is against a read-only section.
481 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
482 field to false.
483 (_bfd_mips_elf_check_relocs): Record if there is a relocation
484 in the .rel.dyn section against a read-only section by setting
485 DF_TEXTREL or readonly_reloc.
486 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
487 it is true.
488 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
489 there is a relocation in the .rel.dyn section against a
490 read-only section.
491 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
492 DF_TEXTREL is set.
493
494 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
495
496 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
497 function. Move flagword result into parameter list. Remove
498 comment about setting bfd_error_handler to intercept failure
499 results.
500 * coffgen.c (make_a_section_from_file): Examine result of
501 calling bfd_coff_styp_to_sec_flags and pass a failure back to
502 caller.
503 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
504 function. Move flagword result into parameter list.
505 * libcoff.h: Regenerate.
506 * libecoff.h: Regenerate.
507
508 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
509
510 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
511 section is going to follow it.
512
513 2001-06-12 Catherine Moore <clm@redhat.com>
514
515 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
516 with the file_align entry from elf_backend_data.
517 (elf_gc_smash_unused_vtentry_relocs): Likewise.
518 (elf_gc_record_vtentry): Likewise.
519
520 2001-06-10 Alan Modra <amodra@bigpond.net.au>
521
522 * elflink.h: Whitespace changes.
523 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
524 rather than "unsigned char".
525 (elf_link_output_relocs): Likewise.
526 (elf_link_input_bfd): Likewise.
527 (elf_reloc_link_order): LIkewise.
528 * elf.c: s/CONST/const/. Whitespace changes.
529 * elf32-mips.c: Formatting fix.
530
531 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
532 * Makefile.in: Regenerate.
533 * po/Make-in: Remove trailing tab.
534
535 2001-06-09 Philip Blundell <philb@gnu.org>
536
537 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
538 change.
539 (elf32_arm_plt_entry): Likewise.
540
541 2001-06-08 H.J. Lu <hjl@gnu.org>
542
543 * elf.c (swap_out_syms): Keep names for global section symbols.
544
545 2001-06-07 H.J. Lu <hjl@gnu.org>
546
547 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
548 MIPS-based machines need it.
549
550 2001-06-07 H.J. Lu <hjl@gnu.org>
551
552 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
553 for SGI only.
554
555 * config.bfd: Remove ecoff from Linux/mips.
556
557 2001-06-07 Andreas Jaeger <aj@suse.de>
558
559 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
560 assertion.
561 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
562 alignment of 8 for .rela sections; handle further relocations.
563
564 2001-06-06 Christian Groessler <cpg@aladdin.de>
565
566 * coff-z8k.c: Fix formatting.
567 Fix howtos: howto->size was always 1.
568
569 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
570
571 * configure.host (mips64*-*-linux*): Define.
572
573 2001-06-05 Alan Modra <amodra@bigpond.net.au>
574
575 * elf32-i386.c (elf_i386_discard_copies): Rename to
576 discard_copies, and use elf_link_hash_entry arg rather than
577 elf_i386_link_hash_entry.
578 (elf_i386_link_hash_traverse): Delete.
579 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
580 Tidy sizing of dynamic sections.
581 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
582 possible .plt entries.
583 (elf_i386_gc_sweep_hook): Likewise.
584 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
585 everything with plt.refcount <= 0.
586
587 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
588 .relgot space here.
589 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
590 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
591 .rel.plt here..
592 (allocate_plt_and_got): ..instead do it all here. New function.
593 (elf_i386_size_dynamic_sections): Allocate local .got space and
594 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
595 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
596 rather than gc variety).
597 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
598 (elf_i386_relocate_section): Use it here and correct handling of
599 R_386_GOT32. Provide section and offset for "unresolvable
600 relocation" error message.
601 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
602
603 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
604 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
605 (elf_i386_link_hash_table_create): Init them.
606 (create_got_section): New function.
607 (elf_i386_create_dynamic_sections): New function.
608 (elf_backend_create_dynamic_sections): Set to above.
609 (elf_i386_check_relocs): Use shortcuts from hash table rather than
610 calling bfd_get_section_by_name.
611 (elf_i386_gc_sweep_hook): Likewise.
612 (elf_i386_adjust_dynamic_symbol): Likewise.
613 (elf_i386_size_dynamic_sections): Likewise.
614 (elf_i386_relocate_section): Likewise.
615 (elf_i386_finish_dynamic_sections): Likewise.
616
617 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
618
619 2001-06-02 H.J. Lu <hjl@gnu.org>
620
621 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
622 and ELFOSABI_HPUX.
623 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
624
625 2001-06-02 H.J. Lu <hjl@gnu.org>
626
627 * aout-cris.c (MACHTYPE_OK): New. Defined.
628
629 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
630
631 * section.c (_bfd_strip_section_from_output): Handle NULL
632 output_section.
633
634 2001-06-02 H.J. Lu <hjl@gnu.org>
635
636 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
637 rs6000coff64_vec only if BFD64 is defined.
638 (powerpc64-*-aix*): Enable only if BFD64 is defined.
639
640 2001-06-02 H.J. Lu <hjl@gnu.org>
641
642 * coff-ia64.c (ia64coff_object_p): Rewrite with
643 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
644
645 2001-06-01 Andreas Jaeger <aj@suse.de>
646
647 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
648 relocation, small reformatting.
649
650 2001-05-29 Andreas Jaeger <aj@suse.de>
651
652 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
653 (elf64_x86_64_relocate_section): Likewise.
654
655 2001-05-30 Alan Modra <amodra@one.net.au>
656
657 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
658 millicode. Don't allocate .got and .rela.got space here..
659 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
660 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
661 .rela.plt here..
662 (hppa_handle_PIC_calls): ..nor here..
663 (allocate_plt_and_got): ..instead do it all here. New function.
664 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
665 call allocate_plt_and_got. No need to zap .got if not dynamic.
666 (elf32_hppa_final_link): Call regular bfd_final_link instead of
667 gc_common_final_link.
668 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
669 (elf32_hppa_relocate_section): Use it here.
670 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
671 dynamic_sections_created.
672 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
673
674 2001-05-28 Andreas Jaeger <aj@suse.de>
675
676 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
677 generic version since we want a hashsize of 4.
678 (elf_backend_size_info): Likewise.
679
680 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
681
682 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
683 a zeroing loop.
684 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
685 (elf_link_input_bfd): Likewise.
686 (elf_reloc_link_order): Likewise.
687 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
688 relocations correctly.
689
690 2001-05-28 Nicolas Pitre <nico@cam.org>
691
692 * elf32-arm.h: fix PLT generation for big endian ARM
693
694 2001-05-28 Alan Modra <amodra@one.net.au>
695
696 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
697 for symbols forced local that need plabels.
698 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
699 .plt.rela for local syms if non-shared.
700 (hppa_build_one_stub): Mask lsb of plt.offset.
701 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
702 (clobber_millicode_symbols): Correct comment.
703 (elf32_hppa_relocate_section): Likewise.
704 (elf32_hppa_finish_dynamic_symbol): Likewise.
705
706 2001-05-28 Jeff Sturm <jsturm@one-point.com>
707
708 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
709 * bfd-in2.h: Regenerate.
710 * libbfd.h: Regenerate.
711 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
712 and BFD_RELOC_SPARC_UA64 mapping
713 * elf64-sparc.c: Likewise.
714
715 2001-05-25 H.J. Lu <hjl@gnu.org>
716
717 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
718 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
719 (coff-rs6000.lo): Remove the old dependency.
720 * Makefile.in: Rebuild.
721
722 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
723 coff-rs6000.lo.
724
725 2001-05-25 H.J. Lu <hjl@gnu.org>
726
727 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
728 rs6000coff_core_file_matches_executable_p,
729 rs6000coff_core_file_failing_command and
730 rs6000coff_core_file_failing_signal only if AIX_CORE is
731 defined.
732 (pmac_xcoff_vec): Likewise.
733 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
734
735 2001-05-25 Timothy Wall <twall@redhat.com>
736
737 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
738 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
739
740 2001-05-25 H.J. Lu <hjl@gnu.org>
741
742 * bfd-in2.h: Regenerated.
743 * libcoff.h: Likewise.
744
745 2001-05-25 Alan Modra <amodra@one.net.au>
746
747 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
748 undefined millicode syms in shared libs.
749 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
750 (elf32_hppa_check_relocs): Likewise.
751 (elf32_hppa_adjust_dynamic_symbol): Likewise.
752 (elf32_hppa_size_dynamic_sections): Likewise.
753 (elf32_hppa_relocate_section): Likewise.
754 (elf32_hppa_finish_dynamic_symbol): Likewise.
755 (elf32_hppa_finish_dynamic_sections): Likewise.
756
757 2001-05-24 Tom Rix <trix@redhat.com>
758
759 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
760 xcoff-target.h not used to define rs6000 or ppc bfd.
761 * Makefile.in same
762
763 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
764 to 64 bit.
765
766 * coff-rs6000.c : Many changes for 64 bit support. Move common
767 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
768 and pmac_xcoff_vec
769
770 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
771 linker now supported. Explictly define the rs6000coff64_vec.
772
773 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
774 (coff_print_aux) same
775 (coff_write_object_contents) same
776 (coff_slurp_line_table) same
777
778 * coffgen.c : (coff_fix_symbol_name) formatting
779 (coff_mangle_symbols) xcoff 64 bit support
780 (coff_write_symbol) same
781 (coff_write_alien_symbol) same
782 (coff_write_native_symbol) same
783 (coff_write_symbols) same
784 (coff_get_symbol_info) same
785 (bfd_coff_get_syment) same
786 (coff_print_symbol) same
787
788 * config.bfd : add powerpc64-*-aix* target
789
790 * libcoff-in.h : formatting
791
792 * libcoff.h : move xcoff extern declarations to libxcoff.h
793
794 * libxcoff.h : New file
795
796 * xcofflink.c : Many changes for xcoff64 support. Move common
797 structures to include/coff/xcoff.h. Move specific structure to
798 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
799 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
800
801 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
802 aix4.2+ -binitfini.
803
804 (xcoff_build_ldsyms) : handle special __rtinit symbol.
805
806 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
807
808 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
809 s/ENTIRES/ENTRIES/.
810
811 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
812
813 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
814 * libbfd.h: Regenerate.
815 * bfd-in2.h: Regenerate.
816
817 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
818 * archures.c (bfd_mach_mips12000): Define.
819 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
820 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
821 support.
822 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
823 * bfd-in2.h: Regenerate.
824 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
825
826 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
827
828 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
829 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
830 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
831 that is used by GCC.
832
833 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
834
835 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
836 of entries in a structured section.
837 * elf.c: Use new macro.
838 * elf32-i386.c: Use new macro.
839 * elf32-mips.c: Use new macro.
840 * elf64-alpha.c: Use new macro.
841 * elf64-sparc.c: Use new macro.
842 * elfcode.h: Use new macro.
843 * elflink.h: Use new macro.
844
845 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
846
847 * bfdint.texi: Replace -oformat with --oformat.
848
849 2001-05-21 Andreas Jaeger <aj@suse.de>
850
851 * dwarf2.c (decode_line_info): Fix error message.
852 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
853 adjust error message.
854
855 2001-05-18 H.J. Lu <hjl@gnu.org>
856
857 * elflink.h (elf_link_add_object_symbols): Revert the last
858 change.
859
860 2001-05-17 Alan Modra <amodra@one.net.au>
861
862 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
863 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
864 (hppa_build_one_stub): Add an assert to check plt.offset.
865
866 2001-05-17 H.J. Lu <hjl@gnu.org>
867
868 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
869 version definition to basename of the output filename.
870
871 2001-05-17 H.J. Lu <hjl@gnu.org>
872
873 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
874 basename of the bfd filename.
875
876 2001-05-16 Alan Modra <amodra@one.net.au>
877
878 * section.c (asection): Add linker_has_input field.
879 (STD_SECTION): Adjust initialization to suit.
880 * ecoff.c (bfd_debug_section): Likewise.
881 * bfd-in2.h: Regenerate.
882
883 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
884
885 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
886 negative 32-bit operands to 16 operands when the operand is
887 going to be zero-extended by the modified opcode.
888
889 2001-05-12 Peter Targett <peter.targett@arccores.com>
890
891 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
892 name for 'arc5' core versions.
893 (bfd_arc_arch): Make bfd_mach_arc_6 default.
894
895 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
896 architecture.
897 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
898
899 2001-05-11 Jakub Jelinek <jakub@redhat.com>
900
901 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
902 sections as well.
903 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
904 to .gnu.linkonce.t.FOO text section.
905
906 2001-05-11 Jakub Jelinek <jakub@redhat.com>
907
908 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
909 fields, change sec into secinfo.
910 (struct sec_merge_info): Add chain, remove last fields.
911 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
912 (sec_merge_hash_lookup): If lookup could not use a string only
913 because it has bad alignment, mark the old string for deletion.
914 (sec_merge_add): Add secinfo argument. Don't compute entry's
915 position, instead record the section.
916 (sec_merge_emit): Update for the sec into secinfo change in
917 struct sec_merge_hash_entry.
918 (_bfd_merge_section): Only record the section for merging, defer
919 putting strings into the hash table.
920 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
921 _bfd_merge_sections): New functions.
922 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
923 changes.
924 * libbfd-in.h (_bfd_merge_sections): Add prototype.
925 (_bfd_nolink_bfd_merge_sections): Define.
926 * libbfd.h: Likewise.
927 (bfd_generic_merge_sections): Add prototype.
928 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
929 (struct bfd_target): Likewise.
930 * bfd.c (bfd_merge_sections): Define.
931 * bfd-in2.h: Rebuilt.
932 * elf.c (_bfd_elf_merge_sections): New function.
933 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
934 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
935 * reloc.c (bfd_generic_merge_sections): New function.
936 * vms.c (vms_bfd_merge_sections): New function.
937 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
938 * aout-target.h (MY_bfd_merge_sections): Define.
939 * aout-tic30.c (MY_bfd_merge_sections): Define.
940 * binary.c (binary_bfd_merge_sections): Define.
941 * bout.c (b_out_bfd_merge_sections): Define.
942 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
943 * coffcode.c (coff_bfd_merge_sections): Define.
944 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
945 * i386msdos.c (msdos_bfd_merge_sections): Define.
946 * i386os9k.c (os9k_bfd_merge_sections): Define.
947 * ieee.c (ieee_bfd_merge_sections): Define.
948 * ihex.c (ihex_bfd_merge_sections): Define.
949 * nlm-target.h (nlm_bfd_merge_sections): Define.
950 * oasys.c (oasys_bfd_merge_sections): Define.
951 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
952 * som.c (som_bfd_merge_sections): Define.
953 * srec.c (srec_bfd_merge_sections): Define.
954 * tekhex.c (tekhex_bfd_merge_sections): Define.
955 * versados.c (versados_bfd_merge_sections): Define.
956 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
957
958 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
959
960 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
961 to be unsigned long, in order to match its use.
962
963 2001-05-10 H.J. Lu <hjl@gnu.org>
964
965 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
966 indirect symbols.
967
968 2001-05-09 H.J. Lu <hjl@gnu.org>
969
970 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
971 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
972 Remove the unused veriable `dynver'.
973
974 2001-05-08 Ian Lance Taylor <ian@zembu.com>
975
976 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
977 NULL or is not COFF.
978 (coff_i386_rtype_to_howto): Don't dump core if output section
979 owner is not COFF.
980
981 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
982
983 * ecoff.c (bfd_debug_section): Fix initialization.
984 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
985 is always a positive integer. Cast away sign mismatch.
986 * elf32-mips.c: Fix misleading comment and typo.
987 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
988 correct data type.
989 * elflink.c: Fix typo.
990 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
991 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
992
993 2001-05-04 Richard Henderson <rth@redhat.com>
994
995 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
996
997 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
998
999 * elf32-arm.h (elf32_arm_final_link_relocate): Set
1000 EF_ARM_HASENTRY if the start address is set.
1001
1002 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
1003
1004 * targets.c (_bfd_target_vector_entries): Compute value based on
1005 the size of the _bfd_target_vector and not bfd_target_vector.
1006
1007 2001-05-03 H.J. Lu <hjl@gnu.org>
1008
1009 * elfcode.h: Include "libiberty.h".
1010
1011 * elflink.h (elf_link_add_object_symbols): Set
1012 elf_dt_name (abfd) to basename of the bfd filename.
1013 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
1014 of the bfd filename.
1015
1016 2001-05-03 Andreas Jaeger <aj@suse.de>
1017
1018 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
1019 (elf_generic_info_to_howto_rel): Likewise.
1020 * coff-alpha.c (reloc_nil): Likewise.
1021 (alpha_ecoff_bad_format_hook): Likewise.
1022 (alpha_adjust_reloc_out): Likewise.
1023 (alpha_bfd_reloc_type_lookup): Likewise.
1024 (alpha_convert_external_reloc): Likewise.
1025 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
1026 (elf64_alpha_reloc_bad): Likewise.
1027 (elf64_alpha_reloc_gpdisp): Likewise.
1028 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
1029 (elf64_alpha_info_to_howto): Likewise.
1030 (elf64_alpha_add_symbol_hook): Likewise.
1031 (elf64_alpha_create_got_section): Likewise.
1032 (elf64_alpha_is_local_label_name): Likewise.
1033 (elf64_alpha_merge_ind_symbols): Likewise.
1034 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
1035 (mips_elf64_get_reloc_upper_bound): Likewise.
1036 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
1037 (nlm_alpha_get_public_offset): Likewise.
1038
1039 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
1040
1041 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
1042 about overflow in R_OPENRISC_LO_16_IN_INSN and
1043 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
1044
1045 2001-04-30 H.J. Lu <hjl@gnu.org>
1046
1047 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
1048 only for ELF_LINK_FORCED_LOCAL.
1049 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1050 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
1051 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
1052
1053 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
1054 if the symbol has hidden or internal visibility.
1055
1056 2001-04-30 Alan Modra <amodra@one.net.au>
1057
1058 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
1059 calls to undefined weak symbols.
1060
1061 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
1062
1063 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
1064 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
1065
1066 2001-04-27 Andreas Jaeger <aj@suse.de>
1067
1068 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
1069 out handled entries.
1070 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
1071 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
1072 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
1073 GOT32.
1074
1075 2001-04-27 Sean McNeil <sean@mcneil.com>
1076
1077 * config.bfd: Add arm-vxworks target.
1078 * coff-arm (coff_arm_relocate_section): Add in symbol value to
1079 addend (fro VXworks targets).
1080
1081 2001-04-26 H.J. Lu <hjl@gnu.org>
1082
1083 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
1084 valid.
1085
1086 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
1087
1088 * bfd-in.h (bfd_cache_close): Declare newly exported function.
1089 * bfd-in2.h: Regenerated.
1090
1091 2001-04-24 Jakub Jelinek <jakub@redhat.com>
1092
1093 * merge.c (struct sec_merge_hash_entry): Add alignment field.
1094 (struct sec_merge_hash): Remove alignment_power.
1095 (sec_merge_hash_newfunc): Clear alignment.
1096 (sec_merge_hash_lookup): Pass alignment as argument.
1097 Use hashp->root.next, not hashp->next to walk the hash chain.
1098 If a string already in the hashtable does not have required
1099 alignment, create a new hashtable entry.
1100 (sec_merge_init): Remove alignment_power argument.
1101 (sec_merge_add): Add alignment argument.
1102 (sec_merge_emit): Alignment is now a per-entity thing, not per
1103 section.
1104 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
1105 for proper alignment.
1106 Pass alignment information to sec_merge_add.
1107
1108 2001-04-24 Christian Groessler <cpg@aladdin.de>
1109
1110 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
1111 and R_REL16 reloc types; accept odd values for R_REL16 type
1112
1113 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
1114
1115 * cpu-openrisc.c: New file.
1116 * elf32-openrisc.c: Likewise.
1117
1118 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
1119 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
1120 (BFD32_BACKENDS): Add elf32-openrisc.lo.
1121 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
1122 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
1123 * Makefile.in: Regenerated.
1124 * config.bfd: (openrisc-*-elf): New target.
1125 * configure.in (bfd_elf32_openrisc_vec): New vector.
1126 * configure: Regenerated.
1127 * libbfd.h: Regenerated.
1128 * bfd-in2.h: Regenerated.
1129 * reloc.c: Add OpenRISC relocations.
1130 * targets.c (bfd_elf32_openrisc_vec): Declare.
1131 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
1132 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
1133 (bfd_openrisc_arch): Declare.
1134 (bfd_archures_list): Add bfd_openrisc_arch.
1135 * elf.c (prep_headers): Add bfd_arch_openrisc.
1136
1137 2001-04-23 Bo Thorsen <bo@suse.de>
1138
1139 * elf64-x86-64.c: Add c++ vtable hack.
1140 Small whitespace and comment changes.
1141
1142 2001-04-19 Andreas Jaeger <aj@suse.de>
1143
1144 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
1145 (elf64_x86_64_plt_entry): Likewise.
1146 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
1147 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
1148
1149 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
1150
1151 * elf32-cris.c: Tweak comments related to dynamic linking.
1152 (cris_elf_relocate_section): When not creating shared object, fill
1153 in the .got table for any symbol not in the dynamic symbol table.
1154 (elf_cris_finish_dynamic_symbol): When not creating shared object,
1155 only emit a .got.rela reloc if the symbol is in the dynamic symbol
1156 table.
1157 (cris_elf_check_relocs): Use variable r_type in all places rather
1158 than the original expression. Add default case in switch for
1159 reloc types.
1160 (elf_cris_size_dynamic_sections): Iterate over
1161 elf_cris_discard_excess_program_dynamics when not creating shared
1162 library.
1163 (elf_cris_discard_excess_dso_dynamics): Renamed from
1164 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
1165 (elf_cris_discard_excess_program_dynamics): New.
1166
1167 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
1168
1169 * coffcode.h (coff_write_object_contents): Use
1170 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
1171
1172 2001-04-14 H.J. Lu <hjl@gnu.org>
1173
1174 * bfd-in2.h: Regenerate.
1175
1176 2001-04-14 Jakub Jelinek <jakub@redhat.com>
1177
1178 * section.c (STD_SECTION): Add entsize.
1179
1180 2001-04-13 H.J. Lu <hjl@gnu.org>
1181
1182 * section.c (SEC_MERGE): Define new flag for merging.
1183 (SEC_STRINGS): Likewise.
1184 (entsize): New field.
1185
1186 2001-04-13 Roger Sayle <roger@metaphorics.com>
1187
1188 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
1189 flag on pe-i386 targets.
1190
1191 2001-04-13 Jakub Jelinek <jakub@redhat.com>
1192
1193 * libbfd-in.h (_bfd_merge_section): New.
1194 (_bfd_write_merged_section): New.
1195 (_bfd_merged_section_offset): New.
1196 * libbfd.h: Rebuilt.
1197 * linker.c (_bfd_generic_link_output_symbols): Handle
1198 discard_sec_merge.
1199 * aoutx.h (aout_link_write_symbols): Likewise.
1200 * pdp11.c (aout_link_write_symbols): Likewise.
1201 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
1202 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
1203 sections.
1204 (elf_link_sec_merge_syms): New.
1205 (elf_link_input_bfd): Call _bfd_merged_section_offset
1206 and _bfd_write_merged_section.
1207 Handle discard_sec_merge.
1208 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
1209 field.
1210 (struct bfd_elf_section_data): Likewise.
1211 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
1212 SEC_STRINGS section flags and entsize from their ELF counterparts.
1213 (_bfd_elf_link_hash_table_init): Initialize merge_info.
1214 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
1215 from their BFD counterparts.
1216 * merge.c: New file.
1217 * Makefile.am: Add strtab.lo.
1218 * Makefile.in: Rebuilt.
1219
1220 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
1221
1222 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
1223 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
1224
1225 2001-04-05 Steven J. Hill <sjhill@cotw.com>
1226
1227 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
1228 endian MIPS ELF target.
1229 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
1230 MIPS ELF target.
1231
1232 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
1233 64bit big endian MIPS ELF target.
1234 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1235 endian MIPS ELF target.
1236 * configure: Regenerated.
1237
1238 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
1239 little endian targets.
1240 (mips_elf_sym_is_global): Handle traditional targets.
1241
1242 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
1243 64bit big endian MIPS ELF target.
1244 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
1245 endian MIPS ELF target.
1246
1247 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
1248 and bfd_elf64_tradlittlemips_vec.
1249
1250 2001-04-05 David Mosberger <davidm@hpl.hp.com>
1251
1252 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
1253 ordinary "progbits" section.
1254
1255 2001-04-04 Alan Modra <alan@linuxcare.com.au>
1256
1257 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
1258 when -Bsymbolic causes a symbol to no longer need a .plt entry.
1259
1260 2001-04-03 David Mosberger <davidm@hpl.hp.com>
1261
1262 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
1263
1264 2001-03-30 H.J. Lu <hjl@gnu.org>
1265
1266 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
1267 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
1268
1269 2001-03-26 H.J. Lu <hjl@gnu.org>
1270
1271 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
1272 if there are any relocations for generic ELF.
1273 (bfd_elf32_bfd_link_add_symbols): Defined to
1274 elf32_generic_link_add_symbols.
1275 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
1276 if there are any relocations for generic ELF.
1277 (bfd_elf64_bfd_link_add_symbols): Defined to
1278 elf64_generic_link_add_symbols.
1279
1280 2001-03-23 Nick Clifton <nickc@redhat.com>
1281
1282 * Makefile.am (BUILD_CFILES): New variable: List of C source
1283 files created in build directory.
1284 (BUILD_HFILES): New variable: List of header files created in
1285 build directory.
1286 (POTFILES): Delete.
1287 (po/POTFILES.in): Replace rule with empty entry.
1288 (po/SRC-POTFILES.in): New rule: Create a list of source files
1289 in the source directory.
1290 (po/BLD-POTFILES.in): New rule: Create a list of source files
1291 in the build directory.
1292 (MOSTLYCLEAN): Do not delete source files created in build
1293 directory.
1294 * Makefile.in: Regenerate.
1295 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
1296 into po/Makefile.
1297 * configure: Regenerate.
1298
1299 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
1300 and BLD_POTFILES.
1301 Add .. to the search path when building bfd.pot.
1302 Delete POTFILES when performing distclean.
1303 Add comment describing why distclean is broken in maintainer mode.
1304 * po/POTFILES.in: Delete.
1305 * po/SRC-POTFILES.in: New file.
1306 * po/BLD-POTFILES.in: New file.
1307 * po/bfd.pot: Regenerate.
1308
1309 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
1310
1311 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
1312 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
1313 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
1314 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
1315 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
1316 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
1317 functions.
1318 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
1319 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
1320 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
1321 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
1322 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
1323 New HOWTO members for new relocs.
1324 (cris_reloc_map): Map new relocs.
1325 (ELF_DYNAMIC_INTERPRETER): Define.
1326 (PLT_ENTRY_SIZE): Define.
1327 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
1328 elf_cris_pic_plt_entry): New, PLT templates.
1329 (struct elf_cris_pcrel_relocs_copied, struct
1330 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
1331 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
1332 (cris_final_link_relocate): Check that 16-bit GOT relocs have
1333 positive values. Adjust PCREL relocs to be relative to location
1334 after relocation.
1335 (cris_elf_relocate_section): Handle relocations to dynamic
1336 objects. Handle new relocations. Call error handler when seeing
1337 non-PIC relocation for read-only sections while generating shared
1338 object.
1339 (cris_elf_check_relocs): Set reference counts for GOT and PLT
1340 entries.
1341 (bfd_elf32_bfd_link_hash_table_create,
1342 elf_backend_adjust_dynamic_symbol,
1343 elf_backend_size_dynamic_sections,
1344 elf_backend_finish_dynamic_symbol,
1345 elf_backend_finish_dynamic_sections,
1346 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
1347 elf_backend_hide_symbol, elf_backend_want_got_plt,
1348 elf_backend_plt_readonly, elf_backend_want_plt_sym,
1349 elf_backend_got_header_size, elf_backend_plt_header_size):
1350 Define.
1351
1352 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
1353 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
1354 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
1355 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
1356 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
1357 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
1358 * bfd-in2.h, libbfd.h: Regenerate.
1359
1360 2001-03-21 Diego Novillo <dnovillo@redhat.com>
1361
1362 (_bfd_mips_elf_relocate_section): Give a better error message when
1363 a relocation is not recognized.
1364
1365 2001-03-21 Alan Modra <alan@linuxcare.com.au>
1366
1367 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
1368 non-NULL before attempting to dereference.
1369
1370 2001-03-20 H.J. Lu <hjl@gnu.org>
1371
1372 * configure.in: Remove the redundent AC_ARG_PROGRAM.
1373 * configure: Rebuild.
1374
1375 2001-03-20 Andreas Schwab <schwab@suse.de>
1376
1377 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
1378 relocation value when resolving a reference from a debugging
1379 section.
1380
1381 2001-03-16 Scott Thomason <SThomaso@hii.com>
1382
1383 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
1384 (xcoff64_swap_sym_out): Fix syntax errors.
1385
1386 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
1387
1388 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
1389
1390 2001-03-15 Alan Modra <alan@linuxcare.com.au>
1391
1392 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
1393 (hppa_link_hash_newfunc): Init it.
1394 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
1395 section appears to be non-PIC.
1396 (final_link_relocate): Likewise.
1397 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
1398 possible candidate function, and set pic_call for those that will
1399 only have a .plt entry for the PIC call stub.
1400 (hppa_handle_PIC_calls): Set maybe_pic_call.
1401
1402 2001-03-12 DJ Delorie <dj@redhat.com>
1403
1404 * elf32-sh.c (sh_elf_relocate_section): Only relocation
1405 R_SH_DIR8WP* relocs if they're against external symbols, else
1406 they're just for relaxing. Validate the reloc values.
1407
1408 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
1409
1410 * binary.c (bfd_external_binary_architecture): Declare.
1411 (binary_object_p): If bfd_external_binary_architecture is defined,
1412 set the architecture to this string.
1413
1414 2001-03-11 Philip Blundell <philb@gnu.org>
1415
1416 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
1417 entries that could serve as a definition for a weak symbol.
1418
1419 2001-03-08 Nick Clifton <nickc@redhat.com>
1420
1421 * Most files: Update copyright notices using Perl script created
1422 by Kevin Buettner <kevinb@redhat.com>.
1423
1424 2001-03-07 Nick Clifton <nickc@redhat.com>
1425
1426 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
1427 prior patch on ! defined OLD_ARM_ABI.
1428
1429 2001-03-07 Andreas Jaeger <aj@suse.de>
1430
1431 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
1432 some relocation values.
1433
1434 2001-03-06 Nick Clifton <nickc@redhat.com>
1435
1436 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
1437 of offset in BLX(1) instruction.
1438 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
1439 offset in BLX(1) instruction.
1440 Fix formatting.
1441
1442 2001-03-06 Nick Clifton <nickc@redhat.com>
1443
1444 * coff-arm.c (coff_arm_reloc_type_lookup): Add
1445 BFD_RELOC_THUMB_PCREL_BLX.
1446
1447 2001-03-06 Igor Shevlyakov <igor@windriver.com>
1448
1449 * archures.c (bfd_default_scan): Add Coldfire CPUs.
1450 * bfd-in2.h: Regenerate.
1451 * cpu-m68k.c: Add Coldfire CPUs for arch table.
1452 * ieee.c (ieee_write_processor): Set proper id for
1453 Coldfire CPUs.
1454
1455 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
1456
1457 * configure.in: Add s390 target.
1458 * configure: Regenerate.
1459
1460 2001-02-28 Andreas Jaeger <aj@suse.de>
1461
1462 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
1463 to addend.
1464
1465 2001-02-28 Philip Blundell <pb@futuretv.com>
1466
1467 * elf32-arm.h: Update mentions of renamed EF_xx constants.
1468 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
1469
1470 2001-02-27 H.J. Lu <hjl@gnu.org>
1471
1472 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
1473 abfd->tdata.aout_data == NULL.
1474
1475 2001-02-27 Alan Modra <alan@linuxcare.com.au>
1476
1477 * elf32-hppa.c: Correct field selector in stub comments.
1478 (clobber_millicode_symbols): Formatting fix.
1479
1480 * configure.in: Bump version to 2.11.90.
1481 * configure: Regenerate.
1482 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
1483 (CFILES): $SOURCE_CFILES + generated C files.
1484 (POTFILES): Include $HFILES not $SOURCE_HFILES.
1485 Run "make dep-am"
1486 * Makefile.in: Regenerate.
1487 * doc/Makefile.in: This too.
1488
1489 2001-02-26 Timothy Wall <twall@cygnus.com>
1490
1491 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
1492 comments.
1493
1494 2001-02-26 Nick Clifton <nickc@redhat.com>
1495
1496 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
1497 up, replacing multiple if statements with a switch.
1498 (handle_COMDAT): New function.
1499
1500 2001-02-26 H.J. Lu <hjl@gnu.org>
1501
1502 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
1503 a warning for section flags we do not handle instead of
1504 aborting.
1505
1506 2001-02-26 Andreas Jaeger <aj@suse.de>
1507
1508 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
1509
1510 2001-02-22 Timothy Wall <twall@cygnus.com>
1511
1512 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
1513 * configure.in: Add objects for elf64_ia64_aix vectors.
1514 * configure: Regenerated.
1515 * configure.host: Recognize ia64-*-aix*.
1516 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
1517 for AIX. AIX5 requires most relocations to be dynamic (*all*
1518 binaries are somewhat similar to shared libraries).
1519 * targets.c: Add elf64_ia64_aix vectors.
1520
1521 2001-02-21 David Mosberger <davidm@hpl.hp.com>
1522
1523 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
1524 C8 said "1" instead of "8". Clarify error string for IMM22:
1525 "signed integer" instead of just "integer".
1526
1527 2001-02-20 Andreas Jaeger <aj@suse.de>
1528
1529 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
1530 PLT entries that could serve as a definition for a weak symbol.
1531
1532 2001-02-19 Jakub Jelinek <jakub@redhat.com>
1533
1534 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
1535 entries that could serve as a definition for a weak symbol.
1536 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
1537
1538 2001-02-18 David O'Brien <obrien@FreeBSD>
1539
1540 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
1541 FreeBSD/i386-CURRENT differently until I can figure out the needed
1542 corefile changes.
1543 * configure: Regenerate.
1544 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
1545 FreeBSD/PowerPC, and FreeBSD/sparc64.
1546
1547 2001-02-18 lars brinkhoff <lars@nocrew.org>
1548
1549 * Makefile.am: Add PDP-11 a.out target.
1550 * config.bfd: Likewise.
1551 * configure.in: Likewise.
1552 * targets.c: Likewise.
1553 * archures.c: Likewise.
1554 * bfd-in2.h: Likewise. Add PDP-11 relocations.
1555 * libbfd.h: Add PDP-11 relocations.
1556 * reloc.c: Likewise.
1557 * cpu-pdp11.c: New file.
1558 * pdp11.c: New file.
1559
1560 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
1561 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1562 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
1563 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
1564 (GET_MAGIC): New macro.
1565 (PUT_MAGIC): Likewise.
1566 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
1567
1568 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
1569
1570 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
1571 multiarch needs it).
1572
1573 2001-02-18 H.J. Lu <hjl@gnu.org>
1574
1575 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
1576 index.
1577
1578 2001-02-18 Kazu Hirata <kazu@hxi.com>
1579
1580 * vms-misc.c: Fix formatting.
1581
1582 2001-02-16 Kazu Hirata <kazu@hxi.com>
1583
1584 * vms.c: Fix formatting.
1585
1586 2001-02-14 H.J. Lu <hjl@gnu.org>
1587
1588 * elf.c (elf_find_function): New function.
1589 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
1590 the file name and function name.
1591
1592 2001-02-14 Nick Clifton <nickc@redhat.com>
1593
1594 * ecoff.c (bfd_debug_section): Update to initialise new fields in
1595 asection structure.
1596
1597 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
1598 (BFD64_BACKENDS): Add pepigen.c
1599 Add rules to create peigen.c and pepigen.c from peXXigen.c.
1600
1601 * Makefile.in: Regenerate.
1602 * configure: Regenerate.
1603 * po/POTFILES.in: Regenerate.
1604 * po/bfd.pot: Regenerate.
1605
1606 2001-02-14 H.J. Lu <hjl@gnu.org>
1607
1608 * libcoff-in.h (pe_tdata): Add members target_subsystem and
1609 force_minimum_alignment.
1610
1611 2001-02-14 Bo Thorsen <bo@suse.de>
1612
1613 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
1614 (elf64_86_64_size_info): Struct added to fix a problem
1615 with the hashtable string entries.
1616 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
1617 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
1618 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
1619 remove the FIXME for this.
1620 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
1621 section. Also removed the FIXME for it.
1622 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
1623 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
1624 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
1625
1626 2001-02-13 Richard Henderson <rth@redhat.com>
1627
1628 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
1629 and not user provided.
1630
1631 2001-02-13 Kazu Hirata <kazu@hxi.com>
1632
1633 * vms.c (vms_print_symbol): Remove unreachable code.
1634
1635 * rs6000-core.c: Fix formatting.
1636
1637 2001-02-13 David Mosberger <davidm@hpl.hp.com>
1638
1639 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
1640 as _bfd_XXi_only_swap_filehdr_out.
1641 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
1642 pe->force_minimum_alignment to TRUE.
1643 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
1644 PEI_TARGET_SUBSYSTEM.
1645 (pe_print_private_bfd_data): Call
1646 _bfd_XX_print_private_bfd_data_common() instead of
1647 _bfd_pe_print_private_bfd_data_common().
1648 (pe_bfd_copy_private_bfd_data): Call
1649 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
1650 _bfd_pe_bfd_copy_private_bfd_data_common().
1651 (coff_bfd_copy_private_section_data): Define as
1652 _bfd_XX_bfd_copy_private_section_data instead of
1653 _bfd_pe_bfd_copy_private_section_data.
1654 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
1655 of a _bfd_pe_get_symbol_info.
1656
1657 * peigen.c: Delete.
1658
1659 * peXXigen.c: Renamed from peigen.c.
1660 (COFF_WITH_XX): Define this macro (will get expanded into
1661 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
1662 compiled as peigen.c or pepigen.c.
1663 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
1664 define the canonical PEP structures and definitions.
1665 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
1666 effect, enforce minimum file and section alignments. If
1667 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
1668 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
1669 so, by default, this is a no-op).
1670
1671 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
1672 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
1673 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
1674 _bfd_pefoo if it's not defined. Use these macros to define
1675 coff swap macros.
1676
1677 * libcoff.h (pe_tdata): Add members target_subsystem and
1678 force_minimum_alignment.
1679
1680 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
1681 COFF_WITH_pep.
1682 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
1683
1684 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
1685 peigen.lo.
1686
1687 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
1688 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
1689 PEPAOUTHDR.
1690
1691 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
1692 (BFD64_BACKENDS_CFILES): Mention pepigen.c
1693 (peigen.c): Add rule to generate from peXXigen.c.
1694 (pepigen.c): Ditto.
1695 (pepigen.lo): List dependencies for pepigen.lo.
1696
1697 2001-02-13 Alan Modra <alan@linuxcare.com.au>
1698
1699 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
1700 $global$ referenced but not defined, set its value here.
1701
1702 2001-02-09 Bo Thorsen <bo@suse.de>
1703
1704 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
1705 alignment to 3.
1706 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
1707 and relocation.
1708 (elf64_x86_64_relocate_section): Fix formatting.
1709 (elf64_x86_64_relocate_section): Fix addend for relocation of
1710 R_X86_64_(8|16|32|PC8|PC16|PC32).
1711
1712 2001-02-12 Jan Hubicka <jh@suse.cz>
1713
1714 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
1715
1716 2001-02-11 H.J. Lu <hjl@gnu.org>
1717
1718 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
1719 alignment.
1720
1721 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1722
1723 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
1724 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
1725 relocations against dynsym symbols.
1726
1727 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
1728 the R_MIPS_26 relocation.
1729 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
1730 the R_MIPS_26 relocation.
1731 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
1732 relocation.
1733 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
1734 the R_MIPS_26 relocation.
1735 (mips_elf64_howto_table_rela): Likewise.
1736
1737 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
1738 member to mark symbols that have non-CALL relocations against
1739 them.
1740 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
1741 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
1742 R_MIPS_GOT16.
1743 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
1744 non-CALL relocation against it is encountered.
1745 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
1746 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
1747 no_fn_stub is not set.
1748
1749 * elf32-mips.c (mips_elf_output_extsym): Get the output section
1750 information from the real symbol for indirect ones.
1751 Check no_fn_stub to find out if a symbol has a function stub
1752 indeed.
1753
1754 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1755
1756 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
1757 * Makefile.in: Regenerate.
1758
1759 2001-02-09 David Mosberger <davidm@hpl.hp.com>
1760
1761 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
1762 true if section name is an unwind table section name.
1763 (elfNN_ia64_additional_program_headers): Count each unwind section
1764 separately.
1765 (elfNN_ia64_modify_segment_map): Install one unwind program header
1766 for each unwind separate section. Note: normally the linker
1767 script merges the unwind sections that go into a single segment,
1768 so this still generates at most one unwind program header per
1769 segment.
1770
1771 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
1772 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
1773 (elfNN_ia64_fake_sections): Mark sections with names that start
1774 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
1775 unwind section.
1776
1777 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
1778 Use it to make sh_info in unwind section point to the text section
1779 it applies to.
1780
1781 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1782
1783 * Makefile.am: Add linux target for S/390.
1784 * archures.c: Likewise.
1785 * bfd-in2.h: Likewise.
1786 * config.bfd: Likewise.
1787 * configure.in: Likewise.
1788 * elf.c: Likewise.
1789 * libbfd.h: Likewise.
1790 * targets.c: Likewise.
1791 * cpu-s390.c: New file.
1792 * elf32-s390.c: New file.
1793 * elf64-s390.c: New file.
1794
1795 2001-02-09 Nick Clifton <nickc@redhat.com>
1796
1797 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
1798 ImageBase. This has already been done by coff_swap_hdr_in.
1799
1800 2001-02-09 Jakub Jelinek <jakub@redhat.com>
1801
1802 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
1803
1804 2001-02-09 Jakub Jelinek <jakub@redhat.com>
1805
1806 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
1807 (sparc64_elf_relocate_section): Likewise.
1808
1809 2001-02-09 Mark Kettenis <kettenis@gnu.org>
1810
1811 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
1812 similar to R_SPARC_32.
1813 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
1814
1815 2001-02-08 H.J. Lu <hjl@gnu.org>
1816
1817 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
1818 relocation entries for weak definitions when building DSO with
1819 -Bsymbolic.
1820
1821 2001-02-08 Richard Henderson <rth@redhat.com>
1822
1823 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
1824 before visibility. Locally defined protected symbols are not
1825 dynamic.
1826
1827 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
1828
1829 * config.bfd: Enable coff64 for rs6000-*. Patch from
1830 <hzoli@austin.ibm.com>.
1831
1832 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
1833
1834 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
1835 found, do not attempt to find dwarf2 info before returning.
1836
1837 2001-02-07 Jakub Jelinek <jakub@redhat.com>
1838
1839 * elflink.h (is_global_symbol_definition): Rename to
1840 is_global_data_symbol_definition and have it reject function
1841 symbols.
1842 (elf_link_is_defined_archive_symbol): Use renamed function.
1843
1844 2001-02-07 Todd Vierling <tv@wasabisystems.com>
1845
1846 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
1847 * libbfd.h (bfd_target_vector): Likewise.
1848 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
1849 make static; create pointer reference named bfd_target_vector.
1850 (_bfd_target_vector_entries): Calculate this based on the array
1851 typed _bfd_target_vector.
1852
1853 2001-02-06 H.J. Lu <hjl@gnu.org>
1854
1855 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
1856 internal symbols are not dynamic.
1857 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
1858
1859 2001-02-06 Nick Clifton <nickc@redhat.com>
1860
1861 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
1862 that it will not be pulled into the list of files that make up
1863 po/POTFILES.in.
1864 * Makefile.in: Regenerate.
1865 * po/bfd.pot: Regenerate.
1866
1867 2001-02-06 H.J. Lu <hjl@gnu.org>
1868
1869 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
1870 checking.
1871 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
1872 external_PEI_IMAGE_hdr.
1873
1874 2001-02-06 Kazu Hirata <kazu@hxi.com>
1875
1876 * elf-m10200.c: Fix formatting.
1877
1878 2001-02-04 Nick Clifton <nickc@redhat.com>
1879
1880 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
1881 rel, it will be handled later on.
1882
1883 2001-02-02 Fred Fish <fnf@ninemoons.com>
1884
1885 * Makefile.in: Fix typo.
1886
1887 2001-02-01 Kazu Hirata <kazu@hxi.com>
1888
1889 * elf-m10300.c: Fix formatting.
1890
1891 2001-01-30 Alan Modra <alan@linuxcare.com.au>
1892
1893 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
1894 (elf_backend_get_symbol_type): Define.
1895 (elf64_hppa_object_p): Set architecture and machine from elf
1896 header flags.
1897
1898 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
1899
1900 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
1901 before mdebug.
1902
1903 2001-01-26 Richard Henderson <rth@redhat.com>
1904
1905 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
1906 for non-default visibility.
1907 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
1908 delete ugly macro and replace with pretty function.
1909
1910 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
1911
1912 * coff-go32.c: Update copyright.
1913 * coff-stgo32.c: Likewise.
1914 * coff-go32.c (COFF_LONG_FILENAMES): Define.
1915 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
1916 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
1917 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
1918
1919 2001-01-25 Kazu Hirata <kazu@hxi.com>
1920
1921 * bfd-in2.h: Rebuild.
1922 * libbfd.h: Likewise.
1923
1924 2001-01-23 H.J. Lu <hjl@gnu.org>
1925
1926 * bfd-in2.h: Rebuild.
1927
1928 2001-01-23 H.J. Lu <hjl@gnu.org>
1929
1930 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
1931 is NULL or PRIV(vms_rec) is outside of the buffer.
1932
1933 2001-01-23 Kazu Hirata <kazu@hxi.com>
1934
1935 * coff64-rs6000.c: Fix formatting.
1936 * coff-arm.c: Likewise.
1937 * coffgen.c: Likewise.
1938 * cofflink.c: Likewise.
1939 * coff-mcore.c: Likewise.
1940 * coff-mips.c: Likewise.
1941 * coff-pmac.c: Likewise.
1942 * coff-ppc.c: Likewise.
1943 * coff-rs6000.c: Likewise.
1944 * elf32.c: Likewise.
1945 * elf32-fr30.c: Likewise.
1946 * elf32-i370.c: Likewise.
1947 * elf32-i860.c: Likewise.
1948 * elf32-m32r.c: Likewise.
1949 * elf32-m68k.c: Likewise.
1950 * elf32-mcore.c: Likewise.
1951 * elf32-ppc.c: Likewise.
1952 * elf32-sh.c: Likewise.
1953 * elf32-v850.c: Likewise.
1954 * elf64-alpha.c: Likewise.
1955 * elf64-sparc.c: Likewise.
1956 * elflink.c: Likewise.
1957 * elflink.h: Likewise.
1958 * elf-m10200.c: Likewise.
1959 * elf-m10300.c: Likewise.
1960 * elfxx-ia64.c: Likewise.
1961
1962 * aoutx.h: Fix formatting.
1963 * bfd.c: Likewise.
1964 * bfd-in2.h: Likewise.
1965 * bfd-in.h: Likewise.
1966 * cpu-i386.c: Likewise.
1967 * cpu-m68hc11.c: Likewise.
1968 * dwarf2.c: Likewise.
1969 * elf64-x86-64.c: Likewise.
1970 * format.c: Likewise.
1971 * freebsd.h: Likewise.
1972 * hash.c: Likewise.
1973 * hp300hpux.c: Likewise.
1974 * hppabsd-core.c: Likewise.
1975 * hpux-core.c: Likewise.
1976
1977 2001-01-22 Bo Thorsen <bo@suse.de>
1978
1979 * elf64-x86-64.c: Added PIC support for X86-64.
1980 (elf64_x86_64_link_hash_newfunc): Function added.
1981 (elf64_x86_64_link_hash_table_create): Likewise.
1982 (elf64_x86_64_check_relocs): Likewise.
1983 (elf64_x86_64_gc_mark_hook): Likewise.
1984 (elf64_x86_64_gc_sweep_hook): Likewise.
1985 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
1986 (elf64_x86_64_size_dynamic_sections): Likewise.
1987 (elf64_x86_64_discard_copies): Likewise.
1988 (elf64_x86_64_finish_dynamic_symbol): Likewise.
1989 (elf64_x86_64_finish_dynamic_sections): Likewise.
1990 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
1991
1992 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1993
1994 * Makefile.am (install-data-local): Make use of $(DESTDIR).
1995 * Makefile.in: Regenerate.
1996
1997 2001-01-21 Kazu Hirata <kazu@hxi.com>
1998
1999 * coff-a29k.c: Fix formatting.
2000
2001 2001-01-19 H.J. Lu <hjl@gnu.org>
2002
2003 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
2004 relocation section names.
2005 (elf_i386_relocate_section): Report files with bad relocation
2006 section names and return false.
2007
2008 2001-01-17 Bo Thorsen <bo@suse.de>
2009
2010 * targets.c: Alphabetize list of xvecs.
2011
2012 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2013
2014 * config.bfd: Add linux target variant for elfxx-hppa.
2015 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
2016 bfd_elf64_hppa_linux_vec.
2017 * configure: Regenerate.
2018 * elf64-hppa.c: Include elf64-target.h again to support linux
2019 target variant.
2020 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
2021 * elf32-hppa.c: Include elf32-target.h again to support linux
2022 target variant.
2023 (elf32_hppa_post_process_headers): New function.
2024 (elf_backend_post_process_headers): Define.
2025 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
2026 bfd_elf32_hppa_linux_vec.
2027
2028 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
2029 and data_segment_base fields.
2030 (elf32_hppa_link_hash_table_create ): Init them.
2031 (elf32_hppa_check_relocs): Update comments.
2032 (hppa_record_segment_addr): New function.
2033 (elf32_hppa_relocate_section): Call it.
2034 (final_link_relocate): Handle R_PARISC_SEGREL32.
2035 (elf32_hppa_final_link): New function.
2036 (bfd_elf32_bfd_final_link): Define to call it.
2037 (hppa_unwind_entry_compare): New function.
2038 * cache.c (bfd_open_file): Create files in write+read mode.
2039
2040 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
2041 SEGREL32 and numerous other relocs. Change duplicate
2042 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
2043
2044 * opncls.c (bfd_fdopenr): Add parens like the comment says around
2045 O_ACCMODE.
2046
2047 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
2048 .plt entries for DT_INIT and DT_FINI.
2049 (elf32_hppa_finish_dynamic_sections): Remove special handling of
2050 DT_INIT and DT_FINI.
2051
2052 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
2053 offsets for stub .plt access if wide mode. Check offset in range.
2054
2055 2001-01-13 Nick Clifton <nickc@redhat.com>
2056
2057 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
2058 line.
2059
2060 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
2061 line.
2062
2063 2001-01-12 Alan Modra <alan@linuxcare.com.au>
2064
2065 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
2066 * configure: Regenerate.
2067
2068 2001-01-11 Peter Targett <peter.targett@arccores.com>
2069
2070 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
2071 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
2072 * cpu-arc.c (arch_info_struct): Add entries for variants.
2073 (bfd_arc_arch) Set default to bfd_mach_arc_5.
2074 (arc_get_mach) Don't assume machine names prefixed arc- before
2075 testing.
2076 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
2077 selections.
2078 (arc_elf_final_write_processing) Likewise.
2079 (ELF_MACHINE_CODE) Use EM_ARC.
2080
2081 2001-01-10 Nick Clifton <nickc@redhat.com>
2082
2083 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
2084
2085 2001-01-07 Philip Blundell <philb@gnu.org>
2086
2087 * README: Replace `bug-gnu-utils@gnu.org' with
2088 `bug-binutils@gnu.org'.
2089
2090 2001-01-04 Kazu Hirata <kazu@hxi.com>
2091
2092 * som.c: Fix formatting.
2093
2094 2001-01-03 Kazu Hirata <kazu@hxi.com>
2095
2096 * ecoffswap.h: Fix formatting.
2097 * elf-bfd.h: Likewise.
2098 * elfarm-nabi.c: Likewise.
2099 * elfarm-oabi.c: Likewise.
2100 * elfcode.h: Likewise.
2101 * elfcore.h: Likewise.
2102 * elflink.c: Likewise.
2103 * elflink.h: Likewise.
2104 * elfxx-ia64.c: Likewise.
2105 * elfxx-target.h: Likewise.
2106 * libbfd.c: Likewise
2107 * linker.c: Likewise.
2108 * lynx-core.c: Likewise.
2109
2110 2001-01-02 Kazu Hirata <kazu@hxi.com>
2111
2112 * pc532-mach.c: Fix formatting.
2113 * pe-arm.c: Likewise.
2114 * pe-i386.c: Likewise.
2115 * pe-mips.c: Likewise.
2116 * pe-ppc.c: Likewise.
2117 * pe-sh.c: Likewise.
2118 * pei-mips.c: Likewise.
2119 * pei-sh.c: Likewise.
2120 * peicode.h: Likewise.
2121 * ppcboot.c: Likewise.
2122 * ptrace-core.c: Likewise.
2123
2124 2001-01-01 Kazu Hirata <kazu@hxi.com>
2125
2126 * reloc.c: Fix formatting.
2127 * riscix.c: Likewise.
2128 * rs6000-core.c: Likewise.
2129 * xcoff-target.h: Likewise.
2130
2131 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
2132
2133 * elfcode.h (elf_object_p): Also restore the bfd mach field on
2134 error, by calling bfd_default_set_arch_mach with incoming
2135 values.
2136
2137 2000-12-26 Kazu Hirata <kazu@hxi.com>
2138
2139 * vaxnetbsd.c: Fix formatting.
2140 * versados.c: Likewise.
2141 * vms-gsd.c: Likewise.
2142 * vms-hdr.c: Likewise.
2143 * vms-misc.c: Likewise.
2144
2145 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
2146
2147 * archive.c (coff_write_armap): Don't write more than symbol_count
2148 `archive_member_file_ptr's.
2149
2150 2000-12-25 Kazu Hirata <kazu@hxi.com>
2151
2152 * vms-tir.c: Fix formatting.
2153
2154 2000-12-23 Kazu Hirata <kazu@hxi.com>
2155
2156 * vms.c: Fix formatting.
2157 * vms.h: Likewise.
2158
2159 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
2160
2161 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
2162
2163 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
2164
2165 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
2166 arithmetic.
2167
2168 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
2169
2170 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
2171
2172 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
2173
2174 * libbfd.c (bfd_get_bits): Added
2175 (bfd_put_bits): Likewise
2176 * bfd-in.h: Declared the above.
2177 * bfd-in2.h: Regenerated.
2178
2179 2000-12-20 Kazu Hirata <kazu@hxi.com>
2180
2181 * targets.c: Fix formatting.
2182 * tekhex.c: Likewise.
2183 * trad-core.c: Likewise.
2184
2185 2000-12-19 Kazu Hirata <kazu@hxi.com>
2186
2187 * sco5-core.c: Fix formatting.
2188 * section.c: Likewise.
2189 * sparclinux.c: Likewise.
2190 * sparclynx.c: Likewise.
2191 * sparcnetbsd.c: Likewise.
2192 * srec.c: Likewise.
2193 * stabs.c: Likewise.
2194 * stab-syms.c: Likewise.
2195 * sunos.c: Likewise.
2196 * syms.c: Likewise.
2197 * sysdep.h: Likewise.
2198
2199 2000-12-18 Nick Clifton <nickc@redhat.com>
2200
2201 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
2202 defined.
2203 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
2204 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
2205
2206 2000-12-18 Nick Clifton <nickc@redhat.com>
2207
2208 * vms-misc.c (_bfd_vms_get_record): Add default case to
2209 file_format switch.
2210
2211 2000-12-15 Miloslav Trmac <mitr@volny.cz>
2212
2213 * elfcore.h (elf_core_file_p): Move to the start of the program
2214 headers before attempting to read them.
2215
2216 2000-12-14 Kazu Hirata <kazu@hxi.com>
2217
2218 * peigen.c: Fix formatting.
2219 * som.c: Likewise.
2220 * som.h: Likewise.
2221
2222 2000-12-13 Kazu Hirata <kazu@hxi.com>
2223
2224 * peigen.c: Fix formatting.
2225
2226 2000-12-12 Jim Wilson <wilson@redhat.com>
2227
2228 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
2229
2230 2000-12-08 Mark Salter <msalter@redhat.com>
2231
2232 * binary.c (binary_set_section_contents): Ignore sections
2233 with zero size.
2234
2235 2000-12-12 Kazu Hirata <kazu@hxi.com>
2236
2237 * m68klinux.c: Fix formatting.
2238 * m68knetbsd.c: Likewise.
2239 * mipsbsd.c: Likewise.
2240 * netbsd-core.c: Likewise.
2241 * netbsd.h: Likewise.
2242 * newsos3.c: Likewise.
2243 * nlm32-alpha.c: Likewise.
2244 * nlm32-i386.c: Likewise.
2245 * nlm32-ppc.c: Likewise.
2246 * nlm32-sparc.c: Likewise.
2247 * nlmcode.h: Likewise.
2248 * nlmswap.h: Likewise.
2249 * nlm-target.h: Likewise.
2250 * ns32knetbsd.c: Likewise.
2251
2252 2000-12-10 Fred Fish <fnf@be.com>
2253
2254 * elflink.h (elf_link_output_extsym): Don't complain about undefined
2255 symbols in shared objects if allow_shlib_undefined is true.
2256
2257 2000-12-12 Nick Clifton <nickc@redhat.com>
2258
2259 * cpu-sh.c: Fix formattng.
2260 * elf.c: Fix formattng.
2261 * elf32-mips.c: Fix formattng.
2262 * elf32-sh.c: Fix formattng.
2263 * elf64-alpha.c: Fix formattng.
2264
2265 2000-12-09 Nick Clifton <nickc@redhat.com>
2266
2267 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
2268 dwarf2_find_line_info as last parameter to invocation of
2269 _bfd_dwarf2_find_nearest_line.
2270 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
2271 dwarf2_find_line_info as last parameter to invocation of
2272 _bfd_dwarf2_find_nearest_line.
2273
2274 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
2275
2276 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
2277 (BFD_LIBS): ...to here.
2278 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
2279 (BFD_LIBS_CFILES): ...to here.
2280 * Makefile.in: Regenerate.
2281 * configure.in: Remove dwarf.lo from the elf shell variable.
2282 * configure: Regenerate.
2283 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
2284 * libcoff.h: Regenerate.
2285 * coffgen.c (coff_find_nearest_line): Call
2286 _bfd_dwarf2_find_nearest_line.
2287 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
2288 accordingly.
2289 (read_abbrevs): Likewise
2290 (decode_line_info): Likewise.
2291 (parse_comp_unit): Likewise.
2292 (comp_unit_find_nearest_line): Likewise.
2293 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
2294 * libbfd.h: Regenerate.
2295 * elf.c (_bfd_elf_find_nearest_line): Update call.
2296 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
2297 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
2298 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
2299 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
2300 (styp_to_sec_flags): Handle DWARF2 sections.
2301 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
2302 to _bfd_find_nearest_line.
2303 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
2304 call to _bfd_find_nearest_line.
2305
2306 2000-12-08 Kazu Hirata <kazu@hxi.com>
2307
2308 * coffgen.c: Fix formatting.
2309 * elf-m10300.c: Likewise.
2310 * elf32-i386.c: Likewise.
2311 * elf32-i960.c: Likewise.
2312 * elf32-m68k.c: Likewise.
2313 * elf32-mcore.c: Likewise.
2314 * elf32-ppc.c: Likewise.
2315 * elf32-sh.c: Likewise.
2316 * elf32-sparc.c: Likewise.
2317 * elf32-v850.c: Likewise.
2318 * elf64-alpha.c: Likewise.
2319 * elf64-hppa.c: Likewise.
2320 * elf64-mips.c: Likewise.
2321 * elf64-sparc.c: Likewise.
2322
2323 2000-12-07 Kazu Hirata <kazu@hxi.com>
2324
2325 * elf32-ppc.c: Fix formatting.
2326 * elf64-x86-64.c: Likewise.
2327
2328 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
2329
2330 From Ralf Baechle <ralf@gnu.org>
2331
2332 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
2333 BFDs containing no sections or empty .text, .data or .bss sections
2334 to be merged, regardless of their flags.
2335
2336 2000-12-06 Kazu Hirata <kazu@hxi.com>
2337
2338 * elf32-m32r.c: Fix formatting.
2339 * elf32-m68hc11.c: Likewise.
2340 * elf32-m68hc12.c: Likewise.
2341 * elf32-m68k.c: Likewise.
2342 * elf32-mcore.c: Likewise.
2343 * elf32-pj.c: Likewise.
2344 * elf32-ppc.c: Likewise.
2345
2346 2000-12-05 Kazu Hirata <kazu@hxi.com>
2347
2348 * elf32-fr30.c: Fix formatting.
2349 * elf32-hppa.c: Likewise.
2350 * elf32-i370.c: Likewise.
2351 * elf32-i386.c: Likewise.
2352 * elf32-i860.c: Likewise.
2353 * elf32-i960.c: Likewise.
2354
2355 2000-12-03 Kazu Hirata <kazu@hxi.com>
2356
2357 * elf32-arm.h: Fix formatting.
2358 * elf32-avr.c: Likewise.
2359 * elf32-cris.c: Likewise.
2360 * elf32-d10v.c: Likewise.
2361 * elf32-d30v.c: Likewise.
2362 * elf-hppa.h: Likewise.
2363 * elf-m10200.c: Likewise.
2364 * elf-m10300.c: Likewise.
2365
2366 2000-12-01 Chris Demetriou <cgd@sibyte.com>
2367
2368 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
2369 bfd_mach_mips32_4k. Update FIXME comment.
2370 * archures.c (bfd_mach_mips32): New constant.
2371 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2372 the latter, renumber it.
2373 * bfd-in2.h (bfd_mach_mips32): New constant.
2374 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
2375 the latter, renumber it.
2376 * cpu-mips.c (I_mips32): New constant.
2377 (I_mips4K, I_mips32_4k): Rename the former to the latter.
2378 (arch_info_struct): Add bfd_mach_mips32 entry, replace
2379 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
2380 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
2381 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
2382 with E_MIPS_MACH_MIPS32_4K.
2383 (_bfd_mips_elf_final_write_processing): Replace
2384 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
2385 bfd_mach_mips32 case.
2386 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
2387 comparison with support for MIPS32.
2388 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
2389 MIPS32.
2390
2391 * aoutx.h (NAME(aout,machine_type)): Add cases for
2392 bfd_mach_mips5 and bfd_mach_mips64.
2393 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
2394 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
2395 * cpu_mips.c (I_mips5, I_mips64): New definitions.
2396 (arch_info_struct): Add entries for bfd_mach_mips5 and
2397 bfd_mach_mips64.
2398 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
2399 _bfd_mips_elf_print_private_bfd_data): Add cases for
2400 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
2401 (_bfd_mips_elf_final_write_processing): Add cases for
2402 bfd_mach_mips5 and bfd_mach_mips64.
2403
2404 * aoutx.h (NAME(aout,machine_type)): Add a
2405 bfd_mach_mips_sb1 case.
2406 * archures.c (bfd_mach_mips_sb1): New constant.
2407 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
2408 * cpu-mips.c (I_sb1): New constant.
2409 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
2410 * elf32-mips.c (elf_mips_mach): Add case for
2411 E_MIPS_MACH_SB1.
2412 (_bfd_mips_elf_final_write_processing): Add case for
2413 bfd_mach_mips_sb1.
2414
2415 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2416
2417 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
2418 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2419 (sparc*-*-rtems*): Switched from a.out to ELF.
2420
2421 2000-11-30 Jan Hubicka <jh@suse.cz>
2422
2423 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
2424 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
2425 (elf64-x86-64.lo): Add dependencies.
2426 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
2427 bfd_mach_x86_64_intel_syntax.
2428 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
2429 * config.bfd (x86_64): Add.
2430 * configure.in: Add support for bfd_elf64_x86_64_vec.
2431 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
2432 (bfd_i386_arch, i8086_ar): Link in.
2433 * elf64-x86-64.c: New file.
2434 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
2435 * targets.c (bfd_elf64_x86_64_vec): Add.
2436 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
2437
2438 2000-11-30 Kazu Hirata <kazu@hxi.com>
2439
2440 * xcofflink.c: Fix formatting.
2441
2442 2000-11-28 Kazu Hirata <kazu@hxi.com>
2443
2444 * aoutx.h: Fix formatting.
2445 * bfd-in.h: Likewise.
2446 * bfd-in2.h: Likewise.
2447 * cache.c: Likewise.
2448 * cisco-core.c: Likewise.
2449 * coff64-rs6000.c: Likewise.
2450 * coffcode.h: Likewise.
2451 * coffswap.h: Likewise.
2452 * corefile.c: Likewise.
2453 * elf32-mips.c: Likewise.
2454
2455 2000-11-27 Kazu Hirata <kazu@hxi.com>
2456
2457 * aout-adobe.c: Fix formatting.
2458 * coff64-rs6000.c: Likewise.
2459 * coffgen.c: Likewise.
2460 * cofflink.c: Likewise.
2461
2462 2000-11-27 Philip Blundell <pb@futuretv.com>
2463
2464 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
2465 (obj_coff_strings_written): New accessor macro for above.
2466 * libcoff.h: Regenerate.
2467 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
2468 strings.
2469 * coffcode.h (coff_write_object_contents): No need to write out
2470 the string table if it's already been done.
2471
2472 2000-11-22 Philip Blundell <pb@futuretv.com>
2473
2474 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
2475 weak undefined symbols.
2476
2477 2000-11-24 Nick Clifton <nickc@redhat.com>
2478
2479 * archures.c (bfd_mach_arm_5TE): Define.
2480 (bfd_mach_arm+XScale): Define.
2481 * bfd-in2.h: Regenerate.
2482
2483 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
2484 BFD_RELOC_ARM_PCREL_BLX.
2485
2486 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
2487 XScale machine numbers.
2488
2489 * config.bfd (xscale-elf): Add target.
2490 (xscale-coff): Add target.
2491
2492 * cpu-arm.c: Add xscale machine name.
2493 Add v5t, v5te and XScale machine numbers.
2494
2495 2000-11-23 Kazu Hirata <kazu@hxi.com>
2496
2497 * aix386-core.c: Fix formatting.
2498
2499 2000-11-22 Jim Wilson <wilson@redhat.com>
2500
2501 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
2502 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
2503 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
2504 (ins_imms_scaled): Initialize sign_bit at function entry.
2505 (elf64_ia64_operands): Add missing initializers.
2506 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
2507 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
2508 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
2509 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
2510 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
2511 parameters.
2512 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
2513 and free_extsyms at function entry.
2514 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
2515 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
2516 (get_got): Delete unused local srel.
2517 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
2518 (elfNN_ia64_relocate_section): Delete unused local dynindx.
2519
2520 2000-11-21 Kazu Hirata <kazu@hxi.com>
2521
2522 * coff-a29k.c: Fix formatting.
2523 * coff-h8500.c: Likewise.
2524 * coff-i960.c: Likewise.
2525 * coff-ppc.c: Likewise.
2526 * coff-rs6000.c: Likewise.
2527 * coff-stgo32.c: Likewise.
2528 * coff-tic54x.c: Likewise.
2529 * coff-w65.c: Likewise.
2530 * cpu-h8500.c: Likewise.
2531 * cpu-hppa.c: Likewise.
2532 * cpu-ns32k.c: Likewise.
2533 * ecoff.c: Likewise.
2534 * ecofflink.c: Likewise.
2535
2536 2000-11-21 Nick Clifton <nickc@redhat.com>
2537
2538 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
2539 remove possibility of infinite loop.
2540
2541 2000-11-20 Kazu Hirata <kazu@hxi.com>
2542
2543 * aix386-core.c: Fix formatting.
2544 * aout-adobe.c: Likewise.
2545 * aout-arm.c: Likewise.
2546 * aout-encap.c: Likewise.
2547 * aout-ns32k.c: Likewise.
2548 * aout-target.h: Likewise.
2549 * aout-tic30.c: Likewise.
2550 * aoutf1.h: Likewise.
2551 * aoutx.h: Likewise.
2552 * archive.c: Likewise.
2553 * bfd-in.h: Likewise.
2554 * bfd-in2.h: Likewise.
2555 * bfd.c: Likewise.
2556 * bout.c: Likewise.
2557
2558 2000-11-17 H.J. Lu <hjl@gnu.org>
2559
2560 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
2561 pltoff entries for DT_INIT and DT_FINI.
2562 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
2563 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
2564 entries.
2565
2566 2000-11-16 Richard Henderson <rth@redhat.com>
2567
2568 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
2569 (allocate_dynrel_entries): Likewise.
2570 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
2571 (set_pltoff_entry): Likewise.
2572 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
2573 (elfNN_ia64_reloc_type_lookup): Likewise.
2574 (elfNN_ia64_install_value): Likewise.
2575 (elfNN_ia64_relocate_section): Likewise.
2576 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
2577 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
2578
2579 2000-11-16 Kazu Hirata <kazu@hxi.com>
2580
2581 * cpu-a29k.c: Fix formatting.
2582 * cpu-alpha.c: Likewise.
2583 * cpu-arm.c: Likewise.
2584 * cpu-avr.c: Likewise.
2585 * cpu-d10v.c: Likewise.
2586 * cpu-h8500.c: Likewise.
2587 * cpu-hppa.c: Likewise.
2588 * cpu-i370.c: Likewise.
2589 * cpu-i386.c: Likewise.
2590 * cpu-i960.c: Likewise.
2591 * cpu-ia64-opc.c: Likewise.
2592 * cpu-ia64.c: Likewise.
2593 * cpu-m32r.c: Likewise.
2594 * cpu-m68hc11.c: Likewise.
2595 * cpu-m68hc12.c: Likewise.
2596 * cpu-m68k.c: Likewise.
2597 * cpu-m88k.c: Likewise.
2598 * cpu-mips.c: Likewise.
2599 * cpu-ns32k.c: Likewise.
2600 * cpu-pj.c: Likewise.
2601 * cpu-powerpc.c: Likewise.
2602 * cpu-sh.c: Likewise.
2603 * cpu-sparc.c: Likewise.
2604 * cpu-tic54x.c: Likewise.
2605 * cpu-v850.c: Likewise.
2606 * cpu-vax.c: Likewise.
2607 * cpu-w65.c: Likewise.
2608 * cpu-we32k.c: Likewise.
2609 * cpu-z8k.c: Likewise.
2610 * dwarf1.c: Likewise.
2611 * dwarf2.c: Likewise.
2612
2613 2000-11-15 Kazu Hirata <kazu@hxi.com>
2614
2615 * coff-arm.c: Fix formatting.
2616 * coff-ppc.c: Likewise.
2617 * coff-rs6000.c: Likewise.
2618 * coff-sh.c: Likewise.
2619 * coff-sparc.c: Likewise.
2620 * coff-tic30.c: Likewise.
2621 * coff-tic54x.c: Likewise.
2622 * coff-tic80.c: Likewise.
2623 * coff-w65.c: Likewise.
2624 * coff-we32k.c: Likewise.
2625 * coff-z8k.c: Likewise.
2626
2627 2000-11-15 Richard Henderson <rth@redhat.com>
2628
2629 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
2630 section with the same ALLOC|LOAD flags as the source section.
2631
2632 2000-11-14 Jakub Jelinek <jakub@redhat.com>
2633
2634 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
2635 by STO_ALPHA constants.
2636
2637 2000-11-14 Kazu Hirata <kazu@hxi.com>
2638
2639 * coff-pmac.c: Fix formatting.
2640 * coff-ppc.c: Likewise.
2641
2642 2000-11-13 H.J. Lu <hjl@gnu.org>
2643
2644 * elflink.h (elf_link_add_object_symbols): Also add indirect
2645 symbols for common symbols with the default version.
2646
2647 2000-11-09 Philip Blundell <pb@futuretv.com>
2648
2649 * section.c (STD_SECTION): Set gc_mark flag.
2650
2651 2000-11-11 Kazu Hirata <kazu@hxi.com>
2652
2653 * coff-i960.c: Likewise.
2654 * coff-m68k.c: Likewise.
2655 * coff-m88k.c: Likewise.
2656 * coff-mcore.c: Likewise.
2657 * coff-mips.c: Likewise.
2658
2659 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
2660
2661 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
2662
2663 2000-11-10 Kazu Hirata <kazu@hxi.com>
2664
2665 * coff-h8300.c: Fix formatting.
2666 * coff-h8500.c: Likewise.
2667 * coff-i386.c: Likewise.
2668 * coff-i860.c: Likewise.
2669 * coff-i960.c: Likewise.
2670 * coff-ia64.c: Likewise.
2671
2672 2000-11-09 Kazu Hirata <kazu@hxi.com>
2673
2674 * archive.c: Fix formatting.
2675 * archures.c: Likewise.
2676
2677 2000-11-07 Richard Henderson <rth@redhat.com>
2678
2679 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
2680 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
2681 * section.c (bfd_set_section_contents): Call memcpy if
2682 section->contents set and location not equal to contents plus offset.
2683
2684 2000-11-08 Kazu Hirata <kazu@hxi.com>
2685
2686 * bfd-in.h: Fix formatting.
2687 * bfd-in2.h: Likewise.
2688 * bfd.c: Likewise.
2689 * binary.c: Likewise.
2690 * bout.c: Likewise.
2691 * coff-a29k.c: Likewise.
2692 * coff-alpha.c: Likewise.
2693 * coff-apollo.c: Likewise.
2694 * coff-aux.c: Likewise.
2695
2696 2000-11-07 Kazu Hirata <kazu@hxi.com>
2697
2698 * aix386-core.c: Fix formatting.
2699 * aoutf1.h: Likewise.
2700 * aoutx.h: Likewise.
2701 * archures.c: Likewise.
2702 * armnetbsd.c: Likewise.
2703
2704 2000-11-07 Alan Modra <alan@linuxcare.com.au>
2705
2706 * coff-h8300.c (special): Adjust reloc address.
2707
2708 2000-11-06 Steve Ellcey <sje@cup.hp.com>
2709
2710 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
2711 to differentiate elf32 and elf64 on ia64.
2712 * bfd-in2.h: Regenerate.
2713 * config.bfd: Add target for "ia64*-*-hpux*".
2714 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
2715 * configure: Regenerate.
2716 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
2717 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
2718
2719 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
2720 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
2721 * Makefile.in: Regnerate.
2722 * elf64-ia64.c: Deleted.
2723 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
2724
2725 2000-11-06 Kazu Hirata <kazu@hxi.com>
2726
2727 * aout-adobe.c: Fix formatting.
2728 * aout-arm.c: Likewise.
2729 * aout-cris.c: Likewise.
2730 * aout-encap.c: Likewise.
2731 * aout-ns32k.c: Likewise.
2732 * aout-target.h: Likewise.
2733 * aout-tic30.c: Likewise.
2734
2735 2000-11-05 Philip Blundell <philb@gnu.org>
2736
2737 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
2738 BFDs containing no sections to be merged, regardless of their flags.
2739
2740 2000-11-04 Philip Blundell <philb@gnu.org>
2741
2742 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
2743 if a relocation for an undefined symbol also results in an
2744 overflow.
2745
2746 2000-11-06 Christopher Faylor <cgf@cygnus.com>
2747
2748 * config.bfd: Add support for Sun Chorus.
2749
2750 2000-11-05 David O'Brien <obrien@FreeBSD.org>
2751
2752 * configure.in: Recognize alpha-*-freebsd*.
2753 * configure: Regenerate.
2754
2755 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
2756
2757 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
2758 (Chunk): New global variable set by a parameter in objcopy.c.
2759 (S3Forced): New global variable set by a parameter in
2760 objcopy.c.
2761 (srec_set_section_contents): If S3Forced is true, always generate
2762 S3 records.
2763 (srec_write_section): Use 'Chunk' to limit maximum length of S
2764 records.
2765
2766 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2767
2768 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
2769 * Makefile.in: Regenerate.
2770 * bfd-in2.h: Regenerate.
2771 * po/bfd.pot: Regenerate.
2772
2773 2000-10-31 Philip Blundell <philb@gnu.org>
2774
2775 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
2776 EF_SOFT_FLOAT if it is defined.
2777
2778 2000-10-27 Philip Blundell <philb@gnu.org>
2779
2780 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
2781 attempts to mix PIC code with non-PIC, just mark the output as
2782 being position dependent.
2783 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
2784 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
2785 all mismatches, not just the first one.
2786
2787 2000-10-25 Chris Demetriou <cgd@sibyte.com>
2788
2789 * ieee.c (ieee_archive_p): Plug one of many possible
2790 memory leaks in error handling.
2791
2792 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2793
2794 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
2795 elf32_sparc_object_p, elf32_sparc_final_write_processing):
2796 Support v8plusb.
2797 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
2798 sparc64_elf_object_p): Support v9b.
2799 * archures.c: Declare v8plusb and v9b machines.
2800 * bfd-in2.h: Ditto.
2801 * cpu-sparc.c: Ditto.
2802
2803 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2804
2805 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
2806 of a GOT reloc.
2807
2808 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
2809 (SYMBOL_CALLS_LOCAL): New macro.
2810 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
2811 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
2812 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
2813 (ppc_elf_relocate_section): Use flag variable to determine
2814 whether the relocation refers to a local symbol.
2815 Test whether a PLTREL24 reloc will produce a reloc by looking
2816 to see whether a PLT entry was made.
2817
2818 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
2819
2820 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
2821 entries that could serve as a definition for a weak symbol.
2822
2823 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
2824
2825 From Ralf Baechle <ralf@gnu.org>
2826
2827 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
2828 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
2829 against local symbols.
2830 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
2831
2832 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2833
2834 * section.c (struct sec): Add kept_section.
2835 (struct bfd_comdat_info): Remove sec, we can use above.
2836 (STD_SECTION): Add initializer.
2837 (bfd_make_section_anyway): Init here too.
2838
2839 * bfd-in2.h: Regenerate.
2840
2841 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
2842 zeroing of `flags'.
2843 (elf_link_input_bfd): Set all asection->symbol->value's here, and
2844 fudge values for discarded link-once section symbols.
2845
2846 * elf64-hppa.c: Include alloca-conf.h
2847
2848 2000-10-11 Alan Modra <alan@linuxcare.com.au>
2849
2850 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
2851
2852 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
2853
2854 2000-10-10 Alan Modra <alan@linuxcare.com.au>
2855
2856 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
2857
2858 2000-10-10 Tom Rix <trix@redhat.com>
2859
2860 * section.c (bfd_make_section_anyway): Release newsect ptr when
2861 newsect->symbol fails to alloc. Use bfd_release instead of free.
2862
2863 2000-10-09 Richard Henderson <rth@cygnus.com
2864
2865 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
2866 (elf64_ia64_unwind_entry_compare): New.
2867 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
2868
2869 2000-10-07 Alan Modra <alan@linuxcare.com.au>
2870
2871 * elflink.h (size_dynamic_sections): Don't create various tags if
2872 .dynstr is excluded from the link. Don't set first dynsym entry
2873 if dynsymcount is zero.
2874 (elf_bfd_final_link): Don't try to swap out dynamic syms if
2875 .dynsym excluded from the link. Don't try to write any dynamic
2876 sections excluded from the link.
2877
2878 * elf.c (swap_out_syms): Handle global section symbols.
2879
2880 2000-10-05 DJ Delorie <dj@redhat.com>
2881
2882 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
2883 * coffcode.h (coff_set_alignment_hook): read extended reloc count
2884 (coff_write_relocs): write extended reloc count
2885 (coff_write_object_contents): account for extended relocs
2886
2887 2000-10-05 Jim Wilson <wilson@cygnus.com>
2888
2889 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
2890 field.
2891 * elf.c (_bfd_elf_make_section_from_shdr): Call the
2892 elf_backend_section_flags function.
2893 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
2894 code.
2895 (elf64_ia64_section_flags): New function containing flag conversion
2896 code.
2897 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
2898 * elfxx-target.h (elf_backend_section_flags): Define.
2899 (elfNN_bed): Initialize elf_backend_section_flags field.
2900
2901 2000-10-02 Alan Modra <alan@linuxcare.com.au>
2902
2903 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
2904 _bfd_elf32_gc_record_vtable. Correct a comment.
2905
2906 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
2907
2908 From Ralf Baechle <ralf@gnu.org>
2909
2910 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
2911 produces binaries with got[1] = 0x80000001 to differenciate them
2912 for the dynamic linker from the broken binaries produced by old
2913 versions.
2914
2915 2000-09-30 Petr Sorfa <petrs@sco.com>
2916
2917 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
2918 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
2919 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
2920 * configure: Regenerate.
2921
2922 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
2923
2924 Define two bfd_targets for absence and presence of leading
2925 underscore on symbols. Make sure to only link same kind.
2926 * elf32-cris.c (cris_elf_object_p,
2927 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
2928 cris_elf_merge_private_bfd_data): New.
2929 (elf_backend_object_p, elf_backend_final_write_processing,
2930 bfd_elf32_bfd_print_private_bfd_data,
2931 bfd_elf32_bfd_merge_private_bfd_data): Define.
2932 <Target vector definition>: Include elf32-target.h twice with
2933 different macro settings:
2934 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
2935 bfd_elf32_us_cris_vec.
2936 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
2937 (elf_symbol_leading_char): First as 0, then '_'.
2938 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
2939 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
2940 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
2941 * configure: Regenerate.
2942 * targets.c: Declare bfd_elf32_us_cris_vec.
2943 * po/bfd.pot: Regenerate.
2944
2945 2000-09-29 Momchil Velikov <velco@fadata.bg>
2946
2947 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
2948 R_ARM_THM_PC22 relocations.
2949
2950 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
2951
2952 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
2953
2954 2000-09-29 Momchil Velikov <velco@fadata.bg>
2955
2956 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
2957 is has the SEC_HAS_CONTENTS flag set.
2958
2959 2000-09-28 \81Örjan Friberg <orjanf@axis.com>
2960 Hans-Peter Nilsson <hp@axis.com>
2961
2962 * aout-cris.c (N_TXTADDR): Define.
2963
2964 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
2965
2966 * som.c: Include alloca-conf.h.
2967 * Makefile.am: "make dep-am"
2968 * Makefile.in: Regenerate.
2969
2970 2000-09-27 Alan Modra <alan@linuxcare.com.au>
2971
2972 * elf32-hppa.c (plt_stub): New.
2973 (PLT_STUB_ENTRY): Define.
2974 (elf32_hppa_link_hash_table): Change multi_subspace to packed
2975 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
2976 (elf32_hppa_link_hash_table_create): Init to suit.
2977 (elf32_hppa_check_relocs): Set has_12bit_branch and
2978 has_17bit_branch as appropriate.
2979 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
2980 non-local functions.
2981 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
2982 Add space for plt_stub as needed.
2983 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
2984 functions at plt_stub.
2985 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
2986 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
2987
2988 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
2989 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
2990 of fixed size, and if negative, disable handling of input sections
2991 before stub section. Set up default stub group size depending
2992 on detected branch relocs.
2993 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
2994 ensure different offsets from sym_value aren't rounded to
2995 different 2k blocks. Use lrsel and rrsel for other stubs too for
2996 consistency rather than necessity.
2997 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
2998 (final_link_relocate): Likewise.
2999 (elf32_hppa_relocate_section): Likewise.
3000
3001 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
3002 (_bfd_elf_hppa_gen_reloc_type): Generate them.
3003 (elf_hppa_final_link_relocate): Handle them.
3004 (elf_hppa_relocate_insn): Likewise.
3005 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
3006
3007 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
3008
3009 * elfcode.h (elf_object_p): Preserve and clear abfd section
3010 information. Restore at error.
3011
3012 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3013
3014 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
3015 is empty, make sure that its rva also 0. NT loader dislikes
3016 having otherwise.
3017
3018 2000-09-26 Steve Ellcey <sje@cup.hp.com>
3019
3020 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
3021 global by default.
3022
3023 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3024
3025 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
3026 currently unused RELATIVE_DYNAMIC_RELOCS code.
3027 (hppa_discard_copies): Likewise.
3028 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
3029 comments. Don't check non-code output sections for stub grouping.
3030
3031 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3032
3033 * section.c (bfd_get_unique_section_name): Return NULL if
3034 bfd_malloc fails.
3035
3036 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3037
3038 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
3039 instruction sequence to actually work.
3040 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
3041 accordingly.
3042
3043 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
3044
3045 * elf32-sh.c (sh_elf_relocate_section): Use
3046 _bfd_final_link_relocate to apply the relocation against a section
3047 symbol, when doing relocatable links.
3048
3049 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3050
3051 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
3052 to id_sec.
3053 (stub_hash_newfunc): Here too.
3054 (hppa_add_stub): And here.
3055 (elf32_hppa_link_hash_table): Remove stub_section_created,
3056 reloc_section_created, first_init_sec and first_fini_sec. Add
3057 stub_group.
3058 (elf32_hppa_link_hash_table_create): Init to suit.
3059 (hppa_get_stub_entry): Add support for grouping stub sections.
3060 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
3061 section code. Index stub vars by section->id.
3062 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
3063 exit paths. Zap allocation of above removed vars. Refine
3064 link-once test.
3065
3066 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
3067 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
3068 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
3069 rather than pointer to bfd_link_info.
3070 (hppa_add_stub): Likewise.
3071 (final_link_relocate): Likewise.
3072
3073 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
3074
3075 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
3076 link-once sections.
3077
3078 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
3079
3080 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
3081 ld/emulparams/shelf.sh.
3082
3083 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3084
3085 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
3086 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
3087 * bfd-in2.h: Regenerate.
3088
3089 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
3090
3091 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
3092 LITUSE relocations incorrectly if -relax is specified on the ld
3093 command line and the displacement field of the load or store
3094 instruction is non-zero. (Patch by paul.winalski@compaq.com)
3095
3096 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3097
3098 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
3099 first_fini_sec here.
3100 (elf32_hppa_size_stubs): Instead correctly find the first .init
3101 and .fini section here.
3102
3103 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
3104
3105 * elf32-hppa.c (clobber_millicode_symbols): New function.
3106 (elf32_hppa_size_dynamic_sections): Call it.
3107
3108 2000-09-14 Alan Modra <alan@linuxcare.com.au>
3109
3110 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
3111 packed. Add plabel, plt_abs packed booleans.
3112 (hppa_link_hash_newfunc): Init new fields.
3113 (PLABEL_PLT_ENTRY_SIZE): Define.
3114 (hppa_stub_name): Use size_t len vars.
3115 (hppa_add_stub): Likewise.
3116 (elf32_hppa_build_stubs): Likewise.
3117 (hppa_build_one_stub): Kill some compiler warnings.
3118 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
3119 if dynamic linking. Munge the local plt offsets into
3120 local_got_refcounts. Set h->plabel for all global PLABELs. Use
3121 size_t len vars. Add assert for plabel addend.
3122 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
3123 (elf32_hppa_hide_symbol): New function.
3124 (elf_backend_hide_symbol): Define.
3125 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
3126 with h->plabel set. Don't make plt entries to have dynamic syms
3127 when they have been forced local. If plt entry is used by a
3128 plabel, make it PLABEL_PLT_ENTRY_SIZE.
3129 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
3130 Set up .plt offsets for local syms.
3131 (elf32_hppa_relocate_section): Initialise plt entries for local
3132 syms. Leave weak undefined plabels zero. Make global plabel
3133 relocs against function symbol, and leave the addend zero.
3134 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
3135 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
3136 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
3137 relocs instead of SEGREL32 for dynamic got relocs.
3138 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
3139 (elf_backend_got_header_size): Adjust.
3140 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
3141
3142 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
3143 (hppa_type_of_stub): Use it instead of #if 0
3144 (hppa_discard_copies): Use it here too.
3145 (elf32_hppa_size_dynamic_sections): And here.
3146
3147 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
3148 (elf32_hppa_link_hash_table_create): And here.
3149 (hppa_build_one_stub): And here. Instead keep track of stub
3150 offset using _raw_size.
3151 (elf32_hppa_size_stubs): Likewise.
3152 (elf32_hppa_build_stubs): Likewise.
3153 (hppa_size_one_stub): Likewise. Resize reloc section too.
3154
3155 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
3156 first_fini_sec handling. Don't search for reloc section or set
3157 hplink->reloc_section_created here.
3158 (elf32_hppa_size_stubs): Instead search for reloc sections, and
3159 set reloc_section_created here.
3160 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
3161 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
3162 and DT_FINI.
3163 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
3164
3165 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
3166 with `hplink->root.'.
3167 (elf32_hppa_check_relocs): Likewise.
3168 (elf32_hppa_gc_sweep_hook): Likewise.
3169 (elf32_hppa_adjust_dynamic_symbol): Likewise.
3170 (hppa_handle_PIC_calls): Likewise.
3171 (elf32_hppa_size_dynamic_sections): Likewise.
3172 (elf32_hppa_set_gp): Likewise.
3173 (elf32_hppa_relocate_section): Likewise.
3174 (elf32_hppa_finish_dynamic_symbol): Likewise.
3175 (elf32_hppa_finish_dynamic_sections): Likewise.
3176
3177 From David Huggins-Daines <dhd@linuxcare.com>
3178 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
3179 defined weak symbols in shared links.
3180 (final_link_relocate): Calls to defined weak symbols in shared
3181 objects must go via import stubs, as the target might not be known
3182 at link time.
3183
3184 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
3185
3186 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
3187 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
3188 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
3189 the original entries with EMPTY_HOWTOs, and added new ones to fill
3190 in the gap.
3191 (sh_elf_info_to_howto): Make sure the new gap isn't used.
3192 (sh_elf_relocate_section): Likewise.
3193
3194 2000-09-13 Anders Norlander <anorland@acc.umu.se>
3195
3196 * cpu-mips.c (arch_info_struct): Add mips:4K
3197 * bfd-in2.h (bfd_mach_mips4K): New define.
3198 * archures.c: Add bfd_mach_mips4K to comment.
3199 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
3200 E_MIPS_ARCH_2 for bfd_mach_mips4K.
3201
3202 2000-09-13 Marco Franzen <marcof@thyron.com>
3203
3204 * som.c (som_write_symbol_strings): Do not used fixed buffers,
3205 use size_t as a counter.
3206 (som_write_space_strings): Similarly.
3207
3208 2000-09-12 Jason Eckhardt <jle@cygnus.com>
3209
3210 * elf32-i860.c (elf32_i860_relocate_pc26): New function
3211 and prototype.
3212 (elf32_i860_relocate_section): Invoke new function from here.
3213
3214 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3215
3216 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
3217 static.
3218
3219 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3220
3221 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
3222 target section name instead of dumping core when the target symbol is
3223 undefined.
3224
3225 2000-09-09 Kazu Hirata <kazu@hxi.com>
3226
3227 * riscix.c: Remove DEFUN.
3228
3229 2000-09-08 Nick Clifton <nickc@redhat.com>
3230
3231 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
3232 initialise flags in output bfd if the input bfd is the default
3233 architecture with the default flags.
3234
3235 2000-09-08 Kazu Hirata <kazu@hxi.com>
3236
3237 * archive.c: Fix formatting.
3238 * coff-arm.c: Likewise.
3239 * doc/chew.c: Likewise.
3240
3241 2000-09-08 Alan Modra <alan@linuxcare.com.au>
3242
3243 * section.c (bfd_get_unique_section_name): Put a dot before the
3244 numeric suffix.
3245
3246 2000-09-07 Kazu Hirata <kazu@hxi.com>
3247
3248 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
3249 * elf.c: Fix formatting.
3250
3251 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
3252
3253 * config.bfd (sh-*-linux*): Added.
3254 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
3255 * targets.c: Declare them.
3256 * elf32-sh-lin.c: New file.
3257 * Makefile.am: Compile it.
3258 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
3259 * configure, Makefile.in: Rebuilt.
3260
3261 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
3262
3263 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
3264 pseduo-section when determining where the TOC ends.
3265
3266 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
3267 output x_tvndx as it is only two bytes wide.
3268
3269 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
3270 reloc is 26 or 32 bits wide.
3271
3272 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
3273 for relocs that don't change anything. Also look at the full
3274 6 bits of bitsize.
3275
3276 2000-09-06 Philip Blundell <philb@gnu.org>
3277
3278 * config.bfd (arm*-*-uclinux*): New target.
3279
3280 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3281
3282 * configure: Rebuilt with new libtool.m4.
3283
3284 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3285
3286 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
3287 word for variable name.
3288 * bfd-in2.h: Regenerate.
3289
3290 2000-09-05 Nick Clifton <nickc@redhat.com>
3291
3292 * config.in: Regenerate.
3293 * libbfd.h: Regenerate.
3294 * po/bfd.pot: Regenerate.
3295 * doc/bfdint.texi: Remove CVS date string - it foils compares with
3296 local versions.
3297
3298 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
3299
3300 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
3301
3302 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3303
3304 Shared library and PIC support.
3305 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
3306 (GOT_ENTRY_SIZE): New.
3307 (ELF_DYNAMIC_INTERPRETER): New.
3308 (STUB_SUFFIX): Define.
3309 (LONG_BRANCH_PIC_IN_SHLIB): Define.
3310 (RELATIVE_DYNAMIC_RELOCS): Define.
3311 (enum elf32_hppa_stub_type): New.
3312 (struct elf32_hppa_stub_hash_entry): Rename offset to
3313 stub_offset. Add a number of new fields.
3314 (struct elf32_hppa_link_hash_entry): New.
3315 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
3316 global_value.
3317 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
3318 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
3319 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
3320 new fields.
3321 (hppa_link_hash_newfunc): New function.
3322 (elf32_hppa_link_hash_table_create): Use above function. Init new
3323 fields.
3324 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
3325 instead of addend, and remove sym_name from args. Don't use
3326 symbol name for local syms, instead use sym index.
3327 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
3328 stub type rather than size. Pass in hash and handle import stub
3329 case. Also pass in reloc instead of offset so we can calculate
3330 PCREL22F and PCREL12F branches properly.
3331 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
3332 import and export stubs too.
3333 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
3334 import and export stub sizing.
3335 (elf32_hppa_check_relocs): New function.
3336 (elf32_hppa_adjust_dynamic_symbol): New function.
3337 (hppa_discard_copies): New function.
3338 (elf32_hppa_size_dynamic_sections): New function.
3339 (elf_backend_size_dynamic_sections): Define.
3340 (elf32_hppa_finish_dynamic_symbol): New function.
3341 (elf_backend_finish_dynamic_symbol): Define.
3342 (elf32_hppa_size_stubs): Stash params in link hash table, and move
3343 some local vars into the link hash table too. For shared links,
3344 trundle over function syms, generating export stubs. Handle
3345 PCREL22F branches. Break out stub creation code from here..
3346 (hppa_add_stub): .. to here. New function.
3347 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
3348 call the bfd linker. Use elf_gp to record global pointer.
3349 Calculate a value from sections if $global$ is missing.
3350 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
3351 (elf32_hppa_gc_mark_hook): New function.
3352 (elf_backend_gc_mark_hook): Define.
3353 (elf32_hppa_gc_sweep_hook): New function.
3354 (elf_backend_gc_sweep_hook): Define.
3355 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
3356 Add rel to args, and remove howto, input_bfd, offset, addend,
3357 sym_name as we can recalculate these locally. Handle calls to
3358 dynamic objects, extra PIC relocs, PCREL22F branches. Change
3359 handling of undefined weak syms. Check that stubs are in range.
3360 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
3361 message on hitting a DPREL21L reloc that needs fixing. Subtract
3362 off PC for PCREL14F. Break out code that does a stub lookup from
3363 here..
3364 (hppa_get_stub_entry): ..to here. New function.
3365 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
3366 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
3367 relocs, etc. etc.
3368 (elf32_hppa_finish_dynamic_sections): New function.
3369 (elf_backend_finish_dynamic_sections): Define.
3370 (elf_backend_final_write_processing) Define.
3371 (hppa_handle_PIC_calls): New function.
3372 (elf32_hppa_build_stubs): Call it. Pass link_info to
3373 hppa_build_one_stub.
3374 (elf32_hppa_create_dynamic_sections): New function
3375 to create .plt and .got then set .plt flags correctly.
3376 (elf_backend_create_dynamic_sections): Define.
3377 (elf32_hppa_object_p): New function.
3378 (elf_backend_object_p): Define.
3379 (elf32_hppa_elf_get_symbol_type): New function.
3380 (elf_backend_get_symbol_type): Define.
3381 (elf_backend_can_gc_sections): Define.
3382 (elf_backend_want_got_plt): Define.
3383 (elf_backend_plt_alignment): Set to 2.
3384 (elf_backend_plt_readonly): Define.
3385 (elf_backend_want_plt_sym): Define.
3386 (elf_backend_got_header_size): Reserve one entry.
3387
3388 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
3389 (elf32_hppa_size_stubs): Pass in multi_subspace.
3390 (elf32_hppa_set_gp): Declare.
3391
3392 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
3393 (bfd_get_unique_section_name): New function.
3394 * bfd-in2.h: Regenerate.
3395
3396 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
3397 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
3398 comment.
3399
3400 From David Huggins-Daines <dhd@linuxcare.com>
3401 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
3402 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
3403 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
3404 been updated in finish_dynamic_symbol before modifying function
3405 symbol.
3406
3407 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
3408 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
3409 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
3410 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
3411 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
3412 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
3413 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
3414 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
3415
3416 From David Huggins-Daines <dhd@linuxcare.com>
3417 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
3418 style of local labels as well.
3419
3420 2000-09-03 Philip Blundell <philb@gnu.org>
3421
3422 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
3423 references to undefined symbols in debugging sections.
3424
3425 2000-09-02 H.J. Lu <hjl@gnu.org>
3426
3427 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
3428 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
3429 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
3430 section.
3431
3432 2000-09-02 Jason Eckhardt <jle@cygnus.com>
3433
3434 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
3435 (elf32_i860_is_local_label_name): New function and prototype.
3436
3437 2000-09-02 Nick Clifton <nickc@redhat.com>
3438
3439 * configure.in: Increase version number to 2.10.91.
3440 * configure: Regenerate.
3441 * aclocal.m4: Regenerate.
3442 * config.in: Regenerate.
3443 * po/bfd.pot: Regenerate.
3444
3445 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3446
3447 * elf.c (_bfd_elf_make_section_from_shdr): Add
3448 .gnu.linkobce.wi. to the list of debug section names.
3449
3450 2000-09-02 Nick Clifton <nickc@redhat.com>
3451
3452 * dwarf2.c (find_debug_info): New function: Locate a section
3453 containing dwarf2 debug information.
3454 (bfd_dwarf2_find_nearest_line): Find all sections containing
3455 debug information and include them in the stash.
3456
3457 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3458
3459 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
3460 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
3461 (sh_reloc_map): Add new relocs.
3462 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
3463 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
3464 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
3465 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
3466 functions.
3467 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
3468 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
3469 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
3470 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
3471 New array constants.
3472 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
3473 New variables.
3474 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
3475 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
3476 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
3477 elf_sh_plt_reloc_offset): Define.
3478 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
3479 elf_sh_link_hash_table): New structs.
3480 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
3481 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
3482 relocation types.
3483 (elf_backend_create_dynamic_sections,
3484 bfd_elf32_bfd_link_hash_table_create,
3485 elf_backend_adjust_dynamic_symbol,
3486 elf_backend_size_dynamic_sections,
3487 elf_backend_finish_dynamic_symbol,
3488 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
3489 elf_backend_plt_readonly, elf_backend_want_plt_sym,
3490 elf_backend_got_header_size, elf_backend_plt_header_size):
3491 Define.
3492 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
3493 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
3494 New relocs.
3495 * bfd-in2.h, libbfd.h: Rebuilt.
3496
3497 2000-09-01 Alan Modra <alan@linuxcare.com.au>
3498
3499 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
3500 change.
3501
3502 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
3503
3504 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
3505 not initialized, set them to indicate the SH1 instruction set.
3506
3507 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3508
3509 * acinclude.m4: Include libtool and gettext macros from the
3510 top level.
3511 * aclocal.m4, configure: Rebuilt.
3512
3513 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
3514
3515 * elf.c: Eliminate references to __sparcv9 macro; replace with
3516 autoconf variables HAVE_PSINFO32_T etc.
3517 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
3518 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
3519 * config.in: Ditto.
3520 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
3521 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
3522 * aclocal.m4: Ditto.
3523 * configure: Regenerate.
3524
3525 2000-08-27 Alan Modra <alan@linuxcare.com.au>
3526
3527 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
3528 for any shared link, not just shared -Bsymbolic.
3529 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
3530 any shared link, and pass link info to it.
3531 (elf_i386_size_dynamic_sections): Update comment.
3532 (elf_i386_discard_copies): Modify to discard relocs for symbols
3533 that have been forced local.
3534 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
3535 that have been forced local.
3536
3537 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
3538
3539 * elflink.h (elf_link_add_object_symbols): Allow common
3540 symbols to have an alignment of 1 if explicitly requested, and
3541 not overridden by other definitions.
3542
3543 2000-08-22 Doug Kwan <dkwan@transmeta.com>
3544
3545 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
3546 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
3547
3548 2000-08-22 H.J. Lu <hjl@gnu.org>
3549
3550 * elf-bfd.h (elf_link_hash_table): Add runpath.
3551
3552 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
3553 * bfd-in2.h: Rebuilt.
3554
3555 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
3556 "runpath" field to NULL.
3557 (bfd_elf_get_runpath_list): New function.
3558
3559 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
3560 DT_RUNPATH entries.
3561
3562 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
3563
3564 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
3565 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
3566 explicitly. Improve validation of r_type.
3567
3568 2000-08-21 H.J. Lu <hjl@gnu.org>
3569
3570 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
3571 dynamic allocated content space. Add a comment to remind us that
3572 one day this ought to be fixed.
3573 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
3574 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
3575 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
3576
3577 2000-08-21 Jason Eckhardt <jle@cygnus.com>
3578
3579 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
3580 field with the newly relocated value instead of adding it to the
3581 existing immediate field.
3582 (elf32_i860_relocate_splitn): Likewise.
3583 (elf32_i860_relocate_highadj): Likewise.
3584
3585 2000-08-16 Jason Eckhardt <jle@cygnus.com>
3586
3587 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
3588 was previously just a stub).
3589
3590 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
3591
3592 * elflink.c (_bfd_elf_create_got_section): Don't abort().
3593 Formatting fixes.
3594 (_bfd_elf_create_dynamic_sections): Likewise.
3595
3596 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
3597
3598 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
3599 for undefined symbols to be the beginning of the section.
3600
3601 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
3602 four extra entries at the beginning of the .rela.plt section.
3603 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
3604 section to account for the four reserved entries in the .plt section.
3605
3606 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
3607
3608 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
3609 to the list of NOPs we recognize after a branch-and-link.
3610 Use the ori NOP when one is needed.
3611
3612 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
3613 for large archives.
3614
3615 2000-08-14 Jim Wilson <wilson@cygnus.com>
3616
3617 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
3618 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
3619 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
3620 EF_IA_64_ABSOLUTE.
3621
3622 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
3623
3624 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
3625
3626 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3627
3628 * elf32-i860.c (elf32_i860_relocate_section): New function.
3629 (i860_final_link_relocate): New function.
3630 (elf32_i860_relocate_splitn): New function.
3631 (elf32_i860_relocate_pc16): New function.
3632 (elf32_i860_relocate_highadj): New function.
3633 (elf32_i860_howto): Minor adjustments to some relocations.
3634 (elf_info_to_howto_rel): Define.
3635 (elf_backend_relocate_section): Define.
3636
3637 2000-08-10 Nick Clifton <nickc@cygnus.com>
3638
3639 * elf32-arm.h: Fix formatting.
3640
3641 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
3642
3643 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
3644
3645 2000-08-08 Jason Eckhardt <jle@cygnus.com>
3646
3647 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
3648
3649 2000-08-07 Kazu Hirata <kazu@hxi.com>
3650
3651 * ieee.c (ieee_write_debug_part): Rewrite a comment.
3652 * elf64-ia64.c: Fix a typo.
3653
3654 2000-08-05 Jason Eckhardt <jle@cygnus.com>
3655
3656 * elf32-i860.c (elf32_i860_howto_table): New structure.
3657 (lookup_howto): New function.
3658 (elf32_i860_reloc_type_lookup): New function.
3659 (elf32_i860_info_to_howto_rela): New function.
3660 (elf_code_to_howto_index): New structure.
3661 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
3662 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
3663 elf32_i860_reloc_type_lookup.
3664
3665 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
3666
3667 * som.c (struct fixup_format): Constify `format'.
3668 (som_hppa_howto_table): Use SOM_HOWTO macro.
3669 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
3670 (som_bfd_reloc_type_lookup): Likewise.
3671 (compare_subspaces): Remove unused `count1', `count2'.
3672 (som_begin_writing): Remove unused `total_reloc_size'.
3673 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
3674 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
3675 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
3676 (som_find_nearest_line): Decorate unused parameter(s).
3677 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
3678 (som_bfd_link_split_section): Likewise.
3679
3680 2000-08-03 Nick Clifton <nickc@cygnus.com>
3681
3682 * section.c: Restore backed out code.
3683 * elf.c: Restore backed out code.
3684 (copy_private_bfd_data): Fix bug preventing stipped dynamic
3685 binaries from working.
3686 * bfd-in2.h: Regenerate.
3687
3688 2000-08-03 H.J. Lu <hjl@gnu.org>
3689
3690 * section.c: Back out the change made by Nick Clifton
3691 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
3692 binaries.
3693 * bfd-in2.h: Likewise.
3694 * elf.c: Likewise.
3695
3696 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
3697
3698 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
3699
3700 2000-07-31 Jason Eckhardt <jle@cygnus.com>
3701
3702 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
3703 * bfd-in2.h, libbfd.h: Regenerate.
3704
3705 2000-07-31 Nick Clifton <nickc@cygnus.com>
3706
3707 * section.c (struct sec): Add new boolean field 'segment_mark'.
3708 (STD_SECTION): Initialise new field to zero.
3709
3710 * bfd-in2.h: Regenerate.
3711
3712 * elf.c (copy_private_bfd_data): Reorganise section to segment
3713 mapping to cope with moved sections requiring new segments,
3714 and overlapping segments.
3715 (SEGMENT_END): New macro: Return the end address of a segment.
3716 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
3717 contains a section by comparing their VMA addresses.
3718 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
3719 contains a section by comparing their LMA addresses.
3720 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
3721 section should be included in a segment.
3722 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
3723 follows another in memory.
3724 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
3725 segments overlap.
3726
3727 2000-07-22 Jason Eckhardt <jle@cygnus.com>
3728
3729 * cpu-i860.c: Added comments.
3730
3731 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
3732 bfd_elf32_i860_little_vec.
3733 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
3734 (ELF_MAXPAGESIZE): Changed to 4096.
3735
3736 * targets.c (bfd_elf32_i860_little_vec): Declaration of
3737 new target.
3738 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
3739
3740 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
3741 config for little endian elf32 i860.
3742 (targ_defvec): Define for the new config above
3743 as "bfd_elf32_i860_little_vec".
3744 (targ_selvecs): Define for the new config above
3745 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
3746
3747 * configure.in (bfd_elf32_i860_little_vec): Added recognition
3748 of new target vec.
3749
3750 * configure: Regenerated.
3751
3752 2000-07-27 H.J. Lu <hjl@gnu.org>
3753
3754 * elflink.h (elf_merge_symbol): Take one more argument,
3755 dt_needed, to indicate if the symbol comes from a DT_NEEDED
3756 entry. Don't overide the existing weak definition if dt_needed
3757 is true.
3758 (elf_link_add_object_symbols): Pass dt_needed to
3759 elf_merge_symbol ().
3760
3761 2000-07-27 Nick Clifton <nickc@cygnus.com>
3762
3763 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
3764 allocated contents.
3765
3766 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
3767
3768 * configure.host (*-*-aix*): AIX has 'long long' always.
3769
3770 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
3771 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
3772 (xcoff_write_archive_contents_big): Don't update the offset
3773 of the symbol table, xcoff_write_armap will do it.
3774
3775 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
3776
3777 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
3778 of dynobj for SGI_COMPAT checks.
3779
3780 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3781
3782 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
3783 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
3784 * bfd-in2.h: Regenerate.
3785
3786 2000-07-21 Nick Clifton <nickc@cygnus.com>
3787
3788 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
3789 range symbol indices in relocs and issue an error message.
3790
3791 2000-07-20 H.J. Lu <hjl@gnu.org>
3792
3793 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
3794 info->new_dtags when setting DT_FLAGS_1. It will only be set
3795 by the new linker options. It shouldn't break anything.
3796
3797 2000-07-20 H.J. Lu <hjl@gnu.org>
3798
3799 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
3800 only if info->new_dtags is true.
3801
3802 2000-07-20 H.J. Lu <hjl@gnu.org>
3803
3804 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
3805 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
3806
3807 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3808
3809 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
3810 (ALL_MACHINES_CFILES): Add cpu-cris.c.
3811 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
3812 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
3813 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
3814 * Makefile.in: Rebuild.
3815 * aclocal.m4: Rebuild.
3816 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
3817 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
3818 (bfd_cris_arch): Declare.
3819 (bfd_archures_list): Add bfd_cris_arch.
3820 * bfd-in2.h: Rebuild.
3821 * config.bfd: (cris-*-*): New target.
3822 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
3823 * configure: Rebuild.
3824 * elf.c (prep_headers): Add bfd_arch_cris.
3825 * libbfd.h: Rebuild.
3826 * libaout.h (enum machine_type): Add M_CRIS.
3827 * reloc.c: Add CRIS relocations.
3828 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
3829 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
3830 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
3831 * po/POTFILES.in, po/bfd.pot: Regenerate.
3832
3833 2000-07-19 H.J. Lu <hjl@gnu.org>
3834
3835 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
3836 DF_TEXTREL if DT_TEXTREL is set.
3837 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
3838 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
3839 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
3840 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
3841 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
3842 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
3843 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
3844 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
3845 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
3846 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
3847
3848 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
3849 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
3850 DT_RPATH is set.
3851 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
3852
3853 2000-07-19 H.J. Lu <hjl@gnu.org>
3854
3855 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
3856 * bfd-in2.h: Rebuild.
3857
3858 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
3859 (elf_dt_soname): New.
3860
3861 * elf.c (bfd_elf_set_dt_needed_soname): New.
3862
3863 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
3864 entry if the shared object loaded by DT_NEEDED is used to
3865 resolve the reference in a regular object.
3866
3867 2000-07-19 H.J. Lu <hjl@gnu.org>
3868
3869 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
3870 DT_DEPAUDIT and DT_AUDIT as strings.
3871
3872 2000-07-19 Nick Clifton <nickc@cygnus.com>
3873
3874 * format.c: Fix formatting.
3875
3876 2000-07-19 H.J. Lu <hjl@gnu.org>
3877
3878 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
3879
3880 2000-07-19 H.J. Lu <hjl@gnu.org>
3881
3882 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
3883 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
3884 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
3885 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
3886 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
3887 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
3888 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
3889
3890 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
3891
3892 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
3893 renamed functions from here...
3894 (assign_section_numbers): Use renamed functions.
3895 (prep_headers): Use renamed functions.
3896
3897 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
3898 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
3899 * bfd-in2.h: Regenerate.
3900
3901 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
3902
3903 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
3904 parenthesis in if statement.
3905
3906 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
3907
3908 Enable the support for Traditional MIPS.
3909 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
3910 return ict_none appropriately for traditional mips targets.
3911 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
3912 (STUB_MOVE): Conditionalize for traditonal mips.
3913 (STUB_LI16): Likewise.
3914 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
3915 room for RTPROC header.
3916 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
3917 the permission for the PT_DYNAMIC as read, write and execute.
3918 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
3919 for traditonal mips.
3920 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
3921 _DYNAMIC_LINKING for traditonal mips.
3922 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
3923 in case of traditonal mips.
3924 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
3925 entry is required. For a function if PLT is not required then set the
3926 corresponding hash table entry to 0.
3927 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
3928 traditonal mips.
3929 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
3930 shared object set the value to 0.
3931 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
3932 _DYNAMIC_LINKING for traditonal mips.
3933 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
3934 for traditonal mips.
3935
3936 2000-07-15 H.J. Lu <hjl@gnu.org>
3937
3938 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
3939
3940 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3941
3942 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
3943 out a structure that is BFD_IN_MEMORY.
3944
3945 2000-07-11 Alan Modra <alan@linuxcare.com.au>
3946
3947 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
3948 bfd pointer. Print section id instead of bfd pointer for local
3949 syms. Prefix addend with `+' for global syms as well as local.
3950 Correct calculation of name component lengths.
3951 (elf64_hppa_check_relocs): Update call to get_dyn_name.
3952
3953 From David Huggins-Daines <dhd@linuxcare.com>
3954 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
3955 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
3956 (elf64_hppa_modify_segment_map): Likewise.
3957
3958 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3959
3960 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
3961 addresses to be "naturally" sign extended. Return -1 if unknown.
3962 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
3963 * bfd-in2.h: Regenerate.
3964
3965 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3966
3967 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
3968 and ECOF_SIGNED_64 to list ways to extract an offset.
3969 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
3970 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
3971 Update.
3972 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
3973 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
3974
3975 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
3976
3977 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
3978 bfd_get_start_address.
3979 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
3980 (elf_swap_ehdr_out): Ditto.
3981
3982 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
3983
3984 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
3985 compatibility with older binutils.
3986
3987 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3988
3989 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
3990 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
3991
3992 From Ryan Bradetich <rbradetich@uswest.net>
3993 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
3994 (parse_line_table): Ditto.
3995 (_bfd_dwarf1_find_nearest_line): Ditto.
3996 * syms.c (cmpindexentry): Remove extra `*' from params.
3997
3998 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
3999
4000 * elf32-mips.c (sort_dynamic_relocs): New Function.
4001 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
4002 via qsort to sort the dynamic relocations in increasing r_symndx
4003 value.
4004
4005 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4006
4007 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
4008 ATTRIBUTE_UNUSED to unused args.
4009 (get_opd): Likewise.
4010 (get_plt): Likewise.
4011 (get_dlt): Likewise.
4012 (get_stub): Likewise.
4013 (elf64_hppa_adjust_dynamic_symbol): Likewise.
4014 (elf64_hppa_link_output_symbol_hook): Likewise.
4015 (elf64_hppa_check_relocs): Delete unused var.
4016 (elf64_hppa_size_dynamic_sections): Likewise.
4017 (elf64_hppa_finalize_opd): Likewise.
4018 (elf64_hppa_finalize_dynreloc): Likewise.
4019 (elf64_hppa_modify_segment_map): Likewise.
4020 (elf64_hppa_finish_dynamic_sections): Likewise.
4021
4022 * elf-hppa.h (elf_hppa_final_write_processing): Add
4023 ATTRIBUTE_UNUSED to unused args.
4024 (elf_hppa_final_link_relocate): Likewise.
4025 (elf_hppa_record_segment_addrs): Add paretheses.
4026 (elf_hppa_relocate_section): Constify dyn_name.
4027
4028 From David Huggins-Daines <dhd@linuxcare.com>
4029 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
4030 rearrange case statement so that it gets preferred to 32-bit ones.
4031
4032 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
4033 asection->id instead of address of asection structure.
4034 (elf32_hppa_size_stubs): Likewise.
4035
4036 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
4037 for .init* and .fini*.
4038
4039 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
4040 and addends used in stub names to 32 bits.
4041 (elf32_hppa_size_stubs): Likewise.
4042
4043 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
4044 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
4045 not bfd_put_64. Fix minor comment typo and formatting.
4046
4047 Changes to create multiple linker stubs, positioned immediately
4048 before the section where they are required.
4049 * elf32-hppa.c: Don't include hppa_stubs.h.
4050 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
4051 (elf32_hppa_stub_hash_table): Delete.
4052 (elf32_hppa_link_hash_entry): Delete.
4053 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
4054 stub_hash_table, and store the struct here rather than a pointer.
4055 Delete output_symbol_count. Add offset array. Change
4056 global_value to a bfd_vma.
4057 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
4058 (elf32_hppa_stub_hash_traverse): Delete.
4059 (elf32_hppa_name_of_stub): Delete.
4060 (elf32_hppa_link_hash_lookup): Delete.
4061 (elf32_hppa_link_hash_traverse): Delete.
4062 (elf32_hppa_stub_hash_table_init): Delete.
4063 (elf32_hppa_size_of_stub): Pass input section and offset rather
4064 than location and calculate location here. Don't pass name as all
4065 stubs are now the same size.
4066 (elf32_hppa_stub_hash_newfunc): Init new fields.
4067 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
4068 too.
4069 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
4070 comparing against ints. Rewrite stub handling code.
4071 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
4072 Case enums to int before comparing against ints. Remove
4073 bfd_reloc_dangerous case.
4074 (elf32_hppa_build_one_stub): Rewrite.
4075 (elf32_hppa_size_one_stub): New function.
4076 (elf32_hppa_build_stubs): Rewrite.
4077 (elf32_hppa_size_stubs): Pass in linker call-back functions.
4078 Rewrite stub-handling specific code.
4079
4080 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
4081
4082 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
4083
4084 * hppa_stubs.h: Delete.
4085 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
4086 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
4087 * Makefile.in: Regenerate.
4088
4089 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
4090 e_nlrsel.
4091
4092 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
4093
4094 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
4095 and section name for bfd_reloc_notsupported error message.
4096 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
4097 bfd_reloc_notsupported.
4098 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
4099
4100 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
4101 undefined weak symbols for all relocs.
4102 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
4103 offsets are relative to one past the delay slot.
4104 (elf32_hppa_size_stubs): Account for reloc addend when calculating
4105 branch destination. Put addend into stub name too.
4106 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
4107 adjust by 8 when deciding whether a linker stub is needed. Put
4108 addend into stub name as for above.
4109
4110 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
4111 various args and vars.
4112 (elf32_hppa_bfd_final_link_relocate): Here too.
4113 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
4114 inner block var to avoid shadowing.
4115
4116 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
4117 unsigned.
4118 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
4119 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
4120 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
4121
4122 * libhppa.h: Change practically all unsigned ints to plain ints.
4123 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
4124 prototypes.
4125
4126 From Ryan Bradetich <rbradetich@uswest.net>
4127 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
4128 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
4129 suit above.
4130 From David Huggins-Daines <dhd@linuxcare.com>
4131 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
4132 to the new OP_* ones.
4133
4134 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
4135 error exit. Bail out earlier on plabel relocs that we aren't
4136 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
4137 string, and then don't free our copy.
4138 (elf32_hppa_build_one_stub): Make insn unsigned int.
4139
4140 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
4141 available with BL, not BE and BLE.
4142
4143 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
4144 code for elf arg relocs.
4145 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
4146 argument with elf_link_hash_entry h. Handle undefined weak
4147 symbols. Move $global$ lookup from here...
4148 (elf32_hppa_relocate_section): ...to here. Return correct error
4149 message for non-handled relocs.
4150 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
4151 wrong test was -0x3ffff to +0x40000.
4152
4153 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
4154 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
4155 Handle them as such.
4156 (elf_hppa_relocate_insn): Fix a typo.
4157
4158 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
4159 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
4160 assemble_17, assemble_21): Delete.
4161 Supply defines for all 64 possible opcodes.
4162 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
4163 formats. Handle COMICLR.
4164 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
4165 -10, -16, 16, 22.
4166
4167 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
4168 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
4169 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
4170 to suit.
4171 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
4172 the local syms - did this code get deleted accidentally? Ignore
4173 undefined and undefweak syms.
4174
4175 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
4176 block. Use it instead of elf64_hppa_hash_table (info).
4177 (elf_hppa_final_link_relocate): Use hppa_info instead of
4178 elf64_hppa_hash_table (info).
4179
4180 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
4181 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
4182 (hppa_rebuild_insn): Mask immediate bits here instead.
4183 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
4184
4185 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4186
4187 * section.c (struct sec): Add id field. Tidy comment formatting.
4188 (bfd_make_section_anyway): Set id.
4189 (STD_SECTION): Init id too.
4190 Change CONST to const throughout.
4191 * archures.c (bfd_arch_info): Tidy comment.
4192 (bfd_arch_list): Change a CONST to const.
4193 * libbfd-in.h: Tidy comments and replace CONST with const.
4194 * elf-bfd.h: Likewise.
4195 * libbfd.h: Regenerate.
4196 * bfd-in2.h: Regenerate.
4197 * libcoff.h: Regenerate.
4198
4199 2000-07-07 DJ Delorie <dj@redhat.com>
4200
4201 * archive.c (_bfd_write_archive_contents): Add an informative
4202 comment.
4203
4204 2000-07-06 Kazu Hirata <kazu@hxi.com>
4205
4206 * srec.c: Fix formatting.
4207
4208 2000-06-05 DJ Delorie <dj@redhat.com>
4209
4210 * MAINTAINERS: new
4211
4212 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
4213
4214 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
4215 value of PC-relative offsets.
4216
4217 2000-07-03 Jim Wilson <wilson@cygnus.com>
4218
4219 * elf64-alpha.c (alpha_elf_size_info): New.
4220 (elf_backend_size_info): Define to alpha_elf_size_info.
4221 * elfcode.h (elf_size_info): Change hash bucket size to 4.
4222
4223 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
4224
4225 * elf32-mips.c: Include elf32-target.h again for the traditional
4226 MIPS targets.
4227
4228 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
4229
4230 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
4231 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
4232 (avr_info_to_howto_rela): Likewise.
4233 (elf32_avr_gc_mark_hook): Likewise.
4234 (elf32_avr_gc_sweep_hook): Likewise.
4235 (elf32_avr_relocate_section): Likewise.
4236
4237 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
4238
4239 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
4240 an external symbol for a non-shared, non-relocatable link.
4241
4242 2000-07-03 Nick Clifton <nickc@redhat.com>
4243
4244 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
4245 is an external symbol.
4246 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
4247 external symbol.
4248
4249 2000-07-03 Kazu Hirata <kazu@hxi.com>
4250
4251 * reloc16.c: Fix formatting.
4252
4253 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4254
4255 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
4256 to add a new target for traditional mips i.e
4257 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
4258 * configure.in: Likewise.
4259 * configure: Rebuild.
4260 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
4261 bfd_target_vector.
4262 (bfd_elf32_tradlittlemips_vec): Likewise.
4263 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
4264 to see that elfNN_bed does not get redefined even if the target file
4265 is included twice for a chip. See elf32-mips.c.
4266
4267 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4268
4269 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4270 (CLEANFILES): Add DEPA.
4271 * Makefile.in: Regenerate.
4272
4273 2000-06-30 DJ Delorie <dj@cygnus.com>
4274
4275 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
4276 can't assume the PE header is at 0x80.
4277
4278 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
4279
4280 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
4281
4282 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
4283
4284 * go32stub.h: Update stub.
4285
4286 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4287
4288 * archures.c (bfd_mach_avr5): Define.
4289 * bfd-in2.h (bfd_mach_avr5): Define.
4290 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
4291 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
4292 (compatible): Update comment. Add missing test.
4293 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
4294 for avr2 and avr4. Simplify 8K wrap code.
4295 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
4296 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
4297
4298 2000-06-26 Kazu Hirata <kazu@hxi.com>
4299
4300 * coff-h8300.c: Fix formatting.
4301 * cpu-h8300.c: Likewise.
4302
4303 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
4304
4305 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
4306 for local symbols whose names are unknown.
4307
4308 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4309
4310 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4311 find one.
4312 * Makefile.in: Regenerate.
4313 * doc/Makefile.in: Regenerate.
4314
4315 2000-06-20 H.J. Lu <hjl@gnu.org>
4316
4317 * Makefile.am: Rebuild dependency.
4318 * Makefile.in: Rebuild.
4319
4320 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4321
4322 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
4323 (elf_backend_copy_indirect_symbol): Map to the new function.
4324
4325 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4326
4327 * archive.c (normalize): Correct pointer comparison when checking
4328 for backslashes.
4329 (bfd_bsd_truncate_arname): Likewise.
4330 (bfd_gnu_truncate_arname): Likewise.
4331
4332 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
4333
4334 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
4335 sections elf_{text,data}_{section,symbol}.
4336 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
4337 (_bfd_mips_elf_hide_symbol): New function.
4338 (elf_backend_hide_symbol): Map to the new function.
4339 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
4340 definitions of mips_elf_{text,data}_{section,symbol}.
4341 (mips_elf_local_relocation_p): Try to find the direct symbol
4342 based on new check_forced argument.
4343 (mips_elf_calculate_relocation): Use new version of
4344 mips_elf_local_relocation_p.
4345 (mips_elf_relocate_section): Likewise.
4346 (_bfd_mips_elf_relocate_section): Likewise.
4347 (mips_elf_sort_hash_table): Only assert that have enough GOT
4348 space.
4349 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
4350 entry if the relocation based on the new external argument.
4351 (mips_elf_create_dynamic_relocation): Assert that we have a
4352 section contents allocated where we can swap out the dynamic
4353 relocations.
4354 (mips_elf_calculate_relocation): Find the real hash-table entry
4355 correctly by using h->root.root.type. Only create a dynamic
4356 relocation entry if the symbol is defined in a shared library.
4357 Create an external GOT entry for the GOT16 relocation if the
4358 symbol was forced local.
4359 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
4360 dynamic index if the symbol was forced local.
4361
4362 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4363
4364 * elf32-mips.c: Fix typos in comments.
4365
4366 2000-06-19 Mark Kettenis <kettenis@gnu.org>
4367
4368 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
4369 CORE_VERSION_1.
4370
4371 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4372
4373 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
4374 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
4375 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
4376 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
4377 (bfd_elf32_m68hc11_vec): Likewise.
4378 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
4379 Supports 68hc11 & 68hc12 at the same time.
4380 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
4381 bfd_target_vector.
4382 (bfd_elf32_m68hc11_vec): Likewise.
4383 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
4384 * archures.c (bfd_m68hc12_arch): Define and register in global list
4385 (bfd_m68hc11_arch): Likewise.
4386 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
4387 BFD_RELOC_M68HC11_3B): Define.
4388 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
4389 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
4390
4391 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
4392
4393 * elf_bfd.h (struct elf_backend_data): Add info argument to
4394 elf_backend_hide_symbol.
4395 (_bfd_elf_link_hash_hide_symbol): Likewise.
4396 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
4397 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
4398 * elflink.h (elf_link_add_object_symbols): Likewise.
4399 (elf_link_assign_sym_version): Likewise.
4400
4401 2000-06-18 H.J. Lu <hjl@gnu.org>
4402
4403 * coff-i386.c (coff_i386_reloc): Don't return in case of
4404 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
4405 Compensate PE relocations when linking with non-PE object
4406 files to generate a non-PE executable.
4407
4408 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
4409
4410 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
4411 GOT entries if we're doing a static link or -Bsymbolic link.
4412
4413 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
4414
4415 * elflink.h (elf_link_adjust_relocs): Check for and call backend
4416 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
4417 available.
4418 (elf_link_output_relocs): Likewise.
4419 (elf_reloc_link_order): Likewise.
4420
4421 2000-06-16 Nicholas Duffek <nsd@redhat.com>
4422
4423 * archures.c (enum bfd_architecture): #define constants for
4424 PowerPc and RS6000 machine numbers.
4425 * bfd-in2.h: Regenerate.
4426 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
4427 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
4428 and RS6000 machine numbers using #defined constants from
4429 archures.c.
4430 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
4431 machine numbers using #defined constants from archures.c. Add
4432 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
4433 64-bit words in 620 entry.
4434 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
4435 RSC, and RS2.
4436 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
4437
4438 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
4439
4440 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
4441 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
4442 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
4443
4444 2000-06-16 Nicholas Duffek <nsd@redhat.com>
4445
4446 * bfd-in.h (bfd_family_coff): Define.
4447 * bfd-in2.h: Regenerate.
4448 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
4449 coff_find_nearest_line): Check COFFness using bfd_family_coff()
4450 instead of bfd_target_coff_flavour.
4451 * cofflink.c (_bfd_coff_final_link): Likewise.
4452 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
4453 exclude XCOFF files.
4454 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
4455 Likewise.
4456 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
4457 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
4458 * xcofflink.c (XCOFF_XVECP): Delete.
4459 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
4460 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
4461 bfd_xcoff_record_link_assignment,
4462 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
4463 check for bfd_target_xcoff_flavour.
4464
4465 2000-06-16 Nicholas Duffek <nsd@redhat.com>
4466
4467 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
4468 files on AIX 4.3.
4469 (read_hdr): New function.
4470 (rs6000coff_core_p): Store mstsave or __context64 struct instead
4471 of trying to extract individual registers. Set abfd->arch_info
4472 to match the architecture that created the core file.
4473 (rs6000coff_get_section_contents): Delete.
4474 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
4475
4476 2000-06-14 H.J. Lu <hjl@gnu.org>
4477
4478 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
4479 is NULL.
4480
4481 2000-06-13 H.J. Lu <hjl@gnu.org>
4482
4483 * configure: Regenerate.
4484
4485 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
4486
4487 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
4488 armpei_little_vec.
4489
4490 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4491
4492 * configure.in (VERSION): Update to show this is the CVS mainline.
4493
4494 2000-06-07 Alan Modra <alan@linuxcare.com.au>
4495
4496 * elf32-d10v.c: Include elf/d10v.h
4497 (enum reloc_type): Delete.
4498 * elf32-d30v.c: Include elf/d30v.h
4499 (enum reloc_type): Delete.
4500
4501 * Makefile.am: Run "make dep-am" to regenerate dependencies.
4502 * Makefile.in: Regenerate.
4503
4504 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
4505 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
4506 move HOWTOs into elf_howto_table.
4507 (R_386_standard, R_386_ext_offset): Define.
4508 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
4509 (elf_i386_reloc_type_lookup): Modify calculation of index into
4510 elf_howto_table since we've removed the padding.
4511 (elf_i386_info_to_howto_rel): Likewise.
4512 (elf_i386_relocate_section): Likewise.
4513
4514 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
4515
4516 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
4517
4518 2000-06-05 H.J. Lu <hjl@gnu.org>
4519
4520 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
4521 an error when seeing an undefined symbol with hidden/internal
4522 attribute. It is handled in *_relocate_section ().
4523
4524 2000-06-05 H.J. Lu <hjl@gnu.org>
4525
4526 * elflink.h (elf_fix_symbol_flags): Follow the link for the
4527 indirect symbol for the ELF_LINK_NON_ELF bit.
4528 (elf_link_output_extsym): Don't output the indirect symbol even
4529 if the ELF_LINK_NON_ELF bit is set.
4530
4531 2000-06-01 J.T. Conklin <jtc@redback.com>
4532
4533 * config.bfd (i[3456]86-*-netbsdelf*): New target.
4534 (i[3456]86-*-netbsdaout*): New target.
4535 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
4536 (i[3456]86-*-openbsd*): Likewise.
4537
4538 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
4539
4540 * trad-core.c: From hpux-core.c, include <dirent.h> or
4541 <sys/ndir.h> when possible.
4542
4543 2000-05-31 Ulrich Drepper <drepper@redhat.com>
4544
4545 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
4546 definitions. We must not assume they are sorted in the file
4547 according to their index numbers.
4548
4549 2000-05-31 Alan Modra <alan@linuxcare.com.au>
4550
4551 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
4552 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
4553 R_PARISC_DIR17F are for absolute branches; Handle them as such.
4554
4555 2000-05-30 Nick Clifton <nickc@cygnus.com>
4556
4557 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
4558 80960CA, 80960MC as valid machine names.
4559
4560 2000-05-30 H.J. Lu <hjl@gnu.org>
4561
4562 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
4563 visibility bits if the symbol is undefined. Correctly handle
4564 weak undefined symbols with hidden and internal attributes.
4565
4566 * elflink.h (elf_link_add_object_symbols): Always turn the
4567 symbol into local if it has the hidden or internal attribute.
4568
4569 2000-05-29 Philip Blundell <philb@gnu.org>
4570
4571 * ppcboot.c: Add packed attribute if compiling with GCC.
4572
4573 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
4574
4575 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
4576
4577 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
4578
4579 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
4580 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
4581 corefile on a 64-bit (Sparc Solaris) host. Also clean up
4582 a few old comments.
4583
4584 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4585
4586 * Makefile.am: Update dependencies with "make dep-am"
4587 * Makefile.in: Regenerate.
4588
4589 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
4590 bindtextdomain): Replace defines with those from intl/libgettext.h
4591 to quieten gcc warnings.
4592
4593 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4594
4595 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
4596
4597 * archive.c (normalize, bfd_bsd_truncate_arname,
4598 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
4599 file names with backslashes.
4600
4601 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
4602 before opening it.
4603
4604 * sysdep.h: Include filenames.h.
4605
4606 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4607
4608 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
4609
4610 2000-05-26 Jakub Jelinek <jakub@redhat.com>
4611
4612 * elf64-sparc.c (sparc64_elf_relax_section): New.
4613 (sparc64_elf_relocate_section): Optimize tail call into branch always
4614 if possible.
4615 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4616 (elf32_sparc_relax_section): New.
4617
4618 2000-05-26 Jakub Jelinek <jakub@redhat.com>
4619
4620 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
4621 Remove unusued variables.
4622 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
4623 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
4624 previous fix, so that shared libs really don't influence targets
4625 extension mask and memory model.
4626
4627 2000-05-23 H.J. Lu <hjl@gnu.org>
4628
4629 * elf64-alpha.c (elf64_alpha_relocate_section): Check
4630 h->root.other not h->other.
4631 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4632
4633 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
4634
4635 2000-05-23 H.J. Lu <hjl@gnu.org>
4636
4637 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
4638 undefined symbol with the non-default visibility attributes.
4639 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
4640 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4641 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4642 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4643 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4644 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
4645 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4646 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4647 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4648 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
4649 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4650
4651 2000-05-22 Richard Henderson <rth@cygnus.com>
4652
4653 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
4654 PCREL22, PCREL64I. Zero size of special relocs.
4655 (elf64_ia64_reloc_type_lookup): Likewise.
4656 (USE_BRL, oor_brl, oor_ip): New.
4657 (elf64_ia64_relax_section): New.
4658 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
4659 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
4660 (elf64_ia64_relocate_section): Likewise.
4661 (bfd_elf64_bfd_relax_section): New.
4662 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
4663 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
4664 * bfd-in2.h, libbfd.h: Regenerate.
4665
4666 2000-05-22 Nick Clifton <nickc@cygnus.com>
4667
4668 * configure.in : Add peigen.lo to MIPS PE targets.
4669 * configure: Regenerate.
4670
4671 2000-05-22 Momchil Velikov <velco@fadata.bg>
4672
4673 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
4674 only if it is known for both input and output bfds. Separate
4675 error message strings as in some languages, it may be necessary
4676 to change more than one place in the string to change between
4677 'big' and 'little'.
4678
4679 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
4680 endianess checks, call _bfd_generic_verify_endian_match() instead.
4681
4682 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
4683
4684 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
4685
4686 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
4687 endianess before checking bfd flavours.
4688
4689 2000-05-22 H.J. Lu <hjl@gnu.org>
4690
4691 * elflink.h (elf_link_output_extsym): Clear the visibility
4692 field for symbols not defined locally.
4693
4694 2000-05-18 Alan Modra <alan@linuxcare.com.au>
4695
4696 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
4697 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
4698 (hppa_rebuild_insn): Mask immediate bits here instead.
4699 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
4700
4701 2000-05-18 Momchil Velikov <velco@fadata.bg>
4702
4703 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
4704 relocs for an executable, ensure that they are virtual addresses.
4705
4706 2000-05-18 Jeffrey A Law (law@cygnus.com)
4707
4708 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
4709
4710 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4711 Rick Gorton <gorton@scrugs.lkg.dec.com>
4712
4713 * elflink.h: Add emitrelocations support: when enabled, relocation
4714 information and relocation sections are put into final output
4715 executables. If the emitrelocations flag is set, do the following:
4716 (elf_bfd_final_link): Emit relocation sections.
4717 (elf_link_input_bfd): Compute relocation section contents.
4718 (elf_gc_sections): Don't clean relocation sections.
4719
4720 2000-05-16 Catherine Moore <clm@cygnus.com>
4721
4722 * som.c (som_decode_symclass): Recognize weak symbols.
4723
4724 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
4725
4726 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
4727 read idata section only from dataoff.
4728 (pe_print_edata): Correctly check for valid eat_member.
4729
4730 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
4731
4732 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
4733
4734 2000-05-14 Philip Blundell <philb@gnu.org>
4735
4736 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
4737
4738 2000-05-12 Alan Modra <alan@linuxcare.com.au>
4739
4740 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
4741
4742 * peigen.c (pe_print_idata): Look for .idata section and print
4743 info even if data directory has zero entries. Read idata section
4744 starting from dataoff, and adjust all data offsets to suit. Cast
4745 all bfd_vma vars to unsigned long before passing to fprintf.
4746 * peigen.c (pe_print_edata): Similarly, look for .edata section
4747 and print info even if data directory has zero entries. Cast
4748 all bfd_vma vars to unsigned long before passing to fprintf.
4749
4750 From Szabolcs Szakacsits <szaka@F-Secure.com>
4751 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
4752 directory size which may be bogus.
4753 * peigen.c (pe_print_edata): Similarly.
4754
4755 2000-05-09 Alan Modra <alan@linuxcare.com.au>
4756
4757 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
4758 section is empty.
4759 (copy_private_bfd_data): Allow for space possibly taken up by elf
4760 headers when calculating segment physical address from lma.
4761
4762 2000-05-08 Alan Modra <alan@linuxcare.com.au>
4763
4764 * versados.c (versados_scan): Init stringlen and pass_2_done.
4765
4766 * trad-core.c (trad_unix_core_file_p): Return
4767 bfd_error_wrong_format rather than bfd_error_file_truncated.
4768
4769 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
4770 add_data_entry. DataDirectory virtual address is relative.
4771 (pe_print_idata): Account for relative DataDirectory virtual
4772 addresses. Don't trash datasize inside POWERPC_LE_PE code.
4773 (pe_print_edata): Similarly.
4774
4775 From Szabolcs Szakacsits <szaka@F-Secure.com>
4776 * peigen.c (dir_names): Add Delay Import Directory.
4777 (pe_print_idata): Always search for bfd section containing
4778 idata address rather than looking up section name. Print this
4779 section name rather than .idata.
4780 (pe_print_edata): Similarly. Also print some fields as %08lx.
4781 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
4782 Win32Version.
4783
4784 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
4785
4786 * xcoff.h: Rename to xcoff-target.h
4787 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
4788 * coff-rs6000.c: Ditto.
4789 * coff64-rs6000.c: Ditto.
4790 * coff-pmac.c: Ditto.
4791 * Makefile.in: Regenerate.
4792
4793 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
4794
4795 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
4796 Change U802TOC64MAGIC to U803XTOCMAGIC.
4797
4798 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
4799
4800 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
4801 * bfd-in.h: Prototype bfd_elf_get_arch_size.
4802 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
4803
4804 2000-05-04 Alan Modra <alan@linuxcare.com.au>
4805
4806 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
4807
4808 2000-05-03 Martin v. L\81öwis <loewis@informatik.hu-berlin.de>
4809
4810 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
4811 hidden and internal symbols.
4812 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
4813 visibility.
4814 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
4815 assign a PLT or GOT entry to symbols with hidden and
4816 internal visibility.
4817
4818 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
4819
4820 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
4821 the .bss section.
4822 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
4823
4824 2000-05-02 H.J. Lu <hjl@gnu.org>
4825
4826 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
4827 ELFOSABI_SYSV.
4828
4829 2000-05-02 Alan Modra <alan@linuxcare.com.au>
4830
4831 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
4832 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
4833 dependencies.
4834 * Makefile.in: Regenerate.
4835
4836 2000-05-01 Jim Wilson <wilson@cygnus.com>
4837
4838 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
4839 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
4840 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
4841 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
4842 * Makefile.in: Rebuild.
4843
4844 2000-05-02 Alan Modra <alan@linuxcare.com.au>
4845
4846 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
4847 doesn't work very well.
4848
4849 * elf-hppa.h (elf_hppa_internal_shdr): Define.
4850 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
4851 Set hdr->s_type to 1 if ARCH_SIZE == 32.
4852 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
4853 (elf_hppa_info_to_howto): Likewise.
4854 (elf_hppa_info_to_howto_rel): Likewise.
4855 (elf_hppa_reloc_type_lookup): Likewise.
4856 (elf_hppa_is_local_label_name): Likewise.
4857 (elf_hppa_fake_sections): Likewise.
4858 (elf_hppa_final_write_processing): Likewise.
4859 (elf_hppa_howto_table): Fully initialise all entries.
4860 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
4861 (elf_hppa_info_to_howto): Likewise.
4862 (elf_hppa_info_to_howto_rel): Likewise.
4863 (elf_hppa_reloc_type_lookup): Likewise.
4864 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
4865 elf_hppa_unmark_useless_dynamic_symbols,
4866 elf_hppa_remark_useless_dynamic_symbols,
4867 elf_hppa_record_segment_addrs, elf_hppa_final_link,
4868 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
4869 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
4870 elf32-hppa.c mess is cleaned up.
4871 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
4872 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
4873 r_field then call hppa_field_adjust inline func with variable
4874 r_field arg, instead call hppa_field_adjust with fixed arg.
4875 In case R_PARISC_PCREL22F, don't set r_field.
4876 (elf_hppa_relocate_insn): Change args and return type to unsigned
4877 int. Call re_assemble_* funcs to do the work.
4878
4879 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
4880 sign extending.
4881
4882 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
4883 extending.
4884 (sign_extend): Mask first before sign extending.
4885 (low_sign_extend): Rewrite without condition expression.
4886 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
4887 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
4888 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
4889 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
4890 result as function return value rather than through pointer arg.
4891 Accept unsigned int args, and return unsigned int.
4892 (re_assemble_3): New. Combines function of dis_assemble_3 with
4893 re-assembly of opcode and immediate.
4894 (re_assemble_12): Likewise.
4895 (re_assemble_16): Likewise.
4896 (re_assemble_17): Likewise.
4897 (re_assemble_21): Likewise.
4898 (re_assemble_22): Likewise.
4899 (hppa_field_adjust): Rewrite and document, paying attention to
4900 size of types and signed/unsigned issues.
4901 (get_opcode): Shift before masking.
4902 (FDLW): Rename to FLDW.
4903 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
4904 (hppa_rebuild_insn): Change args and return value to unsigned
4905 int. Make use of re_assemble_*. Correct case 11.
4906
4907 * dep-in.sed: Handle ../opcodes/.
4908 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
4909 elf64-hppa.h, hppa_stubs.h, xcoff.h.
4910 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
4911 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
4912 elfarm-nabi.lo dependencies outside of auto-dependency area.
4913 Regenerate dependencies.
4914 * Makefile.in: Regenerate.
4915
4916 * configure.in (TRAD_HEADER): Test non-null before
4917 AC_DEFINE_UNQUOTED.
4918 * configure: Regenerate.
4919
4920 * reloc.c: Fix mis-spelling in comment.
4921
4922 2000-05-01 Alan Modra <alan@linuxcare.com.au>
4923
4924 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
4925 * vms.c (vms_openr_next_archived_file): Return NULL.
4926
4927 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4928
4929 * coffcode.h Copy changes mistakenly done to libcoff.h in
4930 4/24/2000 patch.
4931
4932 2000-04-29 Andreas Jaeger <aj@suse.de>
4933
4934 * libbfd-in.h: Correctly check GCC version.
4935 * bfd-in.h: Likewise.
4936 * libhppa.h: Likewise.
4937 * libbfd.h: Regenerate.
4938 * bfd-in2.h: Regenerate.
4939
4940 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4941
4942 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
4943 coffdu-rs6000.{lo,c}.
4944 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
4945 on xcoff.h
4946 * Makefile.in: Regenerate.
4947 * xcoff.h: New file.
4948 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
4949 * coff-rs6000.c: Move all declarations and defines that are
4950 common to the xcoff backends into xcoff.h
4951 * coff64-rs6000.c: Ditto,
4952
4953 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4954
4955 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
4956 _bfd_coff_force_symnames in strings and
4957 _bfd_coff_debug_string_prefix_length to their default values.
4958 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
4959
4960 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
4961
4962 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
4963 _bfd_coff_force_symnames in strings and
4964 _bfd_coff_debug_string_prefix_length to their default values.
4965
4966 2000-04-27 Alan Modra <alan@linuxcare.com.au>
4967
4968 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
4969 Check local_got_refcounts before dereferencing.
4970
4971 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
4972 before deciding we don't need R_PPC_PLT32 relocation.
4973 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
4974 dereferencing.
4975
4976 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
4977
4978 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
4979 .plt entries.
4980 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
4981 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
4982 (elf_i386_relocate_section): Allow for .plt to go missing.
4983 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
4984 can use a relative reloc for got as elf_i386_relocate_section.
4985 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
4986
4987 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
4988
4989 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
4990
4991 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
4992
4993 * Makefile.am (coff64-rs6000.lo): New rule.
4994 * Makefile.in: Regenerate.
4995 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
4996 xcoff_is_local_label_name, xcoff_rtype2howto,
4997 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
4998 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
4999 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
5000 (NO_COFF_SYMBOLS): Define.
5001 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
5002 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
5003 internally.
5004 (MINUS_ONE): New macro.
5005 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
5006 relocation.
5007 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
5008 coff_SWAP_aux_out): Map to the new functions.
5009 * coff64-rs6000.c: New file.
5010 * libcoff.h (bfd_coff_backend_data): Add new fields
5011 _bfd_coff_force_symnames_in_strings and
5012 _bfd_coff_debug_string_prefix_length.
5013 (bfd_coff_force_symnames_in_strings,
5014 bfd_coff_debug_string_prefix_length): New macros for above fields.
5015 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
5016 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
5017 of using coff_swap_sym_in directly.
5018 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
5019 (coff_set_flags) Set magic for XCOFF64.
5020 (coff_compute_section_file_positions): Add symbol name length to
5021 string section length if bfd_coff_debug_string_prefix_length is
5022 true.
5023 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
5024 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
5025 using coff_swap_lineno_in directly.
5026 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
5027 and _bfd_coff_debug_string_prefix_length fields.
5028 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
5029 symbol names into strings table when
5030 bfd_coff_force_symnames_in_strings is true.
5031 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
5032 SET_RELOC_VADDR): New macros.
5033 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
5034 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
5035 code.
5036 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
5037 changes within RS6000COFF_C specific code.
5038 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
5039 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
5040 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
5041 Extend existing hack on target name.
5042 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
5043 target name.
5044 * coff-tic54x.c (ticof): Keep up to date with new fields
5045 in bfd_coff_backend_data.
5046 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
5047 targ_selvecs to include rs6000coff64_vec for rs6000.
5048 * configure.in: Add rs6000coff64_vec case.
5049 * cpu-powerpc.c: New bfd_arch_info_type.
5050
5051 2000-04-24 Jeffrey A Law (law@cygnus.com)
5052
5053 * config.bfd: Only disable elf32-hppa vectors, not all of the
5054 BSD and OSF configuration support. Provide (disabled) clauses
5055 for PA64 support.
5056 * configure.in: Add clause for PA64 support.
5057 * configure: Rebuilt.
5058
5059 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
5060 (bfd_elf64_hppa_vec): Declare.
5061
5062 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
5063 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
5064 (elf64-hppa.lo): Add dependencies.
5065 * Makefile.in: Rebuilt.
5066
5067 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
5068
5069 2000-04-24 Jason Eckhardt <jle@cygnus.com>
5070
5071 * libhppa.h (dis_assemble_16): New function.
5072 (pa_arch): Added pa20w element.
5073
5074 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
5075
5076 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
5077 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
5078 bfd_elf64_slurp_reloc_table.
5079
5080 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
5081 definitions to get external names.
5082 (elf_write_relocs): Renamed from write_relocs and make global.
5083 (elf_slurp_reloc_table): Make global.
5084 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
5085
5086 * archive.c (hpux_uid_gid_encode): New function.
5087 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
5088 defined and the ID is greater than 99999.
5089 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
5090 special uid/gid fields into 32 bit values.
5091
5092 2000-04-21 Matthew Green <mrg@cygnus.com>
5093
5094 * config.bfd: Add NetBSD/sparc64 support.
5095
5096 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
5097 David Mosberger <davidm@hpl.hp.com>
5098 Timothy Wall <twall@cygnus.com>
5099 Jim Wilson <wilson@cygnus.com>
5100
5101 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
5102 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
5103 (BFD64_BACKENDS): Add elf64-ia64.lo.
5104 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
5105 (cpu-ia64.lo, elf64-ia64.lo): New rules.
5106 * Makefile.in: Rebuild.
5107 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
5108 (bfd_ia64_arch): Declare.
5109 (bfd_archures_list): Add bfd_ia64_arch.
5110 * bfd-in2.h: Rebuild.
5111 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
5112 * configure: Rebuild.
5113 * configure.host: (ia64-*-linux*): New host.
5114 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
5115 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
5116 * elf.c (prep_headers): Add bfd_arch_ia64.
5117 * libbfd.h: Rebuild.
5118 * reloc.c: Add IA-64 relocations.
5119 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
5120 Declare.
5121 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
5122 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
5123
5124 2000-04-21 Richard Henderson <rth@cygnus.com>
5125
5126 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
5127 contents when performing a partial link.
5128 (bfd_elf_d30v_reloc_21): Likewise.
5129
5130 2000-04-20 H.J. Lu <hjl@gnu.org>
5131
5132 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
5133 patch to symbols defined by a shared object.
5134 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
5135
5136 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5137
5138 K&R compiler fixes.
5139 * dwarf2.c (concat_filename): Avoid string literal concatenation.
5140 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
5141
5142 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
5143
5144 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
5145 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
5146 (coff-ia64.lo): Add dependency.
5147 * Makefile.in: Regenerate.
5148 * coff-ia64.c: New file.
5149 * efi-app-ia32.c: Ditto.
5150 * efi-app-ia64.c: Ditto.
5151 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
5152 (coff_set_flags): Ditto.
5153 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
5154 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
5155 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
5156 * configure: Regenerate.
5157 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
5158 (PUT_OPTHDR_IMAGE_BASE): Ditto.
5159 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
5160 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
5161 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
5162 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
5163 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
5164 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
5165 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
5166 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
5167 (GET_PDATA_ENTRY): Ditto.
5168 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
5169 data_start. Use above macros to read fields that are 64 bit wide for
5170 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
5171 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
5172 FileAlignment and SectionAlignment to minimum alignment if they
5173 are zero.
5174 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
5175 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
5176 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
5177 Use above macros to write fields that are 64 bit wide for
5178 COFF_WITH_PEP64.
5179 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
5180 5*4 otherwise. This should be right for IA-32 and IA-64, but may
5181 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
5182 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
5183 begin address, end address, and unwind info address only. Use
5184 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
5185 print addresses.
5186 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
5187 HIGH3ADJ relocation names.
5188 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
5189 * targets.c: Declare bfd_efi_app_ia32_vec and
5190 bfd_efi_app_ia64_vec.
5191 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
5192 bfd_efi_app_ia64_vec.
5193
5194 2000-04-17 Timothy Wall <twall@cygnus.com>
5195
5196 * bfd-in2.h: Add prototypes for tic54x load page access.
5197 * bfd-in.h: Regenerate.
5198 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
5199 in customized _set_arch_mach function.
5200 * coffcode.h (coff_set_alignment_hook): Set section load page if
5201 the appropriate macro is defined.
5202 (write_object_contents): Read section load page.
5203
5204 2000-04-13 Alan Modra <alan@linuxcare.com.au>
5205
5206 * elf32-hppa.h: Update copyright date.
5207
5208 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
5209 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
5210
5211 * elf32-d30v.c (MAX32): Don't use LL suffix.
5212 (MIN32): Define in terms of MAX32.
5213 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
5214
5215 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
5216 expression.
5217
5218 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
5219
5220 2000-04-12 Alan Modra <alan@linuxcare.com.au>
5221
5222 * dep-in.sed: Match space before file name, not after.
5223 * Makefile.am: Regenerate dependencies.
5224 * Makefile.in: Regenerate.
5225
5226 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
5227 case, allow address wrap-around stupidly removed 2000-03-17. Sign
5228 extend without an if statement.
5229
5230 2000-04-11 Alan Modra <alan@linuxcare.com.au>
5231
5232 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
5233 signed quantites.
5234 * elf32-mips.c (gprel16_with_gp): Likewise.
5235 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
5236 here using -0x40000, not (int)0xfffc0000.
5237 (elf32_hppa_size_of_stub): Likewise.
5238
5239 2000-04-11 Timothy Wall <twall@cygnus.com>
5240
5241 * coff-tic54x.c: Now builds with all targets.
5242 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
5243 * Makefile.in: Regenerate.
5244 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
5245 unitialized variable.
5246
5247 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
5248
5249 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
5250 --enable-build-warnings option.
5251 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
5252 * Makefile.in, configure: Re-generate.
5253
5254 2000-04-07 Nick Clifton <nickc@cygnus.com>
5255
5256 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
5257 BFD_RELOC_THUMB_PCREL_BLX.
5258
5259 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
5260 R_ARM_XPC25 and R_ARM_THM_PC22.
5261
5262 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
5263 R_ARM_XPC25 and R_ARM_THM_XPC22.
5264 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
5265 R_ARM_[XPC25|THM_XPC22].
5266
5267 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
5268 elf/arm-oabi.h to elf/arm.h
5269
5270 * Makefile.am: Fix dependency for elfarm-oabi.c
5271 * Makefile.in: Regenerate.
5272
5273 * bfd-in2.h: Regenerate.
5274 * libbfd.h: Regenerate.
5275
5276 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
5277
5278 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
5279 and restore it on failure. Release newly allocated tdata on
5280 failure.
5281
5282 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
5283
5284 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
5285 (decode_line_info): Set it. Report error if unit->line_offset is
5286 equal to or larger than it.
5287
5288 2000-04-07 Timothy Wall <twall@cygnus.com>
5289
5290 * targets.c: Added vecs for tic54x.
5291 * reloc.c: Added relocs for tic54x.
5292 * libbfd.h: Regenerated.
5293 * configure: Add TI COFF vecs for tic54x.
5294 * configure.in: Ditto.
5295 * config.bfd (targ_cpu): Recognize new tic54x target.
5296 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
5297 * bfd-in2.h: Add tic54x target and relocations.
5298 * Makefile.am, Makefile.in: Add tic54x target.
5299 * archures.c (bfd_archures_list): Add tic54x target.
5300 * coff-tic54x.c: New.
5301 * cpu-tic54x.c: New.
5302
5303 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
5304
5305 * elfcore.h (elf_core_file_p): call backend_object_p which
5306 thereby gets an opportunity to update the arch/machine type.
5307
5308 2000-04-06 Timothy Wall <twall@cygnus.com>
5309
5310 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
5311 class. Handle SEC_CLINK and SEC_BLOCK flags.
5312 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
5313 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
5314
5315 2000-04-06 Nick Clifton <nickc@cygnus.com>
5316
5317 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
5318 EF_INTERWORK if this is an unknown EABI.
5319 (elf32_arm_merge_private_bfd_data): Check EABI version
5320 numbers. Only check EF_xxx flags if the EABI version number
5321 is unknown.
5322 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
5323 if the EABI version number is unknown.
5324 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
5325 if the EABI version number is unknown.
5326
5327 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5328
5329 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
5330 BFD_RELOC_SH_LOOP_END.
5331 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
5332 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
5333 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
5334 (sh_elf_reloc_loop): New function.
5335 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
5336 any more.
5337 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
5338 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
5339 * bfd-in2.h, libbfd.h: Regenerate.
5340
5341 2000-04-04 Alan Modra <alan@linuxcare.com.au>
5342
5343 * po/bfd.pot: Regenerate.
5344
5345 * Makefile.am: Remove extraneous mkdep comment.
5346 (MKDEP): Use gcc -MM rather than mkdep.
5347 (DEP): Quote when passing vars to sub-make. Add warning
5348 message to end.
5349 (DEP1): Rewrite for "gcc -MM".
5350 (CLEANFILES): Add DEP2.
5351 Update dependencies.
5352 * Makefile.in: Regenerate.
5353
5354 2000-04-03 Kevin Buettner <kevinb@redhat.com>
5355
5356 * configure.in: Added corefile support for AIX 4.3. In particular,
5357 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
5358 compiling rs6000-core.c.
5359 * configure: Regenerated.
5360
5361 2000-04-03 H.J. Lu <hjl@gnu.org>
5362
5363 * cache.c (bfd_open_file): Unlink the output file only if
5364 it has non-zero size.
5365
5366 2000-04-01 Ken Block USG <block@zk3.dec.com>
5367
5368 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
5369 relative relocations for non-loaded sections in shared objects.
5370 (elf64_alpha_check_relocs): Similarly.
5371
5372 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
5373
5374 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
5375 BFD_RELOC_16 to switch for extended relocs.
5376 (MY_swap_ext_reloc_in): New.
5377 (MY_swap_ext_reloc_out): New.
5378 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
5379 than NAME(aout,swap_ext_reloc_in) for extended relocs.
5380 (NAME(aout,squirt_out_relocs)): Similarly use
5381 MY_swap_ext_reloc_out.
5382 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
5383
5384 2000-04-03 Kazu Hirata <kazu@hxi.com>
5385
5386 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
5387 the R_PCRWORD_B case.
5388
5389 2000-03-31 Thomas de Lellis <tdel@wrs.com>
5390
5391 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
5392 on some targets.
5393 * ihex.c : Ditto.
5394
5395 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
5396
5397 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
5398 HOWTO references to bfd_elf_generic_reloc, that have
5399 partial_inplace == true, now use the new function. The function
5400 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
5401 extends its fixes to the R_M32R_{16,24,32} relocs.
5402 The new logic in m32r_elf_lo16_reloc() has been removed, and
5403 it instead calls the new routine to obtain that functionality.
5404
5405 2000-03-27 Alan Modra <alan@linuxcare.com.au>
5406
5407 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
5408 elf32_avr_check_relocs, avr_final_link_relocate,
5409 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
5410 elf32_avr_object_p): Add prototypes.
5411 (elf32_avr_gc_mark_hook): Add default for h->root.type.
5412 (bfd_elf_avr_final_write_processing): Make static.
5413
5414 2000-03-27 Denis Chertykov <denisc@overta.ru>
5415
5416 * cpu-avr.c: New file. BFD support routines for AVR architecture.
5417 * archures.c (bfd_architecture): Add AVR architecture.
5418 (bfd_archures_list): Add reference to AVR architecture info.
5419 * elf.c (prep_headers): Handle bfd_arch_avr.
5420 * reloc.c: Add various AVR relocation enums.
5421 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
5422 list.
5423 * Makefile.am: Add support for AVR elf.
5424 * configure.in: Likewise.
5425 * config.bfd: Likewise.
5426 * Makefile.in: Regenerate.
5427 * configure: This too.
5428 * bfd-in2.h: And this.
5429 * libbfd.h: And this.
5430
5431 2000-03-24 H.J. Lu <hjl@gnu.org>
5432
5433 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
5434 (elf64_alpha_find_reloc_at_ofs): Likewise.
5435
5436 2000-03-17 Alan Modra <alan@linuxcare.com.au>
5437
5438 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
5439 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
5440 allowable range used to be -2**(n-1) to 2**n-1.
5441 * reloc.c (_bfd_relocate_contents): Same here. Also replace
5442 "boolean overflow" with "bfd_reloc_status_type flag".
5443
5444 2000-03-14 Doug Evans <dje@casey.transmeta.com>
5445
5446 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
5447
5448 2000-03-14 Kazu Hirata <kazu@hxi.com>
5449
5450 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
5451 of shrinks properly, including the last reloc.
5452
5453 2000-03-13 Kazu Hirata <kazu@hxi.com>
5454
5455 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
5456 check for R_MOVL2.
5457
5458 2000-03-11 Alan Modra <alan@linuxcare.com.au>
5459
5460 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
5461 a format mismatch rather than an "error" from bfd_read such as
5462 bfd_error_file_truncated.
5463
5464 2000-03-10 Geoff Keating <geoffk@cygnus.com>
5465
5466 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
5467 sign-extension and big-endian compensation for
5468 R_MIPS_64 even in ld -r.
5469
5470 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
5471
5472 * elf32-mips.c (mips_elf_next_relocation): Rename from
5473 mips_elf_next_lo16_relocation, and generalize to look
5474 for any relocation type.
5475 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
5476 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
5477 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
5478 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
5479 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
5480 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
5481 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
5482 (mips_rtype_to_howto): Likewise.
5483 (mips_elf_calculate_relocation): Handle new relocs.
5484 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
5485 are paired. The addend for R_MIPS_GNU_REL16_S2
5486 is shifted right two bits.
5487
5488 2000-03-10 Alan Modra <alan@linuxcare.com.au>
5489
5490 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
5491 comment, and ensure it doesn't happen again.
5492 (bfd_install_relocation): Same here.
5493 (_bfd_relocate_contents): Don't bother assigning unused signmask
5494 shift result. Fix typos in comments.
5495 Remove trailing whitespace throughout file.
5496
5497 2000-03-07 Doug Evans <dje@casey.transmeta.com>
5498
5499 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
5500 * bfd-in2.h: Rebuild.
5501
5502 2000-03-06 Nick Clifton <nickc@cygnus.com>
5503
5504 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
5505 sym_ptr_ptr fields.
5506 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
5507 (SIZEOF_ILF_STRINGS): Redefine.
5508 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
5509 relative reloc, as opposed to a section relative reloc.
5510 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
5511 not C_LABEL.
5512 Add length of symbol's prefix to string pointer.
5513 Store a pointer to the symbol in the symbol pointer table.
5514 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
5515 Initialise the symbol pointer table.
5516 Store the hint in the Hint/Name table.
5517 Make the jump reloc be symbol realtive, not section relative.
5518 Create an import symbol for imported code.
5519
5520 2000-03-06 Catherine Moore <clm@cygnus.com>
5521
5522 * elf.c (swap_out_syms): Check for null type_ptr.
5523
5524 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
5525
5526 * aout-target.h (MY(write_object_contents)): Remove unused
5527 and unusable "#if CHOOSE_RELOC_SIZE".
5528 * pc532-mach.c (MY(write_object_contents)): Ditto.
5529 * netbsd.h (MY(write_object_contents)): Ditto.
5530 * hp300hpux.c (MY(write_object_contents)): Ditto.
5531 * freebsd.h (MY(write_object_contents)): Ditto.
5532 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
5533
5534 2000-02-29 H.J. Lu <hjl@gnu.org>
5535
5536 * peicode.h (jtab): Make it static.
5537
5538 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
5539 defined and COFF_IMAGE_WITH_PE is not defined.
5540 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
5541 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
5542
5543 2000-03-01 Nick Clifton <nickc@cygnus.com>
5544
5545 * coff-arm.c (bfd_arm_process_before_allocation): Make
5546 'symndx' signed to prevent compile time warning.
5547
5548 * coff-mcore.c: Remove unused prototype for pe_object_p.
5549
5550 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
5551 functions that are not used when COFF_IMAGE_WITH_PE is
5552 defined.
5553 (struct sh_opcode): Change type of 'flags' field to unsigned
5554 long so that it can hold the USESAS flag.
5555
5556 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
5557
5558 * elf-m10300.c (mn10300_elf_relax_section): Initialise
5559 'sym_sec'.
5560
5561 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
5562 parameters.
5563 Remove unusued variables and code.
5564 (elf_backend_add_symbol_hook): Fix prototype.
5565
5566 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
5567 'srelgot'.
5568
5569 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
5570 'oldinst'.
5571
5572 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
5573 parameters.
5574 Remove unusued variables and code.
5575 (elf_backend_add_symbol_hook): Fix prototype.
5576
5577 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
5578
5579 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
5580 to unused function parameter.
5581
5582 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
5583 parameters.
5584 Use EMPTY_HOWTO to initialise empty howto slots.
5585 Remove unused variables.
5586
5587 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
5588
5589 2000-03-01 H.J. Lu <hjl@gnu.org>
5590
5591 * aoutx.h (aout_link_input_section_std): Pass "true" to
5592 the undefined_symbol callback.
5593 (aout_link_input_section_ext): Likewise.
5594 * bout.c (get_value): Likewise.
5595 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
5596 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
5597 Likewise.
5598 (alpha_relocate_section): Likewise.
5599 * coff-arm.c (coff_arm_relocate_section): Likewise.
5600 * coff-i960.c (coff_i960_relocate_section): Likewise.
5601 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
5602 * coff-mips.c (mips_relocate_section): Likewise.
5603 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
5604 * coff-sh.c (sh_relocate_section): Likewise.
5605 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
5606 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
5607 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
5608 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
5609 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
5610 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
5611 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
5612 * elf32-i370.c (i370_elf_relocate_section): Likewise.
5613 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
5614 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
5615 * elf32-sh.c (sh_elf_relocate_section): Likewise.
5616 * elf32-v850.c (v850_elf_relocate_section): Likewise.
5617 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
5618 * elflink.h (elf_link_output_extsym): Likewise.
5619 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
5620 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
5621 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
5622
5623 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
5624 undefined_symbol callback when building shared library with
5625 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
5626 "true".
5627 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
5628 * elf32-i386.c (elf_i386_relocate_section): Likewise.
5629 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
5630 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
5631 (elf32_mips_get_relocated_section_content): Likewise.
5632 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
5633 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
5634 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
5635 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
5636
5637 2000-02-28 Nick Clifton <nickc@cygnus.com>
5638
5639 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
5640 * Makefile.in: Regenerate.
5641
5642 * configure.in: Add support for mips and sh pe vectors.
5643 * configure: regenerate.
5644
5645 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
5646 targets.
5647
5648 * targets.c: Add mips and sh pe vectors.
5649
5650 * libpei.h (coff_final_link_postscript): Only define if not
5651 already defined.
5652
5653 * coffcode.h: Add support for WinCE magic numbers.
5654
5655 * peigen.c (pe_print_reloc): Update comment and rearrange
5656 appending of newline character.
5657
5658 * peicode.h: Add support for Image Library Format.
5659 (pe_ILF_vars): Structure containing data used by ILF code.
5660 (pe_ILF_make_a_section): New function. Create a section based
5661 on ILF data.
5662 (pe_ILF_make_a_reloc): New function. Create a reloc based on
5663 ILF data.
5664 (pe_ILF_make_a_symbol): New function. Create a symbol based
5665 on ILF data.
5666 (pe_ILF_save_relocs): New function. Store the relocs created
5667 by pe_ILF_make_a_reloc in a section.
5668 (pe_ILF_build_a_bfd): New function. Create a BFD describing
5669 an ILF object.
5670 (pe_ILF_object_p): New function. Return a bfd_target pointer
5671 for an ILF object.
5672 (pe_bfd_object_p): If an ILF object is detected call
5673 pe_ILF_object_p on it.
5674
5675 * coff-arm.c: Add support for WinCE relocs which are different
5676 from normal ARM COFF relocs.
5677 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
5678
5679 * coff-sh.c: Add support for sh-pe target.
5680 * pe-sh.c: New file. Support code for sh-pe target.
5681 * pei-sh.c: New file. Support code for sh-pe target.
5682
5683 * pe-mips.c: New file. Support code for mips-pe target.
5684 * pei-mips.c: New file. Support code for mips-pe target.
5685
5686 2000-02-27 Jakub Jelinek <jakub@redhat.com>
5687
5688 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
5689 architecture if the object causing the bump is dynamic.
5690 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
5691 and also don't it for memory ordering.
5692 (sparc64_elf_write_relocs): Take src_rela out of the loop.
5693
5694 2000-02-27 Ian Lance Taylor <ian@zembu.com>
5695
5696 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
5697 calling bfd_get_section_size_before_reloc.
5698 (decode_line_info): Likewise.
5699 (_bfd_dwarf2_find_nearest_line): Likewise.
5700
5701 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
5702
5703 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
5704 name of the libtool directory.
5705 * Makefile.in: Rebuild.
5706
5707 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
5708
5709 * som.c (SOM_HOWTO): Define.
5710 (som_hppa_howto_table): Use it.
5711
5712 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5713
5714 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
5715
5716 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
5717
5718 2000-02-24 Catherine Moore <clm@cygnus.com>
5719
5720 * som.c (som_misc_symbol_info): Add field
5721 secondary_def.
5722 (som_bfd_derive_misc_symbol_info): Initialize
5723 secondary_def.
5724 (som_build_and_write_symbol_table): Keep track
5725 of secondary_def field.
5726 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
5727 if secondary_def field is set.
5728 (som_bfd_ar_write_symbol_stuff): Initialize
5729 secondary_def.
5730
5731 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
5732
5733 * dwarf2.c (read_address): Read 16-bits addresses.
5734 (parse_comp_unit): Accept addr_size == 2.
5735
5736 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5737
5738 * bfd-in.h: Update copyright date.
5739
5740 2000-02-23 Linas Vepstas <linas@linas.org>
5741
5742 * cpu-i370.c: New file.
5743 * elf32-i370.c: New file.
5744 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
5745 (bfd_i370_arch): New.
5746 (bfd_archures_list): Add bfd_i370_arch.
5747 * elf.c (prep_headers): Add bfd_arch_i370.
5748 * Makefile.am: Add support for IBM 370 elf.
5749 * config.bfd: Likewise.
5750 * configure.in: Likewise.
5751 * libbfd.h (bfd_reloc_code_real_names): Likewise.
5752 * reloc.c (bfd_reloc_code_type): Likewise.
5753 * targets.c: Likewise.
5754
5755 * Makefile.in: Regenerate.
5756 * configure: Regenerate.
5757 * bfd-in2.h: Regenerate.
5758
5759 2000-02-22 Ian Lance Taylor <ian@zembu.com>
5760
5761 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
5762 invalid relocation types, and change them to R_386_NONE.
5763
5764 2000-02-22 H.J. Lu <hjl@gnu.org>
5765
5766 * elflink.h (elf_link_add_object_symbols): If a version symbol is
5767 not defined, don't add a second ELF_VER_CHR.
5768
5769 * elflink.h (elf_bfd_final_link): Call output_extsym for global
5770 symbols converted to local symbols even when stripping all
5771 symbols.
5772 (elf_link_output_extsym): Process global symbols converted to
5773 local symbols even if they are being stripped.
5774
5775 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5776
5777 * archures.c (bfd_octets_per_byte): Return unsigned int.
5778 (bfd_arch_mach_octets_per_byte): Ditto.
5779 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
5780 comparison warning.
5781 * section.c (bfd_get_section_size_before_reloc): Quell signed
5782 vs. unsigned comparison warning.
5783 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
5784 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
5785 change. What was I thinking?
5786 * bfd-in2.h: Regenerate.
5787
5788 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
5789 (elf_gc_sections): Same here.
5790 (elf_gc_common_finalize_got_offsets): And here.
5791
5792 2000-02-21 Ian Lance Taylor <ian@zembu.com>
5793
5794 ELF HPPA doesn't work at present; remove it until it does.
5795 * config.bfd: Comment out setting targ_defvec to
5796 bfd_elf32_hppa_vec.
5797 * Makefile.am: Rebuild dependencies.
5798 (BFD32_BACKENDS): Remove elf32-hppa.lo.
5799 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
5800 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
5801 * Makefile.in: Rebuild.
5802 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
5803
5804 2000-02-18 Geoff Keating <geoffk@cygnus.com>
5805
5806 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
5807 is no bfd_free(). Revert bfd_free part of previous change.
5808
5809 2000-02-18 Geoff Keating <geoffk@cygnus.com>
5810
5811 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
5812 arrays.
5813 (coff_compute_section_file_positions): Use bfd_free to pair
5814 bfd_malloc.
5815 (coff_write_object_contents): Likewise.
5816
5817 * coff-rs6000.c (xcoff_howto_table_16): New variable.
5818 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
5819
5820 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
5821
5822 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
5823 (xcoff_ar_file_hdr_big): New structure.
5824 (SIZEOF_AR_FILE_HDR_BIG): New macro.
5825 (xcoff_ar_hdr_big): New structure.
5826 (SIZEOF_AR_HDR_BIG): New macro.
5827 (xcoff_big_format_p): New macro.
5828 (xcoff_ardata_big): New macro.
5829 (arch_xhdr_big): New macro.
5830 (xcoff_slurp_armap): Handle large archives.
5831 (xcoff_archive_p): Detect large archives.
5832 (xcoff_read_ar_hdr): Handle large archives.
5833 (xcoff_openr_next_archived_file): Handle large archives.
5834 (xcoff_generic_stat_arch_elt): Handle large archives.
5835 (xcoff_write_armap_old): Rename from xcoff_write_armap.
5836 (xcoff_write_armap_big): New function.
5837 (xcoff_write_armap): New function, dispatch to _old or _big.
5838 (xcoff_write_archive_contents_old): Rename from
5839 xcoff_write_archive_contents.
5840 (xcoff_write_archive_contents_big): New function.
5841 (xcoff_write_archive_contents): New function, dispatch to _old or
5842 _big.
5843
5844 2000-02-18 Richard Henderson <rth@cygnus.com>
5845
5846 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
5847 and hide_symbol members.
5848 (elf_link_hash_copy_indirect): Remove.
5849 (elf_link_hash_hide_symbol): Remove.
5850 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
5851 and elf_backend_hide_symbol.
5852 (_bfd_elf_link_hash_copy_indirect): Declare.
5853 (_bfd_elf_link_hash_hide_symbol): Declare.
5854 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
5855 (_bfd_elf_link_hash_hide_symbol): Likewise.
5856 (_bfd_elf_link_hash_table_init): Don't init killed members.
5857 * elflink.h (elf_link_add_object_symbols): Use the bed function
5858 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
5859 (elf_link_assign_sym_version): Likewise.
5860 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
5861 (elf_backend_hide_symbol): Likewise.
5862 (elfNN_bed): Update for new members.
5863
5864 2000-02-17 Kevin Buettner <kevinb@redhat.com>
5865
5866 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
5867 STACK_END_ADDR): Define for new core file format.
5868 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
5869 for handling the vagaries of the various core file structures used
5870 by AIX over the years.
5871 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
5872 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
5873 core_dumpx structure.
5874
5875 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
5876
5877 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
5878 (bfd_mach_sh3_dsp): Likewise.
5879 (bfd_mach_sh4): Reinstate.
5880 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
5881 * bfd-in2.h: Regenerate.
5882 * coff-sh.c (struct sh_opcode): flags is no longer short.
5883 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
5884 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
5885 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
5886 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
5887 (sh_opcodes): No longer const.
5888 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
5889 (sh_insn_uses_reg): Check for USESAS and USESR8.
5890 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
5891 (_bfd_sh_align_load_span): Return early for SH4.
5892 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
5893 Take into account that field b of a parallel processing insn
5894 could be mistaken for a separate insn.
5895 * cpu-sh.c (arch_info_struct): New array elements for
5896 sh2, sh-dsp and sh3-dsp.
5897 Reinstate element for sh4.
5898 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
5899 (SH4_NEXT): Reinstate.
5900 (SH3_NEXT, SH3E_NEXT): Adjust.
5901 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
5902 * elf32-sh.c (sh_elf_set_private_flags): New function.
5903 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
5904 (sh_elf_merge_private_data): New function.
5905 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
5906 (bfd_elf32_bfd_copy_private_bfd_data): Define.
5907 (bfd_elf32_bfd_merge_private_bfd_data): Change to
5908 sh_elf_merge_private_data.
5909
5910 2000-02-13 Richard Henderson <rth@cygnus.com>
5911
5912 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
5913 hide_symbol members.
5914 (elf_link_hash_copy_indirect): New.
5915 (elf_link_hash_hide_symbol): New.
5916 * elflink.h (elf_link_add_object_symbols): Break out copy from
5917 indirect new new symbol to elf.c.
5918 (elf_link_assign_sym_version): Break out privatization of
5919 non-exported symbol to elf.c.
5920 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
5921 (_bfd_elf_link_hash_hide_symbol): New.
5922 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
5923
5924 2000-02-13 Ian Lance Taylor <ian@zembu.com>
5925
5926 * section.c (_bfd_strip_section_from_output): Add info parameter.
5927 If it passed as non-NULL, use it to check whether any input BFD
5928 has an input section which uses this output section. Change all
5929 callers.
5930 * bfd-in2.h: Rebuild.
5931
5932 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
5933 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
5934 1999-11-29.
5935 * bfd-in2.h: Rebuild.
5936
5937 2000-02-10 Timothy Wall <twall@cygnus.com>
5938
5939 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
5940 allow final modifications of swapped-in symbol.
5941 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
5942 * coffcode.h (coff_write_relocs): Use macro
5943 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
5944 symbol index should be set to -1.
5945
5946 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
5947
5948 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
5949 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
5950 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
5951 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
5952 sh_insns_uses_or_sets_freg): New functions.
5953 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
5954 * (sh_insns_conflict): Use new functions and new macros to
5955 detect conflicts when two instructions both set same integer registers,
5956 both set same fp register, and both set special register.
5957
5958 2000-02-09 Timothy Wall <twall@cygnus.com>
5959
5960 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
5961 swapping in sections, so that the swapping routines have access to
5962 the arch/mach info.
5963
5964 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
5965
5966 * coff-go32.c: Update comment. Update copyright.
5967
5968 2000-01-27 Thomas de Lellis <tdel@windriver.com>
5969
5970 * syms.c (bfd_decode_symclass)
5971 Two new class characters were added - 'V' and 'v'. The
5972 meaning of 'W' is now restricted to just weak non-object
5973 symbols. This allows differentiation between, for example,
5974 weak functions vs weak objects. nm for example now dumps:
5975 'W' = weak global
5976 'w' = weak unresolved
5977 'V' = weak global object
5978 'v' = weak unresolved object
5979
5980 (bfd_is_undefined_symclass): New function. Return true if the
5981 given symbol class represents and undefined/unresolved symbol.
5982
5983 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
5984 unresolved symbols.
5985
5986 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
5987
5988 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
5989 STT_ARM_16BIT flag set, but it is not attached to a data object
5990 return STT_ARM_16BIT so that it will be treated as code by the
5991 disassembler.
5992
5993 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5994
5995 * coff-i386.c (i3coff_object_p): Remove prototype.
5996 Update copyright.
5997
5998 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
5999 to name. Update copyright.
6000
6001 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
6002 assignment to avoid warning. Update copyright.
6003
6004 2000-01-24 Robert Lipe (robertl@sco.com)
6005
6006 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
6007 instead of using GNU C extension.
6008
6009 2000-01-21 Nick Clifton <nickc@cygnus.com>
6010
6011 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
6012 amount from a bfd_in_memory structure.
6013 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
6014 structure.
6015
6016 2000-01-14 Nick Clifton <nickc@cygnus.com>
6017
6018 * linker.c (default_indirect_link_order): oops - fix incorrectly
6019 applied patch from Tim Wall.
6020
6021 2000-01-13 Timothy Wall (twall@tiac.net>
6022
6023 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
6024 = scnhsz, filhsz, relsz, aoutsz, etc)
6025
6026 * coffswap.h: Ditto.
6027
6028 2000-01-13 Nick Clifton <nickc@cygnus.com>
6029
6030 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
6031 interwork thumb to arm stub.
6032
6033 2000-01-13 Timothy Wall (twall@tiac.net>
6034
6035 * archures.c (bfd_octets_per_byte): New function: Return
6036 target byte size.
6037 (bfd_arch_mach_octets_per_byte): New function: Return target
6038 byte size.
6039
6040 * section.c: Distinguish between octets and bytes for usage of
6041 _cooked_size, _raw_size, and output_offset. Clarify
6042 description of bfd_set_section_contents.
6043
6044 * bfd-in2.h: Regenerate.
6045
6046 * coffgen.c: Indicate that the offset parameter is in bytes, not
6047 octets.
6048
6049 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
6050 where appropriate to get the octet offset when calling
6051 bfd_set_section_contents.
6052 (bfd_coff_reloc_link_order): Ditto.
6053
6054 * linker.c (bfd_generic_reloc_link_order): Ditto.
6055 (_bfd_default_link_order): Ditto.
6056
6057 * reloc.c (bfd_perform_relocation): Distinguish between octets
6058 and bytes. Use octets when indexing into octet data; use bytes
6059 when calculating target addresses.
6060 (bfd_install_relocation): Ditto.
6061
6062 * srec.c (srec_write_section): Ditto.
6063
6064 2000-01-13 Nick Clifton <nickc@cygnus.com>
6065
6066 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
6067 3 to 2. This allows 4 byte sized sections, which is necessary for
6068 dlltool to build functioning DLLs.
6069
6070 2000-01-10 Philip Blundell <pb@futuretv.com>
6071
6072 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
6073 (arm*-*-conix*): New target.
6074
6075 2000-01-10 Egor Duda <deo@logos-m.ru>
6076
6077 * config.bfd: Include elf32_i386 vector to target list for cygwin
6078 and mingw.
6079
6080 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
6081 * configure.in: Test for structure win32_pstatus_t in
6082 <sys/procfs.h>
6083 * configure: Regenerate.
6084
6085 * elf.c (elfcore_grok_win32pstatus): New function: process
6086 win32_pstatus_t notes in elf core file.
6087 (elfcore_grok_note): Detect win32_pstatus notes.
6088
6089 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
6090
6091 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
6092 visibility.
6093 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
6094 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
6095
6096 For older changes see ChangeLog-9899
6097 \f
6098 Local Variables:
6099 mode: change-log
6100 left-margin: 8
6101 fill-column: 74
6102 version-control: never
6103 End:
This page took 0.154388 seconds and 5 git commands to generate.