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